Skip to content

test: wait for federation pass before cleanup - #336

Merged
wesm merged 1 commit into
mainfrom
ci-flake
Sep 3, 2026
Merged

test: wait for federation pass before cleanup#336
wesm merged 1 commit into
mainfrom
ci-flake

Conversation

@wesm

@wesm wesm commented Sep 3, 2026

Copy link
Copy Markdown
Member

Prevents the recurring TestServiceRunWakesFederationOnCommittedEvent flake by keeping the mounted service alive until its event-driven federation pass finishes.

The test seeds an offline sync error, switches to the live test hub, creates an issue, and broadcasts a wake. It previously treated hub-side issue visibility as completion, but the hub commit becomes visible before the spoke pulls its echoed event. Cleanup could cancel that in-flight SQLite transaction, and Service.Run then surfaced the transaction failure as designed. The identical failure appeared in Tests run 982 and the pg17 job in Tests run 986.

The assertion now also waits for the successful pass to clear the deliberately seeded offline error. This preserves the existing two-second event-driven boundary and leaves production shutdown and worker-error handling unchanged.

Run 986's Federation Docker failure is separate: apt-get timed out fetching every configured Debian index before the image could run Kata. This change leaves the image unchanged rather than adding a package-mirror workaround for a runner-network failure.

The event-driven federation test stopped its service as soon as the hub commit
became visible. The spoke can still be applying the echoed event at that point,
so cancellation sometimes turned normal test cleanup into a worker failure.

Wait for the successful pass to clear the deliberately seeded offline error.
This keeps the shutdown assertion deterministic without hiding real worker
errors in Service.Run.

Generated with Codex
Co-authored-by: Codex <codex@openai.com>
@roborev-ci

roborev-ci Bot commented Sep 3, 2026

Copy link
Copy Markdown

roborev: Combined Review (9cb8771)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 54s

@wesm
wesm merged commit 732eda0 into main Sep 3, 2026
13 checks passed
@wesm
wesm deleted the ci-flake branch September 3, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant