Skip to content

test: hard-fail integration tests on missing module wasms - #54

Open
mfw78 wants to merge 2 commits into
refactor/host-wall-clock-seamfrom
test/hard-fail-missing-wasms
Open

test: hard-fail integration tests on missing module wasms#54
mfw78 wants to merge 2 commits into
refactor/host-wall-clock-seamfrom
test/hard-fail-missing-wasms

Conversation

@mfw78

@mfw78 mfw78 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Collapses the two verbatim copies of workspace_path/module_wasm_or_skip (in crates/videre-host/tests/platform.rs and crates/videre-host/tests/zero_leak.rs) into a single shared helper at crates/videre-host/tests/common/mod.rs, and makes a missing module wasm a hard test failure instead of a silent skip.

Why

A run with zero wasms built previously reported all-green because module_wasm_or_skip printed SKIP and returned None, letting every e2e assertion in platform.rs and zero_leak.rs pass unexercised. The shared helper now hard-fails by default with a run \just build-modules`message, gates the old skip behaviour behind an explicitVIDERE_SKIP_MISSING_WASMS=1opt-in, and hasCIoverride that opt-in so the gate can never excuse itself.AGENTS.md` documents the new env var. Closes #38.

Testing

  • cargo clippy -p videre-host --all-targets --all-features -- -D warnings clean.
  • cargo test --doc -p videre-host --all-features 0 doctests, ok.
  • RUSTDOCFLAGS='-D warnings' cargo doc --no-deps -p videre-host clean.
  • cargo fmt --all --check clean.
  • just build-modules then cargo nextest run -p videre-host --all-features --no-fail-fast 89 tests run, 89 passed, 0 skipped (up from 87, the 6 new common::tests unit tests covering the hard-fail, opt-in skip, and CI-overrides-opt-in cases).

AI Assistance

Implementation by claude-fable-5, red-team by claude-opus-5, PR by claude-sonnet-5.

mfw78 added 2 commits August 6, 2026 19:12
Replace the two divergent module_wasm_or_skip copies with a single
helper in tests/common: a missing wasm skips locally with a loud
message and fails the run when CI is set. Unit tests pin both
branches through the env-free core.
The CI-only assert left the local default silently green: a run with zero
guest wasms built reported 87/87 passing, since a runner captures the skip
message of a passing test. Default to the hard failure and gate the skip
behind VIDERE_SKIP_MISSING_WASMS, which CI ignores.
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