Skip to content

Fix CI wasm discovery picking dependency files#2435

Merged
leighmcculloch merged 1 commit intomainfrom
fix-wasm-find-release-path
Mar 9, 2026
Merged

Fix CI wasm discovery picking dependency files#2435
leighmcculloch merged 1 commit intomainfrom
fix-wasm-find-release-path

Conversation

@leighmcculloch
Copy link
Member

What

Exclude deps/ from the find command that locates built WASM files in the OpenZeppelin contracts and soroban-examples CI workflows. Add -not -path '*/deps/*' and narrow the search to */wasm32v1-none/release/*.

Why

The find | head -1 command was picking up dependency library WASMs from target/wasm32v1-none/release/deps/ (e.g., stellar_tokens.wasm) instead of the actual contract WASM (e.g., fungible_pausable_example.wasm). This caused spec-verify and other verification steps to run against library WASMs that contain duplicate spec entries from aggregating multiple token standards, failing the CI for many crates.

This is also impacting #2353.

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Mar 9, 2026
@leighmcculloch leighmcculloch marked this pull request as ready for review March 9, 2026 12:46
Copilot AI review requested due to automatic review settings March 9, 2026 12:46
Copy link
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 workflow WASM artifact discovery so verification steps run against the actual built contract WASM rather than dependency WASMs from target/.../release/deps.

Changes:

  • Narrow the find search to */wasm32v1-none/release/*.
  • Exclude */deps/* from WASM discovery in both affected workflows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/test-with-soroban-examples.yml Updates WASM discovery to avoid selecting dependency WASMs during soroban-examples CI verification.
.github/workflows/test-with-openzeppelin-contracts.yml Updates WASM discovery to avoid selecting dependency WASMs during OpenZeppelin contracts CI verification.

@leighmcculloch leighmcculloch enabled auto-merge (squash) March 9, 2026 12:49
@leighmcculloch leighmcculloch requested review from fnando and mootz12 March 9, 2026 14:29
@leighmcculloch leighmcculloch merged commit e4f6728 into main Mar 9, 2026
106 of 121 checks passed
@leighmcculloch leighmcculloch deleted the fix-wasm-find-release-path branch March 9, 2026 17:01
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants