| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63083 +/- ##
==========================================
- Coverage 91.49% 89.65% -1.84%
==========================================
Files 360 712 +352
Lines 151674 220498 +68824
Branches 23919 42278 +18359
==========================================
+ Hits 138772 197685 +58913
- Misses 12625 14664 +2039
- Partials 277 8149 +7872 see 475 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
A newer reliability failure shows a different failure log for the same test: not ok 5567 sequential/test-watch-mode-worker
---
Test failure: 'should watch changes to worker - cjs'
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
[
'worker running',
"Completed running '/home/iojs/node-tmp/.tmp.5566/0.js'. Waiting for file changes before restarting...",
"Restarting '/home/iojs/node-tmp/.tmp.5566/0.js'",
- 'worker running',
"Completed running '/home/iojs/node-tmp/.tmp.5566/0.js'. Waiting for file changes before restarting..."
]
This is consistent with the same truncate-window race: the watched worker entry file can be observed while temporarily truncated, so the restarted worker exits without printing worker running. |
Sorry, something went wrong.
|
Could someone please request CI? |
Sorry, something went wrong.
|
@MoLow |
Sorry, something went wrong.
Sorry, something went wrong.
|
I'd independently worked on an alternative which uses appendFileSync in #63384. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes a flaky sequential/test-watch-mode-worker failure where the nested CJS worker dependency case can log {} instead of sub-dep v1.
The test rewrites watched worker dependency files to trigger --watch restarts, but default writeFileSync() temporarily truncates the file. A restarted worker can read the dependency during that empty-file window.
This change keeps the write-based restart trigger, but uses r+ to overwrite without truncation.
Reported in: https://github.com/nodejs/reliability/blob/main/reports/2026-05-02.md
not ok 5323 sequential/test-watch-mode-worker --- Test failure: 'should watch changes to nested worker dependencies - cjs' AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: [ 'sub-dep v1', "Completed running '/home/iojs/node-tmp/.tmp.5322/2.js'. Waiting for file changes before restarting...", "Restarting '/home/iojs/node-tmp/.tmp.5322/2.js'", + '{}', - 'sub-dep v1', "Completed running '/home/iojs/node-tmp/.tmp.5322/2.js'. Waiting for file changes before restarting..." ]Testing:
Refs: #62368