test: fix flaky test-benchmark-events#17472
Closed
Trott wants to merge 1 commit intonodejs:masterfrom
Closed
Conversation
Member
Author
|
Example failure without these changes: https://ci.nodejs.org/job/node-test-commit-linux/14693/nodes=alpine36-container-x64/consoleFull not ok 148 parallel/test-benchmark-events
---
duration_ms: 5.335
severity: fail
stack: |-
events/ee-add-remove.js
events/ee-add-remove.js n=1: 3,238.5412314876885
events/ee-emit.js
events/ee-emit.js listeners=1 argc=0 n=1: 8,308.684236764266
events/ee-emit.js listeners=5 argc=0 n=1: 7,649.763239827728
events/ee-emit.js listeners=10 argc=0 n=1: 7,807.681196761374
events/ee-emit.js listeners=1 argc=2 n=1: 7,828.52401008314
events/ee-emit.js listeners=5 argc=2 n=1: 16,525.10162937502
events/ee-emit.js listeners=10 argc=2 n=1: 8,180.226755885673
events/ee-emit.js listeners=1 argc=4 n=1: 21,679.276779326643
/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine36-container-x64/benchmark/common.js:202
throw new Error('insufficient clock precision for short benchmark');
^
Error: insufficient clock precision for short benchmark
at Benchmark.end (/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine36-container-x64/benchmark/common.js:202:13)
at main (/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine36-container-x64/benchmark/events/ee-emit.js:35:13)
at Benchmark.process.nextTick (/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine36-container-x64/benchmark/common.js:34:28)
at process._tickCallback (internal/process/next_tick.js:155:11)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:195:16)
at bootstrap_node.js:646:3
assert.js:42
throw new errors.AssertionError({
^
AssertionError [ERR_ASSERTION]: 1 strictEqual 0
at ChildProcess.child.on (/home/iojs/build/workspace/node-test-commit-linux/nodes/alpine36-container-x64/test/common/benchmark.js:25:12)
at ChildProcess.emit (events.js:126:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
... |
Member
Author
jasnell
approved these changes
Dec 5, 2017
cjihrig
approved these changes
Dec 5, 2017
Member
Author
|
CI failure is no doubt unrelated build issue but here's a re-run: https://ci.nodejs.org/job/node-test-commit-linux-linked/609/ |
mhdawson
approved these changes
Dec 5, 2017
Member
mhdawson
left a comment
There was a problem hiding this comment.
Typo in commit comment:
'only ones one combination of options'
otherwise LGTM
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark.
9ed8fb8 to
394ace6
Compare
Member
Author
|
Typo in commit fixed. Thanks, @mhdawson! |
Member
Author
|
(CI is good.) |
BridgeAR
approved these changes
Dec 6, 2017
Member
|
I think this can land below the 48 hours. |
Member
Author
|
Landed in b3e5367 |
Trott
added a commit
to Trott/io.js
that referenced
this pull request
Dec 6, 2017
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: nodejs#17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Dec 12, 2017
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: #17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
Dec 12, 2017
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: #17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Merged
gibfahn
pushed a commit
that referenced
this pull request
Dec 20, 2017
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: #17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Closed
gibfahn
pushed a commit
that referenced
this pull request
Dec 20, 2017
Make sure each benchmark file only runs one combination of options. Allow for zero iterations for short benchmark. PR-URL: #17472 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure each benchmark file only ones one combination of options.
Allow for zero iterations for short benchmark.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test benchmark events