-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Log what nix flake check
does
#8893
Conversation
By the way, I'm very confused by the logging code in nix/src/libmain/common-args.cc Line 15 in 6f62361
Lines 91 to 92 in 6f62361
I though this might have something to do with the progress bar logger, but the various Lines 23 to 41 in 6f62361
Any pointers here would be appreciated. |
I was surprised to notice that |
Any update here? Would love to see this too! |
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. Log level changes are helpful. Needs a conflict rebase.
There's still room for improvement, but this produces much more informative output with `-v`: ``` $ nix flake check -v evaluating flake... checking flake output 'checks'... checking derivation checks.aarch64-darwin.ghcid-ng-tests... checking derivation checks.aarch64-darwin.ghcid-ng-clippy... checking derivation checks.aarch64-darwin.ghcid-ng-doc... checking derivation checks.aarch64-darwin.ghcid-ng-fmt... checking derivation checks.aarch64-darwin.ghcid-ng-audit... checking flake output 'packages'... checking derivation packages.aarch64-darwin.ghcid-ng... checking derivation packages.aarch64-darwin.ghcid-ng-tests... checking derivation packages.aarch64-darwin.default... checking flake output 'apps'... checking flake output 'devShells'... checking derivation devShells.aarch64-darwin.default... running flake checks... warning: The check omitted these incompatible systems: aarch64-linux, x86_64-darwin, x86_64-linux Use '--all-systems' to check all. ```
Also be more consistent with quotes around attribute paths
@tomberek Rebased to fix conflicts, PTAL |
EDIT: Nevermind, I just forgot to |
Mistakenly removed in NixOS#8893, thanks @lf- for catching this! NixOS@9404ce3#r139485316
There's still room for improvement, but this produces much more informative output with
-v
:In the future, it would be nice to print out the output paths and whether or not they were actually built (sometimes the checks are cached).
Motivation/Context
See #8882:
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*