ci/eval: add a shebang to the stats comparison script#437697
ci/eval: add a shebang to the stats comparison script#437697philiptaron wants to merge 1 commit intoNixOS:masterfrom
Conversation
This isn't for CI, just for humans.
| @@ -1,3 +1,6 @@ | |||
| #! /usr/bin/env nix-shell | |||
| #! nix-shell -i "python3 -I" -p "python3.withPackages(ps: with ps; [ numpy pandas scipy ])" | |||
There was a problem hiding this comment.
Here's the production caller.
nixpkgs/ci/eval/compare/default.nix
Lines 128 to 134 in 0e40a79
There was a problem hiding this comment.
you could refer to current nixpkgs checkout here instead of relying on NIX_PATH, i.e. -I nixpkgs ../.. (don't remember the exact syntax in this case).
There was a problem hiding this comment.
I think it's the expression that Silvan suggested in #425551:
#!/usr/bin/env nix-shell
#!nix-shell -i "python3 -I" --expr 'with import ../.. {}; with pkgs; mkShellNoCC { packages = [ python3.withPackages(ps: with ps; [ numpy pandas scipy ]) ] }'
Likely can be golfed substantially.
|
Is this something of hypothetical or actual value? Aka, why would you try to run this script isolated? You will need to set up the before / after folders correctly to make any sense of it - but once you do, it would be very easy to just run |
Maybe the pr was made because this option wasn't obvious? https://github.com/NixOS/nixpkgs/tree/master/ci/eval we only document the full eval here. |
Yes, I was trying to run this script directly in order to gather locally changes to #431756. I am running it directly because I found the Here's the workflow. I'd love to hear the better version and what I'm doing that's ... dumb. 🧠
I do that on a loop, making new experiment directories in the worktree but leaving the baseline. |
OK, I see the problem. You essentially have two "no-op" combined directories, because each I think we can make that better... I'll work something out. |
With #437934, you should be able to: On the baseline: On the new version: And then take the respective file from the result of that. |
|
Closing after #437934 was merged. |
This isn't for CI, just for humans. I didn't do anything fancy like ensure that I was using the correct CI pinned json, but it shouldn't matter: this is just to make it easier to run the script.
Things done
ci/eval/compare/cmp-stats.pyin Nixpkgs root