Closed bhipple closed 4 years ago
the most proper thing would probably be to bake this into hydra directly, but that would need some consensus with some of the more prominent Nix leaders
$ nix-shell
[...]
[nix-shell:~/.../nixos/review-tool]$ ./eval-report 1570625
Downloading https://hydra.nixos.org/eval/1570625?full=1...
[...]
From your non-shell-looking invocation I think that's the main issue.
Uh, the shebang is /usr/bin/env nix-shell
with the appropriate stuff around... I guess the following comment is relevant here.
No, entering a nix-shell is not required.
I just hit a similar error with a partial download. If that doesn't work still, evict that cached file, that will redownload.
yea, i had to clear my cache as well :(
~8 months ago I seemingly started working on... a deeper hydra... thing? I'm not sure what, but there's the feature/deeper-hydra
branch.
I'm testing that it works, and will be merging in master.
This is relevant since I'm adding a couple more quality-of-life prints to help in these cases. Mainly, this will print which file it is parsing to evict only the problematic files.
Sweeping forward your improvements to master sounds like a good idea regardless, but for what it's worth I ran git clean -ffdx
on that branch and eventually (after a very long time downloading and parsing) ran into the same error. Which cache file(s) and dir(s) are you cleaning to get it to succeed?
Thanks for the help BTW.
The cache is all in $PWD, it would be build_*
and eval_*
. Those are simply the HTML files downloaded at the moment. ./eval-report 1570625
finished successfully for me, so I figure something is not right with the HTML document.
Just merged #4 on master.
If you pull, re-run this, it say Parsing build_XXX
, that's the file that's "corrupted". At that point you can rm only that one, or inspect it to see what's up.
What's possible, but unlikely, is that it's looking for an element that's not in the HTML source. Though most likely is a half-finished download.
Closing, as I think it's all resolved, especially with #5 solved. Don't hesitate to re-open and/or comment if I'm wrong.
Works for me now with all the latest-and-greatest features from master. Thanks!
I'm giving this a try for the first time to try to solve the following issue: as part of implementing https://github.com/NixOS/nixpkgs/issues/79975, I tested a good portion of the Rust ecosystem, but regrettably there are a couple broken packages I missed (fixed in https://github.com/NixOS/nixpkgs/pull/80153).
I would like to go through and scan Hydra logs for all failing Rust packages that recently started failing so that I can prioritize upgrading them (e.g., https://github.com/NixOS/nixpkgs/pull/80197). It doesn't look like Hydra provides a particularly rich API, and I really like this tool's idea of just downloading all the build logs and munging them to produce a report, but I'm having the following issue:
(After downloading a ton of build logs).
Two questions: