Skip to content

Re-enable cargo test in CI (stellar-xdr arbitrary version mismatch) #100

@Miracle656

Description

@Miracle656

Background

cargo test is currently disabled in the Veil CI workflow because stellar-xdr 20.1.0 requires arbitrary >= 1.4 but the version in Cargo.lock doesn't satisfy it, causing E0433/E0407 compile errors on fresh CI builds (local builds pass due to cargo cache). Fixing this restores test coverage gates on every PR.

What to build

Resolve the stellar-xdr/arbitrary version mismatch so cargo test -p invisible-wallet passes in CI on a clean build.

Key files

  • contracts/Cargo.toml — dependency declarations
  • contracts/Cargo.lock — pinned versions (must be committed)
  • .github/workflows/ci.yml — re-enable the cargo test step

Suggested execution

git checkout -b fix/ci-cargo-test-arbitrary-mismatch
  1. Run cargo tree -p stellar-xdr | grep arbitrary to see the required version
  2. Add arbitrary = "1.4" (or the required version) as a direct dev-dependency override in contracts/Cargo.toml
  3. Run cargo update -p arbitrary to update Cargo.lock
  4. Run cargo test -p invisible-wallet on a clean build locally to confirm
  5. Re-enable the cargo test step in CI and remove the disable comment

Example commit message:
fix(ci): resolve stellar-xdr arbitrary version mismatch to re-enable cargo test

Acceptance criteria

  • cargo test -p invisible-wallet passes after cargo clean
  • CI cargo test step re-enabled and green
  • Cargo.lock committed with updated arbitrary version

Drips Wave · Complexity: Medium · 150 points
Comment below to request assignment. PR must include Closes #[this issue].

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions