cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
526 stars 80 forks source link

occasional failures during setup #91

Closed cpcloud closed 2 years ago

cpcloud commented 3 years ago

I am seeing some (seemingly infrequent) errors during the setup of nix: https://github.com/ibis-project/ibis/runs/3497522732

image

I'm not sure what's happening here, but I've seen a similar error that also occurred today: https://github.com/cpcloud/ibis/runs/3496144019

image

cpcloud commented 3 years ago

Saw another strange failure: https://github.com/cpcloud/ibis/runs/3500901151?check_suite_focus=true

image

domenkozar commented 3 years ago

The first error is most likely a networking issue, not sure there's an easy fix.

The second error is https://github.com/NixOS/nix/issues/3605

The last error is likely a bug in your code, you're importing <nixpkgs> while expecting to use a channel syntax.

CohenCyril commented 3 years ago

The first error is most likely a networking issue, not sure there's an easy fix.

I'm having this one a lot. Isn't it possible to detect network failures and retry? (with a configurable number of attempts) (e.g. https://github.com/coq-community/coq-nix-toolbox/runs/4052073223?check_suite_focus=true#step:4:17)

domenkozar commented 3 years ago

@CohenCyril how often does it happen? I could provide a script to debug and see what's going on, but it seems like the output gets cut prematurely.

CohenCyril commented 3 years ago

@CohenCyril how often does it happen? I could provide a script to debug and see what's going on, but it seems like the output gets cut prematurely.

Our piplines are getting big now (5 * 80ish jobs), and every day I need to relaunch at least one or two pipelines (github actions provides no way to retry individual jobs so I need to restart a full pipeline every time this happens) because of this particular error.

domenkozar commented 3 years ago

@CohenCyril could you try using https://github.com/cachix/install-nix-action/pull/105 and let's see if and how it breaks?

CohenCyril commented 2 years ago

@CohenCyril could you try using #105 and let's see if and how it breaks?

I will try. Thanks.

domenkozar commented 2 years ago

The first error is fixed, the rest are either Nix bugs or bugs in user code. Thanks for the report!