Problem Statement
13+ #[ignore]s across staking/tests.rs, bridge/tests.rs, integration_bridge_oracle.rs, prediction-market/src/lib.rs:831, bridge/src/errors.rs:424, bridge_load_tests.rs:226. They all cite "test isolation issue".
Why it matters
Ignored tests mask real regressions — the source of any global-storage leak must be located and fixed.
Technical Context
Locate the shared Lazy/OnceCell/mutable statics that survive between tests. Use ink::env::test::reset() or rebuild test fixtures per test.
Expected Outcome
Zero #[ignore = "test isolation issue"] annotations remain; CI passes both individual and full-workspace cleanly.
Acceptance Criteria
- All ignored tests re-enabled.
cargo test --workspace deterministic.
- New
tests/test_isolation_check.rs enforces that.
- Test-runtime reduced to < 5 min total.
- CI diff: pre- and post- run logs identical.
Implementation Notes
Identify offending statics; replace with per-test fixtures.
Files or modules likely to be affected
contracts/staking/src/tests.rs, contracts/bridge/src/tests.rs, tests/bridge_load_tests.rs, plus several others.
Dependencies
None.
Difficulty level
HARD.
Estimated effort
L (~1 engineer-week).
Problem Statement
13+
#[ignore]s acrossstaking/tests.rs,bridge/tests.rs,integration_bridge_oracle.rs,prediction-market/src/lib.rs:831,bridge/src/errors.rs:424,bridge_load_tests.rs:226. They all cite "test isolation issue".Why it matters
Ignored tests mask real regressions — the source of any global-storage leak must be located and fixed.
Technical Context
Locate the shared
Lazy/OnceCell/mutable statics that survive between tests. Useink::env::test::reset()or rebuild test fixtures per test.Expected Outcome
Zero
#[ignore = "test isolation issue"]annotations remain; CI passes both individual and full-workspace cleanly.Acceptance Criteria
cargo test --workspacedeterministic.tests/test_isolation_check.rsenforces that.Implementation Notes
Identify offending statics; replace with per-test fixtures.
Files or modules likely to be affected
contracts/staking/src/tests.rs,contracts/bridge/src/tests.rs,tests/bridge_load_tests.rs, plus several others.Dependencies
None.
Difficulty level
HARD.
Estimated effort
L (~1 engineer-week).