Better HN
topnewbestaskshowjobs
Log inSign up

nixbuild

1 karma · joined Sep 6, 2020 (6y ago) · 5 submissions

Submissions

comment 10mo ago · link · parent

Please correct me if I'm wrong, but I assume you mean Nix doesn't have access to the build DAG that may exist inside the hermetic environment of individual Nix builds? If so, that's true, because Nix doesn't do that level of granularity unless you have a way to translate such DAGs into Nix derivations.

But Nix certainly tracks dependencies between Nix packages, and have knowledge about what packages need to be rebuilt if you make a change somewhere. Some of these packages might build config files, while other may build Chromium, ie wildly different CPU+mem needs.

comment 10mo ago · link · parent

This is what nixbuild.net does, it tracks historic CPU and memory usage of individual builds, and takes that into account when deciding what resources to allocate for new builds. You can configure limits on max/min CPUs on your account or individual builds. Also, if a build runs out of memory we simply restart it with more memory. The client will just see that the build log starts over.

3.

Fast CI with nixbuild.net(blog.nixbuild.net ↗)

2 points · by nixbuild · 4y ago · discuss

4.

Data Science with Nix: Parameter Sweeps(blog.nixbuild.net ↗)

2 points · by nixbuild · 5y ago · discuss

comment 5y ago · link · parent

nixbuild.net ("Nix Builds as a Service") can run any Nix build with fs randomization similar to disorderfs:

https://blog.nixbuild.net/posts/2021-01-13-finding-non-deter...

It isn't enabled by default but can be turned on with a setting:

https://docs.nixbuild.net/settings/#inject-fs-randomness