Commit 8eb59fa
ci: rerun failed integration tests once to handle flaky failures (#9118)
The nightly `azure-dev - cli` pipeline has been red on nearly every run
because integration tests provision live Azure resources and fail
intermittently for environmental reasons that rotate night to night
(credential token expiry during long provisioning, transient Azure
service capacity such as App Service "No available instances to satisfy
this request", and teardown races). With no retry, a single such blip
fails the whole nightly.
Enable gotestsum's rerun of failed integration tests (once), so flaky
failures are retried while genuine regressions still fail:
- --rerun-fails=1: re-run each failed test one time.
- --rerun-fails-max-failures=5: if the initial run has more than 5
failures, don't rerun anything (a mass failure is a real regression,
not flake).
- --rerun-fails-report: record which tests were rerun so flaky tests
stay visible for triage.
- --packages "./...": required by --rerun-fails (the package list can no
longer be passed positionally after --).
Only the integration test invocation is changed; unit tests are fast and
deterministic and keep running without retry.
Fixes #8386
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c9f44e1 commit 8eb59fa
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
66 | 82 | | |
67 | 83 | | |
68 | 84 | | |
| |||
0 commit comments