Skip to content

test(app): eliminate stale session reconciliation flake - #1838

Merged
jbeda merged 1 commit into
mainfrom
fix/1837-stale-session-reconcile-flake
Sep 24, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/1837-stale-session-reconcile-flake

Conversation

@jbeda

@jbeda jbeda commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • eliminate the race between the first Build's startup sweep and the directly aged JSONL crash fixture
  • preserve the restart-level assertion that Build's own reconciler settles a stale running session

Fixes #1837

Verification

  • go test ./internal/app -run '^TestBuildSettlesStaleRunningSnapshotAcrossRestart$' -count=10
  • go test ./internal/app -run '^(TestBuildSettlesStaleRunningSnapshotAcrossRestart|TestStaleSessionReconcileSettlesChildCandidate|TestStartStaleSessionReconcileExitsOnCancel)$' -count=5

@jbeda
jbeda merged commit 6118a7f into main Sep 24, 2026
36 checks passed
@jbeda
jbeda deleted the fix/1837-stale-session-reconcile-flake branch September 24, 2026 06:00
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake: stale-running startup reconciliation test times out

1 participant