Skip to content

test(harness): raise CI Eventually scale ×3→×5 to fix autoplace-convergence flake - #176

Merged
Andrei Kvapil (kvaps) merged 1 commit into
mainfrom
blue/ci-scale-autoplace-flake
Jul 4, 2026
Merged

test(harness): raise CI Eventually scale ×3→×5 to fix autoplace-convergence flake#176
Andrei Kvapil (kvaps) merged 1 commit into
mainfrom
blue/ci-scale-autoplace-flake

Conversation

@kvaps

@kvaps Andrei Kvapil (kvaps) commented Jul 3, 2026

Copy link
Copy Markdown
Member

What

Raise the CI Eventually budget scale from ×3 to ×5 (per-group base 30s → 150s on CI) in tests/integration/harness/asserts.go.

Why

The ×3 stretch introduced in #173 (30s → 90s on CI) still let the Integration lane rotate-flake under full-suite contention. The heaviest autoplace-convergence cases — TestGroupFRToggleDiskful2DisklessReapsTieBreaker and TestGroupJ/CSICreateVolumeFromEmpty — both timed out at exactly 90s on a loaded GitHub runner (Eventually timed out after 1m30s: ... never reached 2 diskful replicas / autoplace did not converge to placeCount=2), while the same tests complete in ~8s locally and pass on other CI runs. That signature is CPU starvation under load, not a hang — the placer / mock-satellite reconcile loop is simply not getting scheduled enough within 90s when the whole suite runs concurrently. More wall-clock is the correct, targeted mitigation.

Fail-safe

Eventually returns the instant its predicate passes, so green runs pay nothing for the larger budget — only genuinely slow/failing runs report later, and those are still capped by the job-level -timeout=15m. So ×5 cannot cause runaway jobs; it only widens the headroom for load-starved convergence.

Scope

Test-infrastructure only — no product code changes. The pin test TestScaledTimeoutStretchesOnCI is updated to the new 150s expectation. The CHANGELOG entry lands in the v0.1.17 release section (this repo writes the CHANGELOG at release time, not per-PR).

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability of integration runs by allowing more time for slower CI environments.
    • Reduced the chance of timeout-related test failures in long-running scenarios.

The x3 CI budget stretch (30s->90s) still let the heaviest autoplace-
convergence cases rotate-flake the Integration lane under full-suite
contention: TestGroupFRToggleDiskful2DisklessReapsTieBreaker and
TestGroupJ/CSICreateVolumeFromEmpty both timed out at exactly 90s on a
loaded GitHub runner while completing in ~8s locally — CPU starvation,
not a hang. Raise the scale to x5 (30s->150s) so the placer / mock-
satellite reconcile loop gets more wall-clock under contention.

Fail-safe: Eventually returns the instant the predicate passes, so green
runs pay nothing for the larger budget; a genuinely stuck test still
fails at the job-level -timeout=15m ceiling. Pin test updated to 150s.

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 084e9905-4d16-4fd9-b791-a923d685d208

📥 Commits

Reviewing files that changed from the base of the PR and between 02b88fb and 84a6eb6.

📒 Files selected for processing (2)
  • tests/integration/harness/asserts.go
  • tests/integration/harness/asserts_ci_scale_test.go

📝 Walkthrough

Walkthrough

The CI timeout scaling multiplier in the test harness's scaledTimeout helper is increased from 3x to 5x, with corresponding comment updates explaining prior timeout issues, and the associated test updated to expect 150s instead of 90s for a 30s input.

Changes

CI Timeout Scaling Update

Layer / File(s) Summary
Scaling constant and test update
tests/integration/harness/asserts.go, tests/integration/harness/asserts_ci_scale_test.go
The CI scaling constant used by scaledTimeout is changed from 3 to 5, comments are expanded to explain prior 90s timeouts under CI contention, and the test is updated to expect 150s instead of 90s.

Estimated code review effort: 1 (Trivial) | ~3 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch blue/ci-scale-autoplace-flake

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request increases the CI timeout scaling factor from 3x to 5x (adjusting a 30-second timeout to 150 seconds) in the integration test harness to prevent flaky test failures caused by resource contention on CI runners. The corresponding test case has been updated to reflect this change. No review comments were provided, so there is no additional feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@kvaps
Andrei Kvapil (kvaps) marked this pull request as ready for review July 4, 2026 06:45
@kvaps
Andrei Kvapil (kvaps) merged commit 12bc231 into main Jul 4, 2026
15 checks passed
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.

1 participant