Repository navigation
test(inspector): keep the cancellation fixture out of underscored temp roots - #10118
Closed
MuhammadFaizan-prog wants to merge 1 commit into
Closed
MuhammadFaizan-prog wants to merge 1 commit into
MuhammadFaizan-prog wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
MuhammadFaizan-prog
marked this pull request as draft
November 11, 2026 16:48
MuhammadFaizan-prog
marked this pull request as ready for review
November 11, 2026 17:53
This was referenced Nov 13, 2026
This was referenced Nov 14, 2026
Closed
gensokyo-dev
added a commit
that referenced
this pull request
Nov 14, 2026
…p roots Fixes #9996 Supersedes #10118 Co-Authored-By: gensokyo-dev <[email protected]>
N0zoM1z0
pushed a commit
that referenced
this pull request
Nov 14, 2026
…p roots Fixes #9996 Supersedes #10118 Co-Authored-By: gensokyo-dev <[email protected]>
Collaborator
3 tasks done
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
Fixes #9996. Related: #7056, #4484 (same helper; this is rebased onto current main and limited to the cancellation test, per the request for one fixture owner). Happy to close this in favour of #7056 if you'd rather land that one.
Problem and expected behavior
authorizeRuntimeTargetLocationintentionally never stats a Node-reported POSIX path containing_,"or\. The cancellation test builds its fixture undertmpdir(), so an underscored temporary root (common on macOS, or any TMPDIR with_) leaves both targets unresolved, the abort set for the second stat never fires, andlistTargetssucceeds:Error: Expected Inspector listing cancellation.Change and scope
tests/fixtures/temporaryDirectory.ts:createNodeDiscoveryTempDirectory(prefix)uses canonicaltmpdir()when it is free of those characters, otherwise canonical/tmp, and throws if the created directory is still ambiguous. Windows usescreateTestTempDirectory. Cleanup isonTestFinished→removeTestWorkspace.roots/afterEachremoval (CONTRIBUTING: one deletion owner). No assertion changes.JavaScriptRuntimeScope.ts. Not included: the boundary inspector tests covered by test(inspector): keep Node discovery fixtures out of underscored temp dirs #4484, and Windows behavior of this file.Contribution scope: ordinary test fix within existing boundaries; maintainer scope decision not applicable.
Contract and boundary impact
rea-prefix and is removed byonTestFinished.Evidence and regression coverage
src/inspector/JavaScriptRuntimeScope.cancellation.test.ts(fixture root only).0909d89c, Linux aarch64, Node 24.22.1,TMPDIR=<work>/bad_root npm run test:local -- src/inspector/JavaScriptRuntimeScope.cancellation.test.ts→ 1 failed / 4 passed (Expected Inspector listing cancellation, line 142);<work>/goodroot→ 5 passed.Validation performed
Linux aarch64, Node 24.22.1, isolated HOME/XDG:
TMPDIR=<work>/bad_root npm run test:local -- src/inspector/JavaScriptRuntimeScope.cancellation.test.ts: before 1 failed / 4 passed; after 5 passedTMPDIR=<work>/goodroot npm run test:local -- src/inspector/JavaScriptRuntimeScope.cancellation.test.ts: before and after 5 passednpx oxfmt --checkandnpx oxlinton the two files: passed, 0 findingsrea-inspector-cancel-*directories left in/tmpafter the runnpm run check:fast: not completed locally (typecheck ran out of memory); relying on CICompatibility, safety, and release
Author readiness
Human owner: @MuhammadFaizan-prog
AI disclosure: prepared with AI assistance (Hark); I review and own the final diff.