| 1 | # The web UI (webui/): the export contract the publisher and the server |
| 2 | # share, and the server. Their tests run here, in the packages' unit |
| 3 | # builds (nix/packages.nix). |
| 4 | { |
| 5 | packages, |
| 6 | ... |
| 7 | }: |
| 8 | { |
| 9 | # The projection over the shared fixture, which holds every disclosure |
| 10 | # rule: what reaches export.json, hidden projects' edges, the display |
| 11 | # mapping. The content digest; strict reading of export.json, with |
| 12 | # nothing after its document; each of VerifyManifest's steps, in order; |
| 13 | # the manifest's grammar and its agreement with export.json; the |
| 14 | # streaming body check; bundle acceptance against real git, refusing |
| 15 | # wrong tips, prerequisites, extra refs, corrupt objects and a header |
| 16 | # past its bound, and serving no commit main does not reach; and the |
| 17 | # receiver's state directory. For the state directory: readers holding |
| 18 | # a generation through activations, every file of a generation synced |
| 19 | # before high-water names it, a repository a crash interrupted built |
| 20 | # again, recovery checking a generation before it activates it and |
| 21 | # keeping one whose check git did not finish, and injected sweep and |
| 22 | # swap failures, reported apart from the commit. go vet runs after them. |
| 23 | webui-unit = packages.webui.unit; |
| 24 | |
| 25 | # The server and valley-web over the shared fixture, uploaded to a real |
| 26 | # store, and real git. The plan page's reading order, its free to start |
| 27 | # legend, its one card of ready changes, and the export's age, marked |
| 28 | # stale after five minutes; a knot's body and comments, with the edited |
| 29 | # one marked; a hidden project answering every route exactly as a |
| 30 | # missing one, though its repository is in the generation; a commit |
| 31 | # main's tip does not reach, and every other object ID or name, refused |
| 32 | # with the one 404; hostile README, file, file name, commit subject and |
| 33 | # knot text rendered inert, and large and binary files not shown; the |
| 34 | # policy on every response, admitting the page's inline stylesheet and |
| 35 | # script by their hashes; a request keeping its generation while |
| 36 | # another activates; and valley-web run as a process of its own, |
| 37 | # serving and stopping on SIGTERM. go vet runs after them. |
| 38 | webui-server-unit = packages.valley-web.unit; |
| 39 | } |