Skip to content

test(sdk): the unestablished-genesis-candidate test boots its own device (main's SDK board red since #1013) - #1017

Merged
cryptskii merged 1 commit into
mainfrom
fix/sofi-reads-test-boots-a-device
Sep 26, 2026
Merged

cryptskii merged 1 commit into
mainfrom
fix/sofi-reads-test-boots-a-device

Conversation

@cryptskii

Copy link
Copy Markdown
Collaborator

What

Main's SDK board is red on one test since #1013: dsm_sdk::sdk::sofi_reads::tests::an_unestablished_genesis_candidate_is_not_read_as_unpublished (red on the runs of #1014 and #1015 alike, 1017/1 and 1014/1). This makes it establish its own device.

Why it was red

The test started the storage nodes (Fleet::start()) but no device. VerifierContext::new builds LiveSofiReads over committed_network_id(), which reads the network from this device's stored genesis record — so in the serial board the test failed with "no genesis identity" wherever no earlier test had left an identity behind, and alone it panics earlier still ("DSM storage base dir not set"). It passed in my targeted runs only because node_e2e_tests ran first in the same process and left a booted device.

How

The test boots a Device (test_support::one_device::Device::start): the storage dir, the nodes on Postgres, the set the SDK is pointed at, and a created and published identity — the same fixture the admission tests stand on. The assertions are unchanged.

Verification (release, Postgres)

  • cargo test --locked --release -p dsm_sdk --lib -- sdk::sofi_reads::tests::an_unestablished_genesis_candidate_is_not_read_as_unpublished --exact --test-threads=1 — the test ALONE, the condition under which it was red: before the change it fails (app_state.rs:84 storage base dir not set; on CI "no genesis identity"); after the change → 1/0.
  • make lint → exit 0.

Main's SDK board was red on
sdk::sofi_reads::tests::an_unestablished_genesis_candidate_is_not_read_as_unpublished
since #1013: the test started the nodes but no device, and VerifierContext
reads the committed network from this device's stored genesis, so it failed
("no genesis identity") wherever no earlier test had left an identity behind
— and passed in targeted runs only because node_e2e_tests ran first. It now
boots a Device (storage dir, nodes on Postgres, a created and published
identity), as the admission tests do; the assertions are unchanged.
@cryptskii
cryptskii merged commit 0c7a2bd into main Sep 26, 2026
19 of 20 checks passed
@cryptskii
cryptskii deleted the fix/sofi-reads-test-boots-a-device branch September 26, 2026 07:46
cryptskii added a commit that referenced this pull request Sep 26, 2026
… board (#1019)

The Rust tests (dsm_sdk) job of 97d6d55 (run 36226702605): 46 failed of
1020; 45 on the ERA refusal at an ERA transfer or burn, listed by name in
§6.32; the one other, sofi_reads' unestablished-genesis-candidate test, is
main's pre-existing red (#1013) fixed by #1017 and is named as such.
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