Skip to content
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

Self-hosted runners on GitHub Actions loses connection before job completion #133

Closed
raisedadead opened this issue Jan 7, 2022 · 1 comment
Assignees

Comments

@raisedadead
Copy link
Member

raisedadead commented Jan 7, 2022

We want to build and deploy news builds with GitHub Actions and self-hosted runners. This is so that we can guarantee that runners are available and we do not wait on GitHub to provision free runners, which we use for other things like CI tests, etc.

We have implemented such a setup, with our localized versions of the JAMStack news. That is, we use auto-scalable self-hosted runners on AWS (spot instances), to handle our build workloads for those instances.

However, we have been seeing issues where a self-hosted runner loses connection with GitHub's backend. The setup details are available in our staff-wiki:

🔒 - https://staff-wiki.freecodecamp.org/docs/flight-manuals/self-hosted-runners#runners-on-aws-on-aws

Here is a failed run: https://github.com/freeCodeCamp/news/actions/runs/1641250226

Other implementations are seeing the same issues as us: actions/actions-runner-controller#466

As a troubleshooting measure, we even deployed an always available runner on Azure instead and got the same failures.

As a workaround, we moved to use Azure Pipelines (which we can guarantee to have runners available, because of our low usage on that platform). A self-hosted runner on Azure Pipelines will work fine, but it's a tedious process to set up.

Really looking forward to a sane way of using self-hosted runners with English builds.

@freeCodeCamp freeCodeCamp locked and limited conversation to collaborators Jan 7, 2022
@raisedadead raisedadead self-assigned this Jan 7, 2022
@raisedadead
Copy link
Member Author

Seems to be fixed. Only took 2 years and we dont know what fixed it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant