CI: suspend needrestart instead of letting it restart the runner #77

Merged
jknapp merged 1 commits from ci/needrestart-suspend into main 2026-11-14 03:39:15 +00:00
Owner

On the ephemeral host-mode runner eph-pve3-112, NEEDRESTART_MODE=a (added in #68 to stop the interactive prompt) made needrestart restart act-runner.service itself during the "Install Node.js 22" apt step. That killed PR #76's build-linux job (run 5217, signal: terminated); a rerun passed.

Change

In build-app.yml and build-app-preview.yml, at the workflow level and in every sudo env … apt-get:

  • NEEDRESTART_SUSPEND=1 skips needrestart entirely.
  • NEEDRESTART_MODE=l (list only) replaces a. It's a fallback that never prompts and never restarts anything, in case a runner's needrestart ignores SUSPEND.

No other workflow runs apt.

Testing

  • Both files parse as YAML, and no NEEDRESTART_MODE=a is left.
  • This PR's own preview run exercises the apt steps. One green run doesn't prove much, because it depends on which runner picks up the job.

🤖 Generated with Claude Code

On the ephemeral host-mode runner `eph-pve3-112`, `NEEDRESTART_MODE=a` (added in #68 to stop the interactive prompt) made needrestart **restart `act-runner.service` itself** during the "Install Node.js 22" apt step. That killed PR #76's build-linux job (run 5217, `signal: terminated`); a rerun passed. ## Change In `build-app.yml` and `build-app-preview.yml`, at the workflow level and in every `sudo env … apt-get`: - `NEEDRESTART_SUSPEND=1` skips needrestart entirely. - `NEEDRESTART_MODE=l` (list only) replaces `a`. It's a fallback that never prompts and never restarts anything, in case a runner's needrestart ignores SUSPEND. No other workflow runs apt. ## Testing - Both files parse as YAML, and no `NEEDRESTART_MODE=a` is left. - This PR's own preview run exercises the apt steps. One green run doesn't prove much, because it depends on which runner picks up the job. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jknapp added 1 commit 2026-11-13 22:32:00 +00:00
CI: suspend needrestart instead of letting it restart services
Secret Scan / scan (push) Successful in 11s
Build App (Preview) / compute-version (pull_request) Successful in 13s
Secret Scan / scan (pull_request) Successful in 1m15s
Build App (Preview) / create-release (pull_request) Successful in 6s
Build App (Preview) / build-macos (pull_request) Successful in 3m36s
Build App (Preview) / test (pull_request) Successful in 9m14s
Build App (Preview) / build-linux (pull_request) Successful in 6m2s
Build App (Preview) / build-windows (pull_request) Successful in 6m28s
Build App (Preview) / prune-previews (pull_request) Successful in 4s
74deabd630
On a host-mode ephemeral runner (eph-pve3-112), NEEDRESTART_MODE=a made
needrestart restart act-runner.service during an apt-get install, which
killed the build-linux job (PR #76, run 5217). Skip needrestart entirely
with NEEDRESTART_SUSPEND=1, and fall back to list-only mode (l), which
never prompts and never restarts anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jknapp merged commit cb9e51f08d into main 2026-11-14 03:39:15 +00:00
jknapp deleted branch ci/needrestart-suspend 2026-11-14 03:39:18 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CyberCoveLLC/Triple-C#77