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