Repository navigation
fix(artifacts): append claims without call spreads - #10342
ShuaixinHuang wants to merge 7 commits 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. |
[Medium impact] The reviewed changes appear safe to merge; no blocking issue remains. SummaryReplaces function-call spreads with item-by-item appends in the Bun and Node SEA readers.
The previous thread was unnumbered, so it has no Review scope used the full supplied PR changes because the two merge bases differed. Checks were source-only; no tests were run. Live supersession status could not be checked because GitHub authentication was unavailable. Reviews (6) · Last reviewed commit: "chore: align artifact claim fixes with l..." · Reviewed by Greptile |
(cherry picked from commit a1f762d1139f51d97130f8c20cfb12d567cced72)
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Refs #10342 Co-Authored-By: gensokyo-dev <[email protected]>
Supersedes #10342 Co-Authored-By: gensokyo-dev <[email protected]>
`target.push(...items)` passes every item as a call argument and overflows the stack once a target-sized array grows past the engine's argument limit. This class was fixed one site at a time in #10304, #10343, #10362 and #8632. Add one shared appendAll helper in src/domain and use it at the remaining sites whose arrays grow with the input: XML member counting, app-task row suggestions, native call routes and unresolved calls, call-path caveats, environment-manifest merges, reference-source import entries, dyld trace edges and JS symbolic flow values. The web bundle merge from the previous commit now uses the shared helper too. Bounded spreads (fixed literals, page-sized reads) are left as they are. Refs #10445 Refs #10342 Co-Authored-By: gensokyo-dev <[email protected]>
|
Thank you for this fix. It landed in #10539 with your authorship kept on the commit, so I'm closing this PR as superseded. |
Problem and resulting behavior
Bun and Node SEA claim arrays can exceed JavaScript's function-argument limit while their format tables remain within admitted byte limits.
push(...claims)then throwsRangeError, and a valid-but-ambiguous Bun carrier is reported as a generic I/O failure.Append claims iteratively at every affected producer: Bun's FAT-slice and nested Mach-O segment collectors, and Node SEA's FAT-slice and ELF note-table collectors. Ordering, ambiguity, cancellation and byte budgets are preserved. The public CLI regression uses one FAT slice with 200,000 matching sections, explicitly within the default 16 MiB load-command allowance; it must return the existing structured
unavailableambiguity result rather thanexecution_failure/io. The normal inventory/extraction control remains intact.Current base and validation
Aligned with main
b3657c557f6431d259b2fcb65e73a7c2d48bd4a4at8074fed10196d76683a0d092df1a57e958bd59d5. Upstream84990f977absorbed the separate CLI test-timer correction:cliOutput.test.tsnow has no PR diff. The production claim repair and its admitted-table regression remain useful. Existing serial scheduling for the two wide fingerprint-capacity suites is retained; their workload and assertions are unchanged.5a29c45f4production: 1 failed / 1 passed; a direct production probe recordedRangeError: Maximum call stack size exceededat the nested Bun spread. This is earlier reproduction evidence, not a new-base test run.check:ci:fast: 3 tasks passed, 38.843 s; type-aware lint of all three PR-specific TS files: 0 errors / 15 advisories. Format/diff review, normal commit/pre-push hooks and all six PR-file hashes passed.c4076febdCI 43565969469 succeeded. Fresh-head CI is required and pending; previous-head success does not qualify this merge.Scope and limits
No new provider, schema, dependency, authority, budget, retry or production timeout. The CLI reads a controlled inert format carrier, not a real Bun producer build. No local native Windows/macOS, real Bun target, full monolithic
npm run checkor current-head hosted-CI success is claimed. Initial human readiness is retained without claiming review of later commits.Author readiness
Human owner: @ShuaixinHuang
The existing initial author declarations are retained under CONTRIBUTING. They do not claim human review of the new follow-up commit
5bbf1875449cbd627f385285f68014f37938f12c.