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

qemu_test: disable features that are not needed for tests (closure 641 -> 335.3M) #49403

Merged
merged 9 commits into from Oct 20, 2020

Commits on Oct 19, 2020

  1. qemu: strip down the features for the test runner

    This allows much faster VM-test based systemd testing as the closure of
    qemu suddenly shrinks to reasonable sizes again.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    e79eed4 View commit details
    Browse the repository at this point in the history
  2. nixos/tests: make the driver attribute use a rich qemu

    Since we previously stripped down the features of `qemu_test` some of
    the features users are used to while running tests through the (impure)
    driver didn't work anymore. Most notably we lost support for graphical
    output and audio. With this change the `driver` attribute uses are more
    feature complete version of QEmu compared to the one used in the pure
    Nix builds.
    
    This gives us the best of both worlds. Users are able to see the
    graphical windows of VMs while CI and regular nix builds do not have to
    download all the (unnecessary) dependencies.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    c096880 View commit details
    Browse the repository at this point in the history
  3. nixos/tests: expose both the interactive and non-interactive driver

    For a lot of the work the non-interactive drivers are enough and it is
    probably a good idea to keep it accessible for debugging without
    touching the Nix expression.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    20893b3 View commit details
    Browse the repository at this point in the history
  4. qemu: make ncurses optional for the test runner

    This shaves another 3MB off the closure size of QEMU.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    2451796 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e127ba7 View commit details
    Browse the repository at this point in the history
  6. nixos/tests: make sure we use the qemu_test package to provide the Gu…

    …est Agent
    
    This reduces the closure size for the minimal test by a lot since we no
    longer have to build the regular QEMU for even the simplest test.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    8ed57ac View commit details
    Browse the repository at this point in the history
  7. iptuils: Remove systemd from dependencies

    In our case systemd is only used to figure out if the unit files should
    be generated.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    54e6cfc View commit details
    Browse the repository at this point in the history
  8. iputils: apply proposed upstream patch to get rid of systemd dependency

    This allows us to get rid of the hack and the systemd dependency and
    thus reduces the rebuild closure whenever systemd changes.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    0a55c5d View commit details
    Browse the repository at this point in the history
  9. libndctl: clarify that it needs udev not systemd

    While (currently) it is the same package it carries more information if
    we explicitly state that we want udev.
    andir committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    16a7ff5 View commit details
    Browse the repository at this point in the history