actions-runner-controller/controllers
Yusuke Kuoka b09c54045a
Prevent runners from stuck in Terminating when pod disappeared without standard termination process (#1318)
This fixes the said issue by additionally treating any runner pod whose phase is Failed or the runner container exited with non-zero code as "complete" so that ARC gives up unregistering the runner from Actions, deletes the runner pod anyway.

Note that there are a plenty of causes for that. If you are deploying runner pods on AWS spot instances or GCE preemptive instances and a job assigned to a runner took more time than the shutdown grace period provided by your cloud provider (2 minutes for AWS spot instances), the runner pod would be terminated prematurely without letting actions/runner unregisters itself from Actions. If your VM or hypervisor failed then runner pods that were running on the node will become PodFailed without unregistering runners from Actions.

Please beware that it is currently users responsibility to clean up any dangling runner resources on GitHub Actions.

Ref https://github.com/actions-runner-controller/actions-runner-controller/issues/1307
Might also relate to https://github.com/actions-runner-controller/actions-runner-controller/issues/1273
2022-04-08 10:17:33 +09:00
..
metrics Clean up import list (#645) 2021-06-22 17:55:06 +09:00
testdata test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
autoscaling.go Remove legacy GitHub API cache of HRA.Status.CachedEntries (#1192) 2022-03-08 19:05:43 +09:00
autoscaling_test.go Remove legacy GitHub API cache of HRA.Status.CachedEntries (#1192) 2022-03-08 19:05:43 +09:00
constants.go Prevent static runners from terminating due to unregister timeout 2022-03-13 07:26:36 +00:00
horizontal_runner_autoscaler_webhook.go Merge branch 'master' into improve-logs 2022-02-28 09:25:30 -08:00
horizontal_runner_autoscaler_webhook_on_check_run.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_pull_request.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_on_push.go Update go-github from v37 -> v39 (#925) 2021-12-11 21:43:40 +09:00
horizontal_runner_autoscaler_webhook_test.go test: Add tests with self-hosted label for #953 (#1030) 2022-01-07 08:50:26 +09:00
horizontalrunnerautoscaler_controller.go Remove legacy GitHub API cache of HRA.Status.CachedEntries (#1192) 2022-03-08 19:05:43 +09:00
integration_test.go Prevent static runners from terminating due to unregister timeout 2022-03-13 07:26:36 +00:00
pod_runner_token_injector.go refactor: use const envvars (#1251) 2022-03-27 12:14:56 +01:00
runner_controller.go Prevent runners from stuck in Terminating when pod disappeared without standard termination process (#1318) 2022-04-08 10:17:33 +09:00
runner_graceful_stop.go Fix externally deleted runner pod to not block unregistration process 2022-03-13 12:15:49 +00:00
runner_pod_controller.go Use container name to detect runner container in Pod 2022-03-23 12:39:58 +01:00
runner_pod_owner.go Fix runners to not terminate before unregistration when scaling down 2022-03-13 13:09:46 +00:00
runnerdeployment_controller.go Let runnerdeployment controller log runnerreplicaset creation 2022-03-13 12:25:53 +00:00
runnerdeployment_controller_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
runnerreplicaset_controller.go fix: Let RunnerDeployment scale RunnerReplicaSet to zero before terminating it 2022-03-13 12:18:22 +00:00
runnerreplicaset_controller_test.go refactor: Make RunnerReplicaSet and Runner backed by the same logic that backs RunnerSet 2022-03-06 05:53:26 +00:00
runnerset_controller.go refactor: Make RunnerReplicaSet and Runner backed by the same logic that backs RunnerSet 2022-03-06 05:53:26 +00:00
schedule.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
schedule_test.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
suite_test.go Clean up import list (#645) 2021-06-22 17:55:06 +09:00
utils.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00
utils_test.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00