Skip to content

nixos/test-driver: use an argument instead of the out env-var#153854

Merged
tfc merged 5 commits intoNixOS:masterfrom
marijanp:test-driver-out-dir
Jan 26, 2022
Merged

nixos/test-driver: use an argument instead of the out env-var#153854
tfc merged 5 commits intoNixOS:masterfrom
marijanp:test-driver-out-dir

Conversation

@marijanp
Copy link
Contributor

@marijanp marijanp commented Jan 7, 2022

Motivation for this change

Bug #153766, read comment

Things done

Instead of reading the out environment variable in the test-driver's Machine::copy_from_vm and Machine::screenshot functions, a output-directory is used.
The output-directory is a mandatory command-line argument that needs to be passed to the test-driver.
When makeTest invokes the test-driver the out environment variable is passed as the argument.

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@marijanp marijanp requested a review from tfc as a code owner January 7, 2022 14:52
@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jan 7, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 7, 2022
@Synthetica9 Synthetica9 mentioned this pull request Jan 7, 2022
13 tasks
@Synthetica9
Copy link
Member

Oh drat, I just implemented my own fix as well... If we don't end up going with that, I also cleaned up the screenshot logic, we should probably incorporate that here as well.

@marijanp marijanp force-pushed the test-driver-out-dir branch from 1677361 to 68b2e23 Compare January 8, 2022 13:13
@marijanp
Copy link
Contributor Author

marijanp commented Jan 8, 2022

@ofborg test nat.firewall networking.scripted.link installer.simpleProvided installer.separateBootFat networking.scripted.virtual printing keymap.azerty keymap.dvorak-programmer boot-stage1 installer.swraid keymap.neo nfs4.simple i3wm udisks2 networking.networkd.loopback containers-ip ecryptfs login installer.simpleLabels php.httpd zfs.installer predictable-interface-names.unpredictable predictable-interface-names.unpredictableNetworkd mutableUsers

@marijanp
Copy link
Contributor Author

marijanp commented Jan 8, 2022

Oh drat, I just implemented my own fix as well... If we don't end up going with that, I also cleaned up the screenshot logic, we should probably incorporate that here as well.

We could split it up into two PRs each for the respective change?

@marijanp marijanp force-pushed the test-driver-out-dir branch from 68b2e23 to 7765670 Compare January 25, 2022 09:13
@marijanp
Copy link
Contributor Author

@ofborg test nat.firewall networking.scripted.link installer.simpleProvided installer.separateBootFat networking.scripted.virtual printing keymap.azerty keymap.dvorak-programmer boot-stage1 installer.swraid keymap.neo nfs4.simple i3wm udisks2 networking.networkd.loopback containers-ip ecryptfs login installer.simpleLabels php.httpd zfs.installer predictable-interface-names.unpredictable predictable-interface-names.unpredictableNetworkd mutableUsers

@marijanp
Copy link
Contributor Author

@ofborg test pantheon boot.biosCdrom boot.uefiUsb networking.networkd.static latestKernel.login networking.networkd.dhcpSimple networking.networkd.sit env switchTest hibernate predictable-interface-names.predictable gnome networking.networkd.bridge networking.networkd.privacy plasma5 systemd-networkd-ipv6-prefix-delegation lightdm installer.simple installer.btrfsSimple installer.btrfsSubvols sway networking.networkd.link networking.scripted.privacy

@marijanp
Copy link
Contributor Author

@ofborg test nat.firewall-conntrack networking.scripted.sit networking.networkd.virtual networking.scripted.dhcpSimple firewall firefox networking.scripted.macvlan proxy firefox-esr sddm.default boot.uefiCdrom networking.scripted.static networking.scripted.routes installer.lvm networking.networkd.vlan containers-imperative boot.biosUsb xfce networking.networkd.dhcpOneIf installer.simpleUefiSystemdBoot keymap.qwertz gnome-xorg shadow networking.networkd.macvlan networking.networkd.routes

@marijanp
Copy link
Contributor Author

@ofborg test nfs3.simple php.fpm fontconfig-default-fonts networking.scripted.bond nano keymap.dvorak installer.luksroot networking.scripted.bridge docker simple chromium networking.scripted.dhcpOneIf networking.networkd.bond php.pcre nat.standalone openssh networking.scripted.vlan ipv6 installer.separateBoot misc predictable-interface-names.predictableNetworkd networking.scripted.loopback keymap.colemak installer.btrfsSubvolDefault

@tfc tfc merged commit ab4e5af into NixOS:master Jan 26, 2022
@Synthetica9
Copy link
Member

This broke test output, now screenshots and such are not copied to $out. #156910 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants