ci: type-check the semi-spread and swarm-builder-offline test scripts with stand-in values
This commit is contained in:
parent
a401b0c8ef
commit
de43dac33c
1 changed files with 321 additions and 259 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue