Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/tests: Set DefaultTimeoutStartSec very high #44916

Merged
merged 1 commit into from Aug 29, 2018
Merged

Conversation

griff
Copy link
Contributor

@griff griff commented Aug 11, 2018

Motivation for this change

DefaultTimeoutStartSec is normally set to 90 seconds and works fine. But
when running NixOS tests on a very slow machine (like a VM without
nested virtualisation support) this default is to low and causes
systemd units to fail spuriously. One symptom of this issue are tests
at times failing with "timed out waiting for the VM to connect".

Things done

Since the VM connect timeout is 300 seconds I also set
DefaultTimeoutStartSec to this which is ridiculously high.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

DefaultTimeoutStartSec is normally set to 90 seconds and works fine. But
when running NixOS tests on a very slow machine (like a VM without
nested virtualisation support) this default is to low and causes
systemd units to fail spuriously. One symptom of this issue are tests
at times failing with "timed out waiting for the VM to connect".

Since the VM connect timeout is 300 seconds I also set
DefaultTimeoutStartSec to this which is ridiculously high.
eqyiel added a commit to eqyiel/nixos-mailserver that referenced this pull request Aug 18, 2018
This is not the ideal setup, but it's a start.

I'd rather not have the tests split out like this but when they aren't,
everything after the first test fails with `mounting /dev/vda on /mnt-root/
failed: No such file or directory`.  I don't know what that's about.  Check it
out here: https://gitlab.com/eqyiel/nixos-mailserver/-/jobs/90278230

These also failed when I tested them, but for a different reason (timeouts).
@griff has made a PR to increase the DefaultTimeoutStartSec for tests:
NixOS/nixpkgs#44916
Copy link
Contributor

@xeji xeji left a comment

Choose a reason for hiding this comment

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

Thank you. This will help reduce the number of sporadic failures.

@xeji xeji merged commit 9540b1c into NixOS:master Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants