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
R: give details on test failure #49378
Conversation
72c7f23
to
fd1d477
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.
Adding that code into the build expression feels superfluous to be. Just run nix-build
with the --keep-failed
option, and then it's possible to inspect any of those log files to heart's content.
fd1d477
to
52c529d
Compare
Thats hard in a non-reproducible case like #49249. And either way it is easier if you don't have to hunt for the log (R doesn't make it quite obvious where the actual logs can be found). That said I had to add the |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: R Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: R Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: R Partial log (click to expand)
|
Motivation for this change
I had issues with (a downgraded version of) R in #49249. Those were hard to debug given only the build log since R just told me which test was failing without giving any details about what was going wrong.
This fixes that by also printing the (tail of the) relevant test logs. I'm unsure about the (ab-)use of
failureHook
here, but I couldn't find a better way to do this without rewriting thecheckPhase
.Maintainer @peti.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)