Repository navigation
test(node-wasi): run the full node test suite against the WASI binding - #10616
Conversation
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Merge activity
|
There was a problem hiding this comment.
Pull request overview
Enables running (nearly) the full packages/rolldown/tests Node test suite against the WASI binding by introducing a shared “WASI lane” flag and selectively skipping known-incompatible assertions, plus wiring this into just and CI.
Changes:
- Add
ROLLDOWN_WASI_TESTflag (isWasiTest) and use it to skip a small set of tests/fixtures that currently fail under the WASI binding (tracked in #10609). - Add a WASI binding “sanity check” test to ensure the suite is actually executing against the intended binding flavor (native vs WASI).
- Add
test:wasi/just test-wasiand update the reusable WASI workflow to run the Node test suite in the WASI lane.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/rolldown/tests/wasi/binding.test.ts | Adds an assertion test intended to detect whether the run is using WASI vs native binding. |
| packages/rolldown/tests/src/utils.ts | Introduces isWasiTest derived from ROLLDOWN_WASI_TEST. |
| packages/rolldown/tests/package.json | Adds test:wasi script to run the main suite under the WASI flag. |
| packages/rolldown/tests/fixtures/plugin/context/resolve-error-cause/_config.ts | Skips a fixture under WASI due to different error/stack shape. |
| packages/rolldown/tests/fixtures/misc/error/transform/_config.ts | Skips a fixture under WASI due to different stack frames. |
| packages/rolldown/tests/fixtures/misc/error/resolve-id/_config.ts | Skips a fixture under WASI due to different stack frames. |
| packages/rolldown/tests/fixtures/misc/error/render-chunk/_config.ts | Skips a fixture under WASI due to different stack frames. |
| packages/rolldown/tests/fixtures/misc/error/plugin-context/_config.ts | Skips a fixture under WASI due to different diagnostic formatting. |
| packages/rolldown/tests/fixtures/misc/error/load/_config.ts | Skips a fixture under WASI due to different stack frames. |
| packages/rolldown/tests/fixtures/builtin-plugin/import-glob/follow-symlinks/_config.ts | Skips a fixture under WASI due to symlink traversal mismatch. |
| packages/rolldown/tests/error/error.test.ts | Skips one test under WASI due to differing error name propagation. |
| packages/rolldown/tests/dev/dev-close.test.ts | Skips a dev-engine test under WASI due to tokio runtime teardown behavior. |
| packages/rolldown/tests/behaviors/emit-debug-data/devtools.test.js | Skips devtools emission test under WASI due to file open panic (WASI ENOENT). |
| justfile | Adds just test-wasi helper to run tests against the WASI binding. |
| .github/workflows/reusable-wasi.yml | Updates WASI workflow to build dev server and run Node tests via test:wasi. |
How to use the Graphite Merge QueueAdd the label graphite: merge-when-ready to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
#10616) Part of #10609. This unlocks the wasi test suite for all tests. Only a few got skipped due to arbitrary reasons. We could investigate them later, but let's have a test for wasi first! Notice this is for `node-wasi` target, which shares the same `.wasi` binary with `@rolldown/browser`, but they're not same package. This is for path `rolldown` -> `@rolldown/binding-node-wasi`
f5bebd4 to
646ff01
Compare
## [1.2.4] - 2026-08-12 ### 🚀 Features - code-splitting: widen namespace extraction for already-loaded merges (#10594) by @IWANABETHATGUY ### 🐛 Bug Fixes - binding: illegal instruction crash on Android arm64 (#10638) by @shulaoda - code-splitting: stop negated sideEffects globs retaining modules (#10660) by @JoviDeCroock - devtools: resolve log paths against the build cwd (#10622) by @hyfdev ### 📚 Documentation - plugin-api: document sourcemap differences from Rollup (#10636) by @IWANABETHATGUY ### 🧪 Testing - browser: smoke test the packed `@rolldown/browser` in a real browser page (#10634) by @hyfdev - node-wasi: run the full node test suite against the WASI binding (#10616) by @hyfdev - webcontainer: smoke test the packed WASI artifacts inside a WebContainer (#10626) by @hyfdev ### ⚙️ Miscellaneous Tasks - deps: update napi (#10649) by @renovate[bot] - deps: update esbuild for tests to 0.28.2 (#10662) by @rolldown-guard[bot] - deps: update test262 submodule for tests (#10663) by @rolldown-guard[bot] - deps: update npm packages (#10653) by @renovate[bot] - deps: update github actions (#10651) by @renovate[bot] - deps: update crate-ci/typos action to v1.49.0 (#10642) by @renovate[bot] - deps: update dependency vite-plus to v0.2.9 (#10627) by @renovate[bot] - deps: update rust crates (#10652) by @renovate[bot] - deps: upgrade oxc to 0.144.0 (#10657) by @camc314 - ignore napi-rs temp files (#10658) by @camc314 - deps: tighten `@napi-rs/wasm-runtime` range to `~1.2.2` (#10615) by @hyfdev - wasi: point the wasm skips at the right place (#10644) by @hyfdev Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>

Part of #10609.
This unlocks the wasi test suite for all tests. Only a few got skipped due to arbitrary reasons. We could investigate them later, but let's have a test for wasi first!
Notice this is for
node-wasitarget, which shares the same.wasibinary with@rolldown/browser, but they're not same package.This is for path
rolldown->@rolldown/binding-node-wasi