@defrex/autobuild 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/SPEC.md +9 -3
- package/docs/architecture.md +10 -4
- package/docs/cli.md +1 -1
- package/docs/dispatcher.md +4 -3
- package/docs/operator-surfaces.md +3 -3
- package/package.json +3 -3
- package/packages/core/src/cli/dashboard/header.ts +10 -0
- package/packages/core/src/cli/dashboard/poll.ts +4 -3
- package/packages/core/src/cli/dashboard/render.ts +30 -0
- package/packages/core/src/cli/dispatch-frontend.ts +12 -3
- package/packages/core/src/cli/dispatch.ts +2 -4
- package/packages/core/src/cli/repository-status.ts +8 -6
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +65 -30
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/46196d8f0076496a.json +97 -0
- package/packages/core/src/kernel/dispatch-status.ts +139 -0
- package/packages/core/src/kernel/read-facts.ts +15 -13
- package/packages/core/src/kernel/reducer-revisions.ts +2 -0
- package/packages/core/src/operator/query.ts +7 -2
- package/packages/core/src/store/reducer-value-shapes.json +3566 -3528
- package/packages/core/src/store/remote/released-clients.json +11 -0
- package/packages/core/src/store/remote/released-reducer-values/1.11.1.json +35718 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -16
- package/packages/core/src/testing/dispatch-journals.ts +117 -0
- package/packages/core/src/web/repository-source.ts +6 -2
- package/skills/guide/SKILL.md +12 -4
- package/templates/hosted-service/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ From the repository you want built, install Autobuild as a development dependenc
|
|
|
26
26
|
<!-- release-install:start -->
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
bun add -d --exact @defrex/autobuild@1.11.
|
|
29
|
+
bun add -d --exact @defrex/autobuild@1.11.1
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<!-- release-install:end -->
|
package/SPEC.md
CHANGED
|
@@ -237,7 +237,11 @@ resident launcher, execution configuration/plugins, account admission and kernel
|
|
|
237
237
|
wiring. It never takes or renews a repository lease, starts a child, writes
|
|
238
238
|
dispatch lifecycle facts, or runs intake scans, janitor, sweep, harvest or builds.
|
|
239
239
|
Canonical repository facts supply the observed dispatcher's status and effective
|
|
240
|
-
configuration, independent of the viewer's operator correlation identity.
|
|
240
|
+
configuration, independent of the viewer's operator correlation identity. Every
|
|
241
|
+
frontend's queue count (the terminal dashboard in both modes, the web repository
|
|
242
|
+
header and overview, and the operator dashboard) is the queued depth of the latest
|
|
243
|
+
`dispatcher.ticket-scan-completed` in the repository's reduced facts, whichever run
|
|
244
|
+
recorded it, and 0 before any scan. With no
|
|
241
245
|
configuration the display waits, polling bounded canonical state. Fresh viewers
|
|
242
246
|
reuse saved server reductions; missing presentation caches never trigger event
|
|
243
247
|
history reconstruction. Idle polls read zero event rows. Its one ticket-source
|
|
@@ -4727,7 +4731,8 @@ requests are explicit reads once its store is open, and answer 503 before. It sh
|
|
|
4727
4731
|
repository facts that a refresh the dispatcher already makes has read: the
|
|
4728
4732
|
frontend's refresh loop under a TTY, the kernel's repository-view journal
|
|
4729
4733
|
refreshes in plain mode (so frames update at the dispatcher's tick cadence),
|
|
4730
|
-
and the viewer loop for `--viewer`. A TTY keeps the terminal dashboard
|
|
4734
|
+
and the viewer loop for `--viewer`. A TTY keeps the terminal dashboard, which
|
|
4735
|
+
shows the URL right-aligned on its first line in every generation;
|
|
4731
4736
|
under `--plain` or without a TTY the web UI is the only presentation. The
|
|
4732
4737
|
server binds before the repository lease, so a taken port fails dispatch
|
|
4733
4738
|
before it claims anything. For `--web` without a fixed port, the launcher
|
|
@@ -4735,7 +4740,8 @@ reserves a free port once and pins `--port` into every generation's argv. A
|
|
|
4735
4740
|
generation closes its server before it appends `dispatcher.terminal-released`,
|
|
4736
4741
|
and its successor, which already holds the lease, rebinds the same port, so
|
|
4737
4742
|
the URL survives automatic runtime upgrades. Only a first generation announces
|
|
4738
|
-
the URL
|
|
4743
|
+
the URL on stdout; a TTY dashboard shows it on its first line in every
|
|
4744
|
+
generation.
|
|
4739
4745
|
|
|
4740
4746
|
Within the immutable generation, interactive `ab dispatch` owns the terminal in a frontend process and supervises
|
|
4741
4747
|
one private child containing the dispatcher, build runners, Harvest, config and
|
package/docs/architecture.md
CHANGED
|
@@ -325,7 +325,10 @@ control, Harvest, and dispatcher run correlations. Lease metadata and clocks sta
|
|
|
325
325
|
outside event reducers: liveness combines durable run facts with the current
|
|
326
326
|
repository record and observation time, including an older lease holder hidden
|
|
327
327
|
by a newer run. The shared repository value keeps a bounded recent-run window, including the
|
|
328
|
-
latest started and stopped runs.
|
|
328
|
+
latest started and stopped runs. Its dispatch status (`foldReportedDispatch` in
|
|
329
|
+
`kernel/dispatch-status.ts`) describes the run holding authority rather than the
|
|
330
|
+
latest started: a start waits as one of at most 16 pending runs while a live,
|
|
331
|
+
ticked run is reported, and replaces it only by recording a tick boundary. Fresh invocations use those shared facts for
|
|
329
332
|
first-tick publication, liveness and supervision without creating a cold
|
|
330
333
|
parameterized cache. Older holder correlations can use `dispatcherRunFacts` for
|
|
331
334
|
the requested historical run. A never-started fresh invocation does not request
|
|
@@ -1289,9 +1292,12 @@ It follows one dispatch run's repository facts incrementally through
|
|
|
1289
1292
|
facts for their replay reducers, validates/caches its effective-config artifact,
|
|
1290
1293
|
and polls build streams independently while elapsed paints continue from cached
|
|
1291
1294
|
intervals. In local execution mode the header's triage count comes from the
|
|
1292
|
-
reduced `DispatchStatus` (`status.triage`)
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
+
reduced `DispatchStatus` (`status.triage`); viewer mode differs, as described
|
|
1296
|
+
below. The queue depth in every mode comes from the reduced repository facts'
|
|
1297
|
+
latest ticket scan (`facts.scan.queued`, via `repositoryQueueDepth` in
|
|
1298
|
+
`packages/core/src/cli/dashboard/header.ts`), whichever run recorded it, so a
|
|
1299
|
+
run that starts and yields cannot displace it. In both cases a frontend
|
|
1300
|
+
refresh reads neither the ticket source nor any extra store value. The supervised
|
|
1295
1301
|
kernel child (`frontendStatus`) samples the count through
|
|
1296
1302
|
`TriageCountSampler` (`packages/core/src/cli/triage-count-sampler.ts`): the
|
|
1297
1303
|
watch loop pokes it at startup and after each tick returns, so it reads at
|
package/docs/cli.md
CHANGED
|
@@ -98,5 +98,5 @@ another session's process; a preference does not authorize takeover.
|
|
|
98
98
|
`ab web [--json]` is always allowed, even while a dispatcher exists: it serves a
|
|
99
99
|
read-only UI without acquiring a dispatcher lease. `ab dispatch --web` serves the
|
|
100
100
|
same UI alongside dispatch; `--plain` keeps the URL on stdout and diagnostics on
|
|
101
|
-
stderr. Both default to loopback. Serving beyond loopback has no access control;
|
|
101
|
+
stderr; a TTY dashboard keeps it on its top line. Both default to loopback. Serving beyond loopback has no access control;
|
|
102
102
|
see [operator surfaces](operator-surfaces.md) for binding and refresh details.
|
package/docs/dispatcher.md
CHANGED
|
@@ -27,8 +27,9 @@ bun ab dispatch --viewer --dispatched-by app.autobuild.run
|
|
|
27
27
|
|
|
28
28
|
The optional label is descriptive input. Every frame says `viewer · dispatched by
|
|
29
29
|
<label>`, or simply `viewer` when omitted. Plain/non-TTY output states the mode
|
|
30
|
-
at startup and prints state changes. With `--web`,
|
|
31
|
-
|
|
30
|
+
at startup and prints state changes. With `--web`, a TTY viewer shows the web UI's
|
|
31
|
+
URL at the right of its `viewer` line, and plain/non-TTY output prints only the URL
|
|
32
|
+
and the web UI is the presentation. `--once` reads one snapshot; `--interval <s>`
|
|
32
33
|
sets the polling cadence. Without a recorded configuration it waits for the dispatcher.
|
|
33
34
|
|
|
34
35
|
The viewer takes no repository lease and starts no build, harvest, scan, janitor,
|
|
@@ -174,5 +175,5 @@ another session's process; a preference does not authorize takeover.
|
|
|
174
175
|
`ab web [--json]` is always allowed, even while a dispatcher exists: it serves a
|
|
175
176
|
read-only UI without acquiring a dispatcher lease. `ab dispatch --web` serves the
|
|
176
177
|
same UI alongside dispatch; `--plain` keeps the URL on stdout and diagnostics on
|
|
177
|
-
stderr. Both default to loopback. Serving beyond loopback has no access control;
|
|
178
|
+
stderr; a TTY dashboard keeps it on its top line. Both default to loopback. Serving beyond loopback has no access control;
|
|
178
179
|
see [operator surfaces](operator-surfaces.md) for binding and refresh details.
|
|
@@ -92,12 +92,12 @@ bun ab web
|
|
|
92
92
|
`ab dispatch --web` and `ab dispatch --viewer --web` serve the same UI from the dispatcher or viewer process:
|
|
93
93
|
|
|
94
94
|
- `--port`, `--host` and `--json` work as for `ab web` and require `--web`; `--json` changes only the URL announcement line.
|
|
95
|
-
- A TTY keeps the terminal dashboard. Under `--plain` or without a TTY, the web UI is the only presentation: stdout carries only the URL line, and warnings and diagnostics stay on stderr.
|
|
95
|
+
- A TTY keeps the terminal dashboard, which keeps the URL right-aligned on its top line in every view, viewer mode included. Under `--plain` or without a TTY, the web UI is the only presentation: stdout carries only the URL line, and warnings and diagnostics stay on stderr.
|
|
96
96
|
- Shows what the dispatcher's own refresh reads: the repository header without the overview. In plain mode the page updates each dispatcher tick (`--interval`, default 10 s).
|
|
97
97
|
- Frames from the terminal dashboard add no store reads. A plain dispatcher reads one change position per tick while a browser is connected, and nothing while none is.
|
|
98
98
|
- Analytics and build timelines work once the dispatcher's store is open, as explicit reads.
|
|
99
99
|
- Binds before the repository lease; a taken port fails dispatch before it claims anything.
|
|
100
|
-
- The URL keeps working across automatic runtime upgrades
|
|
100
|
+
- The URL keeps working across automatic runtime upgrades. Only the first generation announces it on stdout; a TTY dashboard keeps showing it on its top line, successors included. Ctrl-C closes it. `--once` is refused.
|
|
101
101
|
|
|
102
102
|
### Local stdio MCP
|
|
103
103
|
|
|
@@ -181,7 +181,7 @@ another session's process; a preference does not authorize takeover.
|
|
|
181
181
|
`ab web [--json]` is always allowed, even while a dispatcher exists: it serves a
|
|
182
182
|
read-only UI without acquiring a dispatcher lease. `ab dispatch --web` serves the
|
|
183
183
|
same UI alongside dispatch; `--plain` keeps the URL on stdout and diagnostics on
|
|
184
|
-
stderr. Both default to loopback. Serving beyond loopback has no access control;
|
|
184
|
+
stderr; a TTY dashboard keeps it on its top line. Both default to loopback. Serving beyond loopback has no access control;
|
|
185
185
|
see [operator surfaces](operator-surfaces.md) for binding and refresh details.
|
|
186
186
|
|
|
187
187
|
## Timeline and analytics
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defrex/autobuild",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Agent-driven software delivery from groomed ticket to merged PR",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
},
|
|
163
163
|
"devDependencies": {
|
|
164
164
|
"@biomejs/biome": "2.5.5",
|
|
165
|
-
"@defrex/autobuild-postgres-store": "1.11.
|
|
166
|
-
"@defrex/autobuild-vercel-sandbox": "1.11.
|
|
165
|
+
"@defrex/autobuild-postgres-store": "1.11.1",
|
|
166
|
+
"@defrex/autobuild-vercel-sandbox": "1.11.1",
|
|
167
167
|
"@resvg/resvg-js": "2.6.2",
|
|
168
168
|
"@types/bun": "^1.3.14",
|
|
169
169
|
"@types/node": "^24.0.0",
|
|
@@ -24,6 +24,16 @@ export function dispatchWarningLines(status: Readonly<DispatchStatus>): string[]
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* The ready-queue depth every frontend shows: the queued count of the latest
|
|
29
|
+
* completed ticket scan in the repository's reduced facts, whichever
|
|
30
|
+
* dispatcher run recorded it. A run that starts and yields cannot displace
|
|
31
|
+
* it. 0 before any scan.
|
|
32
|
+
*/
|
|
33
|
+
export function repositoryQueueDepth(facts: Pick<RepositoryReadFacts, 'scan'>): number {
|
|
34
|
+
return facts.scan?.queued ?? 0
|
|
35
|
+
}
|
|
36
|
+
|
|
27
37
|
/** The repository-scope members of a dashboard model. */
|
|
28
38
|
export type DashboardRepositoryHeader = Pick<
|
|
29
39
|
DashboardModel,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
type CurrentBuildFacts,
|
|
36
36
|
type RepositoryReadFacts,
|
|
37
37
|
} from '../../store/reduced-reads'
|
|
38
|
-
import { dispatchWarningLines } from './header'
|
|
38
|
+
import { dispatchWarningLines, repositoryQueueDepth } from './header'
|
|
39
39
|
import {
|
|
40
40
|
projectBuild,
|
|
41
41
|
projectBuildFromFacts,
|
|
@@ -218,7 +218,8 @@ export function projectRowWithEnrichment(
|
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* The dashboard header for one repository frame: the queue and capacity
|
|
221
|
-
* terms every frontend shows.
|
|
221
|
+
* terms every frontend shows. The queue term is the latest ticket scan's
|
|
222
|
+
* depth (`repositoryQueueDepth`), never one dispatcher run's status. `states` are the visible builds' reductions;
|
|
222
223
|
* acknowledged aborts and integration nodes do not count as active.
|
|
223
224
|
*/
|
|
224
225
|
export function repositoryDashboardHeader(input: {
|
|
@@ -237,7 +238,7 @@ export function repositoryDashboardHeader(input: {
|
|
|
237
238
|
return {
|
|
238
239
|
repo: input.repo,
|
|
239
240
|
...(input.standby !== undefined ? { standby: input.standby } : {}),
|
|
240
|
-
queued:
|
|
241
|
+
queued: repositoryQueueDepth(repositoryFacts),
|
|
241
242
|
activeCount: [...input.states].filter(
|
|
242
243
|
(state) => state.kind !== 'node' && state.status !== 'done' && state.status !== 'aborted',
|
|
243
244
|
).length,
|
|
@@ -1835,6 +1835,36 @@ export function viewerIndicator(viewer: { dispatchedBy?: string }, width: number
|
|
|
1835
1835
|
return width >= 6 && width < 9 ? 'viewer' : truncate(viewerLabel(viewer), width)
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
+
/**
|
|
1839
|
+
* Pin the web UI's `url` to the right end of a composed frame's first line.
|
|
1840
|
+
*
|
|
1841
|
+
* The URL ends in the terminal's last column; the rest of the line keeps its
|
|
1842
|
+
* gutters and is truncated first so that at least two spaces separate it from
|
|
1843
|
+
* the URL. The line's leading label (gutter, selection marker, first word) is
|
|
1844
|
+
* never cut: when the line cannot hold that label plus the whole URL, the
|
|
1845
|
+
* frame is returned unchanged, so a partial URL is never painted. The URL is
|
|
1846
|
+
* emitted as plain contiguous text, so terminals that detect URLs can make it
|
|
1847
|
+
* clickable. Only `lines[0]` changes; the frame never gains a line.
|
|
1848
|
+
*/
|
|
1849
|
+
export function pinTopLineUrl(
|
|
1850
|
+
lines: readonly string[],
|
|
1851
|
+
url: string,
|
|
1852
|
+
terminalWidth: number,
|
|
1853
|
+
): string[] {
|
|
1854
|
+
const first = lines[0]
|
|
1855
|
+
if (first === undefined || url === '' || terminalWidth <= 0) return [...lines]
|
|
1856
|
+
const urlWidth = cellWidth(url)
|
|
1857
|
+
const budget = terminalWidth - urlWidth - 2
|
|
1858
|
+
const plain = stripAnsi(first)
|
|
1859
|
+
const label = /^\s*(?:> )?\S+/.exec(plain)?.[0] ?? /^\s*/.exec(plain)?.[0] ?? ''
|
|
1860
|
+
const labelWidth = cellWidth(label)
|
|
1861
|
+
const need = visibleLength(first) <= budget ? labelWidth : labelWidth + 1
|
|
1862
|
+
if (budget < need) return [...lines]
|
|
1863
|
+
const left = truncate(first, budget)
|
|
1864
|
+
const gap = terminalWidth - visibleLength(left) - urlWidth
|
|
1865
|
+
return [`${left}${' '.repeat(gap)}${url}`, ...lines.slice(1)]
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1838
1868
|
export function renderDashboard(model: DashboardModel, opts: RenderOpts): string[] {
|
|
1839
1869
|
const terminalWidth = Math.max(0, opts.width)
|
|
1840
1870
|
const contentWidth = dashboardContentWidth(terminalWidth)
|
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
detailScrollLimit,
|
|
54
54
|
moveDetailScroll,
|
|
55
55
|
moveTranscriptScroll,
|
|
56
|
+
pinTopLineUrl,
|
|
56
57
|
renderDashboard,
|
|
57
58
|
viewerIndicator,
|
|
58
59
|
renderViewerNotice,
|
|
@@ -109,7 +110,8 @@ export interface DispatchFrontendOptions {
|
|
|
109
110
|
viewer?: { dispatchedBy?: string }
|
|
110
111
|
plainOutput?: (line: string) => void
|
|
111
112
|
/** `--web`: each frame's repository facts are published to the web UI from
|
|
112
|
-
* the read this frontend already made; the web adds no store read.
|
|
113
|
+
* the read this frontend already made; the web adds no store read. A TTY
|
|
114
|
+
* frontend also pins `url` to the right end of every frame's top line. */
|
|
113
115
|
web?: { dispatch: DispatchWeb }
|
|
114
116
|
/** Repository identity (§12): the normalized origin, or the checkout path
|
|
115
117
|
* when there is no origin. Every Store key uses this. */
|
|
@@ -346,7 +348,14 @@ export class DispatchFrontend {
|
|
|
346
348
|
const frame = lines.join('\n')
|
|
347
349
|
if (frame !== this.lastPlainFrame) this.opts.plainOutput(frame)
|
|
348
350
|
this.lastPlainFrame = frame
|
|
349
|
-
} else this.region.update(lines)
|
|
351
|
+
} else this.region.update(this.withWebUrl(lines))
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Pin the served web UI's URL to the top line of a TTY frame; identity
|
|
355
|
+
* under plain output or without `--web`. */
|
|
356
|
+
private withWebUrl(lines: string[]): string[] {
|
|
357
|
+
if (this.opts.plainOutput !== undefined || this.opts.web === undefined) return lines
|
|
358
|
+
return pinTopLineUrl(lines, this.opts.web.dispatch.url, this.opts.terminal.columns)
|
|
350
359
|
}
|
|
351
360
|
|
|
352
361
|
private contentHeight(): number {
|
|
@@ -459,7 +468,7 @@ export class DispatchFrontend {
|
|
|
459
468
|
),
|
|
460
469
|
)
|
|
461
470
|
} else if (status.health === 'failed' && status.warningNotice !== undefined)
|
|
462
|
-
this.region.update([status.warningNotice])
|
|
471
|
+
this.region.update(this.withWebUrl([status.warningNotice]))
|
|
463
472
|
// Startup is incomplete: retry at the same position.
|
|
464
473
|
return undefined
|
|
465
474
|
}
|
|
@@ -159,6 +159,7 @@ import {
|
|
|
159
159
|
type DashboardView,
|
|
160
160
|
} from './dashboard/model'
|
|
161
161
|
import { DashboardBuildPollCache } from './dashboard/poll'
|
|
162
|
+
import { repositoryQueueDepth } from './dashboard/header'
|
|
162
163
|
import {
|
|
163
164
|
dashboardContentWidth,
|
|
164
165
|
detailScrollLimit,
|
|
@@ -958,8 +959,6 @@ class DispatchLoop {
|
|
|
958
959
|
private configWarnings: readonly string[] = []
|
|
959
960
|
/** Deprecation notices of an autobuild.toml change that is not adopted. */
|
|
960
961
|
private candidateWarnings: readonly string[] = []
|
|
961
|
-
/** Last intake-enabled tick's standing queue depth, for the dashboard header. */
|
|
962
|
-
private queuedCount = 0
|
|
963
962
|
/** Display-only triage count, sampled between ticks at most once per
|
|
964
963
|
* `TRIAGE_COUNT_REFRESH_MS`. Present only for interactive dashboards and
|
|
965
964
|
* frontend-status kernels; its value is undefined until a read succeeds. */
|
|
@@ -1576,7 +1575,6 @@ class DispatchLoop {
|
|
|
1576
1575
|
invalidTickets: readyObservation?.invalidTickets ?? report.invalidTickets,
|
|
1577
1576
|
ticketDiagnostics: readyObservation?.ticketDiagnostics ?? report.ticketDiagnostics,
|
|
1578
1577
|
}
|
|
1579
|
-
this.queuedCount = publishedReport.queued
|
|
1580
1578
|
const triage = this.triageSampler?.value
|
|
1581
1579
|
this.lastTickStatus = {
|
|
1582
1580
|
queued: publishedReport.queued,
|
|
@@ -4308,7 +4306,7 @@ class DispatchLoop {
|
|
|
4308
4306
|
buildSnapshot.builds,
|
|
4309
4307
|
{
|
|
4310
4308
|
repo: this.repoIdentity,
|
|
4311
|
-
queued:
|
|
4309
|
+
queued: repositoryQueueDepth(repositoryEvents),
|
|
4312
4310
|
activeCount: [...buildSnapshot.states.values()].filter(
|
|
4313
4311
|
(state) => state.kind !== 'node' && state.status !== 'done' && state.status !== 'aborted',
|
|
4314
4312
|
).length,
|
|
@@ -42,7 +42,11 @@ import { readHookProgress } from '../processes/hooks'
|
|
|
42
42
|
import type { BuildStore, RepositoryArtifact } from '../store/types'
|
|
43
43
|
import type { LocalOverrideRecord } from '../config/local'
|
|
44
44
|
import { readBuildFacts } from '../store/reduced-reads'
|
|
45
|
-
import {
|
|
45
|
+
import {
|
|
46
|
+
foldReportedDispatch,
|
|
47
|
+
forgeReadinessWarnings,
|
|
48
|
+
initialReportedDispatch,
|
|
49
|
+
} from '../kernel/dispatch-status'
|
|
46
50
|
import { readRepositoryFacts, type RepositoryReadFacts } from '../store/reduced-reads'
|
|
47
51
|
import {
|
|
48
52
|
formatDispatcherIdentity,
|
|
@@ -360,11 +364,9 @@ export function projectRepositoryStatus(
|
|
|
360
364
|
}
|
|
361
365
|
publications.reverse()
|
|
362
366
|
const active = reduceTicketSourceHealth(events)
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
? reduceDispatchStatus(events, latestRun.payload.run)
|
|
367
|
-
: undefined
|
|
367
|
+
const reported = initialReportedDispatch()
|
|
368
|
+
for (const event of events) foldReportedDispatch(reported, event)
|
|
369
|
+
const runStatus = reported.run ? reported.status : undefined
|
|
368
370
|
const warningLines = runStatus
|
|
369
371
|
? [...runStatus.roleWarnings, ...forgeReadinessWarnings(runStatus)]
|
|
370
372
|
: []
|
|
@@ -1097,6 +1097,71 @@
|
|
|
1097
1097
|
"$.config.run: string",
|
|
1098
1098
|
"$.config: object",
|
|
1099
1099
|
"$.dismissedThrough: number",
|
|
1100
|
+
"$.dispatch.pending: array",
|
|
1101
|
+
"$.dispatch.pending[].started: number",
|
|
1102
|
+
"$.dispatch.pending[].status.availableUpgrade: string",
|
|
1103
|
+
"$.dispatch.pending[].status.creationWithheld: number",
|
|
1104
|
+
"$.dispatch.pending[].status.diagnostics: array",
|
|
1105
|
+
"$.dispatch.pending[].status.diagnostics[]: string",
|
|
1106
|
+
"$.dispatch.pending[].status.effectiveConfig.kind: string",
|
|
1107
|
+
"$.dispatch.pending[].status.effectiveConfig.rev: number",
|
|
1108
|
+
"$.dispatch.pending[].status.effectiveConfig: object",
|
|
1109
|
+
"$.dispatch.pending[].status.forgeReadinessFailures: array",
|
|
1110
|
+
"$.dispatch.pending[].status.forgeReadinessFailures: undefined",
|
|
1111
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].check: string",
|
|
1112
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].detail: string",
|
|
1113
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].forge: string",
|
|
1114
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].remediation: string",
|
|
1115
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].rootBranch: string",
|
|
1116
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[].run: string",
|
|
1117
|
+
"$.dispatch.pending[].status.forgeReadinessFailures[]: object",
|
|
1118
|
+
"$.dispatch.pending[].status.health: string",
|
|
1119
|
+
"$.dispatch.pending[].status.lastSeq: number",
|
|
1120
|
+
"$.dispatch.pending[].status.notice: string",
|
|
1121
|
+
"$.dispatch.pending[].status.notice: undefined",
|
|
1122
|
+
"$.dispatch.pending[].status.queued: number",
|
|
1123
|
+
"$.dispatch.pending[].status.roleWarnings: array",
|
|
1124
|
+
"$.dispatch.pending[].status.roleWarnings[]: string",
|
|
1125
|
+
"$.dispatch.pending[].status.run: string",
|
|
1126
|
+
"$.dispatch.pending[].status.triage: number",
|
|
1127
|
+
"$.dispatch.pending[].status.warningNotice: string",
|
|
1128
|
+
"$.dispatch.pending[].status.warningNotice: undefined",
|
|
1129
|
+
"$.dispatch.pending[].status.yieldedHolder: undefined",
|
|
1130
|
+
"$.dispatch.pending[].status: object",
|
|
1131
|
+
"$.dispatch.pending[]: object",
|
|
1132
|
+
"$.dispatch.run: string",
|
|
1133
|
+
"$.dispatch.started: number",
|
|
1134
|
+
"$.dispatch.status.availableUpgrade: string",
|
|
1135
|
+
"$.dispatch.status.creationWithheld: number",
|
|
1136
|
+
"$.dispatch.status.diagnostics: array",
|
|
1137
|
+
"$.dispatch.status.diagnostics[]: string",
|
|
1138
|
+
"$.dispatch.status.effectiveConfig.kind: string",
|
|
1139
|
+
"$.dispatch.status.effectiveConfig.rev: number",
|
|
1140
|
+
"$.dispatch.status.effectiveConfig: object",
|
|
1141
|
+
"$.dispatch.status.forgeReadinessFailures: array",
|
|
1142
|
+
"$.dispatch.status.forgeReadinessFailures: undefined",
|
|
1143
|
+
"$.dispatch.status.forgeReadinessFailures[].check: string",
|
|
1144
|
+
"$.dispatch.status.forgeReadinessFailures[].detail: string",
|
|
1145
|
+
"$.dispatch.status.forgeReadinessFailures[].forge: string",
|
|
1146
|
+
"$.dispatch.status.forgeReadinessFailures[].remediation: string",
|
|
1147
|
+
"$.dispatch.status.forgeReadinessFailures[].rootBranch: string",
|
|
1148
|
+
"$.dispatch.status.forgeReadinessFailures[].run: string",
|
|
1149
|
+
"$.dispatch.status.forgeReadinessFailures[]: object",
|
|
1150
|
+
"$.dispatch.status.health: string",
|
|
1151
|
+
"$.dispatch.status.lastSeq: number",
|
|
1152
|
+
"$.dispatch.status.notice: string",
|
|
1153
|
+
"$.dispatch.status.notice: undefined",
|
|
1154
|
+
"$.dispatch.status.queued: number",
|
|
1155
|
+
"$.dispatch.status.roleWarnings: array",
|
|
1156
|
+
"$.dispatch.status.roleWarnings[]: string",
|
|
1157
|
+
"$.dispatch.status.run: string",
|
|
1158
|
+
"$.dispatch.status.triage: number",
|
|
1159
|
+
"$.dispatch.status.warningNotice: string",
|
|
1160
|
+
"$.dispatch.status.warningNotice: undefined",
|
|
1161
|
+
"$.dispatch.status.yieldedHolder: undefined",
|
|
1162
|
+
"$.dispatch.status: object",
|
|
1163
|
+
"$.dispatch.ticked: boolean",
|
|
1164
|
+
"$.dispatch: object",
|
|
1100
1165
|
"$.failedAt.\"h_1\": string",
|
|
1101
1166
|
"$.failedAt.\"h_10\": string",
|
|
1102
1167
|
"$.failedAt.\"h_11\": string",
|
|
@@ -1698,7 +1763,6 @@
|
|
|
1698
1763
|
"$.recentRuns[][].tick: object",
|
|
1699
1764
|
"$.recentRuns[][]: object",
|
|
1700
1765
|
"$.recentRuns[][]: string",
|
|
1701
|
-
"$.run: string",
|
|
1702
1766
|
"$.sandboxes: array",
|
|
1703
1767
|
"$.sandboxes[].baseSha: string",
|
|
1704
1768
|
"$.sandboxes[].environmentId: string",
|
|
@@ -1719,35 +1783,6 @@
|
|
|
1719
1783
|
"$.settings.paused: boolean",
|
|
1720
1784
|
"$.settings.pausedSeq: number",
|
|
1721
1785
|
"$.settings: object",
|
|
1722
|
-
"$.status.availableUpgrade: string",
|
|
1723
|
-
"$.status.creationWithheld: number",
|
|
1724
|
-
"$.status.diagnostics: array",
|
|
1725
|
-
"$.status.diagnostics[]: string",
|
|
1726
|
-
"$.status.effectiveConfig.kind: string",
|
|
1727
|
-
"$.status.effectiveConfig.rev: number",
|
|
1728
|
-
"$.status.effectiveConfig: object",
|
|
1729
|
-
"$.status.forgeReadinessFailures: array",
|
|
1730
|
-
"$.status.forgeReadinessFailures: undefined",
|
|
1731
|
-
"$.status.forgeReadinessFailures[].check: string",
|
|
1732
|
-
"$.status.forgeReadinessFailures[].detail: string",
|
|
1733
|
-
"$.status.forgeReadinessFailures[].forge: string",
|
|
1734
|
-
"$.status.forgeReadinessFailures[].remediation: string",
|
|
1735
|
-
"$.status.forgeReadinessFailures[].rootBranch: string",
|
|
1736
|
-
"$.status.forgeReadinessFailures[].run: string",
|
|
1737
|
-
"$.status.forgeReadinessFailures[]: object",
|
|
1738
|
-
"$.status.health: string",
|
|
1739
|
-
"$.status.lastSeq: number",
|
|
1740
|
-
"$.status.notice: string",
|
|
1741
|
-
"$.status.notice: undefined",
|
|
1742
|
-
"$.status.queued: number",
|
|
1743
|
-
"$.status.roleWarnings: array",
|
|
1744
|
-
"$.status.roleWarnings[]: string",
|
|
1745
|
-
"$.status.run: string",
|
|
1746
|
-
"$.status.triage: number",
|
|
1747
|
-
"$.status.warningNotice: string",
|
|
1748
|
-
"$.status.warningNotice: undefined",
|
|
1749
|
-
"$.status.yieldedHolder: undefined",
|
|
1750
|
-
"$.status: object",
|
|
1751
1786
|
"$.ticketMigrations.migrations: array",
|
|
1752
1787
|
"$.ticketMigrations.migrations[].from: string",
|
|
1753
1788
|
"$.ticketMigrations.migrations[].identity: string",
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"records": [
|
|
3
|
+
{
|
|
4
|
+
"name": "repositoryReadFacts",
|
|
5
|
+
"identity": "repositoryReadFacts",
|
|
6
|
+
"revisions": [
|
|
7
|
+
"repositoryReadFacts/fold/fk3ka9gb3z",
|
|
8
|
+
"repositoryReadFacts/fold/vvcfmd23zp",
|
|
9
|
+
"repositoryReadFacts/shape/7hbgb52kw8",
|
|
10
|
+
"repositoryReadFacts/shape/hgw4spz5c0",
|
|
11
|
+
"repositoryReadFacts/shape/mggr8x6l5z",
|
|
12
|
+
"repositoryReadFacts/shape/o7791nz2gt",
|
|
13
|
+
"repositoryReadFacts/shape/se5kk44boc",
|
|
14
|
+
"repositoryReadFacts/shape/xyn7875cxw",
|
|
15
|
+
"sandboxStates/fold/hjdgop7xoh",
|
|
16
|
+
"sandboxStates/shape/gbrf8k4qxq",
|
|
17
|
+
"ticketStarts/fold/eglrhnb0ta",
|
|
18
|
+
"ticketStarts/shape/eecofz22vy"
|
|
19
|
+
],
|
|
20
|
+
"entries": {
|
|
21
|
+
"017d8dd5bb6dd80b": "9b19c8eb254d503fbe74d8de7039566f",
|
|
22
|
+
"10a4657408d4e121": "e3fb7766af5466a5ae330daebb436fa6",
|
|
23
|
+
"1411d1cdbdd9911e": "a5b60fa55d3c1d3999e4ee947878bd23",
|
|
24
|
+
"1444fe1fa7fc802c": "05191f10e8fcad6fef6e4211865ebb86",
|
|
25
|
+
"178e12f1759b7552": "61197c43eb41d8451ce5182402f23373",
|
|
26
|
+
"1921f86f752428c9": "abf8d370c9d94b6a50ab70d52d33454b",
|
|
27
|
+
"1972c1d66008ef6b": "56c634f6d1a0076256c385b2a9feab7c",
|
|
28
|
+
"19e8e43e7f3f1a06": "b18b2ccd2d11b39684f2fc991526b0d6",
|
|
29
|
+
"21ce2c0bf58318e1": "8eedb8f516b89cb65230c9cedb1bd903",
|
|
30
|
+
"293dcb3a94fb3470": "203e641af713b42a0e5369f9486f2301",
|
|
31
|
+
"2ab7436356267118": "fc4031327a07006ccdc946bf07aba04f",
|
|
32
|
+
"2d084641735caaff": "1061299214f493d5d51f9c11afae68ab",
|
|
33
|
+
"3237bcecf68e5db9": "79f6d09249036fd77dc5d3400e18124a",
|
|
34
|
+
"33d0cc593610e56f": "bd88ed40c1ada79d8657af1b339a6a9f",
|
|
35
|
+
"35cf9ccc4478b2d2": "5a2279bc99403d0f7d40cede4c8bb573",
|
|
36
|
+
"3649e7bd1203f154": "9d3742c0e29c7a3e999c9c9a8c6eac27",
|
|
37
|
+
"38c75099d9191471": "203e641af713b42a0e5369f9486f2301",
|
|
38
|
+
"431c9bb2ee8838e0": "0715d441ad523323105867bf09108797",
|
|
39
|
+
"49064fc079964a5c": "844ca8b44174ab640ce17a713b580d7d",
|
|
40
|
+
"4932c70a2af97faf": "0c732c6ead43fcb8d5f34159ac5e0e0b",
|
|
41
|
+
"4f00c0f2c8afd159": "9688f560966f37d57b4177bf5aa4b7f0",
|
|
42
|
+
"516a5a7aadf97587": "e63f56f546ed51d4e04df1e86c9fc476",
|
|
43
|
+
"536085773daf6b58": "57901f1d28ee614272cc8915a80e38ff",
|
|
44
|
+
"59ffaa6974094c72": "d1757ea5344f9164aca22e3ca6ca165a",
|
|
45
|
+
"5f0ca42af862c4ee": "840d8a2c1947ef0941e1ab8bf3afd42e",
|
|
46
|
+
"6118031132db9bfc": "8c44d3ef5b8a0241b5c712f994d56907",
|
|
47
|
+
"643d70429ce03dad": "c2b7bfc98da1427b6a3858d814d3f57b",
|
|
48
|
+
"677ea92572c29082": "4067b95ee98f33bc298d71c7489fabba",
|
|
49
|
+
"6ae5bf60504d6467": "58975765e668c4f361659977261d56ed",
|
|
50
|
+
"6bd6275061aaffa5": "c84c2528779e3ecc21e549e0ef2adedd",
|
|
51
|
+
"6efdc8defc75fccb": "d5b512d4f4c16b9d4bcadbee8f8206ad",
|
|
52
|
+
"7833e42d16301424": "b32c86839cd9044a4d7757d51b62db14",
|
|
53
|
+
"7d4edad0614adaf1": "54a48a0b441082d54a07d786c217153e",
|
|
54
|
+
"837365898d04f45a": "54a48a0b441082d54a07d786c217153e",
|
|
55
|
+
"85f9f0c921b8b5bb": "0926918433e11ebd637e34dae2a2d615",
|
|
56
|
+
"8879f57a24733897": "58975765e668c4f361659977261d56ed",
|
|
57
|
+
"88cb9e71bdec972d": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
58
|
+
"89625654b02e9ac1": "bac4fc52c015d8cb7b9f833dda540b85",
|
|
59
|
+
"8cc15eb1807c0157": "10c221f0b9db3782b1dca2ed6eb1f5c9",
|
|
60
|
+
"8ced97c44bc0af3a": "d998291081ba51e1bef3205aae7595ef",
|
|
61
|
+
"8d4144004720b9f8": "ef6389a96f072b54e91a0e0f19c827b8",
|
|
62
|
+
"8db633ead1807f8b": "c4fe43ef3276b5877db1b08a38d607cb",
|
|
63
|
+
"8e42cdbd0994ab0c": "e12aa5b2f6373eceb51f303a929e8d5a",
|
|
64
|
+
"9539b995af5c54a9": "1061299214f493d5d51f9c11afae68ab",
|
|
65
|
+
"9ee3919fbd4f9458": "a553618f38080bfcb814cb4a5416cfb1",
|
|
66
|
+
"a0b32c12e4e6edb6": "d323237478cd65b159eda1faab172bcf",
|
|
67
|
+
"a55218252707bdd3": "54a48a0b441082d54a07d786c217153e",
|
|
68
|
+
"a98af134be2da8a9": "9a0830cc47de7a66b3c2f1a85a7eb852",
|
|
69
|
+
"af953392d81911da": "58975765e668c4f361659977261d56ed",
|
|
70
|
+
"b0d877c44810ecb0": "64a155224f6c8526212f92f64e7ef575",
|
|
71
|
+
"c68b7ee2e2610f30": "05034ebd16ae9bf93b398663b30aea92",
|
|
72
|
+
"c7f7e0378aeea237": "1061299214f493d5d51f9c11afae68ab",
|
|
73
|
+
"c98cb1659eb142b6": "64a155224f6c8526212f92f64e7ef575",
|
|
74
|
+
"ca830adf06ed55a1": "54a48a0b441082d54a07d786c217153e",
|
|
75
|
+
"cb3a219f33e437ca": "feab7b027da5be2ecf041dd93fb55f1d",
|
|
76
|
+
"cf1e0c0d82567e0c": "cac9aba9f25adeb55568e902396839a4",
|
|
77
|
+
"d1432a819d8e48c5": "203e641af713b42a0e5369f9486f2301",
|
|
78
|
+
"d185ed6aa9192aff": "235467b1c87a46b383a7fa8550d8a2f8",
|
|
79
|
+
"d5d5ccca80a893d8": "0fdfd82c7426fd151bbb7544cd415187",
|
|
80
|
+
"d873fad29d6c7e55": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
81
|
+
"e2f18fa32fe1f6d0": "e5878dff98f5f30c5f82c1656fa82737",
|
|
82
|
+
"e37393fed29e84c5": "b32c86839cd9044a4d7757d51b62db14",
|
|
83
|
+
"e6a8585e2a054ff6": "ed2947f48b407a9a4f3bbfd151d8bc63",
|
|
84
|
+
"eb7ddd5319d09e27": "e7fa56dec140a7688e4a7d470b419aba",
|
|
85
|
+
"eca4959b2b87ae15": "5d66240a5fdec0ca59deafae16615bc5",
|
|
86
|
+
"ee10d7959ec4843c": "7a0b8bf4fb7a11ea26c5431bc205f96d",
|
|
87
|
+
"ef1b68347966ab26": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
88
|
+
"f3e55425cc41f230": "54a48a0b441082d54a07d786c217153e",
|
|
89
|
+
"f5b9ace9b59351e7": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
90
|
+
"f8155387eb5f375c": "5c119a1b47ade210ed5517f68b3babfc",
|
|
91
|
+
"fa8f1475a55be935": "8ecd3e416726e4af9b75f8eaa983f171",
|
|
92
|
+
"fb21116a15d0b1f1": "22c5ba7ef2445e8d6a9e7bbeb1b06d52",
|
|
93
|
+
"fe95444fbeabe592": "4b033ccb2ce1d4edc32bb44601049293"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|