gunk-dev/the-valley

changes.txt

sourceca98fdc29fbfmain's published tip history
4.1 KiB
1usage: valley changes --json [--all] [--repo <name>] [--checks] [-v] [--known-signers <file>] [--integrator-name <name>]
2
3 changes --json [--all] [--repo <name>] [--checks] [-v]
4 [--known-signers <file>] [--integrator-name <name>]
5 print every change origin holds a record of, in every
6 state, as one JSON object, valley-changes/v1, for front
7 ends to read (docs/architecture.md): each version's
8 head, title and branch, how far it has landed
9 (landed, landed-recorded, uncertain or not-landed),
10 its pending request and its last outcome, the knots in
11 refs/the-valley/knots that link it
12 (valley:<project>/<change id>, active first), and
13 the branches no change is on. -v warns on stderr when a
14 plan graph is missing or unreadable. --checks adds
15 checks to the active version of each ready change and
16 each draft that has not landed: each check the policy
17 requires of it, passed, failed or pending by the note the
18 integrator would judge it by on origin, and other for a
19 check the host's worker does not run (docs/reference.md).
20 each nix check also gives its build time for this version,
21 and the median of its recent builds, from the host's
22 worker telemetry, and worker when the worker's newest
23 build of it for the version's tree failed and no note
24 makes it passed; its state stays what the notes say.
25 when that telemetry cannot be read, those fields are
26 left out and stderr says why. for each
27 project with such a change, it reads the policy once
28 and runs attest verify for each note.
29 handles are unique across
30 everything listed: a change id recorded in more than
31 one repository listed has the handle <repo>:<prefix>
32 in each. without --all it covers this
33 repository. --all covers every project the serving
34 host lists at refs/the-valley/projects in its instance
35 repository, which policy/valley names at main's tip on
36 origin; each project's URL is the instance's with its
37 last path segment replaced, and is read through a clone
38 kept under $XDG_CACHE_HOME/valley/repos. a url that
39 opens with a dash, names a <transport>:: helper such
40 as ext::, or has a scheme other than ssh, git, https or
41 file is refused. a repository that cannot be read is
42 listed with its error. --repo limits it to one
43 project. landed means on main's first-parent history
44 with no merge above it. landed-recorded needs a landed
45 commit with one parent and the integrator's transfer
46 statement for the version's request name, verified;
47 the integrator's outcome record for that name saying
48 land at the version's head; and the integrator's merge
49 of the head onto the landed commit's parent giving the
50 landed tree. the statement is verified with the
51 registry's known-signers file and the integrator's
52 signing name. each is taken from the first of these
53 that gives it: --known-signers FILE or
54 --integrator-name NAME; VALLEY_KNOWN_SIGNERS or
55 VALLEY_INTEGRATOR_SIGNER; what the serving host
56 publishes at refs/the-valley/signers in its instance
57 repository, read only when a statement needs
58 verifying. a file that does not read, or holds no key
59 under the name, is reported on stderr, and then no
60 statement is verified. a statement that passed is
61 remembered under $XDG_CACHE_HOME/valley/transfers.