Skip to content

test: isolate rerun-failures state file under tmpdir#63449

Open
atlowChemi wants to merge 1 commit into
nodejs:mainfrom
atlowChemi:test-rerun-failures-tmpdir
Open

test: isolate rerun-failures state file under tmpdir#63449
atlowChemi wants to merge 1 commit into
nodejs:mainfrom
atlowChemi:test-rerun-failures-tmpdir

Conversation

@atlowChemi
Copy link
Copy Markdown
Member

While working on #63431 I noticed that running python tools/test.py --repeat 100 -j 10 "test/parallel/test-runner-test-rerun-failures" would keep failing since we saved all tests on to the same single JSON file.

This change fixes the issue by writing the stats file onto tmpdir instead.

The rerun-failures state file lived at a fixed path under fixtures/,
so concurrent invocations of test-runner-test-rerun-failures (e.g.
`python tools/test.py --repeat 100 -j 16 ...`) raced on a single file
and failed intermittently. Move the path to `tmpdir.resolve(...)` so
each process gets its own scratch state.

Signed-off-by: atlowChemi <chemi@atlow.co.il>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@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 20, 2026
@atlowChemi atlowChemi added the request-ci Add this label to start a Jenkins CI on a PR. label May 20, 2026
@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 20, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 20, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.06%. Comparing base (0e8fb91) to head (7a458f9).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #63449   +/-   ##
=======================================
  Coverage   90.06%   90.06%           
=======================================
  Files         714      714           
  Lines      225918   225918           
  Branches    42735    42731    -4     
=======================================
+ Hits       203471   203480    +9     
+ Misses      14232    14222   -10     
- Partials     8215     8216    +1     

see 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@atlowChemi atlowChemi added the commit-queue Add this label to land a pull request using GitHub Actions. label May 20, 2026
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. commit-queue Add this label to land a pull request using GitHub Actions. 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