Skip to content
New issue

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

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

Already on GitHub? # to your account

test: fix flaky test-benchmark-querystring #17517

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Dec 7, 2017

Allow zero iterations for short benchmark in test.

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

test benchmark querystring

Allow zero iterations for short benchmark in test.
@Trott Trott added benchmark Issues and PRs related to the benchmark subsystem. flaky-test Issues and PRs related to the tests with unstable failures on the CI. querystring Issues and PRs related to the built-in querystring module. test Issues and PRs related to the tests. labels Dec 7, 2017
@Trott
Copy link
Member Author

Trott commented Dec 7, 2017

Sample failure in CI:

https://ci.nodejs.org/job/node-test-commit-linux-linked/646/nodes=ubuntu1604_sharedlibs_fips20_x64/consoleFull

19:51:11 not ok 154 parallel/test-benchmark-querystring
19:51:11   ---
19:51:11   duration_ms: 1.353
19:51:11   severity: fail
19:51:11   stack: |-
19:51:11     
19:51:11     querystring/querystring-parse.js
19:51:11     /home/iojs/build/workspace/node-test-commit-linux-linked/nodes/ubuntu1604_sharedlibs_fips20_x64/benchmark/common.js:202
19:51:11           throw new Error('insufficient clock precision for short benchmark');
19:51:11           ^
19:51:11     
19:51:11     Error: insufficient clock precision for short benchmark
19:51:11         at Benchmark.end (/home/iojs/build/workspace/node-test-commit-linux-linked/nodes/ubuntu1604_sharedlibs_fips20_x64/benchmark/common.js:202:13)
19:51:11         at main (/home/iojs/build/workspace/node-test-commit-linux-linked/nodes/ubuntu1604_sharedlibs_fips20_x64/benchmark/querystring/querystring-parse.js:33:11)
19:51:11         at Benchmark.process.nextTick (/home/iojs/build/workspace/node-test-commit-linux-linked/nodes/ubuntu1604_sharedlibs_fips20_x64/benchmark/common.js:34:28)
19:51:11         at process._tickCallback (internal/process/next_tick.js:150:11)
19:51:11         at Function.Module.runMain (module.js:703:11)
19:51:11         at startup (bootstrap_node.js:195:16)
19:51:11         at bootstrap_node.js:646:3
19:51:11     assert.js:42
19:51:11       throw new errors.AssertionError({
19:51:11       ^
19:51:11     
19:51:11     AssertionError [ERR_ASSERTION]: 1 strictEqual 0
19:51:11         at ChildProcess.child.on (/home/iojs/build/workspace/node-test-commit-linux-linked/nodes/ubuntu1604_sharedlibs_fips20_x64/test/common/benchmark.js:25:12)
19:51:11         at ChildProcess.emit (events.js:126:13)
19:51:11         at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
19:51:11   ...

@Trott
Copy link
Member Author

Trott commented Dec 7, 2017

CI: https://ci.nodejs.org/job/node-test-pull-request/11935/

[UPDATE: It's yellow.]

@refack
Copy link
Contributor

refack commented Dec 8, 2017

Once again you beat me to it...

Trott added a commit to Trott/io.js that referenced this pull request Dec 8, 2017
Allow zero iterations for short benchmark in test.

PR-URL: nodejs#17517
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@Trott
Copy link
Member Author

Trott commented Dec 8, 2017

Landed in 09e9e2b

@Trott Trott closed this Dec 8, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
Allow zero iterations for short benchmark in test.

PR-URL: #17517
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
Allow zero iterations for short benchmark in test.

PR-URL: #17517
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Dec 12, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
Allow zero iterations for short benchmark in test.

PR-URL: #17517
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@gibfahn gibfahn mentioned this pull request Dec 20, 2017
gibfahn pushed a commit that referenced this pull request Dec 20, 2017
Allow zero iterations for short benchmark in test.

PR-URL: #17517
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@gibfahn gibfahn mentioned this pull request Dec 20, 2017
@Trott Trott deleted the fix-test-bench-querystring branch January 13, 2022 22:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
benchmark Issues and PRs related to the benchmark subsystem. flaky-test Issues and PRs related to the tests with unstable failures on the CI. querystring Issues and PRs related to the built-in querystring module. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants