Repository navigation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bf4cd9d684
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Low impact] The change is limited to cancellation matching in a shared process helper. The PR should not merge until a late
|
|
Superseded: #10906 (now in #10964) already reads execFile's abort as |
|
Closing as superseded: #10906 already moved ExecFileOutput's abort check onto the shared signal owner, including the |
Summary
execFileOutput's non-stoppable path (execFilewith the caller's signal) recognised execFile's cancellation byerror.name === "AbortError" && error.code === "ABORT_ERR". It now uses the signal owner,isAbortOf(error, signal), and buildsExecFileOutputCancelledErrorfromsignal.reason. This was the lastAbortErrorname comparison counted by theabort-error-nameguard insrc/process/. Its baseline entry is removed.Stacked on #10964, which owns the guard and its baseline. This is one of the remaining
AbortErrorname checks listed in W5. It is W4-adjacent, so it is kept to the one condition. Refs #5808.Problem and expected behavior
execFilecallback errorABORT_ERR,cause= caller's reason)ExecFileOutputCancelledError(error.cause)ExecFileOutputCancelledError(signal.reason): the same reasonABORT_ERRwhosecauseis not the caller's reason, or with no caller signalThe second row is not reachable through real
execFile: it raisesABORT_ERRonly for the signal it was given. No test can produce it without replacingexecFile, so this PR adds no new case. Behaviour is unchanged for every reachable outcome, and the existing exact-reason cases cover it (null,NaN, a string and anErrorreason).Change and scope
src/process/ExecFileOutput.ts.scripts/verify/architecture-guard-baselines.jsonlosesabort-error-name'ssrc/process/ExecFileOutput.tsentry.startStoppableCommand), which owns its abort through its own listener and has no name check, and any other W4 finalization behaviour.Contract and boundary impact
None.
Evidence and regression coverage
src/process/ExecFileOutput.test.tscovers the caller's own abort, with exact reasons, on both the pre-aborted and running paths.Validation performed
npm run test:local -- src/process/ExecFileOutput.test.ts: 50 passed.node scripts/verify/architecture-guards.mjs --shrink-baselines, then the guards: pass.npx tsc --noEmit -p tsconfig.json: clean. The pre-pushcheck:fastpassed.Compatibility, safety, and release
No breaking change.
Author readiness
Human owner:
Before merge
type(scope): outcome.