Repository navigation
ci: downstream rustfava job — embedder tests against the PR component - #1679
Merged
Merged
Conversation
…'s component Every FFI bug in the v0.17-v0.19 arc (#1462, #1656, #1663, #1666, #1667, #1668) was found by rustfava AFTER a release shipped. New advisory workflow: on PRs touching the embedding surface or the engine crates behind it, build the wasip2 component from the PR, check out rustfava@main, and run its Python test suite against that wasm via the RUSTLEDGER_COMPONENT_WASM override — moving discovery from post-release to pre-merge. Deliberately NOT in the required build gate: an intentional WIT break (e.g. the 3.2.0 host.decrypt import) legitimately fails here until rustfava adopts the new contract; red is the signal, not a merge blocker. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an advisory downstream CI workflow that builds the wasm32-wasip2 FFI component from the current PR and runs rustledger/rustfava’s Python test suite against that artifact via RUSTLEDGER_COMPONENT_WASM, so embedder-level contract/behavior drift is detected pre-merge.
Changes:
- Introduces a new
Downstream (rustfava)GitHub Actions workflow triggered on PRs that touch the FFI surface or core engine crates. - Builds the PR’s
rustledger-ffi-componentWebAssembly component and runs rustfava’sjust test-pyagainst it using the documented env override. - Configures concurrency cancellation and mirrors rustfava’s Python/uv/just/wasmtime test environment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements improvement idea #1 (the highest-impact one from the validated review).
Why
Every FFI bug in the v0.17→v0.19 arc —
@@price (#1462), clamp (#1656), load-vs-validate (#1663), lot label (#1666), decryption (#1667), diagnostics (#1668) — was found by rustfava after a release shipped, driving 6 releases in ~3 days. The in-repo parity tests catch conversion drift; only the real embedder catches contract/behavior drift.What
downstream.yml: on PRs touching the embedding surface or the engine crates behind it —rustledger/rustfava@main,just test-pyagainst that wasm via theRUSTLEDGER_COMPONENT_WASMoverride (its documented env hook,component_engine.py), mirroring rustfava's own CI setup (python 3.13 + uv + just + wasmtime,touch app.js).Advisory by design (not in the required
buildgate)host.decryptimport (3.2.0) isn't in rustfava@main yet — which is exactly the visibility it exists to provide.Verified: YAML parses; job/trigger structure checked; action SHAs match the pins used in ci.yml and rustfava's test.yml.
🤖 Generated with Claude Code