-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Rewrite fastutf8stream tests node test #59667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Rewrite fastutf8stream tests node test #59667
Conversation
@joyeecheung I would need an approval to be able to test it on CI |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59667 +/- ##
==========================================
+ Coverage 89.90% 89.91% +0.01%
==========================================
Files 667 667
Lines 196601 196600 -1
Branches 38599 38607 +8
==========================================
+ Hits 176757 176782 +25
+ Misses 12327 12267 -60
- Partials 7517 7551 +34 🚀 New features to boost your workflow:
|
Rewrite test/parallel/test-fastutf8stream-sync.js and test/parallel/test-fastutf8stream-flush-mocks.js to use node:test with individual test functions and proper stream cleanup. Key changes: - Convert from block-based tests to individual test() functions - Use once() from node:events for proper stream close event handling - Ensure streams emit 'close' event before test completion for Windows compatibility - Fix fsync mocking in flush tests to allow proper stream closure - Each test runs independently with proper resource cleanup
13a64e6
to
030514c
Compare
Failed to start CI⚠ Commits were pushed since the last approving review: ⚠ - test: rewrite fastutf8stream tests to use node:test ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/17357709189 |
Ok it seems that the stress test CI now started: https://ci.nodejs.org/view/Stress/job/node-stress-single-test/615/. I had to pick |
FWIW the original flakes are now gone in the reliability report https://github.com/nodejs/reliability/blob/main/reports/2025-09-01.md |
The problem is still there, it really depends on the drive of those virtual machines. |
Fixes #59638