test: relax min assertion in test-performance-eventloopdelay by marcopiraccini · Pull Request #63100 · nodejs/node · GitHub
Skip to content

test: relax min assertion in test-performance-eventloopdelay#63100

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marcopiraccini:flaky-eventloopdelay-min
May 17, 2026
Merged

test: relax min assertion in test-performance-eventloopdelay#63100
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marcopiraccini:flaky-eventloopdelay-min

Conversation

@marcopiraccini

@marcopiraccini marcopiraccini commented May 3, 2026

Copy link
Copy Markdown
Contributor

Fixes this flacky test issue: #41286

I think the test is wrong and it should check min >= 0.
monitorEventLoopDelay configures the histogram with lowest_discernible_value = 1000 ns. hdr_min() returns the lower bound of the bucket the smallest sample landed in, and for that config the first bucket is [0, 512) ns — lower bound 0.

So min === 0 just means the smallest sample fell into the first bucket.
In other words, seems to me that the assert is wrong, and min === 0 is legit

This PR fixes the assert.

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels May 3, 2026
@marcopiraccini marcopiraccini marked this pull request as ready for review May 3, 2026 13:34
@codecov

codecov Bot commented May 3, 2026

Copy link
Copy Markdown

@trivikr trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label May 17, 2026
@trivikr trivikr added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 17, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 17, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@trivikr trivikr added the commit-queue Add this label to land a pull request using GitHub Actions. label May 17, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 17, 2026
@nodejs-github-bot nodejs-github-bot merged commit d6be715 into nodejs:main May 17, 2026
108 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

aduh95 pushed a commit that referenced this pull request May 19, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: #63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
aduh95 pushed a commit that referenced this pull request May 19, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: #63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
panva pushed a commit to panva/node that referenced this pull request May 23, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: nodejs#63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
aduh95 pushed a commit that referenced this pull request May 23, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: #63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
araujogui pushed a commit to araujogui/node that referenced this pull request May 26, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: nodejs#63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
aduh95 pushed a commit that referenced this pull request Jun 18, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
PR-URL: #63100
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. 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