From a0883a174b9638a85eae87faabcb1ddc32aa2988 Mon Sep 17 00:00:00 2001 From: mesh-tools Date: Tue, 20 Oct 2026 00:15:54 +0000 Subject: [PATCH] Test the bridge's two state buckets, heads and performed (issue 1341) --- modules/mesh-delivery-forge-bridge/manifest_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/mesh-delivery-forge-bridge/manifest_test.go b/modules/mesh-delivery-forge-bridge/manifest_test.go index 04d3557..f1bb6ea 100644 --- a/modules/mesh-delivery-forge-bridge/manifest_test.go +++ b/modules/mesh-delivery-forge-bridge/manifest_test.go @@ -102,9 +102,11 @@ func TestManifestDeclarations(t *testing.T) { // 1235/AC1 if m.SecretsOwner != "mesh-delivery-forge-bridge" { t.Errorf("secrets-owner = %q", m.SecretsOwner) } - // One bucket: the head last written on FORGE for each pull request, so a sync writes only what differs (ADR 0443 §5). - if !reflect.DeepEqual(m.State, []state{{Name: "heads", History: 1}}) { // 1279/AC6 - t.Errorf("state = %+v, want the one bucket heads", m.State) + // Two buckets: the head last written on FORGE for each pull request, so a sync writes only what differs (ADR 0443 + // §5), and the revision of each key of the gate's buckets the bridge performed, so a key is performed once per + // revision (ADR 0437 §8; issue 1341). + if !reflect.DeepEqual(m.State, []state{{Name: "heads", History: 1}, {Name: "performed", History: 1}}) { // 1279/AC6, 1341 + t.Errorf("state = %+v, want the buckets heads and performed", m.State) } // No other state, no bus, no seat, no tool (ADR 0437 §4). for _, k := range []string{"logs", "emits", "claims", "provides", "requires", "uses", "defines-seats", "tools", "seat", "seats"} {