Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,20 @@ jobs:
- name: Run clippy
working-directory: packages/contracts
run: cargo clippy --all-targets -- -D warnings
- name: Run contract tests
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install LLVM coverage tools
run: rustup component add llvm-tools-preview
- name: Measure contract coverage
working-directory: packages/contracts
run: cargo test
run: >-
cargo llvm-cov
--package meridian-vault

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

adapter-common is missing from this --package list, so its coverage is never measured, confirmed directly in this run's own output: the printed table only has rows for blend-adapter/src/lib.rs, defindex-adapter/src/lib.rs, and vault/src/lib.rs, no adapter-common row at all. That crate has zero tests of its own (no #[cfg(test)] module) and still has two .unwrap()-based panics in require_vault_auth/get_usdc. #533's own motivation was closing exactly this kind of untested-panic gap in the code that custodies funds, so leaving out the one crate that's actually fully untested undercuts the point of adding the gate. Add --package adapter-common to the list.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The --package list omits adapter-common, a workspace member (see packages/contracts/Cargo.toml) whose code is exercised by the other packages' tests but never measured or gated by this 97.5% threshold. Untested branches added to adapter-common can ship at 0% coverage while this gate still passes.

--package meridian-blend-adapter
--package meridian-defindex-adapter
--package adapter-common
--summary-only
--fail-under-lines 97.5
- name: Build wasm
working-directory: packages/contracts
run: cargo build --target wasm32-unknown-unknown --release
Loading