Skip to content

test(steam): give patient orchestrator budgets room on loaded runners - #438

Merged
frankea merged 1 commit into
mainfrom
test/steam-orchestrator-patient-budgets
Nov 30, 2026
Merged

frankea merged 1 commit into
mainfrom
test/steam-orchestrator-patient-budgets

Conversation

@frankea

@frankea frankea commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

The Run Tests job on main failed at 323cbb2 in three SteamClientOrchestratorLaunchTests tests. All three ended with steam.client.timeout at about 13 seconds, which is the 10 second clientReadyTimeout in SteamOrchestratorFixture.patient. The same tests pass locally in under half a second, so a busy runner kept the main actor from getting to the poll in time.

patient is used only by tests whose waits succeed, and each wait returns as soon as its process appears, so a bigger budget costs a passing run nothing.

  • patient.clientReadyTimeout and launchGrace: 10 to 60 seconds
  • eventually's default timeout: 30 to 150 seconds, so it still outlasts a patient launch that runs both budgets out
  • The cancellation test's clientReadyTimeout: 60 to 600 seconds, so it stays longer than eventually and only the stop can clear the phase

The 49 Steam orchestrator tests pass locally in 0.41 seconds.

Summary by CodeRabbit

  • Tests
    • Increased timeouts in Steam orchestration tests, allowing more time for client readiness, launch, and eventual conditions.

The launch tests that wait for a client failed on main at the 10 second
clientReadyTimeout while a busy CI runner held the main actor. Passing tests
return as soon as the process appears, so raise the patient budgets to 60
seconds, keep eventually's default above both, and keep the cancellation
test's timeout above that default.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Orchestrator test timeouts

Layer / File(s) Summary
Orchestrator test timeout allowances
WhiskyKit/Tests/WhiskyKitTests/SteamOrchestratorTestSupport.swift, WhiskyKit/Tests/WhiskyKitTests/SteamClientOrchestratorProcessTests.swift
The shared fixture sets clientReadyTimeout and launchGrace to 60 seconds, and eventually defaults to 150 seconds. The stopAll test sets clientReadyTimeout to 600 seconds.

Change: Other

Merge Risk: Minimal · up to c4f35

This change only lengthens test wait budgets to reduce flaky failures on loaded CI runners. It does not alter production behavior, and no concrete merge-blocking risk remains.

Security architecture risk: Minimal · up to c4f35

The tests allow more time on busy runners without changing how the shipped Steam orchestrator starts or stops processes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9c54132b-b5bd-449a-bbd2-b7ca48907206
Commits

Reviewing files that changed from the base of the PR and between 323cbb2 and c4f35bd.

Files selected for processing: 2

  • WhiskyKit/Tests/WhiskyKitTests/SteamClientOrchestratorProcessTests.swift
  • WhiskyKit/Tests/WhiskyKitTests/SteamOrchestratorTestSupport.swift
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@graphify-labs graphify-labs 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.

Graphify review View in Graphify

Looks safe to merge · Merge confidence 5/5

No issues reported · Medium impact

The shared patient timing budgets increase from 10 to 60 seconds, and the default eventual-condition wait increases from 30 to 150 seconds.

What this review covered
  • Some lookups asked for files or lines that do not exist; the review was told and carried on.
  • 2 of 2 changed files inspected. This is scope, not a correctness guarantee.
Code graph · 46 functions depend on this change
  • 231 of 231 test files are affected by this change.
  • Gate, test list and every flagged function: in the Graphify check.

Reviewed c4f35bd

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@frankea
frankea merged commit 836488d into main Nov 30, 2026
16 checks passed
@frankea
frankea deleted the test/steam-orchestrator-patient-budgets branch November 30, 2026 03:10
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