Title: test: fix flaky test-performance-eventloopdelay by mcollina · Pull Request #61629 · nodejs/node · GitHub
Open Graph Title: test: fix flaky test-performance-eventloopdelay by mcollina · Pull Request #61629 · nodejs/node
X Title: test: fix flaky test-performance-eventloopdelay by mcollina · Pull Request #61629 · nodejs/node
Description: Summary Fixes flaky test test/sequential/test-performance-eventloopdelay.js The test was failing intermittently on IBM sharedlibs containers Problem The test was flaky because the histogram sampling might not have completed before the assertions ran. The assertion assert(histogram.min > 0) could fail if no samples were recorded yet. Solution Wrapped the assertions in setImmediate(common.mustCall(() => {...})) to give the event loop a chance to record final samples before checking Added an explicit check for histogram.count > 0 to provide a clearer error message if no samples are recorded Verification Verified with python3 tools/test.py --repeat 50 without failures. Refs: nodejs/reliability#1450
Open Graph Description: Summary Fixes flaky test test/sequential/test-performance-eventloopdelay.js The test was failing intermittently on IBM sharedlibs containers Problem The test was flaky because the histogram sampl...
X Description: Summary Fixes flaky test test/sequential/test-performance-eventloopdelay.js The test was failing intermittently on IBM sharedlibs containers Problem The test was flaky because the histogram sampl...
Opengraph URL: https://github.com/nodejs/node/pull/61629
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b4ae8cc0-8a75-0494-c97a-0537296385fc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B4BA:3E084C:1513ACE:1CBD13A:6A4C7CD0 |
| html-safe-nonce | be2d7d6c060e6059d8e50ec361d71aa2cf73b211db47ce773210714f199f706f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEJBOjNFMDg0QzoxNTEzQUNFOjFDQkQxM0E6NkE0QzdDRDAiLCJ2aXNpdG9yX2lkIjoiNDg1NTc2NjM2MTY0NzY0Mzg1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cc1d63feeb548c83ad802b6c9d341460c31c28d6131d21e68815c221a078813f |
| hovercard-subject-tag | pull_request:3233858406 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/61629/files |
| twitter:image | https://avatars.githubusercontent.com/u/52195?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/52195?s=400&v=4 |
| og:image:alt | Summary Fixes flaky test test/sequential/test-performance-eventloopdelay.js The test was failing intermittently on IBM sharedlibs containers Problem The test was flaky because the histogram sampl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd470457e909b9d062f8002cf438ba870e6acff6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width