-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
flake/generate-files: move most assertions to check
derivation
#1956
Conversation
What commit prefix should we be using for the update/gen-files stuff? It seems we've been somewhat inconsistent... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me at this point.
For the commit prefix, I would go with flake/generate-files
ea33814
to
7fea20d
Compare
This moves most assertions out of generate-files and into a check derivation. This should allow the CI to finish, even when there are issues. This also properly tests efmls, which was only checked partially before. rust-analyzer is not covered because the existing assertions relate more to edge-cases not handled by the generation script than the result it builds.
Running `nix fmt` is unnecessary in this case.
7fea20d
to
3789c69
Compare
@GaetanLepage I've dismissed your approval since I've updated the implementation. Thanks for your early review though! I've also tested that the update action is able to run on this branch: https://github.com/MattSturgeon/nixvim/actions/runs/10178853612 I've tested the test itself by adding/removing random entries from the none-ls/efmls package declaration files, and everything seems correct:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still good to me !
check
derivationcheck
derivation
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 3789c69 |
Move the none-ls and efmls assertions out of the generation scripts and into a separate "test" derivation run by
nix flake check
and buildbot.I didn't move the rust-analyzer assertions since they seem more related to the generation script itself, rather than the output it produces.
I've also made some other improvements to the generation script, such as using nixfmt directly and passing all derivations in via string context instead of calling
nix build
multiple times.I'll probably go over this again in the daytime since I think the test derivation can be simplified further.