Repository navigation
fix(artifacts): isolate cancelled PyInstaller parse attempts - #9961
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
November 11, 2026 04:56
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. |
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
Allow a fresh or concurrent uncancelled PyInstaller inventory after another caller cancels parsing, while keeping private-image ownership and admission quotas correct.
Problem and expected behavior
The reader cached a rejected caller-owned parse Promise for its whole lifetime, so independent callers repeated that cancellation. Resetting only the Promise would reuse partial quota charges and private PYZ storage. A failed attempt must finish cleanup before reuse; unresolved cleanup must keep its exact owner.
Change and scope
Give each parse attempt its own signal, quota counters and existing private-image store. Adopt that state only after validated success. Typed cancellation joins private-image cleanup before releasing the attempt for a fresh caller. Failed cleanup remains retained and blocks rehydrating/reusing stale private images until reader close retries the exact owner. Physical failures, including I/O concurrent with caller abort, keep their original precedence and retry behavior.
Exactly two files. No generic preparation framework, new capability, target execution or unrelated reader migration. No linked issue: this defect was found during the source audit.
Validation performed
Pinned Node 24.22.1 on base main
a6e02657e6c1533f6e21e728570aeb8601b78368:npm run typecheck,npm run deps:check, scoped lint, formatting and diff checks passed. Five existing lint warnings remain.Authored inert archive fixtures and local filesystem/compression operations only. No real packaged application execution, compiled CLI/MCP workflow, shared build or live-provider verification.
Dependencies and overlap
No unmerged prerequisite. Open PRs #8060 and #7716 touch an existing same-size-rewrite test to make timestamps observable; those hunks are separate from this correction and were not borrowed. uImage, UnityFS and wxapkg changes are excluded.
Author readiness
Human owner: