Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: make test-cli-node-options more robust #26994

Closed
wants to merge 2 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Mar 29, 2019

The test launches over 20 processes asynchronously. That may be too many
for underpowered machines in CI with limited PID space.

Fixes: #25028

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

The test launches over 20 processes asynchronously. That may be too many
for underpowered machines in CI with limited PID space.

Fixes: nodejs#25028
@nodejs-github-bot
Copy link
Collaborator

@Trott Sadly, an error occurred when I tried to trigger a build. :(

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Mar 29, 2019
@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member Author

Trott commented Mar 29, 2019

@Trott
Copy link
Member Author

Trott commented Mar 29, 2019

Welp, that didn't go as planned....

10:26:19 not ok 445 parallel/test-cli-node-options
10:26:19   ---
10:26:19   duration_ms: 7.544
10:26:19   severity: fail
10:26:19   exitcode: 1
10:26:19   stack: |-
10:26:19     /home/iojs/build/workspace/node-test-commit-arm/nodes/ubuntu1604-arm64/test/parallel/test-cli-node-options.js:83
10:26:19           throw e;
10:26:19           ^
10:26:19     
10:26:19     Error: Command failed: /home/iojs/build/workspace/node-test-commit-arm/nodes/ubuntu1604-arm64/out/Release/node -e console.log("B")
10:26:19     
10:26:19     
10:26:19     #
10:26:19     # Fatal error in , line 0
10:26:19     # Check failed: (perf_output_handle_) != nullptr.
10:26:19     #
10:26:19     #
10:26:19     #
10:26:19     #FailureMessage Object: 0xffffe677c798
10:26:19         at checkExecSyncError (child_process.js:622:11)
10:26:19         at execFileSync (child_process.js:640:13)
10:26:19         at expect (/home/iojs/build/workspace/node-test-commit-arm/nodes/ubuntu1604-arm64/test/parallel/test-cli-node-options.js:80:14)
10:26:19         at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-arm/nodes/ubuntu1604-arm64/test/parallel/test-cli-node-options.js:43:3)
10:26:19         at Module._compile (internal/modules/cjs/loader.js:837:30)
10:26:19         at Object.Module._extensions..js (internal/modules/cjs/loader.js:848:10)
10:26:19         at Module.load (internal/modules/cjs/loader.js:704:32)
10:26:19         at tryModuleLoad (internal/modules/cjs/loader.js:636:12)
10:26:19         at Function.Module._load (internal/modules/cjs/loader.js:628:3)
10:26:19         at Function.Module.runMain (internal/modules/cjs/loader.js:903:10)
10:26:19   ...

@Trott Trott added the wip Issues and PRs that are still a work in progress. label Mar 29, 2019
@addaleax
Copy link
Member

addaleax commented Apr 3, 2019

Btw, I’d personally say that it’s not bad to test that we can spawn a large-ish number of child processes which do very little work each all at once, no matter what the outcome here is.

@Trott
Copy link
Member Author

Trott commented Apr 3, 2019

Btw, I’d personally say that it’s not bad to test that we can spawn a large-ish number of child processes which do very little work each all at once, no matter what the outcome here is.

Agreed. I'd prefer a test be specifically designed to test that, rather than it be a side effect of an otherwise unrelated test. In fact, I think we already have a test like that: test/pummel/test-child-process-spawn-loop.js (EDIT: Of course, a big limitation of that test being in pummel is that it doesn't get run in CI on Windows etc.)

@Trott Trott closed this Apr 19, 2019
@Trott Trott deleted the fix-test-cli-node-options branch January 13, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests. wip Issues and PRs that are still a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate flaky test-cli-node-options
5 participants