From e601e88e95ddecc3555c94a993e0d7ab2d06007e Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 19 Oct 2026 12:38:55 +0200 Subject: [PATCH] Keep two values of each issue in the tracker's bucket, since the log holds them all (issue 1221) --- modules/mesh-issues/cmd/mesh-issues/bus_test.go | 5 +++-- modules/mesh-issues/module.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/mesh-issues/cmd/mesh-issues/bus_test.go b/modules/mesh-issues/cmd/mesh-issues/bus_test.go index 62da6db5..531f057a 100644 --- a/modules/mesh-issues/cmd/mesh-issues/bus_test.go +++ b/modules/mesh-issues/cmd/mesh-issues/bus_test.go @@ -587,7 +587,8 @@ func TestFortyReservationsAtOnceFromTwoInstancesGetFortyDistinctConsecutiveNumbe } // The carry over the bus (novox/hq ADR 0300 ยง6, ADR 0307): values the bucket kept before the switch are read -// through the runtime's history, oldest first, and carried before the write that touches the issue. +// through the runtime's history, oldest first, and carried before the write that touches the issue. The bucket +// keeps the two values the manifest declares (novox/hq issue 1221), so of three written the last two are carried. func TestAWriteOverTheBusCarriesEveryValueTheBucketKeptFirst(t *testing.T) { b := newBus(t) var events []event @@ -617,7 +618,7 @@ func TestAWriteOverTheBusCarriesEveryValueTheBucketKeptFirst(t *testing.T) { titles = append(titles, op.Issue.Title) } } - if fmt.Sprint(ops) != "[carried carried carried noted]" || fmt.Sprint(titles) != "[first second third]" { + if fmt.Sprint(ops) != "[carried carried noted]" || fmt.Sprint(titles) != "[second third]" { t.Fatalf("the log holds %v of %v", ops, titles) } } diff --git a/modules/mesh-issues/module.json b/modules/mesh-issues/module.json index 46e3fdb8..36bd42b4 100644 --- a/modules/mesh-issues/module.json +++ b/modules/mesh-issues/module.json @@ -75,7 +75,7 @@ "state": [ { "name": "issues", - "history": 8 + "history": 2 }, "counters", "grooming", -- 2.54.0