Skip to content

Conversation

@Hasnep
Copy link
Contributor

@Hasnep Hasnep commented May 9, 2025

Headscale is open to code contributions for bug fixes without discussion.

Hopefully this counts as a bug fix 😅 If not, I'm happy to close the PR and discuss the change :)

The DeterminateSystems/magic-nix-cache-action action has been deprecated and no longer works. This PR replaces it with the nix-community/cache-nix-action action, which is actively maintained. It also replaces the DeterminateSystems/nix-installer-action action with the nixbuild/nix-quick-install-action action, which is required for the cache action to work. The cache has been configured to restore based on the runner's OS and architecture, so it should work on any runner.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

@ghost
Copy link

ghost commented May 9, 2025

Pull Request Revisions

RevisionDescription
r1
GitHub Actions Nix Actions UpdatedReplaced DeterminateSystems Nix actions with alternative nixbuild and nix-community actions, added caching configuration with primary key and restore prefix.

✅ AI review completed for r1
Help React with emojis to give feedback on AI-generated reviews:
  • 👍 means the feedback was helpful and actionable
  • 👎 means the feedback was incorrect or unhelpful
💬 Replying to feedback with a comment helps us improve the system. Your input also contributes to shaping future interactions with the AI reviewer.

We'd love to hear from you—reach out anytime at [email protected].

Comment on lines +38 to +40
with:
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache keys in the new nix-community/cache-nix-action configuration use hashFiles('**/*.nix', '**/flake.lock') which might be more restrictive than needed. Have you considered whether this might lead to more cache misses compared to the previous setup? The previous magic-nix-cache-action might have used different cache key strategies.

@kradalby
Copy link
Collaborator

I think you missed the update nix workflow, can you have a look at that?

@kradalby kradalby merged commit b8044c2 into juanfont:main May 26, 2025
146 checks passed
@kradalby
Copy link
Collaborator

I think you missed the update nix workflow, can you have a look at that?

We should do a follow up here. Merged because jobs broke on my drafts prs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants