gunk-dev/the-valley

checks.nix

sourced5649addb600main's published tip history
3.9 KiB
1# What is tested, and where each test's logic lives.
2#
3# One file per subject, each returning the checks for it. A check's shell
4# body is never here: it is a script under checks/, and a check definition
5# is only what builds it, what it is given, and why it exists.
6#
7# hosts.nix the eval-only host declarations the module checks share
8# host-module.nix module-eval — what the NixOS module renders from a
9# declaration, and what it must refuse
10# schema.nix cue-vet, attest-schema, identity-schema — the schemas
11# against the examples they accept and the ones they
12# must reject
13# knowledge.nix knowledge-lint-consumer, knowledge-lint-rejects,
14# prose-format — the lint's reusable and rejection
15# forms, and the prose
16# knot.nix knot-unit, knot-agree — the plan graph's module, and
17# its validator held to the schema and the lint
18# delta.nix delta-unit — valley-delta-v1, its conformance vectors,
19# and the trees it reads and refuses
20# attest.nix attest-unit, attest-conformance, attest-e2e — the
21# helper's unit tests, the written form as a fixed
22# contract, and the helper driven end to end
23# integrator.nix integrator-unit, integrator-e2e — the verdict rules,
24# and the controller over real repositories
25# hooks.nix valleyhook-unit, note-unit, change-unit, mirror-e2e,
26# bus-e2e, protect-e2e, knots-e2e, init-e2e — the hooks
27# the module renders, run against real git, the formats
28# they read, and the init script that wires them
29# identity.nix identity-unit, identity-e2e — the compiler's unit
30# tests, and the registry compiler over a real
31# instance repository, against the hand-written
32# artifacts it replaces, and the hook reading its grants
33# sigverify.nix sigverify-unit, sigverify-e2e — the security-key
34# signature verifier against real ssh-keygen, real git
35# and OpenSSH's software authenticator
36# cli.nix valley-cli, review-notes, policy-deriver,
37# own-policy, valley-request, rebase-unit,
38# valley-go-unit, valley-status, valley-ready,
39# valley-changes, valley-knot, valley-plan,
40# valley-darwin-eval — bin/valley, its Go verbs, the
41# rebase engine, the-valley's own policy, and the CLI's
42# package evaluated for Darwin
43# ssh-e2e.nix ssh-e2e — the push boundary over a real sshd in a
44# NixOS machine, and the request grant's handoff
45# publish-e2e.nix publish-e2e — an integrator landing reaching the push
46# mirror and the bus, in a NixOS machine running the
47# real controller
48#
49# Fixtures live with the thing they are fixtures of: host declarations,
50# attestations, events, graphs and policies under examples/, attestation
51# vectors under attest/, delta vectors under delta/, the integrator's
52# scenarios under integrator/e2e/.
53{
54 pkgs,
55 lib,
56 self,
57 system,
58 packages,
59}:
60let
61 hosts = import ./checks/hosts.nix {
62 inherit
63 pkgs
64 lib
65 self
66 system
67 ;
68 };
69 args = {
70 inherit
71 pkgs
72 lib
73 self
74 system
75 packages
76 hosts
77 ;
78 };
79in
80import ./checks/host-module.nix args
81// import ./checks/schema.nix args
82// import ./checks/knowledge.nix args
83// import ./checks/knot.nix args
84// import ./checks/delta.nix args
85// import ./checks/attest.nix args
86// import ./checks/integrator.nix args
87// import ./checks/hooks.nix args
88// import ./checks/identity.nix args
89// import ./checks/sigverify.nix args
90// import ./checks/cli.nix args
91// import ./checks/ssh-e2e.nix args
92// import ./checks/publish-e2e.nix args