Files
callstack__agent-device/.github/workflows/linux.yml
Michał Pierzchała e65443d774 ci: bound the Linux apt install so a stalled mirror fails fast (#1887)
Unbounded, the desktop-dependency install could not fail, only stall. On
2026-08-19 a slow package mirror held apt past the job's 30-minute budget on
four main-branch runs and several unrelated PRs, cancelling each job before
Setup toolchain, Xvfb/D-Bus, or the replay smoke test ran — a red check on
branches that never executed a line of project code.

timeout-minutes: 6 turns that into a named step failure in six minutes
instead of a cancelled job at thirty; a healthy install takes about a minute.
The apt options cover the transient cases without a retry loop layered on top
of them: socket timeouts bound a mirror that connects and then goes quiet,
Acquire::Retries absorbs a blip, and DPkg::Lock::Timeout bounds the runner's
own unattended-upgrades timer, which stalls identically and is a plausible
alternate cause of the same symptom.

Tradeoff: a fast transient failure that apt's own retries miss now fails the
job rather than self-healing, traded against carrying a bash retry loop in CI.
2026-08-20 11:01:01 +02:00

5.2 KiB