fix(ci): show the failed build attempt's exit code, and time-box each attempt

RA
17h ago
+18-4

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?

  1. A failed attempt now says why: its exit code, or that it timed out (warning on attempt 1, error on attempt 2).
  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 1attempt 2exitannotation
passes–0none
exits 3passes0warning: exited with code 3
exits 1exits 11warning, then error
exits 124passes0warning: exited with code 124
hangspasses0warning: timed out after 300s
hangshangs1warning, 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 each build-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.