40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
# Ianitor Domi: the five test layers (ROADMAP §5) on a push to main, or by hand. Layer 1 (the differential
|
|
# suite against Caddy) runs inside the workspace tests; layer 2 is scripts/conformance.sh (h2spec, testssl.sh);
|
|
# layer 3 tests/fuzz/run.sh (cargo-fuzz, 2 minutes a target; any crash fails); layer 4 the NixOS VM tests;
|
|
# layer 5 scripts/bench.sh (load and a 5-minute soak against Caddy; results kept as artifacts).
|
|
# Runner: label `nixos`, on a host with /dev/kvm and Nix's `kvm` system feature (the VM tests; on Hyper-V,
|
|
# nested virtualisation on), outbound HTTPS (crates.io, cache.nixos.org) and about 20 GB free. Every tool comes
|
|
# from the flake's `ci` shell, so the runner needs only Nix with flakes.
|
|
name: layers
|
|
on:
|
|
push: [main]
|
|
manual: true
|
|
runner: nixos
|
|
env:
|
|
CARGO_TERM_COLOR: "never"
|
|
CARGO_BUILD_JOBS: "8"
|
|
steps:
|
|
- id: workspace-tests
|
|
run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c cargo test --workspace --no-fail-fast
|
|
- id: conformance
|
|
needs: [workspace-tests]
|
|
run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c scripts/conformance.sh
|
|
artifacts: ["bench/conformance/*"]
|
|
- id: fuzz
|
|
needs: [workspace-tests]
|
|
run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c tests/fuzz/run.sh 120
|
|
- id: vm-apply-reverts
|
|
nix: .#checks.x86_64-linux.vm-apply-reverts
|
|
- id: vm-engine-switch
|
|
nix: .#checks.x86_64-linux.vm-engine-switch
|
|
- id: vm-intermediate-renewal
|
|
nix: .#checks.x86_64-linux.vm-intermediate-renewal
|
|
- id: vm-control-loopback
|
|
nix: .#checks.x86_64-linux.vm-control-loopback
|
|
- id: vm-sockets
|
|
nix: .#checks.x86_64-linux.vm-sockets
|
|
- id: load
|
|
needs: [conformance, fuzz]
|
|
run: nix --extra-experimental-features "nix-command flakes" develop .#ci -c scripts/bench.sh fabrica-runner
|
|
artifacts: ["bench/results/**"]
|