-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Build failure: nix-format-unstable build can fail on GH checks #301268
Comments
Thank you for the report @a-n-n-a-l-e-e! @infinisil my thoughts on way(s) forward are:
Is there precedent for a way to pin or cache tools used as part of CI (like Cachix)? |
CC'ing a few more people who followed #299578. You might find this interesting or have ideas. I suspect adding more tooling or checks to Nixpkgs via workflows will run into similar issues! @SomeoneSerge @samuela @piegamesde @philiptaron @gabyx @dasJ |
We did that with
Solves this specific problem. Here's the |
Let's start by pinning some commit from nixos-unstable? This suggests some further optimizations, like getting nixfmt into the github runners' own hot cache? |
Yeah pinning it to a Nixpkgs commit sounds like a good idea. We're not ready for an official stable release, but once we are we could consider doing the release artifact thing instead. |
how about disabling the test in the meantime? i have a PR to disable the flaky test causing the build to fail, but to build on stating is taking a long time (113 minutes) to just run the format checks on files changed that aren't covered by the format checker. https://github.com/NixOS/nixpkgs/actions/runs/8542206020/job/23403346673?pr=301285 |
Takes the same number of LOC to set NIX_PATH 😆 |
revert takes 2 clicks. |
@a-n-n-a-l-e-e #301310 should hopefully suffice |
Steps To Reproduce
commit d94495d added
check-nix-format.yml
https://github.com/NixOS/nixpkgs/actions/runs/8540287690/job/23396972473
the new check-format GH job needs to rebuild lots of stuff when run on staging and its dependencies seem to be flaky, causing the test to fail.
Build log
https://github.com/NixOS/nixpkgs/actions/runs/8540287690/job/23396972473
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.@ConnorBaker
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: