FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: deflake test-perf-hooks.js by joyeecheung · Pull Request #49892 · nodejs/node · GitHub

/ node Public

test: deflake test-perf-hooks.js - #49892

Closed
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:flaky-timing
Closed

test: deflake test-perf-hooks.js#49892
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:flaky-timing

Conversation

joyeecheung commented Sep 27, 2023
edited
Loading

Copy link
Copy Markdown
Member

Previously when checking the initial timing we did a lot of checks after accessing and copying timing.duration and before we check that timing.duration is roughly the same as performance.now(), which can lead to flakes if the overhead of the checking is big enough. Update the test to check timing.duration against performance.now() as soon as possible when it's copied instead of computed.

Refs: nodejs/reliability#676

Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#
nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Sep 27, 2023

Copy link
Copy Markdown
Member Author

We don't have shared library boxes for the stress tests so I only started the stress test on osx-11

PR: https://ci.nodejs.org/job/node-stress-single-test/450/
main: https://ci.nodejs.org/job/node-stress-single-test/451/

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 27, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 27, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

richardlau added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 29, 2023
joyeecheung added a commit that referenced this pull request Sep 29, 2023
Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#

PR-URL: #49892
Refs: nodejs/reliability#676
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Richard Lau <rlau@redhat.com>

joyeecheung commented Sep 29, 2023
edited
Loading

Copy link
Copy Markdown
Member Author

CI was green but the bot had trouble communicating the CI status back to GitHub. Landed manually in 4d0aeed

joyeecheung removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 29, 2023
targos pushed a commit that referenced this pull request Nov 11, 2023
Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#

PR-URL: #49892
Refs: nodejs/reliability#676
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Richard Lau <rlau@redhat.com>
debadree25 pushed a commit to debadree25/node that referenced this pull request Apr 15, 2024
Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#

PR-URL: nodejs#49892
Refs: nodejs/reliability#676
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Richard Lau <rlau@redhat.com>
aduh95 pushed a commit that referenced this pull request Feb 10, 2025
Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#

PR-URL: #49892
Refs: nodejs/reliability#676
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Richard Lau <rlau@redhat.com>
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

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL