Commit 151eda0
committed
Add randomized suffix to runner names
BPF CI runners went down recently due to a problem caused by "Runner
not found" error returned from a github broker service [1].
It appears that this error may be triggered by the fact that runner
names are reused for "different" runners from the perspective of
github. In BPF CI we use ephemeral runners which re-register every
time a corresponding runner container is restarted.
Whatever the root cause, a working mitigation is to use unique runner
names. Fortunately, entrypoint.sh [1] already has the logic of
generating a random suffix, and we only need to set relevant
environment variables.
Additionally, set RestartPreventExitStatus=199 in the runner systemd
service to prevent error looping in case we run out of tokens [2].
[1] https://github.com/myoung34/docker-github-actions-runner/blob/2.323.0/entrypoint.sh
[2] kernel-patches/runner#75
Signed-off-by: Ihor Solodrai <[email protected]>1 parent 6c34600 commit 151eda0
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
0 commit comments