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