Conversation
The 10ms timeout can expire before the benchmark callback starts. There is then no unsettled work to abort the rest of the run. Abort from inside the callback to guarantee pending work. Cover timeout errors separately with a zero timeout. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
Member
Author
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66153 +/- ##
=======================================
Coverage 90.29% 90.29%
=======================================
Files 790 790
Lines 272021 272021
Branches 51917 51930 +13
=======================================
+ Hits 245611 245626 +15
+ Misses 16903 16889 -14
+ Partials 9507 9506 -1 🚀 New features to boost your workflow:
|
Member
Author
|
Locally, I forced the timing window with a That lets its 10ms deadline expire before the callback starts. There is then no unsettled work, so the following benchmark runs and its
The unmodified test failed with the reported assertion in 100/100 forced runs. With this fix 100/100 runs passed with the same delay applied. |
Collaborator
Contributor
|
Fast-track has been requested by @panva. Please 👍 to approve. |
jasnell
approved these changes
Sep 20, 2026
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.
The 10ms timeout can expire before the benchmark callback starts. There is then no unsettled work to abort the rest of the run.
Abort from inside the callback to guarantee pending work. Cover timeout errors separately with a zero timeout.