Skip to content

⏱️ Bound search-test CI runtime so a stuck install can't hang for hours#345

Closed
joshbermanssw wants to merge 2 commits into
mainfrom
fix/search-test-ci-timeout
Closed

⏱️ Bound search-test CI runtime so a stuck install can't hang for hours#345
joshbermanssw wants to merge 2 commits into
mainfrom
fix/search-test-ci-timeout

Conversation

@joshbermanssw

Copy link
Copy Markdown
Member

TL;DR

The search-tests job has no timeout, so when "Install Playwright browsers" hung today it sat in_progress for ~2 hours (GitHub's 6h default before auto-fail), leaving the PR check stuck pending. This adds a 15-minute job timeout and an 8-minute cap on the install step so a hang fails fast instead of blocking PRs for hours.

Why

Three runs today (across PR #342 and #343, unrelated branches) all froze on the same install step while every prior run finished in minutes — a stuck infra step, not a test failure. With no timeout-minutes, GitHub lets it run up to 6h before failing, so the check never goes red in any useful timeframe.

How

  • timeout-minutes: 15 on the test-search job.
  • timeout-minutes: 8 on the "Install Playwright browsers" step, so the most likely hang point fails first with a clear cause.

The install command is unchanged — it has worked in every prior run, so this is purely a guardrail, not a behavior change.

Tests

Config-only change; validated by the next deployment_status-triggered run completing (or failing fast) within the new bounds.

The search-tests job had no timeout, so when the "Install Playwright
browsers" step hung it sat in_progress for ~2h (GitHub's 6h default before
auto-fail), holding the PR check pending. Add a 15-min job timeout and an
8-min cap on the install step so a hang fails fast and visibly instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tina-docs Ready Ready Preview, Comment Jun 19, 2026 2:52am

Request Review

…ut + retry

The install step wedges intermittently when `--with-deps` blocks on the
runner's apt/dpkg lock. A plain retry can't help because a hang is not a
non-zero exit. Wrap each attempt in `timeout 180` so a stuck apt is killed,
then retry up to 3 times to ride out the transient lock — all inside the
existing 8-minute step budget.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joshbermanssw

Copy link
Copy Markdown
Member Author

Superseded by #346, which includes this CI hang fix alongside the search.tsx fix.

@joshbermanssw joshbermanssw deleted the fix/search-test-ci-timeout branch June 19, 2026 02:54
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