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

オープン
#4,739 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go, kubernetes, prometheus

調査の方向性

Start by tracing how the controller handles runner exit code 7 and updates AutoscalingRunnerSet status to Outdated; inspect the related changes in #4652 and #4660. Then find where controller metrics and Kubernetes Events are registered, and how runner version information is available. Done means Outdated sets emit a Warning Event and phase metric, while version deprecation is recorded distinctly in status.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
6.7k
フォーク
1.5k
平均マージ
1時間 34分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

actions/actions-runner-controller のほかの issue

actions/actions-runner-controller の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。