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] CI: cachix setup is missing - Nix package and environment: All jobs have failed #4994

Open
neteler opened this issue Jan 27, 2025 · 7 comments
Labels
bug Something isn't working CI Continuous integration
Milestone

Comments

@neteler
Copy link
Member

neteler commented Jan 27, 2025

Describe the bug

The "Nix package and environment workflow run" is failing with "Nix package and environment: All jobs have failed".

The temporarily created cachix setup (https://app.cachix.org/cache/osgeo-grass/settings/general) is no longer available as it was on my personal plan and close to exceed the free tier.
The original (temporary) setup was discussed in #3906.

In absence of a valid cachix token the CI currently fails with:

Run cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc
Cachix: installing
Cachix: checking version
Cachix: using cache osgeo-grass
  /home/runner/.nix-profile/bin/cachix use osgeo-grass
  
  Binary cache osgeo-grass doesn't exist or it's private and you need a token: Start by visiting https://app.cachix.org/ and create a personal/cache auth token.
  
  To configure the token:
  
  a) Via environment variable: 
  
  $ export CACHIX_AUTH_TOKEN=<token...>
  
  b) Via configuration file:
  
  /home/runner/work/_actions/cachix/cachix-action/ad2ddac53f961de1989924296a1f236fcfbaa4fc/dist/main/index.js:1702
                  error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
                          ^
  
  Error: The process '/home/runner/.nix-profile/bin/cachix' failed with exit code 1
      at ExecState._setResult (/home/runner/work/_actions/cachix/cachix-action/ad2ddac53f961de1989924296a1f236fcfbaa4fc/dist/main/index.js:1702:25)
      at ExecState.CheckComplete (/home/runner/work/_actions/cachix/cachix-action/ad2ddac53f961de1989924296a1f236fcfbaa4fc/dist/main/index.js:1685:18)
      at ChildProcess.<anonymous> (/home/runner/work/_actions/cachix/cachix-action/ad2ddac53f961de1989924296a1f236fcfbaa4fc/dist/main/index.js:1579:27)
      at ChildProcess.emit (node:events:519:28)
      at maybeClose (node:internal/child_process:1105:16)
      at ChildProcess._handle.onexit (node:internal/child_process:305:5)
  
  Node.js v20.18.0
  $ cachix authtoken <token...>

Next steps

We need to setup cachix at project (or OSGeo org?) repository level and update https://github.com/OSGeo/grass/blob/main/.github/workflows/test-nix.yml accordingly.

@neteler neteler added bug Something isn't working CI Continuous integration labels Jan 27, 2025
@neteler neteler added this to the 8.5.0 milestone Jan 27, 2025
@neteler
Copy link
Member Author

neteler commented Feb 3, 2025

@imincik @wenzeslaus @echoix others: any opinion here?

@imincik
Copy link
Contributor

imincik commented Feb 3, 2025

Looks to me that CACHIX_AUTH_TOKEN has expired . Free plan has the limit on amount of cached data and once this is reached it will start removing oldest or least used files. So this should not break the service.

@imincik
Copy link
Contributor

imincik commented Feb 3, 2025

Sorry, just reading #4967 (comment) which looks like my comment above is not right.

@neteler
Copy link
Member Author

neteler commented Feb 3, 2025

No, the (temporary) cachix setup no longer exists: see #4967 (comment). The original (temporary) setup was discussed in #3906.

@imincik
Copy link
Contributor

imincik commented Feb 3, 2025

@neteler did yoy receive something like this ?

"""
You've reached your storage limit of 5.00 GB.

You have two options:

a) Do nothing and least recently downloaded cache entries will be deleted to maintain your current storage limit.
See https://app.cachix.org/garbage-collection for details.

b) Upgrade your plan at https://app.cachix.org/billing
"""

If yes, I would choose option 'a'.

@neteler
Copy link
Member Author

neteler commented Feb 3, 2025

I'd like to see this set up to be independent of my personal account.

@imincik
Copy link
Contributor

imincik commented Feb 4, 2025

Please ping me if you need some help with migration to new binary cache setup. I'm happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI Continuous integration
Projects
None yet
Development

No branches or pull requests

2 participants