-
-
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
seaweedfs: add version check to passthru.tests #119636
Conversation
Would it be easy to test actually functionality? |
No ;) Converting to draft because nix-community/nixpkgs-update#260 (comment) mentioned |
ec0b947
to
278b553
Compare
2275b5d
to
de34b2f
Compare
Updated to use |
Result of |
let's discuss whether this check belongs in installCheckPhase or in passthru.tests in #119731 (comment) first |
Me, too - but I figured I'd first "test the waters" with a specific test before generalizing to a reusable one. |
de34b2f
to
88d8f72
Compare
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.
generally looks good
passthru.tests instead of installCheckPhase as recommended in nix-community/nixpkgs-update#260 (comment) Inspired by https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/science/logic/key/default.nix#L54-L57 This is basically the extent of testing I usually do when an upgrade is proposed, so this takes that manual step away.
88d8f72
to
4fe5281
Compare
hmm, not sure if i'm doing something wrong or if nixpkgs-review has issues
@raboof did the test run for you? |
@ofborg test seaweedfs |
Yes, and nixpkgs-review happy here as well (installed system-wide rather than using flakes though) |
Result of |
It seem to be a problem with nixpkgs-review. I checked out the pr and build it with nix-build.
The result is an empty file in the nix store. Perfect. |
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.
Looks good
test works
Extract 'version test' to a reusable test utility as discussed in NixOS#119636 (comment) and
Motivation for this change
This is basically the extent of testing I usually do when an upgrade
is proposed, so this takes that manual step away.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)