lastlight-core 0.23.4 → 0.23.5
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/config/default.yaml +16 -0
- package/dist/admin/routes.d.ts +29 -0
- package/dist/admin/routes.js +136 -0
- package/dist/admin/routes.js.map +1 -1
- package/dist/config/config.d.ts +23 -0
- package/dist/config/config.js +25 -0
- package/dist/config/config.js.map +1 -1
- package/dist/cron/dependabot-discovery.d.ts +43 -4
- package/dist/cron/dependabot-discovery.js +47 -7
- package/dist/cron/dependabot-discovery.js.map +1 -1
- package/dist/engine/dispatcher.d.ts +5 -1
- package/dist/engine/dispatcher.js +88 -8
- package/dist/engine/dispatcher.js.map +1 -1
- package/dist/engine/fix-markers.d.ts +27 -0
- package/dist/engine/fix-markers.js +31 -0
- package/dist/engine/fix-markers.js.map +1 -1
- package/dist/engine/github/github.d.ts +1 -1
- package/dist/engine/github/github.js +1 -1
- package/dist/engine/pr-decisions.d.ts +71 -8
- package/dist/engine/pr-decisions.js +121 -24
- package/dist/engine/pr-decisions.js.map +1 -1
- package/dist/engine/pr-escalation.d.ts +112 -18
- package/dist/engine/pr-escalation.js +204 -31
- package/dist/engine/pr-escalation.js.map +1 -1
- package/dist/engine/pr-state.d.ts +152 -15
- package/dist/engine/pr-state.js +351 -94
- package/dist/engine/pr-state.js.map +1 -1
- package/dist/engine/router.js +116 -4
- package/dist/engine/router.js.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.js +41 -1
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/k8s/init-clone.d.ts +7 -4
- package/dist/sandbox/k8s/init-clone.js +35 -5
- package/dist/sandbox/k8s/init-clone.js.map +1 -1
- package/dist/workflows/simple.d.ts +24 -1
- package/dist/workflows/simple.js +39 -7
- package/dist/workflows/simple.js.map +1 -1
- package/package.json +3 -3
- package/workflows/prompts/dependabot-ci-fix.md +16 -6
- package/workflows/prompts/dependabot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`latestForTrigger`. A dispatch-time skip returns
|
|
27
27
|
* `{ kind: "skipped" }` and writes no row. So an escalation that stayed a
|
|
28
|
-
* row-less skip would never persist `escalatedAtSha`,
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* out" and latch the PR dead: exactly the one-way door 09 → S1 set out to
|
|
33
|
-
* remove, reintroduced by the feature meant to remove it.
|
|
28
|
+
* row-less skip would never persist `escalatedAtSha`, the guard would never
|
|
29
|
+
* bind, and every subsequent event on the same dead PR would escalate again —
|
|
30
|
+
* re-applying the label and posting the comment once per event, which is the
|
|
31
|
+
* one behaviour worse than the silent skip this module replaced.
|
|
34
32
|
*
|
|
35
33
|
* That is also why the row is written BEFORE the label. Every ordering has a
|
|
36
34
|
* crash window; this one chooses the harmless side of it. Row-then-crash leaves
|
|
37
|
-
* an escalation record with no label — the guard
|
|
38
|
-
* the
|
|
39
|
-
* Label-then-crash would leave a label with no record
|
|
40
|
-
*
|
|
35
|
+
* an escalation record with no label — the guard still binds off the record, so
|
|
36
|
+
* the PR is quiet and the label lands on the next escalation.
|
|
37
|
+
* Label-then-crash would leave a label with no record: a `requires-human` on the
|
|
38
|
+
* PR that nothing in the code can see, so the next event escalates and comments
|
|
39
|
+
* all over again.
|
|
41
40
|
*
|
|
42
41
|
* The row is recorded **`succeeded`**, not `failed`: 09 → S1 reserves `failed`
|
|
43
42
|
* for MALFUNCTION, and correct-but-stopped outcomes record `succeeded`. The run
|
|
@@ -50,20 +49,34 @@
|
|
|
50
49
|
* Neither `postComment` nor `addLabels` de-duplicates, and no API scan is used
|
|
51
50
|
* to ask "did we already comment". The once-only property comes from the
|
|
52
51
|
* persisted record instead: the next dispatch at the same head reads
|
|
53
|
-
* `escalatedAtSha` back
|
|
54
|
-
* `
|
|
52
|
+
* `escalatedAtSha` back and takes the `escalated:` skip — which carries no
|
|
53
|
+
* `EscalationCase`, so nothing is applied.
|
|
55
54
|
* A maintainer's push makes it a fresh problem, the guard falls away, and the
|
|
56
55
|
* PR is dispatchable again with no label to remove by hand.
|
|
56
|
+
*
|
|
57
|
+
* That property is therefore **entirely dependent on the `escalated:` guard
|
|
58
|
+
* firing first**, and the guard is bypassable: an explicit `@bot` request skips
|
|
59
|
+
* it by design, and a recorded retry consumes the record outright
|
|
60
|
+
* (03-retry-intervention.md). Every bypass lands back here, so `escalatePr`
|
|
61
|
+
* additionally refuses outright when it has already escalated at this exact
|
|
62
|
+
* head. Re-recording would be harmless; re-commenting is #256.
|
|
57
63
|
*/
|
|
58
64
|
import type { StateDb } from "../state/db.js";
|
|
59
65
|
import type { GitHubClient } from "./github/github.js";
|
|
60
66
|
import type { FixConfig } from "../config/config.js";
|
|
61
67
|
import type { Decision, EscalationCase, FixDisposition } from "./pr-decisions.js";
|
|
62
|
-
import { type PrState } from "./pr-state.js";
|
|
68
|
+
import { INTERVENTION_PHASE, type PrIntervention, type PrState } from "./pr-state.js";
|
|
63
69
|
/** Collaborators {@link escalatePr} needs. `github` is null in chat-only mode. */
|
|
64
70
|
export interface EscalationDeps {
|
|
65
71
|
db: StateDb;
|
|
66
72
|
github: GitHubClient | null;
|
|
73
|
+
/**
|
|
74
|
+
* The HOLD label (`hold.label`) and `@<botName>`, for the escalation
|
|
75
|
+
* comment's list of exits. Optional so every existing construction still
|
|
76
|
+
* compiles; the packaged names are the fallback.
|
|
77
|
+
*/
|
|
78
|
+
holdLabel?: string;
|
|
79
|
+
botMention?: string;
|
|
67
80
|
}
|
|
68
81
|
/**
|
|
69
82
|
* The phase name the escalation row terminates on. Not a real phase — no
|
|
@@ -134,6 +147,13 @@ export interface ForkNoticeOutcome {
|
|
|
134
147
|
export declare function noticeForkPr(workflowName: string, state: PrState, deps: EscalationDeps): Promise<ForkNoticeOutcome | null>;
|
|
135
148
|
/** The fork-PR notice. Pure, so its wording is table-testable. */
|
|
136
149
|
export declare function renderForkNotice(state: PrState): string;
|
|
150
|
+
/** The operator-configurable names {@link renderEscalationComment} has to speak. */
|
|
151
|
+
export interface EscalationCommentVocab {
|
|
152
|
+
/** `hold.label` — the label a maintainer applies to keep us off entirely. */
|
|
153
|
+
holdLabel: string;
|
|
154
|
+
/** `@<botName>` — the handle the `retry` command is addressed to. */
|
|
155
|
+
botMention: string;
|
|
156
|
+
}
|
|
137
157
|
/**
|
|
138
158
|
* The escalation comment. Pure, so its wording is table-testable.
|
|
139
159
|
*
|
|
@@ -144,9 +164,83 @@ export declare function renderForkNotice(state: PrState): string;
|
|
|
144
164
|
* is re-derived here: the reason comes from the decision, so the log line, this
|
|
145
165
|
* comment and the admin detail panel are three renderings of ONE source.
|
|
146
166
|
*
|
|
147
|
-
* The closing
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
167
|
+
* ## The closing section is a contract
|
|
168
|
+
*
|
|
169
|
+
* It is the only place most people will ever learn how to un-stick the bot, so
|
|
170
|
+
* **every exit it names has to work and every exit that works has to be named.**
|
|
171
|
+
* It used to fail both halves. It promised *"you can also ask me directly in a
|
|
172
|
+
* comment to override"*, which the code refused — an explicit request cleared
|
|
173
|
+
* the escalation guard and then fell straight into the same budget gate, so the
|
|
174
|
+
* only thing asking achieved was a duplicate copy of this comment — and it did
|
|
175
|
+
* not mention the hold label at all, because it predated it.
|
|
176
|
+
*
|
|
177
|
+
* After 02-hold-label.md and 03-retry-intervention.md the true exits are four,
|
|
178
|
+
* and the split below is the useful one: three of them mean *"go again"* and
|
|
179
|
+
* re-arm both budgets identically (locked decision 7), and the fourth means the
|
|
180
|
+
* opposite. Listing the hold beside them is deliberate — a maintainer reading
|
|
181
|
+
* this is, roughly half the time, someone who wants the bot to stop rather than
|
|
182
|
+
* to try harder, and until now there was nothing here telling them how.
|
|
183
|
+
*/
|
|
184
|
+
export declare function renderEscalationComment(kase: EscalationCase, reason: string, state: PrState, fix: FixConfig, vocab: EscalationCommentVocab): string;
|
|
185
|
+
/**
|
|
186
|
+
* The phase name a standalone intervention row terminates on. Same non-phase
|
|
187
|
+
* convention as {@link ESCALATION_PHASE} and {@link FORK_NOTICE_PHASE} — with
|
|
188
|
+
* one difference that moves where it is declared: `pr-state.ts` has to
|
|
189
|
+
* RECOGNISE this row when it derives `assessedHeadShaByWorkflow`, so the
|
|
190
|
+
* constant is defined there (this module already imports that one, and the
|
|
191
|
+
* reverse edge would be a cycle) and re-exported here, which is where every
|
|
192
|
+
* caller expects to find it.
|
|
193
|
+
*/
|
|
194
|
+
export { INTERVENTION_PHASE };
|
|
195
|
+
/** What {@link recordIntervention} did, for the caller's log line and for tests. */
|
|
196
|
+
export interface InterventionOutcome {
|
|
197
|
+
runId: string;
|
|
198
|
+
via: PrIntervention["via"];
|
|
199
|
+
at: string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Persist a retry that produced **no run**, so it is not silently lost.
|
|
203
|
+
*
|
|
204
|
+
* ## Where the record normally lives — and why this is the exception
|
|
205
|
+
*
|
|
206
|
+
* A retry that is immediately followed by a dispatch needs no row of its own:
|
|
207
|
+
* `dispatchWorkflow` persists the whole resolved snapshot on the run's
|
|
208
|
+
* `context.prState`, so the dispatched run itself carries the intervention and
|
|
209
|
+
* the next dispatch reads it back exactly as it reads `escalatedAtSha`. That is
|
|
210
|
+
* the common path and it is free.
|
|
211
|
+
*
|
|
212
|
+
* The exception is a retry the gate then skips for an unrelated reason — most
|
|
213
|
+
* usefully `upstream-broken`, where the base branch is red at the moment the
|
|
214
|
+
* maintainer asks. A skip returns `{ kind: "skipped" }` and writes NO row (09 →
|
|
215
|
+
* D1), so without this the ask evaporates: the base goes green an hour later,
|
|
216
|
+
* the PR is picked up, and the budget is still exhausted, so it escalates again
|
|
217
|
+
* and the maintainer's retry never happened.
|
|
218
|
+
*
|
|
219
|
+
* Same shape and same ordering as {@link escalatePr} — the record first, before
|
|
220
|
+
* any GitHub write — even though the crash window here is gentler (worst case a
|
|
221
|
+
* retry is lost and the maintainer asks again). Two mechanisms with the same
|
|
222
|
+
* shape and different orderings is how the next reader gets it wrong. There is
|
|
223
|
+
* no GitHub write at all today; the ordering is stated so that adding one later
|
|
224
|
+
* cannot get it backwards.
|
|
225
|
+
*
|
|
226
|
+
* ## The seam the admin API and the CLI use
|
|
227
|
+
*
|
|
228
|
+
* `lastlight pr retry <owner/repo#N>` is a thin client over an admin endpoint,
|
|
229
|
+
* and the endpoint is exactly this pair of calls:
|
|
230
|
+
*
|
|
231
|
+
* ```ts
|
|
232
|
+
* const state = await resolvePrState(owner, repo, prNumber, {
|
|
233
|
+
* github, db, botLogin,
|
|
234
|
+
* intervention: { via: "api", by: session.login, note: reason },
|
|
235
|
+
* });
|
|
236
|
+
* const outcome = await recordIntervention(workflowName, state, { db, github });
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* `resolvePrState` stamps `at`/`atSha` and re-arms the snapshot; this persists
|
|
240
|
+
* it. The route may then dispatch immediately (in which case this row is
|
|
241
|
+
* redundant but harmless — the guard below makes the pair idempotent) or leave
|
|
242
|
+
* the next cron tick to pick the PR up.
|
|
243
|
+
*
|
|
244
|
+
* Never throws.
|
|
151
245
|
*/
|
|
152
|
-
export declare function
|
|
246
|
+
export declare function recordIntervention(workflowName: string, state: PrState, deps: EscalationDeps): Promise<InterventionOutcome | null>;
|
|
@@ -25,19 +25,18 @@
|
|
|
25
25
|
* `escalatedAtSha` is read by `applyDerivedState` off the PRIOR RUN'S persisted
|
|
26
26
|
* `context.prState`, via `latestForTrigger`. A dispatch-time skip returns
|
|
27
27
|
* `{ kind: "skipped" }` and writes no row. So an escalation that stayed a
|
|
28
|
-
* row-less skip would never persist `escalatedAtSha`,
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* out" and latch the PR dead: exactly the one-way door 09 → S1 set out to
|
|
33
|
-
* remove, reintroduced by the feature meant to remove it.
|
|
28
|
+
* row-less skip would never persist `escalatedAtSha`, the guard would never
|
|
29
|
+
* bind, and every subsequent event on the same dead PR would escalate again —
|
|
30
|
+
* re-applying the label and posting the comment once per event, which is the
|
|
31
|
+
* one behaviour worse than the silent skip this module replaced.
|
|
34
32
|
*
|
|
35
33
|
* That is also why the row is written BEFORE the label. Every ordering has a
|
|
36
34
|
* crash window; this one chooses the harmless side of it. Row-then-crash leaves
|
|
37
|
-
* an escalation record with no label — the guard
|
|
38
|
-
* the
|
|
39
|
-
* Label-then-crash would leave a label with no record
|
|
40
|
-
*
|
|
35
|
+
* an escalation record with no label — the guard still binds off the record, so
|
|
36
|
+
* the PR is quiet and the label lands on the next escalation.
|
|
37
|
+
* Label-then-crash would leave a label with no record: a `requires-human` on the
|
|
38
|
+
* PR that nothing in the code can see, so the next event escalates and comments
|
|
39
|
+
* all over again.
|
|
41
40
|
*
|
|
42
41
|
* The row is recorded **`succeeded`**, not `failed`: 09 → S1 reserves `failed`
|
|
43
42
|
* for MALFUNCTION, and correct-but-stopped outcomes record `succeeded`. The run
|
|
@@ -50,14 +49,28 @@
|
|
|
50
49
|
* Neither `postComment` nor `addLabels` de-duplicates, and no API scan is used
|
|
51
50
|
* to ask "did we already comment". The once-only property comes from the
|
|
52
51
|
* persisted record instead: the next dispatch at the same head reads
|
|
53
|
-
* `escalatedAtSha` back
|
|
54
|
-
* `
|
|
52
|
+
* `escalatedAtSha` back and takes the `escalated:` skip — which carries no
|
|
53
|
+
* `EscalationCase`, so nothing is applied.
|
|
55
54
|
* A maintainer's push makes it a fresh problem, the guard falls away, and the
|
|
56
55
|
* PR is dispatchable again with no label to remove by hand.
|
|
56
|
+
*
|
|
57
|
+
* That property is therefore **entirely dependent on the `escalated:` guard
|
|
58
|
+
* firing first**, and the guard is bypassable: an explicit `@bot` request skips
|
|
59
|
+
* it by design, and a recorded retry consumes the record outright
|
|
60
|
+
* (03-retry-intervention.md). Every bypass lands back here, so `escalatePr`
|
|
61
|
+
* additionally refuses outright when it has already escalated at this exact
|
|
62
|
+
* head. Re-recording would be harmless; re-commenting is #256.
|
|
57
63
|
*/
|
|
58
64
|
import { randomUUID } from "crypto";
|
|
59
|
-
import { prTriggerId } from "./pr-state.js";
|
|
60
|
-
import { REQUIRES_HUMAN_LABEL } from "../cron/dependabot-discovery.js";
|
|
65
|
+
import { INTERVENTION_PHASE, interventionKey, prScopedWorkflows, prTriggerId, } from "./pr-state.js";
|
|
66
|
+
import { HOLD_LABEL, REQUIRES_HUMAN_LABEL } from "../cron/dependabot-discovery.js";
|
|
67
|
+
/**
|
|
68
|
+
* The packaged bot handle. Only a FALLBACK: every real call site passes the
|
|
69
|
+
* configured `@${getBotName()}` down, and this exists so a test (or a caller
|
|
70
|
+
* with no boot config) still renders a comment that names a plausible handle
|
|
71
|
+
* rather than `@undefined`.
|
|
72
|
+
*/
|
|
73
|
+
const DEFAULT_BOT_HANDLE = "last-light";
|
|
61
74
|
/**
|
|
62
75
|
* The phase name the escalation row terminates on. Not a real phase — no
|
|
63
76
|
* executor ran — but `phase_history` is what the run detail panel renders, and
|
|
@@ -87,13 +100,20 @@ export async function escalatePr(workflowName, state, decision, fix, deps) {
|
|
|
87
100
|
if (!owner || !name)
|
|
88
101
|
return null;
|
|
89
102
|
// No head SHA means the PR read failed. Recording `escalatedAtSha: ""` would
|
|
90
|
-
// read back as
|
|
91
|
-
//
|
|
92
|
-
// the next event re-resolves the snapshot
|
|
103
|
+
// read back as an escalation at a head that matches nothing, so the guard
|
|
104
|
+
// would never bind and every later event would escalate — and comment —
|
|
105
|
+
// again. Refuse rather than latch; the next event re-resolves the snapshot
|
|
106
|
+
// and escalates properly.
|
|
93
107
|
if (!state.headSha) {
|
|
94
108
|
console.warn(`[escalate] ${state.repo}#${state.prNumber}: ${kase} but the head SHA is unknown — skipping silently`);
|
|
95
109
|
return null;
|
|
96
110
|
}
|
|
111
|
+
// The `escalated:` guard is what normally makes this once-only, but it can
|
|
112
|
+
// be bypassed — by an explicit request, by a hand-removed label, or by a
|
|
113
|
+
// retry — and every bypass lands here again. Re-recording is harmless;
|
|
114
|
+
// re-commenting is #256.
|
|
115
|
+
if (state.escalatedAtSha === state.headSha)
|
|
116
|
+
return null;
|
|
97
117
|
// No client, no label, no comment — so an escalation here would be invisible,
|
|
98
118
|
// which is the whole thing this exists to prevent. Recording a row alone
|
|
99
119
|
// would also accumulate one per cron tick, since with no label the guard
|
|
@@ -108,11 +128,7 @@ export async function escalatePr(workflowName, state, decision, fix, deps) {
|
|
|
108
128
|
// next dispatch sees `requires-human` with no `escalatedAtSha` behind it and
|
|
109
129
|
// reads our own label as a maintainer's permanent override.
|
|
110
130
|
const runId = randomUUID();
|
|
111
|
-
const recorded = {
|
|
112
|
-
...state,
|
|
113
|
-
escalatedAtSha: state.headSha,
|
|
114
|
-
escalatedBy: "us",
|
|
115
|
-
};
|
|
131
|
+
const recorded = { ...state, escalatedAtSha: state.headSha };
|
|
116
132
|
try {
|
|
117
133
|
deps.db.runs.createRun({
|
|
118
134
|
id: runId,
|
|
@@ -162,7 +178,14 @@ export async function escalatePr(workflowName, state, decision, fix, deps) {
|
|
|
162
178
|
let commented = false;
|
|
163
179
|
if (labelled) {
|
|
164
180
|
try {
|
|
165
|
-
await github.postComment(owner, name, state.prNumber, renderEscalationComment(kase, decision.reason, recorded, fix
|
|
181
|
+
await github.postComment(owner, name, state.prNumber, renderEscalationComment(kase, decision.reason, recorded, fix, {
|
|
182
|
+
// The two operator-configurable names the comment has to speak. Read
|
|
183
|
+
// HERE rather than inside the pure renderer, so the wording stays
|
|
184
|
+
// table-testable and a deployment that renamed either gets a comment
|
|
185
|
+
// naming what it actually renamed them to.
|
|
186
|
+
holdLabel: deps.holdLabel ?? HOLD_LABEL,
|
|
187
|
+
botMention: deps.botMention ?? `@${DEFAULT_BOT_HANDLE}`,
|
|
188
|
+
}));
|
|
166
189
|
commented = true;
|
|
167
190
|
}
|
|
168
191
|
catch (err) {
|
|
@@ -283,12 +306,24 @@ const CASE_HEADLINE = {
|
|
|
283
306
|
* is re-derived here: the reason comes from the decision, so the log line, this
|
|
284
307
|
* comment and the admin detail panel are three renderings of ONE source.
|
|
285
308
|
*
|
|
286
|
-
* The closing
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
309
|
+
* ## The closing section is a contract
|
|
310
|
+
*
|
|
311
|
+
* It is the only place most people will ever learn how to un-stick the bot, so
|
|
312
|
+
* **every exit it names has to work and every exit that works has to be named.**
|
|
313
|
+
* It used to fail both halves. It promised *"you can also ask me directly in a
|
|
314
|
+
* comment to override"*, which the code refused — an explicit request cleared
|
|
315
|
+
* the escalation guard and then fell straight into the same budget gate, so the
|
|
316
|
+
* only thing asking achieved was a duplicate copy of this comment — and it did
|
|
317
|
+
* not mention the hold label at all, because it predated it.
|
|
318
|
+
*
|
|
319
|
+
* After 02-hold-label.md and 03-retry-intervention.md the true exits are four,
|
|
320
|
+
* and the split below is the useful one: three of them mean *"go again"* and
|
|
321
|
+
* re-arm both budgets identically (locked decision 7), and the fourth means the
|
|
322
|
+
* opposite. Listing the hold beside them is deliberate — a maintainer reading
|
|
323
|
+
* this is, roughly half the time, someone who wants the bot to stop rather than
|
|
324
|
+
* to try harder, and until now there was nothing here telling them how.
|
|
290
325
|
*/
|
|
291
|
-
export function renderEscalationComment(kase, reason, state, fix) {
|
|
326
|
+
export function renderEscalationComment(kase, reason, state, fix, vocab) {
|
|
292
327
|
const lines = [];
|
|
293
328
|
lines.push(`**${CASE_HEADLINE[kase]}**, so I've applied \`${REQUIRES_HUMAN_LABEL}\` and stopped.`);
|
|
294
329
|
lines.push("");
|
|
@@ -312,9 +347,147 @@ export function renderEscalationComment(kase, reason, state, fix) {
|
|
|
312
347
|
lines.push("I have no per-attempt notes for this PR — no run got as far as a diagnosis.");
|
|
313
348
|
}
|
|
314
349
|
lines.push("");
|
|
315
|
-
lines.push(
|
|
316
|
-
|
|
317
|
-
|
|
350
|
+
lines.push(`**How to un-stick this.** Any one of these three re-arms the attempt counter and the cost ` +
|
|
351
|
+
`budget for this pull request — they do exactly the same thing, so pick whichever is least ` +
|
|
352
|
+
`effort:`);
|
|
353
|
+
lines.push("");
|
|
354
|
+
lines.push(`- **Push a commit to this branch.** A new head from anyone but me is a fresh problem, so I ` +
|
|
355
|
+
`pick it up on the next event. You don't need to remove \`${REQUIRES_HUMAN_LABEL}\` by hand.`);
|
|
356
|
+
lines.push(`- **Comment \`${vocab.botMention} retry\`.** Anything you add after it — ` +
|
|
357
|
+
`\`${vocab.botMention} retry the arm64 runner was flaky\` — is recorded against the PR and ` +
|
|
358
|
+
`handed to the next attempt.`);
|
|
359
|
+
lines.push(`- **Remove the \`${REQUIRES_HUMAN_LABEL}\` label.** I read that as "have another go" and ` +
|
|
360
|
+
`start a fresh window at this same commit.`);
|
|
361
|
+
lines.push("");
|
|
362
|
+
lines.push(`If you'd rather I stayed off this pull request entirely, apply \`${vocab.holdLabel}\` — ` +
|
|
363
|
+
`nothing of mine runs on it until that label comes off.`);
|
|
318
364
|
return lines.join("\n");
|
|
319
365
|
}
|
|
366
|
+
// ---------------------------------------------------------------------------
|
|
367
|
+
// The retry record — the other half of the same mechanism
|
|
368
|
+
// ---------------------------------------------------------------------------
|
|
369
|
+
/**
|
|
370
|
+
* The phase name a standalone intervention row terminates on. Same non-phase
|
|
371
|
+
* convention as {@link ESCALATION_PHASE} and {@link FORK_NOTICE_PHASE} — with
|
|
372
|
+
* one difference that moves where it is declared: `pr-state.ts` has to
|
|
373
|
+
* RECOGNISE this row when it derives `assessedHeadShaByWorkflow`, so the
|
|
374
|
+
* constant is defined there (this module already imports that one, and the
|
|
375
|
+
* reverse edge would be a cycle) and re-exported here, which is where every
|
|
376
|
+
* caller expects to find it.
|
|
377
|
+
*/
|
|
378
|
+
export { INTERVENTION_PHASE };
|
|
379
|
+
/**
|
|
380
|
+
* Persist a retry that produced **no run**, so it is not silently lost.
|
|
381
|
+
*
|
|
382
|
+
* ## Where the record normally lives — and why this is the exception
|
|
383
|
+
*
|
|
384
|
+
* A retry that is immediately followed by a dispatch needs no row of its own:
|
|
385
|
+
* `dispatchWorkflow` persists the whole resolved snapshot on the run's
|
|
386
|
+
* `context.prState`, so the dispatched run itself carries the intervention and
|
|
387
|
+
* the next dispatch reads it back exactly as it reads `escalatedAtSha`. That is
|
|
388
|
+
* the common path and it is free.
|
|
389
|
+
*
|
|
390
|
+
* The exception is a retry the gate then skips for an unrelated reason — most
|
|
391
|
+
* usefully `upstream-broken`, where the base branch is red at the moment the
|
|
392
|
+
* maintainer asks. A skip returns `{ kind: "skipped" }` and writes NO row (09 →
|
|
393
|
+
* D1), so without this the ask evaporates: the base goes green an hour later,
|
|
394
|
+
* the PR is picked up, and the budget is still exhausted, so it escalates again
|
|
395
|
+
* and the maintainer's retry never happened.
|
|
396
|
+
*
|
|
397
|
+
* Same shape and same ordering as {@link escalatePr} — the record first, before
|
|
398
|
+
* any GitHub write — even though the crash window here is gentler (worst case a
|
|
399
|
+
* retry is lost and the maintainer asks again). Two mechanisms with the same
|
|
400
|
+
* shape and different orderings is how the next reader gets it wrong. There is
|
|
401
|
+
* no GitHub write at all today; the ordering is stated so that adding one later
|
|
402
|
+
* cannot get it backwards.
|
|
403
|
+
*
|
|
404
|
+
* ## The seam the admin API and the CLI use
|
|
405
|
+
*
|
|
406
|
+
* `lastlight pr retry <owner/repo#N>` is a thin client over an admin endpoint,
|
|
407
|
+
* and the endpoint is exactly this pair of calls:
|
|
408
|
+
*
|
|
409
|
+
* ```ts
|
|
410
|
+
* const state = await resolvePrState(owner, repo, prNumber, {
|
|
411
|
+
* github, db, botLogin,
|
|
412
|
+
* intervention: { via: "api", by: session.login, note: reason },
|
|
413
|
+
* });
|
|
414
|
+
* const outcome = await recordIntervention(workflowName, state, { db, github });
|
|
415
|
+
* ```
|
|
416
|
+
*
|
|
417
|
+
* `resolvePrState` stamps `at`/`atSha` and re-arms the snapshot; this persists
|
|
418
|
+
* it. The route may then dispatch immediately (in which case this row is
|
|
419
|
+
* redundant but harmless — the guard below makes the pair idempotent) or leave
|
|
420
|
+
* the next cron tick to pick the PR up.
|
|
421
|
+
*
|
|
422
|
+
* Never throws.
|
|
423
|
+
*/
|
|
424
|
+
export async function recordIntervention(workflowName, state, deps) {
|
|
425
|
+
const intervention = state.intervention;
|
|
426
|
+
if (!intervention)
|
|
427
|
+
return null;
|
|
428
|
+
const [owner, name] = state.repo.split("/");
|
|
429
|
+
if (!owner || !name)
|
|
430
|
+
return null;
|
|
431
|
+
// Same refusal as `escalatePr`'s: the head SHA is the record's idempotency
|
|
432
|
+
// key, and one keyed to `""` would match nothing and re-arm forever.
|
|
433
|
+
if (!state.headSha)
|
|
434
|
+
return null;
|
|
435
|
+
// Already persisted. `resolvePrState` folds an intervention forward off the
|
|
436
|
+
// prior row, so a redelivered webhook (or a route that both records and
|
|
437
|
+
// dispatches) resolves the SAME record rather than a new one — and this is
|
|
438
|
+
// what stops a second row being written for it.
|
|
439
|
+
const triggerId = prTriggerId(state.repo, state.prNumber);
|
|
440
|
+
const prior = deps.db.runs.latestForTrigger([...prScopedWorkflows()], triggerId);
|
|
441
|
+
const seen = priorIntervention(prior?.context);
|
|
442
|
+
if (seen && interventionKey(seen) === interventionKey(intervention))
|
|
443
|
+
return null;
|
|
444
|
+
const runId = randomUUID();
|
|
445
|
+
try {
|
|
446
|
+
deps.db.runs.createRun({
|
|
447
|
+
id: runId,
|
|
448
|
+
workflowName,
|
|
449
|
+
triggerId,
|
|
450
|
+
owner,
|
|
451
|
+
repo: name,
|
|
452
|
+
issueNumber: state.prNumber,
|
|
453
|
+
currentPhase: INTERVENTION_PHASE,
|
|
454
|
+
status: "running",
|
|
455
|
+
triggeredBy: intervention.by || "last-light",
|
|
456
|
+
// `system` and not `github`/`cli`: the row is the harness recording a
|
|
457
|
+
// fact, not a person's run. WHO asked is on the record itself, which is
|
|
458
|
+
// the one place it is allowed to be read from — for display.
|
|
459
|
+
triggerActorType: "system",
|
|
460
|
+
context: { prState: state, intervention },
|
|
461
|
+
startedAt: new Date().toISOString(),
|
|
462
|
+
});
|
|
463
|
+
deps.db.runs.finishRun(runId, "succeeded", {
|
|
464
|
+
terminalMarker: {
|
|
465
|
+
phase: INTERVENTION_PHASE,
|
|
466
|
+
summary: `retry requested via ${intervention.via}${intervention.by ? ` by ${intervention.by}` : ""}`,
|
|
467
|
+
},
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
catch (err) {
|
|
471
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
472
|
+
console.warn(`[retry] ${state.repo}#${state.prNumber}: could not record the retry (${msg}) — ` +
|
|
473
|
+
`it will be lost, and the maintainer will have to ask again`);
|
|
474
|
+
return null;
|
|
475
|
+
}
|
|
476
|
+
console.log(`[retry] ${workflowName} ${state.repo}#${state.prNumber}: recorded a ${intervention.via} retry ` +
|
|
477
|
+
`at ${state.headSha.slice(0, 7)} (run ${runId})`);
|
|
478
|
+
return { runId, via: intervention.via, at: intervention.at };
|
|
479
|
+
}
|
|
480
|
+
/** The intervention on a stored run context, if any. Tolerates old rows. */
|
|
481
|
+
function priorIntervention(context) {
|
|
482
|
+
if (!context || typeof context !== "object")
|
|
483
|
+
return null;
|
|
484
|
+
const snap = context.prState;
|
|
485
|
+
if (!snap || typeof snap !== "object")
|
|
486
|
+
return null;
|
|
487
|
+
const rec = snap.intervention;
|
|
488
|
+
if (!rec || typeof rec !== "object")
|
|
489
|
+
return null;
|
|
490
|
+
const at = rec.at;
|
|
491
|
+
return typeof at === "string" && at ? rec : null;
|
|
492
|
+
}
|
|
320
493
|
//# sourceMappingURL=pr-escalation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-escalation.js","sourceRoot":"","sources":["../../src/engine/pr-escalation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKpC,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAQvE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAA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