Watch
0
0
Fork
You've already forked hyperhive
0

ci: type-check the semi-spread and swarm-builder-offline test scripts with stand-in values

This commit is contained in:
atlas 2026-11-13 08:13:51 +01:00
commit de43dac33c

View file

@ -117,8 +117,10 @@ Tests that boot NixOS VMs are the `vmTests.<system>.<name>` flake output
builds them. It does build the `vm-test-typecheck-<name>` checks
(`nix/vm-test-typecheck.nix`): the type check and lint the test driver runs over
a test script, on the script text alone. They evaluate no node configuration
and build no VM. They cover `hive-squid`,
`swarm-archive`, `agent-ephemeral-rootfs`, `full-setup` and `wg-hive`;
and build no VM. They cover all seven tests. `semi-spread` and `swarm-builder-offline`
read node config or an agent toplevel into their script, so each builds the script
with stand-in values (`passthru.typecheckScript`), from the same function as the real
one.
`vm-test-typecheck-control` passes only when the checker rejects a known type error, which shows the
checker resolves `test_driver`. [`.forgejo/workflows/vm-nightly.yml`](../../../.forgejo/workflows/vm-nightly.yml)
builds all of them nightly at 02:30; a failing test fails that run. To run one