Skip to content

Reduce the update zip listing before it crosses execFileSync's buffer - #551

Merged
thesiti92 merged 1 commit into
mainfrom
fix/zip-folder-listing
Sep 24, 2026
Merged

thesiti92 merged 1 commit into
mainfrom
fix/zip-folder-listing

Conversation

@thesiti92

Copy link
Copy Markdown
Contributor

assertZipFolder from #549 piped the whole unzip -Z1 listing through execFileSync, whose default buffer is 1 MB; the packaged app's listing is larger, so preview run 35956033252 failed its Validate release artifacts step with spawnSync unzip ENOBUFS.

Reduce the listing to its distinct top-level names in the shell (cut | sort -u) before it reaches Node.

Validation: dry run on a fake bundle with 40k files (5.8 MB listing) passes for the right folder and rejects the wrong one; script tests pass; pnpm lint and oxfmt clean.

assertZipFolder listed every entry of the update zip through
execFileSync, and the packaged app's listing is over a megabyte, so the
first preview run after #549 died with spawnSync unzip ENOBUFS. Cut the
listing down to its distinct top-level names in the shell instead.

Agent-Session: 78ffd160-974b-41b4-b7dd-d536de7c2833
Agent-Session: f1eb7ebd-a71b-44e2-8563-daff06cc220e
Agent-Session: aad32659-bbbe-45b2-b163-317afc1a6a83
@thesiti92
thesiti92 merged commit 3908fdf into main Sep 24, 2026
1 check passed
@thesiti92
thesiti92 deleted the fix/zip-folder-listing branch September 24, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants