Skip to content

Surface the Outdated phase, and tell a runner version deprecation apart from a rejected spec #4739

Open

Description

@srgvg

What happens

When GitHub deprecates a runner version, the runner exits 7 and the AutoscalingRunnerSet goes
Outdated. On 0.14.1 that deleted the scale set. On 0.15.x (#4652, #4660) it is switched off
until the runner spec changes, which is better. Two gaps remain:

  1. Nothing signals it. The controller records no Kubernetes Event, exports no metric for the
    phase, and the listener (the source of the gha_* metrics) is stopped. Jobs for the label
    queue without any error. We found two outages only when users reported stuck jobs, days later.
  2. A version deprecation looks the same as a rejected spec. The recovery differs: for a
    deprecation, the fix is a newer actions-runner image, and the spec was valid the day before.

Request

  • Record a Warning Event on the AutoscalingRunnerSet when it enters Outdated, and expose its
    phase as a controller metric (for example gha_autoscaling_runner_set_phase{phase}).
  • Carry the reason in status, for example a condition with reason RunnerVersionDeprecated and
    the runner version, when exit code 7 comes from a version deprecation.

Workaround

kube-state-metrics custom resource metrics on status.phase, plus an alert on
phase != Running for 10 minutes.

Controller and chart 0.14.1. Behavior checked against the 0.15.1 source.

Activity

  1. github-actions commented on Nov 6, 2026

    @github-actions
    Contributor

    Hello! Thank you for filing an issue.

    The maintainers will triage your issue shortly.

    In the meantime, please take a look at the troubleshooting guide for bug reports.

    If this is a feature request, please review our contribution guidelines.

  2. Ryan02I5 commented on Nov 24, 2026

    @Ryan02I5

    One addition that would let the warning come before the outage rather than after it.

    GitHub already publishes the cutoff dates for a runner version: GET /orgs/{org}/actions/runners/deprecations/{version} returns registration_deprecates_at and runtime_deprecates_at (for a current version both are null; for an older one runtime_deprecates_at is set). Per the GitHub App permissions reference, it accepts installation tokens with the organization "Self-hosted runners" read permission, which an org-level ARC GitHub App already holds.

    If the controller looked up the runner version of a scale set and exposed runtime_deprecates_at (a status field or a gauge such as a seconds-until-deprecation metric), users could alert weeks ahead and update the image before exit code 7. Without it, the only way we found to get an early warning is a scheduled workflow that compares the deployed runner version with the actions/runner releases and assumes the documented 63-day window.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions