desktop: cargo test --release fails to compile (storage_tests.rs uses debug_assertions-gated items without cfg gates)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- desktop-dev, testing-qa
Research direction
Start in desktop/src-tauri/src/managed_agents/storage_tests.rs and compare its migration tests with the #[cfg(debug_assertions)] items in storage.rs at lines 494 and 515. Run cargo test --release from desktop/src-tauri to reproduce the E0425 errors, then verify the release test command compiles and passes after the tests are consistently gated.
Written by the indexing model from the issue text.
Description
Problem
cargo test --release in desktop/src-tauri fails to compile with 11 E0425 errors. src/managed_agents/storage_tests.rs references copy_agent_keys_between_stores (storage.rs:515) and DEV_MIGRATION_MARKER (storage.rs:494), both #[cfg(debug_assertions)], but the referencing tests carry no matching cfg gate (the only cfgs in storage_tests.rs are #[cfg(unix)] at :325 and :708).
Debug-profile cargo test passes (2430/0), which is why CI never sees it. Found while independently verifying PR #5763 at 37e056ed037f77b76e614c4b342bc8c6399e079b; pre-existing — storage_tests.rs is untouched by that PR (last touched by d40a33290).
Repro
cd desktop/src-tauri && cargo test --release
# error[E0425]: cannot find function `copy_agent_keys_between_stores` in module `super`
Fix shape
Gate the migration tests (or the whole block of them) with #[cfg(debug_assertions)] to match the items under test.
- Dominant language
- Rust
- Stars
- 33.7k
- Forks
- 4.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 239
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from block/buzz
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
workflow_sink's mention parser never masks code regions — @name inside a code span wakes the agent Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 Half a day Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·