Flaky test: DeploySiteAsync_UnreachableSite_ReconcilesOnceThenSkipsTheRestOfTheBatch #92

Closed
opened 2026-11-09 13:32:51 -05:00 by dohertj2 · 1 comment
Owner

DeploymentManager.Tests DeploySiteAsyncTests.DeploySiteAsync_UnreachableSite_ReconcilesOnceThenSkipsTheRestOfTheBatch is intermittent: it failed once during an unrelated mutation run (#90) and once in a full-project run after rebasing #89/#90/#47, then passed 3/3 re-runs both times. Find the timing dependency and make it deterministic.

`DeploymentManager.Tests` `DeploySiteAsyncTests.DeploySiteAsync_UnreachableSite_ReconcilesOnceThenSkipsTheRestOfTheBatch` is intermittent: it failed once during an unrelated mutation run (#90) and once in a full-project run after rebasing #89/#90/#47, then passed 3/3 re-runs both times. Find the timing dependency and make it deterministic.
dohertj2 added the type:testpriority:p3 labels 2026-11-09 13:32:51 -05:00
Author
Owner

Fixed on main bec07378: the test capped the serial prepare phase at 2 s wall clock with a 300 ms reconcile deadline — under a loaded full-project run six instances took 2.6 s, and the 300 ms deadline (which also covers repo reads + the Ask) could expire before the query was sent. Reconcile deadline now 2 s and the elapsed bound is derived from it (prepare < (6−1)×2 s; without the breaker it would be ≥ 6×2 s); the structural queryCount == 1 assertion stays. Evidence: full DeploymentManager.Tests under 2×ncpu busy loops — 5/10 failed before, 0/12 after; post-rebase full project passed.

Fixed on main bec07378: the test capped the serial prepare phase at 2 s wall clock with a 300 ms reconcile deadline — under a loaded full-project run six instances took 2.6 s, and the 300 ms deadline (which also covers repo reads + the Ask) could expire before the query was sent. Reconcile deadline now 2 s and the elapsed bound is derived from it (prepare < (6−1)×2 s; without the breaker it would be ≥ 6×2 s); the structural `queryCount == 1` assertion stays. Evidence: full DeploymentManager.Tests under 2×ncpu busy loops — 5/10 failed before, 0/12 after; post-rebase full project passed.
Sign in to join this conversation.