Skip to content

Commit 6ba2b2b

Browse files
committed
test(control-plane): speed up link-failure detection to avoid timeout flake
A persistently-failing link is only marked LINK_FAILED once reconciler requeues exhaust, with exponential backoff (base x 2^n). At max_requeues=10 that's ~51s of cumulative backoff, which exceeds the wait_auth_link timeout under slow llvm-cov runs and caused failure-expecting tests (wrong creds, missing workload API) to flake. Lower to 7 (~6s to fail). Recovery tests are unaffected — they recover via a fresh node registration, not the requeue chain (verified locally). Signed-off-by: Luca Muscariello <muscariello@ieee.org>
1 parent 9593650 commit 6ba2b2b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

crates/control-plane/tests/integration_test.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,14 @@ fn reserve_port() -> u16 {
100100

101101
fn test_reconciler_config() -> ReconcilerConfig {
102102
ReconcilerConfig {
103-
max_requeues: 10,
103+
// Keep this low: a persistently-failing link is only marked LINK_FAILED
104+
// after requeues exhaust, and the delay grows exponentially (base × 2^n).
105+
// With 10 requeues that's ~51s of cumulative backoff, which blows the
106+
// `wait_auth_link` timeout under slow llvm-cov runs. 7 → ~6s to fail,
107+
// still leaving retry margin for slow-to-connect links. Recovery tests
108+
// are unaffected (they recover via a fresh node registration, not the
109+
// requeue chain).
110+
max_requeues: 7,
104111
base_retry_delay: Duration::from_millis(50).into(),
105112
reconcile_period: Duration::from_secs(0).into(),
106113
enable_orphan_detection: false,

0 commit comments

Comments
 (0)