gunk-dev/the-valley

pending.txt

source40b311d8f0demain's published tip history
6.2 KiB
1usage: valley pending [--all] [--repo <name>] [--checks] [--drafts] [--branches] [--json] [-v] [--known-signers <file>] [--integrator-name <name>]
2
3 pending [--all] [--repo <name>] [--checks] [--drafts] [--branches]
4 [--json] [-v] [--known-signers <file>] [--integrator-name <name>]
5 list what waits on you and what is moving. one line
6 on main's state comes first for each project whose
7 policy declares follow checks: clear, clearing or
8 muddy. needs you holds the ready changes that wait on
9 an approval, one numbered row each in landing order:
10 oldest ready first, as the check worker builds them,
11 then by project and change id. a row gives the
12 handle and active version, its checks as passed out of
13 required (or how many are pending, or ✗ the pending
14 checks whose newest build by the host's check worker
15 failed, and when), and how long it has been ready,
16 with its title under it. a stack of
17 such changes is one row, its top's, saying `stack of
18 N`: approving the top lands every layer. moving holds
19 the ready changes that need no approval now, one line
20 each: ◐ approved, waiting on checks and the
21 integrator; ✗ a check failed, named; ✗ or ◇ a restack
22 holds it. under a row, conflicts with <handle> names
23 the project's other ready changes it conflicts with:
24 both heads merged on main's tip, as the integrator
25 merges one once the other lands. layers of one stack
26 are never compared. a pair with a head not on main's
27 tip awaits a restack, and at most 64 merges run; one
28 line under the sections counts the pairs not
29 compared, and why. each answer is kept in the client
30 cache, so a warm listing runs no merge. older
31 versions are never listed. a last line
32 counts the drafts and the branches no change is on.
33 lines fit the terminal, or 80 columns off one; titles
34 are cut short with …, names never. names are bold and
35 glyphs coloured on a terminal unless NO_COLOR is set.
36 --all every project the serving host
37 publishes, as one listing: each line
38 names its project, and the rows of
39 every project share one landing order
40 (see valley help changes)
41 --repo NAME that one project
42 --checks add to each row the checks the policy
43 requires of it, by cost, as checks
44 derives them, and its full check state,
45 naming the checks that failed, the
46 pending checks that failed in the
47 worker's build, and what they cost the
48 host's check worker to build, with a
49 see: line that reads the worker's
50 report of a failure. that report is
51 diagnostic: a check's state comes from
52 notes alone. with --drafts, give each
53 draft's block the same lines, its name
54 line saying its checks as a row does.
55 name the conflicted paths of each
56 change a row conflicts with.
57 with --json, give each pending change,
58 and with --drafts each draft, its
59 checks object
60 --drafts list the drafts in full, in place of
61 their count
62 --branches list the branches no change is on in
63 full, in place of their count. each
64 draft and branch is a block: its name
65 with its head's age and author, its
66 title, then the commits and the diff
67 it adds to the nearest listed entry
68 its head contains, or to main. a stack
69 is its top, then every entry the top
70 contains, at one indentation; an entry
71 not on the one listed after it says
72 `on <base>`
73 --json print valley-pending/v1: the
74 valley-changes/v1 shape, with the
75 pending changes in changes, each
76 marked approved or not, with its
77 conflicts and conflicts_unknown, and
78 the drafts in drafts
79 -v follow each row with its block, its
80 stack drawn in full, with what its
81 head includes, `uncertain` when it may
82 have landed without its evidence
83 stored, its conflicts' paths as
84 --checks names them, and its full
85 check state; and
86 warn on stderr when a plan graph is
87 missing or unreadable
88 --known-signers FILE, --integrator-name NAME
89 what a transfer statement is verified
90 with (see changes below)
91 for each project with a ready change, or a draft
92 --drafts --checks lists, reading the checks reads the
93 policy once and runs attest verify for each note.