carlos / platform Public

console: demo spool durability check ignores other tests' log lines

TestDemoJobSpoolRecoveryInvalidPath redirected the process-wide logger
and required it to stay empty during the second reconcile. A goroutine
left by another test (edge tunnel ping) logged into it on CI. The check
now fails only if this job's own recovery lines repeat (they name the
job ID, which the first-pass assertion already requires).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 98e7e2d37096de5ba35e32a52aee86e3093bac5d parent a397de3
1 file changed, +4 −1
  • internal/console/demo_spool_test.go +4 −1

CI passed — run details

Intent

Human

<task-notification> <task-id>bg5wq8rnb</task-id> <tool-use-id>toolu_01GfMMtkhQVCNhu6nJic2eKM</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a1de5273-c148-49b8-8267-3dee9d49c9c1/tasks/bg5wq8rnb.output</output-file> <status>completed</status> <summary>Background command "Wait for CI rerun on 712d254" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 33.0 g CO₂e (4,345,655 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fix-meter-visitors-flake, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/console/demo_spool_test.go b/internal/console/demo_spool_test.go
index 87c10b9f0..03c03cded 100644
--- a/internal/console/demo_spool_test.go
+++ b/internal/console/demo_spool_test.go
@@ -71,7 +71,10 @@ func TestDemoJobSpoolRecoveryInvalidPath(t *testing.T) {
if err := s.ReconcileDemoJobs(t.Context(), true); err != nil {
t.Fatal(err)
}
- if logs.Len() != 0 {
+ // Only this job's own lines count: the logger is process-wide,
+ // and a goroutine left by another test (an edge tunnel ping,
+ // CI 2026-11-08) can log into the buffer meanwhile.
+ if strings.Contains(logs.String(), j.ID) {
t.Fatalf("recovery was not durable: %s", logs.String())
}
})