Skip to content
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

metrics: fixup sed expr to work with Nix 2 #36896

Merged
merged 1 commit into from Mar 13, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Mar 13, 2018

Currently metrics job fails, which is blocking the unstable channel.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

EDIT: fixed zed in 708e3fb


Currently still fails on one of the items due to some problem in node-env.nix missing 'libtool',
which is mentioned in recent commits so hopefully will be fixed soon, and maybe has already :).

Here's the error, FWIW:

  error: anonymous function at /nix/store/q6gd10jvcr0gp8w2c5nrr00jz596drdy-nixpkgs/pkgs/development/node-packages/node-env.nix:3:1 called without required argument 'libtool', at /nix/store/q6gd10jvcr0gp8w2c5nrr00jz596drdy-nixpkgs/pkgs/applications/editors/zed/node.nix:8:13

@dtzWill
Copy link
Member Author

dtzWill commented Mar 13, 2018

Rebased onto non-broken master :). Let's try this again.

@@ -35,7 +35,7 @@ runCommand "nixpkgs-metrics"
[[ -n $x ]] || exit 1
echo "$name.allocations $x B" >> $out/nix-support/hydra-metrics

x=$(sed -e 's/.*values allocated: \([0-9]\+\) .*/\1/ ; t ; d' stats)
x=$(sed -e 's/.*values allocated bytes: \([0-9]\+\).*/\1/ ; t ; d' stats)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was supposed to be values allocated count, not bytes: https://hydra.nixos.org/job/nixpkgs/trunk/metrics#tabs-charts

Copy link
Member Author

Choose a reason for hiding this comment

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

Eep, yes. Sorry about that.

Review was for approval of "requiring" Nix 2 for this (thanks!), will fix shortly.

@dtzWill dtzWill deleted the fix/metrics-sed branch March 13, 2018 18:30
fpletz pushed a commit that referenced this pull request Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants