Repository navigation
fix(artifacts): preserve PyInstaller retirement and map identity - #10616
ShuaixinHuang wants to merge 1 commit into
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The reviewed changes appear safe to merge. SummaryKeeps PyInstaller reads owned until their readable output closes and preserves producer failures that arrive before cancellation. Repeated map and HTML declarations now remove exact guesses without consuming a different Unicode spelling.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Member source] --> B[Optional inflate]
B --> C[Readable output]
C --> D[Production settles]
C --> E[Readable closes]
E --> F[Remove abort listener]
D --> G[Wait for both]
E --> G
G --> H[Owning operation settles]
Reviews (2) · Last reviewed commit: "fix(artifacts): preserve PyInstaller ret..." · Reviewed by Greptile |
Independent current-main revalidation — 2026-11-15
Rechecked the same five-file change against main
4502bd44bb65741e3c62eb9c7d579df085d33a13in an isolated local rebase (fe472a95f); this is additional evidence, not a new contribution or a pushed code revision. The published head remainse74a8947db9b001ed65bb1f6f1109a4f536e44ff.finally.npm run check: all six graph tasks, architecture guards and production reachability completed successfully. The final whole-repository typed-lint processes approached the host's 8 GiB cgroup limit and were explicitly stopped with SIGTERM; the complete command did not pass. Subsequent type-aware lint of all five changed files passed with 0 errors / 37 advisory warnings. Diff check passed.The existing initial human-readiness record below is preserved; this update makes no declaration of human review of new code.
Replacement and scope
Replaces #10111 at the author's explicit request, on main
1ba93b46022002f6cdf3f682cea2e3009897cf46, heade74a8947db9b001ed65bb1f6f1109a4f536e44ff. This is the remaining part of the same contribution. The original preserves its review and validation history.Main already incorporates the Bun readable-retirement owner and regression through #10349. Both proposed Bun files are omitted here: current
OwnedArtifactStream,ArtifactPreparation, and Bun behavior are preserved. This replacement contains only the still-uncovered PyInstaller retirement and release-exposure identity fixes from #10111.Trigger, cause and repair
A PyInstaller member can finish producing bytes while its readable output remains buffered. The old pipeline completion removed cancellation ownership and let the owning operation settle before that output retired. Aborting then could return buffered success rather than the typed cancellation and exact reason. Keep the listener and operation until readable close, and await both production and retirement even on failure. Preserve an I/O or inflate failure already owned by a producer before its error event forwards it, rather than overwriting it with downstream cancellation. The controlled prefetch-failure regression exercises this ordering.
Release exposure also groups NFC/NFD spellings into one lookup key. Repeated map/HTML declarations could retract a peer source or fail to retract an exact guess added after an earlier declaration. Retract a present exact guess first; suppress repeated fuzzy fallback only when that exact spelling was actually examined and its declaration admitted. An admitted missing target is not source identity. Keep ambiguous missing-target coverage unknown. Controls cover both cross-caller orders, early/late/repeated declarations and separately declared spellings. The two valid original review findings remain addressed; no routing, admission ceilings, budgets or cache policy changes.
Fresh verification
Linux x64, Node 24.22.1 / npm 11.9.0:
finally; no baseline timeouts.npm run check:ci:fast: 3 tasks passed, including static, architecture and production reachability checks. Changed-file type-aware lint: 5 files / 0 errors / 37 warnings. Test discovery: 3564 files exactly once. Diff/format checks and normal commit/pre-push hooks passed.Current-head CI run 43622823741 succeeded for its selected lanes; configured skips do not establish execution. Greptile reported 5/5 with no unresolved inline findings. Codex review was unavailable because its usage limit was reached. Old #10111 runs remain historical. The human owner confirmed the replacement and current readiness passed.
Author readiness
Human owner: @ShuaixinHuang
The human owner confirmed review of this replacement and its readiness declarations.