From 949d68b276a3dbae31080fc5490462364c2188c1 Mon Sep 17 00:00:00 2001 From: Cryptskii <47649969+cryptskii@users.noreply.github.com> Date: Sat, 26 Sep 2026 03:33:33 -0400 Subject: [PATCH] test(sdk): the unestablished-genesis-candidate test boots its own device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../dsm_sdk/src/sdk/sofi_reads.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dsm_client/deterministic_state_machine/dsm_sdk/src/sdk/sofi_reads.rs b/dsm_client/deterministic_state_machine/dsm_sdk/src/sdk/sofi_reads.rs index ee5f834bd..a7c62dd55 100644 --- a/dsm_client/deterministic_state_machine/dsm_sdk/src/sdk/sofi_reads.rs +++ b/dsm_client/deterministic_state_machine/dsm_sdk/src/sdk/sofi_reads.rs @@ -286,11 +286,14 @@ mod tests { /// whose bytes no member holds may be the genesis, so the scan is a /// network failure, never "not published"; a candidate whose bytes are /// held and are not a genesis is established, and nothing. On the storage - /// node's own code, on Postgres. + /// node's own code, on Postgres, as a booted device: the verifier's reads + /// are over the network this device's genesis committed, so the test + /// establishes that device itself rather than standing on one an earlier + /// test left behind. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] #[serial_test::serial] async fn an_unestablished_genesis_candidate_is_not_read_as_unpublished() { - let _fleet = crate::test_support::one_device::Fleet::start(); + let _device = crate::test_support::one_device::Device::start(0xE3).await; let set = crate::sdk::storage_set::canonical_set(crate::economic_fixtures::NETWORK) .expect("the pinned set"); let client = SetClient::new(&set).expect("a client of the set");