On 10/15/2016 12:54 AM, Profpatsch wrote:
> enableParallelBuilding is disabled by default, because it often
> introduces non-deterministic build behaviour.
> 
> How can I check whether the builds will behave nicely?
> I think executing twice on the same system would often result
> in quasi-deterministic behaviour.
> Do we have CI automation in place that can detect stuff like that?

We have no automation for this. In general, you can perform a build
again (--check as root).

In my experience, parallel make problems tend to fail the build only and
not produce a different output. Trying on an 8-thread-capable machine
that's otherwise idle tends to be a relatively reliable way to tell, I
believe.

> What are general hints to whether stuff might be (non)deterministic?
> 
> We should als document why parallel building is disabled by default.

There wasn't a perfect consensus on that, actually.
For example, I personally think we could have `build-cores = 0` by
default, as we only leave enableParallelBuilding = true for packages
that don't fail because of it.

--Vladimir


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to