| 1 | # The web UI (webui/): the export contract the publisher and the server |
| 2 | # share. Its tests run here, in the package's unit build |
| 3 | # (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 | } |