Skip to content

fix(ci): target wasm32-wasip2 in WASM build script#2175

Merged
serrrfirat merged 2 commits intostagingfrom
fix/wasm-build-target-wasip2
Apr 9, 2026
Merged

fix(ci): target wasm32-wasip2 in WASM build script#2175
serrrfirat merged 2 commits intostagingfrom
fix/wasm-build-target-wasip2

Conversation

@henrypark133
Copy link
Copy Markdown
Collaborator

Summary

  • CI's cargo-component defaults to wasm32-wasip1, placing WASM binaries at the wrong target path
  • All 5 slack_auth_integration tests panic because they look for the module at wasm32-wasip2
  • Adds explicit --target wasm32-wasip2 to cargo component build in the build script

Root cause

The Creating component step in CI outputs to channels-src/slack/target/wasm32-wasip1/release/slack_channel.wasm, but the test macro require_slack_wasm!() checks wasm32-wasip2. The binary was built successfully — just at the wrong path.

CI run: https://github.com/nearai/ironclaw/actions/runs/24160181770/job/70509336674

Test plan

  • ./scripts/build-wasm-extensions.sh --channels — confirms binary at wasm32-wasip2 path
  • cargo test --test slack_auth_integration — all 5 tests pass locally
  • CI green on this PR

🤖 Generated with Claude Code

cargo-component defaults to wasm32-wasip1 in CI, placing the binary at
the wrong path. All slack_auth_integration tests panic because they
look for the module at the wasm32-wasip2 target directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 8, 2026 22:44
@github-actions github-actions Bot added size: XS < 10 changed lines (excluding docs) risk: low Changes to docs, tests, or low-risk modules contributor: core 20+ merged PRs labels Apr 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes CI WASM build output placement by explicitly targeting wasm32-wasip2 when building channel/tool components, aligning produced artifacts with what integration tests expect.

Changes:

  • Add --target wasm32-wasip2 to cargo component build in the WASM extensions build script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the scripts/build-wasm-extensions.sh script to specify the wasm32-wasip2 target during the WASM extension build process. A review comment suggests adding the --locked flag to the cargo component build command to ensure reproducible builds by enforcing the use of the Cargo.lock file.

Comment thread scripts/build-wasm-extensions.sh
@github-actions github-actions Bot added size: S 10-49 changed lines and removed size: XS < 10 changed lines (excluding docs) labels Apr 9, 2026
@henrypark133 henrypark133 requested a review from serrrfirat April 9, 2026 06:09
@serrrfirat serrrfirat merged commit 63a48e4 into staging Apr 9, 2026
14 checks passed
@serrrfirat serrrfirat deleted the fix/wasm-build-target-wasip2 branch April 9, 2026 08:52
@ironclaw-ci ironclaw-ci Bot mentioned this pull request Apr 10, 2026
@ironclaw-ci ironclaw-ci Bot mentioned this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: low Changes to docs, tests, or low-risk modules size: S 10-49 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants