Skip to content

fix(test): an offline send needs no address for its counterparty - #1033

Merged
cryptskii merged 1 commit into
mainfrom
fix/offline-send-test-follows-device-id-routing
Sep 27, 2026
Merged

cryptskii merged 1 commit into
mainfrom
fix/offline-send-test-follows-device-id-routing

Conversation

@cryptskii

@cryptskii cryptskii commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Main is red

main's Rust board fails on a4ed751 (#1030) and on f69f33f (#1031):

  • dsm_sdk --lib: 1042 passed, 1 failed.
  • The failing test is handlers::wallet_routes::send_offline_tests::an_offline_send_goes_where_the_sdk_has_seen_the_appliance.

The failure also stopped the board before it ran dsm_sdk's integration binaries.

Why

#1030 routes an offline send by the counterparty's device id. A known BLE address is only where the transport looks first, so the send no longer refuses with "no BLE address is known for the counterparty". This test, pinned in #1021, still expected that refusal. I ran targeted suites for #1030 rather than the whole board, which is how it slipped through.

Change

The test is renamed an_offline_send_needs_no_address_for_its_counterparty and now pins the routing #1030 ships. A contact with no address is not refused for want of one: its send gets exactly as far as a send to a contact holding an address. On a host build, that is the dispatch.

Test-only; no production code changes.

Verification

All runs --release, --test-threads=1:

Run Result
dsm_sdk --lib send_offline_tests 1/1
Every dsm_sdk integration binary the red board never reached (--no-fail-fast) 11/11 ok
dsm_vertical_validation (run from the repo root, as the board does) 28/28

#1030 routes an offline send by the counterparty's device id; a known BLE
address is only where the transport looks first, so the send no longer
refuses "no BLE address is known for the counterparty". The test pinned in
#1021 still expected that refusal, and main's Rust board went red on it
(a4ed751, f69f33f: dsm_sdk --lib 1042 passed, 1 failed), which also
stopped the board before dsm_sdk's integration binaries.

The test now pins the routing #1030 ships: with no address the contact is
not refused for want of one; its send goes exactly as far as one to a
contact holding an address, which on a host build is the dispatch.

Verification: dsm_sdk --release send_offline_tests 1/1; every dsm_sdk
integration binary the red board never reached, --no-fail-fast: 11/11 ok.
@cryptskii
cryptskii merged commit 0a7cbb1 into main Sep 27, 2026
23 checks passed
@cryptskii
cryptskii deleted the fix/offline-send-test-follows-device-id-routing branch September 27, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant