Skip to content

firefox: increase timeout to 86400s (24h)#129212

Merged
roberth merged 1 commit intoNixOS:masterfrom
lovesegfault:firefox-increase-timeout
Jul 4, 2021
Merged

firefox: increase timeout to 86400s (24h)#129212
roberth merged 1 commit intoNixOS:masterfrom
lovesegfault:firefox-increase-timeout

Conversation

@lovesegfault
Copy link
Member

Motivation for this change

Fixes: #129115

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 4, 2021
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Note that the old timeout value may be cached for a while.

@roberth roberth merged commit 4971b73 into NixOS:master Jul 4, 2021
@lovesegfault lovesegfault deleted the firefox-increase-timeout branch July 4, 2021 10:14
@lukegb
Copy link
Contributor

lukegb commented Jul 4, 2021

I'm not convinced this will help: we're hitting the nix max-silent-time timeout, not the overall build timeout - so we should be setting meta.maxSilent, not meta.timeout:

https://sourcegraph.com/github.com/NixOS/hydra@b6921c20068b41aa083af7da3da584289a665311/-/blob/src/hydra-eval-jobs/hydra-eval-jobs.cc?L172:22

@lovesegfault
Copy link
Member Author

I'm not convinced this will help: we're hitting the nix max-silent-time timeout, not the overall build timeout - so we should be setting meta.maxSilent, not meta.timeout:

https://sourcegraph.com/github.com/NixOS/hydra@b6921c20068b41aa083af7da3da584289a665311/-/blob/src/hydra-eval-jobs/hydra-eval-jobs.cc?L172:22

Ah, indeed. I'll make a PR, thanks!

Artturin pushed a commit that referenced this pull request Aug 7, 2021
Artturin pushed a commit to Artturin/nixpkgs that referenced this pull request Sep 11, 2021
booxter added a commit to booxter/infra-1 that referenced this pull request Jan 31, 2026
After LTO was enabled for nixpkgs firefox darwin build, we started
hitting hydra timeouts due to long silence during XUL linkage:

https://hydra.nixos.org/build/320487707
https://hydra.nixos.org/build/319560484

I believe this happens because nix-store does not propagate settings
from derivation meta to remote nix-daemon after initial connection. (See
NixOS/nix#15125 for more details and a potential
fix.)

While this issue is not fixed in Nix, this patch bumps max-silent-time
to 4h for all builders, both darwin and linux. The 4h setting comes from
the observation that all nixpkgs packages that *do* set meta.maxSilent
set it to 4h.

Note: while we don't have immediate need to bump the limit to 4h for
non-mac builders, it seems prudent to do so because at least some
meta.maxSilent settings in nixpkgs, including for firefox, originate
from linux timeouts:

NixOS/nixpkgs#129212
NixOS/nixpkgs#129115

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

firefox-unwrapped times out on Hydra for aarch64-linux

3 participants