Skip to content

store: fix Windows/Darwin --release store-test compile - #130

Merged
reardencode merged 2 commits into
masterfrom
store/release-test-compile
Aug 18, 2026
Merged

store: fix Windows/Darwin --release store-test compile#130
reardencode merged 2 commits into
masterfrom
store/release-test-compile

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Why

Master Windows/macOS smoke (windows.yml / macos.yml at
394aba3d, after #129) failed compiling rbitcoin-store tests
in --release:

error[E0425]: cannot find function take_raw_clone_n

Those jobs run
cargo test --release -p rbitcoin-store --lib -- file::advise_tests::scripthash_body_create_open_roundtrip,
which still typechecks the whole test crate. take_raw_clone_n was
cfg(debug_assertions) only.

Not the #127 toy delete — it is the BQ raw-clone meter vs native
--release smoke.

Change

Meter + note_raw_clone + crate re-export are
cfg(any(test, debug_assertions)). Production --release node
builds still omit the atomic.

Verify

  • Red: cargo test --release -p rbitcoin-store --lib -- file::advise_tests::scripthash_body_create_open_roundtrip failed to compile.
  • Green: that filter and raw_payload_clones_one_has_raw_does_not pass in --release and debug.

Please add label static-binaries so windows/macos smoke run on this PR.

Windows/Darwin smoke runs cargo test --release -p rbitcoin-store
--lib, which compiles the whole test crate without debug_assertions.
take_raw_clone_n was debug-only, so the has_raw clone-count test
failed to compile. Gate the meter with cfg(any(test, debug_assertions))
so production release binaries stay clean.
@rearden-grok rearden-grok Bot added the static-binaries Build musl, Windows, and Darwin operator binaries on this PR label Aug 18, 2026
load_leftover_disconnected_parent_is_not_tipthenany already pins
the unresolved error string. last_union_miss / last_plan_batch are
process-global and flake under cargo test --workspace (CI test job
on #130). Keep the error-string contract.
@reardencode
reardencode merged commit 197c9b6 into master Aug 18, 2026
13 checks passed
@rearden-grok
rearden-grok Bot deleted the store/release-test-compile branch August 18, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

static-binaries Build musl, Windows, and Darwin operator binaries on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant