From 124e910a273e2254994dc86064ef00adc5c8a1d7 Mon Sep 17 00:00:00 2001 From: "developing-today[bot]" <5454422+developing-today[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 14:15:31 -0600 Subject: [PATCH] fix(id): name the checkpoint field in ChainExt test fixtures (#4522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ChainExt gained a checkpoint: Option field in the session-checkpoint work (#3794); the src/ fixtures were updated but 31 integration-test initializers across 14 files under pkgs/id/tests were not, so cargo test --all-targets failed with E0063 and the id-web Nix check phase (doCheck=true, ci-check) failed with it — the laptop switch blocker tracked by #4522, recurring after PR #4566 fixed the same class for the link field. Every affected fixture constructs a non-checkpoint event, so each now names checkpoint: None after its link field, matching the src/ fixture shape. Test-only change; no production code touched. --- pkgs/id/tests/aliases.rs | 1 + pkgs/id/tests/bridge_poc.rs | 2 ++ pkgs/id/tests/chain_properties.rs | 3 +++ pkgs/id/tests/cli_documents.rs | 1 + pkgs/id/tests/content_removal.rs | 3 +++ pkgs/id/tests/crash/store.rs | 1 + pkgs/id/tests/documents.rs | 3 +++ pkgs/id/tests/event_store_properties.rs | 4 ++++ pkgs/id/tests/production_ingest.rs | 2 ++ pkgs/id/tests/retention_pruning.rs | 4 ++++ pkgs/id/tests/search.rs | 2 ++ pkgs/id/tests/tag_claims.rs | 3 +++ pkgs/id/tests/voiding_properties.rs | 1 + pkgs/id/tests/voiding_scenarios.rs | 1 + 14 files changed, 31 insertions(+) diff --git a/pkgs/id/tests/aliases.rs b/pkgs/id/tests/aliases.rs index 9969db75c4..49900b2a5c 100644 --- a/pkgs/id/tests/aliases.rs +++ b/pkgs/id/tests/aliases.rs @@ -61,6 +61,7 @@ impl Writer { removes: None, note: None, link: None, + checkpoint: None, }; let event = sign(&self.key, self.seq, self.last, None, ext).unwrap(); self.seq += 1; diff --git a/pkgs/id/tests/bridge_poc.rs b/pkgs/id/tests/bridge_poc.rs index 8288a14f4f..b0aa595d7e 100644 --- a/pkgs/id/tests/bridge_poc.rs +++ b/pkgs/id/tests/bridge_poc.rs @@ -165,6 +165,7 @@ impl Author { removes: None, note: None, link: None, + checkpoint: None, }; let event = sign(&self.key, self.seq, self.last, None, ext).unwrap(); self.seq += 1; @@ -197,6 +198,7 @@ impl Author { removes: None, note: None, link: None, + checkpoint: None, }; sign(&self.key, seq, backlink, Some(b"rival"), ext).unwrap() } diff --git a/pkgs/id/tests/chain_properties.rs b/pkgs/id/tests/chain_properties.rs index 9f6d7e931f..61c7c1ed5b 100644 --- a/pkgs/id/tests/chain_properties.rs +++ b/pkgs/id/tests/chain_properties.rs @@ -63,6 +63,7 @@ fn chain_ext() -> impl Strategy { removes: None, note: None, link: None, + checkpoint: None, } }) } @@ -124,6 +125,7 @@ proptest! { group: None, after: after.clone(), tag: None, document: None, removes: None, note: None, link: None, + checkpoint: None, }; prop_assert!(sign(&key(), 0, None, None, ext.clone()).is_err()); prop_assert!(ext.validate().is_err()); @@ -192,6 +194,7 @@ proptest! { group: None, after: Vec::new(), tag: None, document: None, removes: None, note: None, link: None, + checkpoint: None, }, ) .encode(); diff --git a/pkgs/id/tests/cli_documents.rs b/pkgs/id/tests/cli_documents.rs index 89a97ba262..85fb21aab6 100644 --- a/pkgs/id/tests/cli_documents.rs +++ b/pkgs/id/tests/cli_documents.rs @@ -197,6 +197,7 @@ fn test_events_lists_the_tags_and_a_removal_on_a_document() { removes: Some(hash(&doc)), note: None, link: None, + checkpoint: None, }, ); diff --git a/pkgs/id/tests/content_removal.rs b/pkgs/id/tests/content_removal.rs index 74575bb017..3002a8ee60 100644 --- a/pkgs/id/tests/content_removal.rs +++ b/pkgs/id/tests/content_removal.rs @@ -98,6 +98,7 @@ fn document_ext(doc: &DocumentRef, after: Vec) -> ChainExt { removes: None, note: None, link: None, + checkpoint: None, } } @@ -115,6 +116,7 @@ fn tag_ext(subject: Hash, name: &str, value: &str, after: Vec) -> ChainExt removes: None, note: None, link: None, + checkpoint: None, } } @@ -128,6 +130,7 @@ fn removal_ext(target: Hash, after: Vec) -> ChainExt { removes: Some(target), note: None, link: None, + checkpoint: None, } } diff --git a/pkgs/id/tests/crash/store.rs b/pkgs/id/tests/crash/store.rs index 6cca7ba107..1858325f9e 100644 --- a/pkgs/id/tests/crash/store.rs +++ b/pkgs/id/tests/crash/store.rs @@ -436,6 +436,7 @@ fn workload() -> Vec> { removes: None, note: None, link: None, + checkpoint: None, }; let a0 = sign(&author, 0, None, None, ext("message", Vec::new())).unwrap(); let a1 = sign(&author, 1, Some(a0.id), None, ext("message", Vec::new())).unwrap(); diff --git a/pkgs/id/tests/documents.rs b/pkgs/id/tests/documents.rs index 49f8c1e598..927735ba33 100644 --- a/pkgs/id/tests/documents.rs +++ b/pkgs/id/tests/documents.rs @@ -107,6 +107,7 @@ fn document_ext(doc: &DocumentRef, after: Vec) -> ChainExt { removes: None, note: None, link: None, + checkpoint: None, } } @@ -124,6 +125,7 @@ fn tag_ext(op: TagOp, after: Vec) -> ChainExt { removes: None, note: None, link: None, + checkpoint: None, } } @@ -383,6 +385,7 @@ fn test_a_document_event_that_does_not_fit_its_kind_is_not_signed() { removes: None, note: None, link: None, + checkpoint: None, }; assert!(sign(&key, 0, None, None, missing).is_err()); let with_tag = ChainExt { diff --git a/pkgs/id/tests/event_store_properties.rs b/pkgs/id/tests/event_store_properties.rs index 9ff6052214..706900baf2 100644 --- a/pkgs/id/tests/event_store_properties.rs +++ b/pkgs/id/tests/event_store_properties.rs @@ -150,6 +150,7 @@ fn signed( removes: None, note: None, link: None, + checkpoint: None, }; sign(key, seq, backlink, None, ext).unwrap() } @@ -339,6 +340,7 @@ fn present_event( removes: None, note: None, link: None, + checkpoint: None, }; sign(key, seq, backlink, None, ext).unwrap() } @@ -761,6 +763,7 @@ proptest! { group: None, after: Vec::new(), tag: None, document: None, removes: None, note: None, link: None, + checkpoint: None, }, ) .encode(); @@ -806,6 +809,7 @@ fn print_ingest_seeds() { removes: None, note: None, link: None, + checkpoint: None, }; sign(key, seq, backlink, None, ext).unwrap() }; diff --git a/pkgs/id/tests/production_ingest.rs b/pkgs/id/tests/production_ingest.rs index 5ebdec5b01..e61d098f2a 100644 --- a/pkgs/id/tests/production_ingest.rs +++ b/pkgs/id/tests/production_ingest.rs @@ -80,6 +80,7 @@ impl Chains { removes: None, note: None, link: None, + checkpoint: None, }; let event = sign(&key(who), seq, backlink, body.as_deref(), ext).unwrap(); self.last.insert(who, (seq, event.id)); @@ -296,6 +297,7 @@ fn test_a_body_that_does_not_match_its_payload_hash_is_refused() { removes: None, note: None, link: None, + checkpoint: None, }, ) .unwrap(); diff --git a/pkgs/id/tests/retention_pruning.rs b/pkgs/id/tests/retention_pruning.rs index 872d0ad8f6..d9e09d6c28 100644 --- a/pkgs/id/tests/retention_pruning.rs +++ b/pkgs/id/tests/retention_pruning.rs @@ -72,6 +72,7 @@ impl Chains { removes: None, note: None, link: None, + checkpoint: None, }; let event = sign(&key(who), seq, backlink, body.as_deref(), ext).unwrap(); self.last.insert(who, (seq, event.id)); @@ -135,6 +136,7 @@ impl Chains { removes: None, note: Some(NoteOp::Create { content: doc }), link: None, + checkpoint: None, }; let event = sign(&key(who), seq, backlink, None, ext).unwrap(); self.last.insert(who, (seq, event.id)); @@ -171,6 +173,7 @@ impl Chains { parents: parents.to_vec(), }), link: None, + checkpoint: None, }; let event = sign(&key(who), seq, backlink, None, ext).unwrap(); self.last.insert(who, (seq, event.id)); @@ -205,6 +208,7 @@ impl Chains { surface: surface.to_owned(), pin, }), + checkpoint: None, }; let event = sign(&key(who), seq, backlink, None, ext).unwrap(); self.last.insert(who, (seq, event.id)); diff --git a/pkgs/id/tests/search.rs b/pkgs/id/tests/search.rs index dd7e805ad0..1cebc36bd4 100644 --- a/pkgs/id/tests/search.rs +++ b/pkgs/id/tests/search.rs @@ -90,6 +90,7 @@ impl Writer { removes: None, note: None, link: None, + checkpoint: None, }) } } @@ -104,6 +105,7 @@ fn tag_ext(kind: &str, op: TagOp, after: Vec) -> ChainExt { removes: None, note: None, link: None, + checkpoint: None, } } diff --git a/pkgs/id/tests/tag_claims.rs b/pkgs/id/tests/tag_claims.rs index 9ea6c8e321..f3377be4b4 100644 --- a/pkgs/id/tests/tag_claims.rs +++ b/pkgs/id/tests/tag_claims.rs @@ -77,6 +77,7 @@ impl Writer { removes: None, note: None, link: None, + checkpoint: None, }; let event = sign(&self.key, self.seq, self.last, None, ext).unwrap(); self.seq += 1; @@ -265,6 +266,7 @@ fn test_a_tag_event_whose_operation_does_not_fit_its_kind_is_not_signed() { removes: None, note: None, link: None, + checkpoint: None, }; assert!(sign(&a.key, 0, None, None, mismatch).is_err()); let missing = ChainExt { @@ -276,6 +278,7 @@ fn test_a_tag_event_whose_operation_does_not_fit_its_kind_is_not_signed() { removes: None, note: None, link: None, + checkpoint: None, }; assert!(sign(&a.key, 0, None, None, missing).is_err()); } diff --git a/pkgs/id/tests/voiding_properties.rs b/pkgs/id/tests/voiding_properties.rs index e84b834bbe..cb54ab0b5a 100644 --- a/pkgs/id/tests/voiding_properties.rs +++ b/pkgs/id/tests/voiding_properties.rs @@ -148,6 +148,7 @@ fn scenario(seed: u64) -> Vec { removes: None, note: None, link: None, + checkpoint: None, }; let body = action.as_ref().map(|action| encode_body(action).unwrap()); let event = sign(&key(who), seq, backlink, body.as_deref(), ext).unwrap(); diff --git a/pkgs/id/tests/voiding_scenarios.rs b/pkgs/id/tests/voiding_scenarios.rs index a09d4d74da..0c14586fd2 100644 --- a/pkgs/id/tests/voiding_scenarios.rs +++ b/pkgs/id/tests/voiding_scenarios.rs @@ -98,6 +98,7 @@ impl Builder { removes: None, note: None, link: None, + checkpoint: None, }; let body = action.as_ref().map(|action| encode_body(action).unwrap()); let event = sign(&key(who), seq, backlink, body.as_deref(), ext).unwrap();