A release copies release/assets entry by entry; Node 22 refused the folder copy #83

Merged
merge-queue merged 1 commit from PIPT-12-release-assets-copy into main 2026-11-16 16:18:02 -08:00
Owner

fzt-browser's PR (fzt-browser#52) is the first release with static assets, and its check-build failed: ERR_FS_CP_EEXIST: dist already exists. release/build.mjs copied release/assets/<toolchain> into dist/ with one cpSync(..., {errorOnExist: true}). On the Linux runner's Node 22 that fails because dist/ itself already exists. On the home PCs' Node 24 it passed, which is why my local release build of fzt-browser did. Each entry is now copied on its own, so only a real clash with a built file is an error.

A new probe test runs a release with static assets, a file and a folder. It passes locally on Node 24 with the fix; this PR's CI runs it on Node 22, where the failure occurred. I haven't run the test without the fix on Node 22.

Work package: https://openproject.home.romaine.life/wp/PIPT-12

fzt-browser's PR ([fzt-browser#52](https://forgejo.romaine.life/romaine-life/fzt-browser/pulls/52)) is the first release with static assets, and its check-build failed: `ERR_FS_CP_EEXIST: dist already exists`. `release/build.mjs` copied `release/assets/<toolchain>` into `dist/` with one `cpSync(..., {errorOnExist: true})`. On the Linux runner's Node 22 that fails because `dist/` itself already exists. On the home PCs' Node 24 it passed, which is why my local release build of fzt-browser did. Each entry is now copied on its own, so only a real clash with a built file is an error. A new probe test runs a release with static assets, a file and a folder. It passes locally on Node 24 with the fix; this PR's CI runs it on Node 22, where the failure occurred. I haven't run the test without the fix on Node 22. Work package: https://openproject.home.romaine.life/wp/PIPT-12
A release copies release/assets entry by entry; Node 22 refused the folder copy
All checks were successful
Fleet / align (pull_request) Successful in 2s
CI / changes (pull_request) Successful in 3s
CI / actionlint (pull_request) Has been skipped
CI / prune-releases (pull_request) Has been skipped
CI / release-version (pull_request) Has been skipped
CI / check-versions (pull_request) Has been skipped
CI / check-fetches (pull_request) Has been skipped
CI / check-image-digests (pull_request) Has been skipped
CI / cached-images (pull_request) Has been skipped
CI / azure-cli (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
CI / home-cache-windows (pull_request) Has been skipped
CI / service-runtime (two) (pull_request) Successful in 13s
CI / service-runtime (one) (pull_request) Successful in 13s
CI / suite-tests-linux (pull_request) Successful in 13s
CI / service-cancellation (pull_request) Successful in 18s
CI / suite-tests-windows (pull_request) Successful in 34s
CI / setup-linux (nas) (pull_request) Successful in 1m44s
CI / setup-windows (pull_request) Successful in 3m26s
merge-queue landed on main
73695a7660
release/build.mjs copied release/assets/<toolchain> into dist/ in one cpSync with errorOnExist, and Node 22 (the Linux runner's) counts the existing dist/ folder as the collision, so fzt-browser, the first release with static assets, failed check-build; Node 24 on the PCs didn't. Each entry is copied on its own, so only a real file collision is an error. A probe test covers a release with static assets.

https://openproject.home.romaine.life/wp/PIPT-12
merge-queue deleted branch PIPT-12-release-assets-copy 2026-11-16 16:18:02 -08:00
Sign in to join this conversation.
No description provided.