Surface the Outdated phase, and tell a runner version deprecation apart from a rejected spec
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, go, kubernetes, prometheus
- Ambito
- devops, observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Nothing signals it. The controller records no Kubernetes Event, exports no metric for the
phase, and the listener (the source of thegha_*metrics) is stopped. Jobs for the label
queue without any error. We found two outages only when users reported stuck jobs, days later. - A version deprecation looks the same as a rejected spec. The recovery differs: for a
deprecation, the fix is a neweractions-runnerimage, 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 examplegha_autoscaling_runner_set_phase{phase}). - Carry the reason in status, for example a condition with reason
RunnerVersionDeprecatedand
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.
- Lingua principale
- Go
- Stelle
- 6.7k
- Fork
- 1.5k
- Merge medio
- 1h 34m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di actions/actions-runner-controller
-
community enhancement needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
actions/actions-runner-controller#3997 · 9 commenti · 27 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
gha-runner-scale-set: support Google Cloud Secret Manager as a vault for GitHub credentialsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacommunity enhancement needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
actions/actions-runner-controller#4737 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Controller upgrade cancels jobs that started shortly before their runner set is deletedForse di nuovo libera @ankit373 l’ha presa 9 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
actions/actions-runner-controller#4736 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
EphemeralRunnerSet controller creates more runners than `spec.replicas` when its cache lags its own createsForse già presa @jia-pylon l’ha presa 14 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
actions/actions-runner-controller#4734 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
EphemeralRunnerSet creates more EphemeralRunners than `spec.replicas` on scale up (stale cache, no create expectations)Forse già presa @yaronr l’ha presa 29 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
actions/actions-runner-controller#4722 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di actions/actions-runner-controller
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mozilla-ai/cq#601 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno