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

[Bug]: Nix installation failures on self-hosted GitHub runners #1940

Closed
2 tasks done
platten opened this issue Jun 1, 2022 · 1 comment
Closed
2 tasks done

[Bug]: Nix installation failures on self-hosted GitHub runners #1940

platten opened this issue Jun 1, 2022 · 1 comment
Assignees
Labels
bug Something isn't working debt Issues to deal with later discussion This requires discussion before action can be taken infrastructure General issues around project infrastructure release Release related triage Issues that need to be triaged.

Comments

@platten
Copy link
Contributor

platten commented Jun 1, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Current Behaviour

The release.yml workload is routinely failing on the cachix/install-nix-action step due to previous state on self-hosted GitHub runners and requires routine manual intervention. This is not sustainable and has blocked support for ARM64 based runners #1931 and necessitated #1936

Expected Behaviour

cachix/install-nix-action should be more resilient and support cleanup/uninstall after executing the job.

There may be three ways of addressing this:

  1. Fix Nix/cachix-install-nix-action to work well on self-hosted runners. I've taken a stab at this, but I'm a bit out of my depth and will require @rvolosatovs insight to resolve this. Preferably we would like to clean up between runs for this.
  2. Remove Nix from the equation (my preferred approach). This isn't that much work and is straight forward.
  3. Make self-hosted runners stateless. This may require us to move over to docker-ized runners running in K8s and managed by something like actions runner controller or github actions runner operator. While I'm afraid that this is the right long term strategy, it will be quite a heavy lift.

Environment Information

All self-hosted runners affected. Including self-hosted aarch64-ubuntu and aarch64-darwin runners.

Steps To Reproduce

No response

@platten platten added bug Something isn't working infrastructure General issues around project infrastructure debt Issues to deal with later discussion This requires discussion before action can be taken triage Issues that need to be triaged. release Release related labels Jun 1, 2022
@rvolosatovs
Copy link
Member

Refs cachix/install-nix-action#98 (please check the thread for possible solutions, if any)

@rvolosatovs rvolosatovs changed the title [Bug]: Nix failures on self-hosted GitHub runners [Bug]: Nix installation failures on self-hosted GitHub runners Jun 1, 2022
@platten platten closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working debt Issues to deal with later discussion This requires discussion before action can be taken infrastructure General issues around project infrastructure release Release related triage Issues that need to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants