fix(ci): show the failed build attempt's exit code, and time-box each attempt
Ā
RA
17h ago+18+18+01234567890123456789-4-4-0123456789
Issue for this PR
Closes #1694
Follow-up to #1823: the two non-blocking notes from its review, both in the release build step's retry.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
- A failed attempt now says why: its exit code, or that it timed out (warning on attempt 1, error on attempt 2).
- Each attempt gets 5 minutes, then 30s before a hard kill, and counts as timed out only if it ran that long. Builds take 12ā26s, so this only bites a hang: before, a hung attempt 1 ran into the job's 15-minute timeout and never got its retry; now attempt 2 still fits (the rest of the job took under 2 minutes in each of the last six releases).
It also fixes the matrix comment's out-of-date "~5 min each".
How did you verify your code works?
The step's script, extracted from the YAML, run under bash -e and -eo pipefail with a stub bun (shortened limits for hangs):
| attempt 1 | attempt 2 | exit | annotation |
|---|---|---|---|
| passes | ā | 0 | none |
| exits 3 | passes | 0 | warning: exited with code 3 |
| exits 1 | exits 1 | 1 | warning, then error |
| exits 124 | passes | 0 | warning: exited with code 124 |
| hangs | passes | 0 | warning: timed out after 300s |
| hangs | hangs | 1 | warning, then error: timed out |
Claims, residuals and Codex review log: https://github.com/AltimateAI/altimate-code/pull/1824#issuecomment-7103986211.
Cost side effects
None.
Screenshots / recordings
Not a UI change.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
- I checked for cost side effects (model calls, queries or cloud resources that grow with user data) and described them, or wrote "none"
š¤ Generated with Claude Code
https://claude.ai/code/session_01VEmKQv6E2XpAgL5eJE8RYi
Summary by cubic
Fixes the release build retry so a failed or hung first attempt actually gets retried instead of silently eating the job's timeout.
- Failed attempts now report the reason (exit code or timeout) as a warning on the first attempt and an error on the second.
- A timeout is reported only when the attempt ran its full 5-minute limit; a build that exits 124 on its own is reported as an exit code.
- Each attempt is capped at 5 minutes with a 30s kill grace, so a hung first attempt still leaves room for the retry inside the job's 15-minute limit.
- Corrects the out-of-date
~5 min eachbuild-time comment in the matrix.
Summary by CodeRabbit
- Chores
- Release builds now have a five-minute time limit and may retry once after a failure. Build failures report whether the attempt timed out or exited unsuccessfully, and the release job stops with an error if the retry also fails. These changes affect the release process; no end-user-facing product changes are included.