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

Đang mở
#4,739 1 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go, kubernetes, prometheus
Lĩnh vực
devops, observability

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
6.7k
Fork
1.5k
Merge trung bình
1 giờ 34 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của actions/actions-runner-controller

Tất cả issue của actions/actions-runner-controller

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.