Skip to content

nRF52840 jobs hit ~2h GH runner shutdown after PR #2654 LTO disable — compile succeeds but workflow fails #2657

Closed

Description

@zackees

Symptom

Two consecutive nRF52840 workflow runs at master @ a302c1b (post PR #2654 LTO-disable fix) show the same end-state:

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

  1. 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.
  2. 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.
  3. uv venv cleanup during Optimization Report interacts 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 a weekly_size_audit workflow. Eliminates the slow tail entirely from per-push runs.
  • Re-enable selective LTO: instead of -fno-lto globally, 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

Activity

  1. zackees commented on Jun 3, 2026

    @zackees
    MemberAuthor

    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.yml has multiple recent successful completed runs, including runs 26856581396 and 26843986727.
    • build_nrf52840_supermini.yml has 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.

  2. moved this from Triage to Done in FastLED Trackeron Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions