You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platform-wallet: CI runs the wallet tests only with --all-features, so the default (pruning) build is never tested #5429
The platform-wallet tests that only exist or only bite with the crate's default features (keep-finalized-transactions off, which is what the Swift and Kotlin SDKs ship) run in CI.
Current Behavior
Both CI jobs that run the wallet crates pass --all-features: the workspace job (tests-rs-workspace.yml) and the wallet fast path (tests-rs-wallet.yml). --all-features turns on keep-finalized-transactions, so key-wallet keeps chain-locked records in memory instead of pruning them to finalized_txids.
Code paths that handle a pruned record are therefore never exercised in CI. Example from #5393: instant_lock_changeset relies on transaction_is_finalized to see a chain-locked slice that was pruned. Deleting account.transaction_is_finalized(txid) || there:
default features: should_not_re_emit_the_unconfirmed_sibling_of_a_chain_locked_slice and should_drop_the_lock_of_a_transaction_chain_locked_before_it fail;
--all-features (what CI runs): all 94 changeset::core_bridge tests pass.
Tests gated with #[cfg(not(feature = "keep-finalized-transactions"))] never run in CI at all.
Possible Solution
Add a step to the wallet job(s) that runs cargo nextest run --package platform-wallet (and the storage / FFI crates if they have default-feature-dependent paths) without--all-features. Feature-gated items that need other features to compile (shielded, test helpers) may need an explicit --features list that leaves keep-finalized-transactions out, rather than bare defaults.
Cost: one more build of the wallet crates per run.
Activity