Repository navigation
fix(artifacts): preserve bundle and extraction failures on abort - #9649
Merged
Merged
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. |
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
.NET bundle marker, manifest and member reads could replace a physical failure with cancellation when the caller aborted during the rejected read. Extraction source lookup likewise hid an actual changed-path failure if abort arrived during the non-abortable lookup.
Use the existing artifact chunk reader to produce tagged cancellation at the descriptor boundary, remove the downstream signal-based reinterpretation, and check cancellation after successful manifest reads. Preserve physical failures and their causes. Extraction now checks cancellation after successful source lookup and preserves actual lookup failures. iNES also reuses the same existing chunk owner instead of a local cancellation callback. No resource ownership or format limits change.
Validation and scope
Controlled real-descriptor regressions reproduced physical failure plus abort at the marker scan and member stream; the manifest rejection control now asserts its original failure instead of expecting cancellation. A completed-read control retains the caller's opaque cancellation reason. A real-filesystem extraction regression reproduced ENOTDIR being hidden after the inventoried parent became a file, with controls for no abort and successful lookup followed by abort. After merging main, all 69 tests across five .NET, iNES, extraction and caller-path suites passed under Node 24.22.1, plus typecheck, scoped formatting and diff checks.
No .NET target execution or runtime-provider qualification. The separate iNES pre-admission open catch remains a candidate requiring producer-level verification and was not changed. Existing local read-error repair; no new authority, provider, dependency, installer, public schema or generated metadata. Maintainer scope decision is not applicable.
Author readiness