Watch
0
0
Fork
You've already forked hyperhive
0

move vm tests out of checks into a nightly vmTests workflow

This commit is contained in:
atlas 2026-10-28 17:55:25 +01:00
commit 4eb27543e5
3 changed files with 75 additions and 4 deletions

View file

@ -144,8 +144,6 @@ in
inherit (pkgs) lib;
shared = moduleEvalShared;
};
# Runs the squid module in a VM; needs KVM, unlike every check above.
vm-hive-squid = import ./vm-tests/hive-squid.nix { inherit pkgs; };
module-eval-hive-otel = import ./module-eval/hive-otel.nix {
inherit pkgs self nixosSystem;
inherit (pkgs) lib;

7
nix/vm-tests.nix Normal file
View file

@ -0,0 +1,7 @@
# NixOS VM tests: one derivation per test, exposed as `vmTests.<system>.<name>`.
# Kept out of `checks` because each boots VMs and needs KVM; the nightly
# workflow `.forgejo/workflows/vm-nightly.yml` builds them.
{ pkgs }:
{
hive-squid = import ./vm-tests/hive-squid.nix { inherit pkgs; };
}

View file

@ -1,4 +1,4 @@
# `checks.vm-hive-squid`: runs ../host-modules/hive-squid.nix in a VM, which
# `vmTests.<system>.hive-squid`: runs ../host-modules/hive-squid.nix in a VM, which
# the module-eval suite can only read, and checks that an agent with the proxy
# variables of nix/agent-modules/egress-proxy.nix reaches squid and skips it
# where it should. Three nodes on two networks: