Repository navigation
Description
Symptom
Two consecutive nRF52840 workflow runs at master @ a302c1b (post PR #2654 LTO-disable fix) show the same end-state:
- nrf52840_dk 26705682324 —
completed/failure - nrf52840_supermini 26705682359 —
completed/failure
Every compile step succeeded — every example built, Symbol Analysis ran clean:
Symbol analysis completed successfully!
The job failed at the GH Actions runner level at the 2h mark:
##[error]The runner has received a shutdown signal. This can happen
when the runner service is stopped, or a manually started runner
is canceled.
##[error]The operation was canceled.
The Optimization Report step had an empty conclusion (killed mid-execution); subsequent housekeeping steps never ran. Net: all the actual work succeeded but the post-build tail of the workflow runs past whatever soft limit GH-hosted ubuntu runners enforce at ~2h.
Why now?
PR #2654 disabled LTO on three Adafruit-BSP nRF52840 boards (nrf52840_dk, nrf52840_supermini, adafruit_feather_nrf52840_sense) to dodge the arm-gnu 15.2.rel1 LTO offset-overflow bug. That fix is structurally correct — the compile path is clean, every example builds. But without LTO, per-TU compile time roughly doubles (more code generated, no link-time dead-strip), pushing the cold-runner build set from ~50 min to ~120 min. Combined with cold-start fbuild platform-package install + Adafruit BSP install (~30s each), the total wall time crosses the runner's soft eviction threshold during the slow post-build steps (Symbol Analysis, Optimization Report, ci/optimization_report.py).
PR #2655 capped Symbol Analysis + Optimization Report at 5 min each, but the runner is dying during/after Optimization Report anyway.
Hypotheses
- GH-hosted ubuntu runners have a 2h soft eviction: undocumented spot-style behavior that kills jobs around the 2h mark. Plausible — multiple runs show identical termination signatures at very close to 2h elapsed.
- fbuild-daemon orphan-process termination at job end: the post-build steps trigger fbuild-daemon teardown, which might be killing the runner. Less likely — other long-running jobs don't see this.
- uv venv cleanup during
Optimization Reportinteracts with the shutdown signal: uv runs through every post-build step and its cache touch in a long-running job might race something.
Fix ideas (each is a separate possible PR)
- Smaller build set for nRF52840-no-LTO boards: instead of
all, use a curated subset (AnalogOutput,Blink,Apa102, …) that covers the chipset matrix in < 60 min. Cuts cold-runner job time below the eviction threshold. - Split the build into two jobs: matrix split (
examples_first_half/examples_second_half) so each job stays under 90 min. Adds 2x cache restore but each job survives the runner eviction. - Move Symbol Analysis + Optimization Report off the hot path: gate them behind
if: github.ref == 'refs/heads/master' && fromJSON(...)or run them only on aweekly_size_auditworkflow. Eliminates the slow tail entirely from per-push runs. - Re-enable selective LTO: instead of
-fno-ltoglobally, split TUs so only the offending modules get-fno-lto. Requires investigation of which specific TUs trip the overflow.
Why filing without a PR
Each of the fixes above is a workflow/build-system restructure that requires explicit owner buy-in (changing what all means for a board, splitting matrix jobs, gating slow checks behind a separate workflow). Not a one-line fix.
For now, PR #2654's LTO disable is structurally correct — the underlying compile bug is gone, and the only remaining failure mode is the post-build CI infrastructure tail. Re-running the workflows occasionally succeeds (GH eviction isn't deterministic), which provides some signal that the build does work.
Related
- build: nRF52840 Adafruit-BSP LTO link failure — "offset out of range" in arm-gnu 15.2.1 LTO #2641 / PR ci(nrf52): disable LTO on xiaoblesense_adafruit to dodge arm-gnu 15.2 LTO bug #2642 — original arm-gnu 15.2 LTO disable for xiaoblesense_adafruit
- nrf52_xiaoblesense build red: variant.h not found (sister-board to #2634) #2643 / PR fix(nrf52): unbreak xiaoblesense (no-suffix) — variant.h not found (fixes #2643) #2644 — same fix for xiaoblesense (sister board)
- nrf52840_dk / adafruit_feather_nrf52840_sense / nrf52840_supermini red: arm-gnu 15.2 LTO offset overflow #2653 / PR fix(nrf52840): disable LTO on three Adafruit-BSP boards (arm-gnu 15.2 bug) (fixes #2653) #2654 — same fix for nrf52840_dk / supermini / adafruit_feather
- PR ci(build_template): cap Symbol Analysis + Optimization Report at 5 min #2655 — Symbol Analysis + Optimization Report 5-min caps
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 3, 2026
Closing because the runner-duration symptom no longer reproduces on the affected nRF52840 workflows after the merged CI fixes.
Verified current workflow evidence on 2026-06-03:
build_nrf52840_dk.ymlhas multiple recent successful completed runs, including runs 26856581396 and 26843986727.build_nrf52840_supermini.ymlhas multiple recent successful completed runs, including runs 26856581266 and 26843987658.Those runs completed after the #2654 LTO workaround and the #2655 post-build analysis timeout change, so the old ~2h runner-shutdown failure is no longer active.