Skip to content

CI: Tighten unit test timeout to 5 minutes#2430

Merged
yuandrew merged 4 commits into
mainfrom
tighten-unit-test-timeout
Jul 6, 2026
Merged

CI: Tighten unit test timeout to 5 minutes#2430
yuandrew merged 4 commits into
mainfrom
tighten-unit-test-timeout

Conversation

@yuandrew

@yuandrew yuandrew commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What was changed

Set individual test package timeout to 5 minutes

Why?

When unit tests hang, they hang for the full 15 minutes, which makes CI times go an extra 10+ minutes before failing. From Codex's search of the last 50 runs on main, the longest package test took less than 3 minutes. So a 5 minute cutoff seems okay.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

Note

Low Risk
CI-only timeout tuning for unit tests; no production or application logic changes. The only risk is a legitimately slow unit package failing sooner than before.

Overview
Reduces the per-package go test timeout from 15 minutes to 5 minutes in the internal build runner’s unit-test loop (internal/cmd/build/main.go).

The goal is faster CI failure when a package hangs, based on recent main-branch runs where package tests stayed under ~3 minutes. Integration tests are unchanged and still use a 15-minute timeout.

Reviewed by Cursor Bugbot for commit 420d4c5. Bugbot is set up for automated code reviews on this repo. Configure here.

@yuandrew yuandrew marked this pull request as ready for review July 2, 2026 18:23
@yuandrew yuandrew requested a review from a team as a code owner July 2, 2026 18:23
@yuandrew yuandrew added the skip-changelog PR changes do not require changelog updates label Jul 6, 2026
@yuandrew yuandrew merged commit 2a0fac5 into main Jul 6, 2026
64 of 67 checks passed
@yuandrew yuandrew deleted the tighten-unit-test-timeout branch July 6, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog PR changes do not require changelog updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants