Repository navigation
release-lib: build packages without meta.platforms on all platforms - #351919
Conversation
6968dfc to
5785a6b
Compare
meta.platforms on all platforms
|
(For posterity: I talked myself into the more radical version of this after seeing that the |
5785a6b to
6528662
Compare
6528662 to
68f84ff
Compare
68f84ff to
e88cb9c
Compare
|
Don’t get too excited, I’m still playing whack‐a‐mole with the evaluation failures. But hopefully we can get this in. |
e88cb9c to
5847f25
Compare
philiptaron
left a comment
There was a problem hiding this comment.
Master is now questionable, but I leave it up to the author about whether to retarget the PR to staging.
|
Well, it’s complicated. It’s ~23k permanent new Hydra jobs, but those jobs largely consist of packages that are already getting built because of other jobs. For instance, we have no job for I would estimate that the total number of things that will actually be built that weren’t before would be in the hundreds – it should basically mostly be leaf packages without That said, |
5847f25 to
b2cf5bd
Compare
|
The latest push should be a net addition of about ~5k Hydra jobs by setting There will also be jobs that don’t generate new builds, as discussed above. I think it should be okay as it is now, based on the discussion, and we can set more |
Hydra can handle packages that `throw` but not attributes that disappear depending on platform, and it seems okay for evaluation to fail here for non‐Linux platforms.
This was added in <NixOS#19990> to ensure that packages that previously weren’t building at all would get at least one platform’s worth of coverage. However, since most `runCommand` calls don’t explicitly set any `meta` information, this meant that things like `tests.makeWrapper` were only being run for `x86_64-linux`. Since most trivial builder calls should work on all platforms, it doesn’t make much sense for them to be restricted in this way, and we shouldn’t unnecessarily penalize other platforms by treating an empty `meta.platforms` inconsistently with `check-meta`’s maximally‐permissive interpretation. Actual packages that only work on a subset of platforms should, of course, set `meta.platforms` explicitly.
The user information would have helped diagnose the empty GECOS issue we had with the Hydra Darwin builders recently and the OS information seems generally nice to have.
b2cf5bd to
9f36206
Compare
I missed this comment. Yes, I think so, assuming we agree that it seems like a good idea to merge, although if it happens with the |
|
ofborg results now list 9982 jobs, so minus the ~4445 TeX Live jobs that this is removing, it should be a net increase of 5.5k jobs, as expected. Should be ready when anyone feels brave enough. (The ofborg |
Sounds good, we probably should merge this in the next few hours or any time before 6PM PST to get the ball rolling. I hope to do the merge as listed in the 24.11 release schedule after work which would mean some time after 6PM PST. |
|
Sure, I guess it could be merged now and another |
|
Guess I'll merge it. |
|
Not sure whether to kick off a |
Idk how to kick one off but sure, why not? Better get some of that work rolling.
Is there an open issue? I'll look into that before merging staging-next. |
|
Well, because there’ll presumably be a new eval to test the installer fix anyway. See #348827 (comment). We cannot merge as it would block the channel. |
| configureFlags = [ "--with-snmp" ]; | ||
| # net-snmp doesn't build on darwin. | ||
| enable = (!stdenv.hostPlatform.isDarwin); | ||
| meta.broken = (!stdenv.hostPlatform.isDarwin); |
There was a problem hiding this comment.
Isn't this wrong now? Before it was enabled on linux and now it is marked broken on linux.
There was a problem hiding this comment.
Yes, oops. But it turns out it builds fine on Darwin now. #353479

This was added in #19990 to ensure that packages that previously weren’t building at all would get at least one platform’s worth of coverage. However, since most
runCommandcalls don’t explicitly set anymetainformation, this meant that things liketests.makeWrapperwere only being run forx86_64-linux. Since most trivial builder calls should work on all platforms, it doesn’t make much sense for them to be restricted in this way, and we shouldn’t unnecessarily penalize other platforms by treating an emptymeta.platformsinconsistently withcheck-meta’s maximally‐permissive interpretation. Actual packages that only work on a subset of platforms should, of course, setmeta.platformsexplicitly.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.