Repository navigation
feat(artifacts): read Zstandard ZIP members - #7780
Merged
Merged
Conversation
12 of 13 tasks
Codex Review SummaryThis 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. |
Contributor
[Medium impact] The latest change appears safe to merge; the previous finding is fixed and no new blocking issues were found. SummaryAdds ZIP method-93 support through Node’s streaming Zstandard decoder while keeping zip.js responsible for ZIP integrity checks.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
ZIP["ZIP method-93 member"] --> Framing["zip.js reads ZIP records"]
Framing --> Decoder["Node Zstandard decoder<br/>128 MiB window cap"]
Decoder --> Checks["zip.js checks CRC and size"]
Checks --> Output["Member bytes"]
Decoder --> Dictionary["Missing dictionary"]
Dictionary --> Failure["Unsupported-dictionary failure<br/>Original cause retained"]
Reviews (2) · Last reviewed commit: "fix(artifacts): classify ZIP dictionary ..." · Reviewed by Greptile |
2 tasks done
3 tasks done
2 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.
Problem and result
Replaces #7065 at the author's request, rebuilt on pinned main
18a8e71c. Only the original five ZIP feature files remain; the old branch's shared CI repairs and unrelated import changes are excluded.Read/extract ZIP members using Zstandard compression method 93 through zip.js's codec API and Node's native streaming decoder. zip.js still owns ZIP framing, CRC and declared size checks; artifact budgets, containment, member identity and cancellation remain enforced. No new dependency, ZIP parser or historical method-20 support is added.
The original feature semantics are unchanged. The documentation paragraph is fitted around current upstream HEX/uImage content without reverting that content.
Verification
Windows x64, Node 24.22.1 / npm 11.16.0, fresh locked dependencies and verified matching Windows native 6.8.0 prerequisite:
npm run docs:check: six tasks passed, followed by 9/9 README consistency tests.npm run check: 5/6 tasks, with ordinary Knip failing only on unchangedHexRecordRegionMetadata. The same sole error was independently reproduced on clean pinned18a8e71c; fix: remove unused hex record metadata type #7718 already addresses it. The aggregate command is not green; no unrelated cleanup is included.The four platform skips remain unexecuted locally. Fixtures construct ZIP records and use Node's Zstandard codec; no independent external ZIP corpus, analysis engine, Linux/macOS local execution or full-suite pass is claimed. The replacement is 5 files, 411 additions / 9 deletions. Its hosted CI must complete independently; green checks on old #7065 do not qualify this new head.
Author readiness
Human owner: @ShuaixinHuang
The human owner explicitly confirmed review and responsibility for this PR and requested formal maintainer review in this session on 2026-10-25.
The existing human review and responsibility declaration is retained for this same feature, with an upstream refresh and removal of unrelated historical patches.
Before merge