gunk-dev/the-valley

changes.txt

source6bf8ca46b311main's published tip history
3.9 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; when that cannot be read, those
23 fields are left out and stderr says why. for each
24 project with such a change, it reads the policy once
25 and runs attest verify for each note.
26 handles are unique across
27 everything listed: a change id recorded in more than
28 one repository listed has the handle <repo>:<prefix>
29 in each. without --all it covers this
30 repository. --all covers every project the serving
31 host lists at refs/the-valley/projects in its instance
32 repository, which policy/valley names at main's tip on
33 origin; each project's URL is the instance's with its
34 last path segment replaced, and is read through a clone
35 kept under $XDG_CACHE_HOME/valley/repos. a url that
36 opens with a dash, names a <transport>:: helper such
37 as ext::, or has a scheme other than ssh, git, https or
38 file is refused. a repository that cannot be read is
39 listed with its error. --repo limits it to one
40 project. landed means on main's first-parent history
41 with no merge above it. landed-recorded needs a landed
42 commit with one parent and the integrator's transfer
43 statement for the version's request name, verified;
44 the integrator's outcome record for that name saying
45 land at the version's head; and the integrator's merge
46 of the head onto the landed commit's parent giving the
47 landed tree. the statement is verified with the
48 registry's known-signers file and the integrator's
49 signing name. each is taken from the first of these
50 that gives it: --known-signers FILE or
51 --integrator-name NAME; VALLEY_KNOWN_SIGNERS or
52 VALLEY_INTEGRATOR_SIGNER; what the serving host
53 publishes at refs/the-valley/signers in its instance
54 repository, read only when a statement needs
55 verifying. a file that does not read, or holds no key
56 under the name, is reported on stderr, and then no
57 statement is verified. a statement that passed is
58 remembered under $XDG_CACHE_HOME/valley/transfers.