Repository navigation
fix(runtime): reclaim test scratch after each case - #1329
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
aviggiano
force-pushed
the
codex/fix-runtime-test-scratch-1322
branch
from
October 26, 2026 19:45
9d32f9f to
3505ff2
Compare
aviggiano
force-pushed
the
codex/fix-runtime-test-scratch-1322
branch
from
October 26, 2026 20:03
e3e89da to
cba6ced
Compare
aviggiano
force-pushed
the
codex/fix-runtime-test-scratch-1322
branch
from
October 26, 2026 20:20
cba6ced to
1dd4f91
Compare
This was referenced Oct 26, 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.
Summary
runtime.test.tsafter each case, including failing cases and after their own teardown hooks. Restore owner write permission on sealed directories before removal without changing hard-linked file modes.TMPDIR, preserve scratch while test workers or detached descendants may still use it, and diagnose bothENOSPCandEDQUOT(including Node'sUnknown system error -122).This follows the contributor change in #1320 and addresses the dominant leak reported in #1322. Supporting runtime test files still clean their fixtures at process exit, so #1322 remains open for their per-test cleanup.
Scratch recovery safety
/procscan to find no process with this scratch inTMPDIR/TMP/TEMP, cwd, or open file descriptors. The scan checks both the original run path and any claimedreap-*path. Unknown process state retains scratch for later inspection; it never authorizes deletion. Process start ticks distinguish PID reuse for both launchers and activereap-*claimants. The harness passes scratch paths only to processes launched after scratch creation; with this boundary, unreadable/procdata for preexisting daemons can be ignored after checking any readable env, cwd, and descriptors. Unreadable newer processes retain scratch. Zombie processes do not hold scratch. A successful current run keeps its success status when an unrelated process makes the scan uncertain, and prints the retained path for later recovery.Validation
b33cb2d.git diff --checkpassed. The full runtime suite remains for CI.

Confidence Score: 5/5
The PR appears safe to merge; the concurrent cleanup finding is fixed.Summary
The PR removes test fixtures after each case and runs Node tests inside an owned temporary directory.
Reviews (6) · Last reviewed commit: "fix(runtime): preserve live scratch reap..." · Reviewed by Greptile