Commit 211974d
committed
test(control-plane): de-flake auth-link integration tests
The auth-link integration tests failed intermittently in CI (a different
`test_link_*` test each run, always at the same two assertion sites, and on
`main` too) under slow, heavily-parallel jobs such as the llvm-cov coverage run.
Two independent causes:
1. Wrong-link race. `auth_link()` matched the first link sourced from *either*
the connector or the protected group, but `wait_auth_link()` then asserts the
source is the connector. During reconciliation a transient protected-sourced
link can reach the target status first, tripping the assertion. Select the
connector-sourced link directly so transient links are skipped and the loop
keeps polling for the one every caller actually expects.
2. Timeouts too tight under instrumentation. Reconciliation occasionally needs
longer than 30s/15s when the runner is saturated (llvm-cov, parallel matrix),
causing `wait_*` timeout panics. Double DEFAULT_TIMEOUT (30->60s) and
SHORT_TIMEOUT (15->30s); the happy path returns immediately, so passing tests
are unaffected.
No production code changes; test-only.
Signed-off-by: Luca Muscariello <muscariello@ieee.org>1 parent 74bef97 commit 211974d
1 file changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
1890 | 1892 | | |
1891 | 1893 | | |
1892 | 1894 | | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
1900 | 1904 | | |
1901 | 1905 | | |
1902 | 1906 | | |
| |||
0 commit comments