Nixpkgs Stdenv | 220 Members | |
| 70 Servers |
| Sender | Message | Time |
|---|---|---|
| 28 Oct 2024 | ||
How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\"" | 00:09:32 | |
* How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\""' | 00:09:55 | |
| same result. | 00:10:36 | |
| oh. | 00:10:48 | |
| I think I know what's going on. | 00:10:52 | |
| reno doesn't use nix-darwin, and maybe the Nix installation is old? | 00:10:59 | |
| no, wait, that doesn't explain it, since it used to be 4096 still. | 00:11:21 | |
What if in one of the places that require the ulimit to be set you set it to the linux number instead of 4096 | 00:11:29 | |
| to check if too-high values are getting capped, or? | 00:12:44 | |
| If setting it above the limit is interpreted as 1 or something | 00:13:21 | |
| well it shouldn't be 1 because then all builds would fail | 00:13:43 | |
| hmm | 00:13:46 | |
How does ulimit for you show the number above the limit | 00:14:10 | |
| 00:14:28 | |
In reply to @artturin:matrix.orgso ulimit -n 122881 actually works on macOS 15, I guess it changed since 10.12. and it's reported as 122881. but presumably capped as reno described seeing | 00:15:14 | |
In reply to @paparodeo:matrix.orgI take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup. | 00:15:56 | |
| I didn't really look in to it or monitor it | 00:16:27 | |
In reply to @emilazy:matrix.orgit never failed for me. | 00:16:31 | |
In reply to @emilazy:matrix.org* it never failed for me locally | 00:16:43 | |
| I had also assumed that the limit was 256 | 00:16:56 | |
| 00:20:05 | ||
the good news is that the Go compiler derivation runs ulimit -a. | 00:20:06 | |
| https://hydra.nixos.org/build/274250874/nixlog/1 | 00:20:08 | |
| https://hydra.nixos.org/build/274236521/nixlog/1 | 00:20:12 | |
| it's a Hydra problem. | 00:20:14 | |
| we could fix it in stdenv still, but it seems like the wrong place if actually the daemon stuff works | 00:20:55 | |
| so → #infra:nixos.org | 00:21:00 | |
| 31 Oct 2024 | ||
| 04:24:00 | ||
| 5 Nov 2024 | ||
| I was hoping replaceStdenv would act in a way to replace the stdenv; but not of buildPackages. What I see is that cmake appears to be built with my replacement stdenv, which is not quite what I expected. My next gambit was to use crossSystem but if I have localSystem == crossSystem, then buildPackages == pkgs and the cross machinery doesn’t kick in. My next gambit was to use stdenvStages but it looks like replaceStdenv is already implemented in exactly the way I was thinking to add a build stage. I would like a way to construct a package set with a custom compiler but to keep buildPackages as a standard set of packages. Is that doable somehow? | 14:18:45 | |
In reply to @p14:matrix.orgreplaceCrossStdenv | 14:22:42 | |