Skip to content

[action-failure-repair] Raise timeout for extracted markdown sample typecheck test - #978

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
action-failure-repair/typecheck-test-timeout-0194643388faea9c
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
action-failure-repair/typecheck-test-timeout-0194643388faea9c

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Failed run

  • Run: https://github.com/githubnext/rig/actions/runs/46023779915 (CI, push, attempt 1, head f541997e121c4cf19489ffd686dc5c6022ce782e, 2026-11-27T15:18:49Z)
  • Job/step: build-test → "Typecheck extracted markdown rig samples" (npm run sample -- --testNamePattern="skill markdown samples typecheck")
  • Evidence (log excerpt):
    FAIL scripts/run-sample.test.ts > skill markdown samples typecheck > typechecks extracted rig programs with npx tsc
    Error: Test timed out in 5000ms.
    × typechecks extracted rig programs with npx tsc 5011ms
    
  • The previous successful push run (45834642203) completed the same test in 4107ms, i.e. ~0.9s below vitest's default 5000ms limit. No newer successful/in-progress CI run exists on main, so the failure is not superseded.

Diagnosis

The test runs npx tsc over ~666 extracted samples but relies on vitest's default 5s test timeout. As the sample catalog grows, runtime sits right at the limit (4.1s → >5s), so it fails on a slower runner. Nothing in the source is wrong; the test's time budget is too tight.

Change

scripts/run-sample.test.ts: give that single test an explicit 120s timeout (TYPECHECK_TIMEOUT_MS, matching the 120s convention in scripts/haiku.integration.test.ts). No assertions, samples, or CI steps changed.

Prior repair feedback

Recent repair PRs #935 and #938 (both merged) were unrelated (lint, model name); nothing rejected to avoid repeating.

Validation

npm ci failed in the checkout (self-signed certificate against the repo-configured registry), so validation ran in a scratch copy of HEAD with this change, installed without the repo .npmrc/lockfile (dependency versions may differ slightly from the lockfile):

  • npm run sample -- --testNamePattern="skill markdown samples typecheck" → pass (3.0s)
  • npm run typecheck → pass
  • npm run lint → pass
  • npm run sample:check → pass (724 samples)
  • npm test not run (change only touches the sample test file; npm test covers src/ only).

The 5s failure itself could not be reproduced locally (runs in ~3s here), consistent with a runner-speed flake near the limit. No .lock.yml files touched; no maintainer action needed.

Generated by Action Failure Repair · copilot · routed: sonnet55 high · ~51 AIC · ⌖ ~2 AIC · ⊞ 4.7K · history

  • expires on Dec 5, 2026, 2:23 AM UTC

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.

0 participants