Repository navigation
release: v1.2.1 - #10524
release: v1.2.1#10524
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
This comment was marked as outdated.
This comment was marked as outdated.
Merging this PR will not alter performance
Comparing Footnotes
|
Fixes the `Move Binding Artifacts` failure in [this Pkg Preview run](https://github.com/rolldown/rolldown/actions/runs/30447217864/job/90562545006), hit by the release PR #10524. ## Cause `Download Binding Artifacts` specified neither `name` nor `pattern`, so `actions/download-artifact` pulled **every** artifact of the run into `packages/rolldown/artifacts/`. Both `bindings-wasm32-wasip1-threads` and `browser-artifact` ship a `rolldown-binding.wasm32-wasi.wasm`, since `@rolldown/browser` bundles the wasm into its own `dist`. `napi artifacts` recurses the output directory and keys binaries by filename, ignoring which subdirectory they came from. Two copies of the same name means two entries under one identity: ``` Internal Error: Multiple artifacts found for binary artifact identities: rolldown-binding.wasm32-wasi.wasm: packages/rolldown/artifacts/bindings-wasm32-wasip1-threads/rolldown-binding.wasm32-wasi.wasm, packages/rolldown/artifacts/browser-artifact/rolldown-binding.wasm32-wasi.wasm. ``` The unfiltered download has always been wrong, but only became fatal when #10506 raised `@napi-rs/cli` to `^3.8.0`, which added a `rejectDuplicateArtifactIdentities` check. Earlier releases silently tolerated the collision. #10506's own CI was green because `Node Validation` never touches the artifact merge path, so the regression surfaced only on the next release PR. ## Fix Added `pattern: bindings-*` to the `Download Binding Artifacts` step in: - `.github/workflows/publish-to-pkg.pr.new.yml` - `.github/workflows/publish-to-npm.yml` `pattern` rather than `name` because the bindings are 15 separate artifacts. The prefix mirrors the upload side (`reusable-release-build.yml`, `name: bindings-${{ matrix.target }}` plus the freebsd special case), so the naming stays defined in one place and follows the matrix automatically. `merge-multiple` stays at its default of `false`, so each matched artifact keeps its own subdirectory. The layout `napi artifacts` sees for bindings is unchanged; the change only removes the four non-binding entries. `publish-to-npm.yml` carried an identical copy of the step and would have failed the same way during a real release. ## Verification Checked the pattern against the artifact list of the failing run: - 15 matched, exactly the 15 targets in `packages/rolldown/package.json` `napi.targets`, so no binding is dropped. - 4 excluded: `browser-artifact`, `debug-artifact`, `node-artifact`, `rolldown-version`. Each excluded artifact is downloaded again later in the same job under an explicit `name`, into `packages/rolldown/dist`, `packages/browser/dist`, `packages/debug/dist`, and the workspace root. Nothing between the two downloads reads them from `artifacts/`, and the following step `check-wasi-binding-deps.mjs` reads `packages/rolldown/npm/wasm32-wasi/package.json`, not `artifacts/`. An audit of all 14 `download-artifact` usages under `.github/workflows/` found these two were the only ones without a `name` or `pattern`. Workflow changes cannot be exercised locally, so the real confirmation is rerunning the failed job on #10524 after this merges. ## Out of scope #10506 also moved `@emnapi/core` and `@emnapi/runtime` from `1.11.2` to `2.0.0-alpha.3`, a prerelease major that is now on `main`. The generated napi glue changed with it: `emnapiAsyncWorkPlugin` and `emnapiTSFNPlugin` are now passed to `instantiateNapiModule`, and the context comes from `createContext` in `@emnapi/runtime` instead of `getDefaultContext`. This PR only unblocks the artifact merge. Whether the alpha is intended, and whether wasm runtime behaviour changed, is worth confirming separately.
4e21a3c to
8ecf007
Compare
|
/ecosystem-ci run |
@rolldown/browser
@rolldown/debug
rolldown
@rolldown/binding-android-arm64
@rolldown/binding-darwin-arm64
@rolldown/binding-darwin-x64
@rolldown/binding-freebsd-x64
@rolldown/binding-linux-arm-gnueabihf
@rolldown/binding-linux-arm64-gnu
@rolldown/binding-linux-arm64-musl
@rolldown/binding-linux-ppc64-gnu
@rolldown/binding-linux-s390x-gnu
@rolldown/binding-linux-x64-gnu
@rolldown/binding-linux-x64-musl
@rolldown/binding-openharmony-arm64
@rolldown/binding-wasm32-wasi
@rolldown/binding-win32-arm64-msvc
@rolldown/binding-win32-x64-msvc
commit: |
|
📝 Ran ecosystem CI with rolldown
✅ marko, laravel, module-federation, quasar, storybook, vite-plugin-pwa, analogjs, unocss, vike, vite-environment-examples, vite-plugin-rsc, vite-plugin-react, waku, nuxt, vuepress, vitepress, vite-plugin-svelte, vite-setup-catalogue |
[1.2.1] - 2026-07-29
🚀 Features
hotUpdatehook (feat(dev): supporthotUpdatehook #10305) by @h-a-n-adisableWatcherthrough the dev engine bindings (feat(dev): exposeenabledthrough the dev engine bindings #10474) by @shulaodaimport.meta.ROLLDOWN_FILE_URL_<referenceId>_<urlId>support to pass context toresolveFileUrlhook (feat:import.meta.ROLLDOWN_FILE_URL_<referenceId>_<urlId>support to pass context toresolveFileUrlhook #10297) by @sapphi-redimport.meta.ROLLDOWN_FILE_URL_*(feat: supportimport.meta.ROLLDOWN_FILE_URL_*#10296) by @sapphi-redresolveFileUrlplugin hook (feat: implementresolveFileUrlplugin hook #10291) by @sapphi-red🐛 Bug Fixes
__toESMwhen the importing module is tree-shaken (fix(external): keep__toESMwhen the importing module is tree-shaken #10516) by @IWANABETHATGUYthen(fix(code-splitting): never name an internal chunk exportthen#10480) by @hyfdevexport * as ns from(fix(dev): keep the export name ofexport * as ns from#10476) by @tbvjaos510idfilters (must be a RegExp) (fix(resolveId): reject stringidfilters (must be a RegExp) #10412) by @IWANABETHATGUYresolveFileUrlin a deterministic order (fix: callresolveFileUrlin a deterministic order #10330) by @sapphi-red./foo/barglob pattern the same asfoo/bar(fix: handle./foo/barglob pattern the same asfoo/bar#10313) by @sapphi-red🚜 Refactor
NODE_PATHenv var resolution (refactor(rollup-tests): avoid relying onNODE_PATHenv var resolution #10496) by @sapphi-redGetAstBuilderon visitor/pass types (refactor: implementGetAstBuilderon visitor/pass types #10424) by @overlookmoteldisable_old_builderfeature (refactor: enable oxc_ast'sdisable_old_builderfeature #10316) by @Boshen📚 Documentation
esmExternalRequirePluginmust own its externals (docs: clarify thatesmExternalRequirePluginmust own its externals #10439) by @TheAlexLichter⚡ Performance
allocfield fromScopeHoistingFinalizer(perf(scope_hoisting): removeallocfield fromScopeHoistingFinalizer#10425) by @overlookmotel🧪 Testing
just setup-vitethe only entry point that touchesvite/(test: makejust setup-vitethe only entry point that touchesvite/#10332) by @shulaoda⚙️ Miscellaneous Tasks
bindings-*(ci: scope the binding artifact download tobindings-*#10525) by @shulaodaruntime/index.js(chore(runtime): remove unusedruntime/index.js#10302) by @IWANABETHATGUY❤️ New Contributors