treewide: prepare Rust packages for structuredAttrs by putting variables in env#472376
Conversation
ae67b8f to
4dbb32e
Compare
4dbb32e to
6712843
Compare
|
Mindavi
left a comment
There was a problem hiding this comment.
Looks good and will help others prepare the same way when copying from one of these.
|
As discussed on chat, this is a mass rebuild (about 50k jobs on Hydra). No idea why it hasn't been detected, but except for x86_64-linux it rebuilds |
|
I was re-checking it by commands like nix eval -f. cargo.outPath --argstr system aarch64-linuxon the merge commit and on its first parent. |
|
Thanks for reverting, @SFrijters you'll want to target staging with this again. It seems like CI didn't run to completion on this one (?), at least there is a red X on the last commit somehow. Not sure why it was possible to merge and why it was labeled with rebuilds and... @NixOS/nixpkgs-ci you might be interested in this. |
|
I've already notified https://matrix.to/#/#nixpkgs-ci:nixos.org |
|
I suspect the timing of force-pushes played a role. |
Actually that red X was from a re-run triggered by @vcunat after the PR was already merged. Looking at the original run, everything passed. The labels were 3 weeks old. I suspect that this only turned into a mass-rebuild within the last few weeks? That's the most likely explanation. |
|
Looking at the UI here, the last push happened 6 minutes before the labels got applied. |
Which is exactly the time that CI needs to run, so that's perfectly fine. The very first push didn't apply labels, because CI failed on that commit, so they only appeared after the second (and last) push. But as I said earlier, this was 3 weeks ago, so the mass rebuild was introduced on master inbetween. |
|
Sorry for the mess - I do blindly follow CI for systems I can't build myself. Just now I wanted to create a new branch/PR for staging and cherry-pick the commits on there, but they are all already on staging. Did master get merged into staging before this PR got reverted on master? |
Not trying to nit-pick but just checking that we're on the same page: the effect is that an existing |
Now I merged |
|
Generally |
These are necessary but possibly insufficient fixes: moving environment variables into
env.{ ... }.Tested with
__structuredAttrs = true;forcargo,clippy, andrustfmt.Updated the other packages found by grepping for
RUSTC_BOOTSTRAP.Should be a zero rebuild scenario, I hope?
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.