remove runner is not working #183
Replies: 4 comments 5 replies
-
I would have expected a "Please enter your runner registration token" prompt in your example or an error message. It's technically prohibited by the GitHub Actions Service doing removal without an runner add/remove token (or a PAT then it is possible to fetch the other token), because jitconfig is just a base64 map of the runner registration including an rsa private key |
Beta Was this translation helpful? Give feedback.
-
Thank you for telling me that jitconfig removal is broken, need to debug this |
Beta Was this translation helpful? Give feedback.
-
In the latest Github's scaled sets, Controller only passes JITCONFIG to the runner. It doesn't quite make sense to pass both Registration token ( you can use registration token to remove) and JITCONFIG. we can register a runner using JITCONFIG's RSA private key, I think Github should allow doing the same for removal as well using RSA private key. Use case for doing this on the runner removal at runner side: k8s + karpenter will like to move the pods around to optimize for the cost savings. k8s sends a SIGTERM to us, and which we use wrapper script to capture and do config.sh remove and it's error code. We want the behaviour to be if it is just listening, we want it to terminated ( so that k8s will spin up new pod in another kubenode), and if it is running a job we want it to complete it in a reasonable configurable time. config.sh remove does the removal at the github side API level only if a job is not assigned. Why can't we do this runner removal by checking if it's running a job? There can be race conditions between the removal and a job being assigned. Because the API can have locking Data structure, and even without locking data structure doing the removal through API minimizes the race conditions. |
Beta Was this translation helpful? Give feedback.
-
Fixed the bug https://github.com/ChristopherHX/github-act-runner/releases/tag/v0.7.1, still needs It actually didn't remove any runner for ca. one year, due to an logic inversion in an if added a test |
Beta Was this translation helpful? Give feedback.
-
As per following
github-act-runner remove --help
, I can use jitconfig to remove the self hosted runner. But, It's not working if I use that, It just says success without any effect of removing the runner, and using trace doesn't give any information either. Isjitconfig
is only used for registering the runner but can't be used for removing the runner?Beta Was this translation helpful? Give feedback.
All reactions