Skip to content

fix(artifacts): preserve PyInstaller retirement and map identity - #10616

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:replace/10111-uncovered-retirement-current-main
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:replace/10111-uncovered-retirement-current-main

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Independent current-main revalidation — 2026-11-15

Rechecked the same five-file change against main 4502bd44bb65741e3c62eb9c7d579df085d33a13 in an isolated local rebase (fe472a95f); this is additional evidence, not a new contribution or a pushed code revision. The published head remains e74a8947db9b001ed65bb1f6f1109a4f536e44ff.

  • Restoring both production owners to that unchanged main with the final three regression files: 17 failed / 322 passed / 339 total, exit 1. Both fixed production files were restored byte-for-byte in finally.
  • Fixed current-main tree: 21 complete suites / 858 passed, exit 0, 41.67 s. Includes all PyInstaller reader/admission/format files, resource scope/hash/preparation, release-exposure service/filesystem, compiled CLI and SDK-MCP consumers. These totals describe this selection only; they do not replace or add to the earlier 888-test selection.
  • 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.
  • Fresh review of fix(artifacts): preserve cancellation ownership and map source identity #10111's two actionable automated findings confirms both shared-caller identity corrections remain covered. Current published-head CI required and readiness checks pass; no unresolved inline review threads were returned. Codex review remains unavailable due to its usage limit; that is not a completed code review. No additional native-platform, actual executable/runtime, or Unicode-folding-filesystem qualification is claimed.

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, head e74a8947db9b001ed65bb1f6f1109a4f536e44ff. 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:

  • Final three regression files against unchanged main production: 17 failed / 322 passed / 339 total. Both production owners restored byte-for-byte in finally; no baseline timeouts.
  • Fixed input: 22 complete suites / 888 passed, 36.75 s, exit 0. Includes the full PyInstaller reader/admission/format family, compiled CLI acceptance, SDK-MCP boundary, resource scope/hash, working main Bun implementation, release reader/graph/filesystem/service consumers.
  • 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.
  • Existing fixtures use inert archive bytes, real file descriptors and zlib; the CLI is compiled. The PyInstaller MCP tests use the in-memory SDK transport. No target bytecode/executable execution, real Bun runtime, native Windows/macOS, or case/Unicode-folding filesystem qualification is claimed. A full monolithic local check was not completed for this replacement; scoped typed checks and CI fast checks are the local static evidence.

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.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T17:45:24.344418Z
We couldn’t complete this review. Comment @codex review to try again.
e74a894 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Keeps 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.

  • PyInstaller member reads stay owned until their output stream closes.
  • Release scans keep map and script declarations tied to exact paths.

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]
Loading

Reviews (2) · Last reviewed commit: "fix(artifacts): preserve PyInstaller ret..." · Reviewed by Greptile

@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants