Skip to content

build: create test_addons function - #12204

Closed
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:addons_test_function
Closed

build: create test_addons function#12204
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:addons_test_function

Conversation

@danbev

Copy link
Copy Markdown
Contributor

test/addons/.buildstamp and test/addons-napi/.buildstamp targets are
very similar except that they operate on different directories. This
commit extracts the common parts into a function to avoid the
duplication.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Apr 4, 2017
@danbev

Copy link
Copy Markdown
ContributorAuthor

Comment threadMakefile Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, @Fishrock123 recently asked on IRC whether we could parallelize addon building… any chance there’s an easy way to do this in make?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not off the top of my head (only know about the -j flag to make for that) but I'll take a look and see what options exist.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@addaleax I've added a commit now for this. Let me know what you think.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created #12230 since making the building of addons parallel does not really relate to this PR. I'll remove also remove that commit from this PR.

@danbev

Copy link
Copy Markdown
ContributorAuthor

I windows failure looks unrelated to this commit:

not ok 32 parallel/test-cli-syntax --- duration_ms: 3.104 severity: fail stack: |- assert.js:82 throw new assert.AssertionError({ ^ AssertionError: 'c:\\workspace\\node-test-binary-windows\\RUN_SUBSET\\2\\VS_VERSION\\vcbt2015\\label\\win10\\Release\\node.exe: either --check o === 'c:\\workspace\\node-test-binary-windows\\RUN_SUBSET\\2\\VS_VERSION\\vcbt2015\\label\\win10\\Release\\node.exe: either --check o at c:\workspace\node-test-binary-windows\RUN_SUBSET\2\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:127:12 at Array.forEach (native) at c:\workspace\node-test-binary-windows\RUN_SUBSET\2\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:123:20 at Array.forEach (native) at Object.<anonymous> (c:\workspace\node-test-binary-windows\RUN_SUBSET\2\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:122:19) at Module._compile (module.js:607:30) at Object.Module._extensions..js (module.js:618:10) at Module.load (module.js:516:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)

@Trott

Trott commented Apr 4, 2017

Copy link
Copy Markdown
Member

The Windows failure was a problem on the master branch and has since been fixed.

@danbev

Copy link
Copy Markdown
ContributorAuthor

The Windows failure was a problem on the master branch and has since been fixed.

Thanks for that, I'll rebase and rerun Ci.

@danbev
danbevforce-pushed the addons_test_function branch from 476b1cc to 1bd2f8eCompareApril 4, 2017 17:30
@danbev

Copy link
Copy Markdown
ContributorAuthor

@danbev

Copy link
Copy Markdown
ContributorAuthor

@mscdexmscdex added addons Issues and PRs related to native addons. test Issues and PRs related to the tests. labels Apr 4, 2017
test/addons/.buildstamp and test/addons-napi/.buildstamp targets are
very similar except that they operate on different directories. This
commit extracts the common parts into a function to avoid the
duplication.
@danbev
danbevforce-pushed the addons_test_function branch from fff95d6 to 1fb7d60CompareApril 5, 2017 11:26
@danbev

Copy link
Copy Markdown
ContributorAuthor

Closing in favour of #12231

@danbevdanbev closed this Apr 5, 2017
@refackrefack added the embedding Issues and PRs related to embedding Node.js in another project. label Aug 17, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addonsIssues and PRs related to native addons.buildIssues and PRs related to build files or the CI.embeddingIssues and PRs related to embedding Node.js in another project.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@danbev@Trott@bnoordhuis@jasnell@addaleax@richardlau@mscdex@refack@nodejs-github-bot