Skip to content

tooling: build the cow-venue adapter wasm inside just ci - #596

Merged
mfw78 merged 1 commit into
dev/m1from
tooling/595-justci-adapter-wasm
Jul 25, 2026
Merged

tooling: build the cow-venue adapter wasm inside just ci#596
mfw78 merged 1 commit into
dev/m1from
tooling/595-justci-adapter-wasm

Conversation

@mfw78

@mfw78 mfw78 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

What

Build the cow-venue adapter wasm inside the just ci recipe, after the module-wasm build and before cargo test, matching GitHub CI's build order.

Why

just ci built the module wasms (which include twap-monitor, a cow-venue dependent) and then ran the tests. Because cow-venue is an unconditional cdylib, that build emitted a featureless cow_venue.wasm, and the videre-host platform e2e tests (e2e_cow_venue_component_imports_equal_declared_capabilities, e2e_twap_monitor_boots_against_the_cow_adapter) then loaded that stub instead of the adapter component and failed. Whether it failed depended on whether an adapter wasm from an earlier just build-cow-venue happened to survive, so the same tree passed for one developer and failed for another. GitHub CI was unaffected because it builds the adapter after the modules and before the tests. This aligns the canonical pre-push check with CI.

Testing

Verified on a clean worktree (cold target dir, the exact failure case) on the pinned 1.94 toolchain:

  • nix develop --command just ci now builds the adapter component before the tests, and both platform e2e tests pass (previously failed on a fresh checkout)
  • nix develop --command just check-venue-agnostic
  • nix develop --command just check-cow-orderbook-only

AI Assistance

Implemented with Claude Code.

Closes #595

The module-wasm build emits a featureless cow_venue.wasm through twap-monitor's cow-venue dependency, so the videre-host platform e2e tests loaded a stub component with no adapter exports and failed non-deterministically on a clean checkout, while GitHub CI passed by building the adapter after the modules. Rebuild the adapter component inside the ci recipe, after the module build and before the tests, matching CI's order.

Closes #595
@mfw78
mfw78 merged commit fcc7528 into dev/m1 Jul 25, 2026
7 checks passed
@mfw78
mfw78 deleted the tooling/595-justci-adapter-wasm branch July 25, 2026 01:21
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.

1 participant