-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CD: Automate the activation of the self hosted runner #1128
Conversation
b2ac693
to
075d006
Compare
ea0697a
to
cb24cf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure it is a real problem, but i think its need to be looked at - i noticed while running the self hosted runner that its not kill itself after theres no tasks anymore, and then if try to rerun the runner while the previous task is still alive in the background its throwing errors.
So it might need a different approach - perhaps running just per specific task somehow, adding a kill command after runs finished or checking before re-running if a runner is already alive.
Do you have logs of these errors you were seeing? the runner knows how to handle multiple processes trying to activate it, and the only issue I saw was with EACCESS error while trying to checkout the repo, which this PR solves |
My issue was that for some reason it didn't recognize new tasks, so i ctrl+c thinking it will kill it, tried to rerun and got errors telling me that it already run, but still don't run new tasks. So i killed manually the process and started a new runner, which solve my issue. Please tag me if you response in a separate comment so ill get notified. |
@avifenesh |
.github/workflows/pypi-cd.yml
Outdated
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: you probably don't need the submodules.
.github/workflows/npm-cd.yml
Outdated
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
cb24cf4
to
7e7e158
Compare
7e7e158
to
bcc7f8b
Compare
In order to automatically activate the runner, we did:
https://github.com/machulav/ec2-github-runner/ haven't been used since it requires an org:admin access in order to generate a registration key for the runner, which
aws
org doesn't provide.Closes #656