Skip to content

fix(ci): cap example-test job at 45m to catch Windows runner hangs - #2298

Merged
zackees merged 1 commit into
masterfrom
fix-ci-example-test-timeout-45m
Apr 18, 2026
Merged

zackees merged 1 commit into
masterfrom
fix-ci-example-test-timeout-45m

Conversation

@zackees

@zackees zackees commented Apr 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Windows example_test runs have been hanging in the Install step for 3+ hours before the hosted runner eventually loses communication with the server (e.g. runs/24593311481).
  • Successful runs across Linux / macOS / Windows complete in 8-20 minutes, so a 45m timeout-minutes cap fails fast on hangs without risking false positives on healthy runs.
  • The edit is on template_example_test.yml, which is the shared workflow_call template used by example_test_linux.yml, example_test_macos.yml, and example_test_windows.yml, so the guard applies to all three OS matrices.

Context

The underlying hang appears to be in one of the ./install steps on Windows (uv sync / VSCode extension install via timeout 10 code ... which behaves differently under Windows timeout.exe, or unguarded git submodule update --remote for the wiki submodule). This PR is just the fail-fast guard; diagnosing/fixing the root cause of the Windows install hang is a follow-up.

Test plan

  • CI example-test workflow runs on Linux / macOS / Windows and the 45m cap does not trip healthy runs
  • If Windows hangs recur, the job now fails at 45m instead of burning 3h of runner time

Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Added timeout configuration to build job execution to improve workflow management.

Recent Windows example-test runs (e.g. runs/24593311481) have been
stuck in the Install step for 3+ hours before the runner eventually
loses communication with the server and the job is killed. Successful
runs complete in 8-20 minutes on all three OSes, so a 45m cap makes
the job fail fast on hangs without risking false positives on healthy
runs. This template is shared by the Linux / macOS / Windows example
workflows, so the guard applies everywhere.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 18, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 476d4d83-a269-4314-ac05-13d27c74bd4b

📥 Commits

Reviewing files that changed from the base of the PR and between d73789f and 4244ba4.

📒 Files selected for processing (1)
  • .github/workflows/template_example_test.yml

📝 Walkthrough

Walkthrough

Added a timeout-minutes: 45 configuration to the build job in a GitHub Actions workflow. This sets an explicit execution time limit for the job, preventing runs from exceeding 45 minutes instead of relying on the runner's default timeout. No functional changes to workflow steps.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/template_example_test.yml
Added job-level timeout-minutes: 45 to the build job to enforce a 45-minute maximum execution time for workflow runs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A timeout so clear, forty-five minutes fine,
No more endless loops or workflows that climb,
The build job now knows when to stop and rest,
With boundaries set, we're putting it to the test! ⏱️✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a 45-minute timeout cap to the example-test CI job to catch Windows runner hangs, which matches the PR objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-ci-example-test-timeout-45m

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 and usage tips.

@zackees
zackees merged commit 66332cf into master Apr 18, 2026
4 of 5 checks passed
@zackees
zackees deleted the fix-ci-example-test-timeout-45m branch April 18, 2026 05:45
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