Skip to content

test(node-wasi): run the full node test suite against the WASI binding - #10616

Merged
graphite-app[bot] merged 1 commit into
mainfrom
test/wasi-run-main-suite
Aug 6, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
test/wasi-run-main-suite

Conversation

@hyfdev

@hyfdev hyfdev commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

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

@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 646ff01
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a7423a5bc00aa0008293106
😎 Deploy Preview https://deploy-preview-10616--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hyfdev hyfdev changed the title test(wasi): run the full node test suite against the WASI binding test(node-wasi): run the full node test suite against the WASI binding Aug 4, 2026
@hyfdev
hyfdev marked this pull request as ready for review August 4, 2026 13:37
Copilot AI lite review requested due to automatic review settings August 4, 2026 13:37

hyfdev commented Aug 4, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_TEST flag (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-wasi and 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.

hyfdev commented Aug 4, 2026 •

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add 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`
@graphite-app
graphite-app Bot force-pushed the test/wasi-run-main-suite branch from f5bebd4 to 646ff01 Compare August 6, 2026 06:03
@graphite-app
graphite-app Bot merged commit 646ff01 into main Aug 6, 2026
34 of 35 checks passed
@graphite-app
graphite-app Bot deleted the test/wasi-run-main-suite branch August 6, 2026 06:09
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 12, 2026
shulaoda added a commit that referenced this pull request Aug 12, 2026
## [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>
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.

3 participants