You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't actually setup the whole systems to test this but I have a very strong suspicion this would work.
The problem (as far as I could see it) is that the nix-store --serve --write process that is spawned on the build slaves opens the store right after parsing the command line arguments. When opening the store it actually seems to connect to the local nix-daemon. After connect it calls setOptions. At the point where the build host receives the derivation (and the buildTimeout & maxSilent parameters) the store is already configured and only the derivation will be built. Whenever the nix-store process receives a new commands it seems to reconfigure the internal settings but never calls setOptions.
I think I see a problem in step vs. job timeout. Example: we have high chromium.meta.timeout, but if that's triggered as dependency of some other job, it apparently times out after the default ten hours already. Of course, it might be argued that it's a feature and not a bug, though I'd intuitively expect timeout overrides to be per-step.
@vcunat thats where i can see a toposort being useful
if job1 wants to directly build chrome
and job2 depends on chrome
then it should build chrome under job1, not job2
Yes, but I expect that wouldn't solve cases where there's no job for a build step, e.g. we only have a job for wrapped package and not for unwrapped one.
Activity
andir commentedon Oct 5, 2018
Word of caution: This is my first dive into the hydra & nix sources. I might be completly on the wrong track..
I have the following diff that I suspect might be a hack that "fixes" this:
I haven't actually setup the whole systems to test this but I have a very strong suspicion this would work.
The problem (as far as I could see it) is that the
nix-store --serve --writeprocess that is spawned on the build slaves opens the store right after parsing the command line arguments. When opening the store it actually seems to connect to the local nix-daemon. After connect it callssetOptions. At the point where the build host receives the derivation (and thebuildTimeout&maxSilentparameters) the store is already configured and only the derivation will be built. Whenever the nix-store process receives a new commands it seems to reconfigure the internalsettingsbut never callssetOptions.cleverca22 commentedon Oct 26, 2018
https://github.com/cleverca22/nix-misc/blob/master/default.nix#L21-L31 is how i reproduced the issue on my hydra
vcunat commentedon Nov 1, 2018
I think I see a problem in step vs. job timeout. Example: we have high
chromium.meta.timeout, but if that's triggered as dependency of some other job, it apparently times out after the default ten hours already. Of course, it might be argued that it's a feature and not a bug, though I'd intuitively expect timeout overrides to be per-step.cleverca22 commentedon May 15, 2019
@vcunat thats where i can see a toposort being useful
if job1 wants to directly build chrome
and job2 depends on chrome
then it should build chrome under job1, not job2
vcunat commentedon May 17, 2019
Yes, but I expect that wouldn't solve cases where there's no job for a build step, e.g. we only have a job for wrapped package and not for unwrapped one.
Pass settings from nix-store to remote nix-daemon
Pass settings from nix-store to remote nix-daemon
Pass settings from nix-store to remote nix-daemon
store: update build settings for every derivation
store: update build settings for every derivation