@intentius/chant 0.124.93 → 0.124.95
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/dist/ci-comment-commands.d.ts +12 -1
- package/dist/ci-comment-commands.d.ts.map +1 -1
- package/dist/ci-comment-commands.js +29 -0
- package/dist/ci-note-commands.d.ts +1 -1
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +11 -1
- package/dist/ci-product.d.ts +19 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +25 -8
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
- package/dist/cli/handlers/pr-comment.js +11 -4
- package/dist/cli/handlers/run-wave.js +17 -3
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +4 -1
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +4 -2
- package/dist/components/product-plan.d.ts +6 -0
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +9 -1
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +15 -6
- package/dist/gate-resume-run.d.ts +7 -0
- package/dist/gate-resume-run.d.ts.map +1 -1
- package/dist/gate-resume-run.js +42 -3
- package/dist/lexicon.d.ts +47 -1
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-applied.d.ts +18 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -1
- package/dist/op/before-merge-decide.d.ts +39 -2
- package/dist/op/before-merge-decide.d.ts.map +1 -1
- package/dist/op/before-merge-decide.js +59 -0
- package/dist/op/gate-run-locator.d.ts +17 -0
- package/dist/op/gate-run-locator.d.ts.map +1 -1
- package/dist/op/index.d.ts +3 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +2 -1
- package/dist/op/op-waves-names.d.ts +40 -0
- package/dist/op/op-waves-names.d.ts.map +1 -1
- package/dist/op/op-waves-names.js +79 -0
- package/dist/op/op-waves-remainder.d.ts +110 -0
- package/dist/op/op-waves-remainder.d.ts.map +1 -0
- package/dist/op/op-waves-remainder.js +120 -0
- package/dist/op/op-waves-render-spec.d.ts +63 -5
- package/dist/op/op-waves-render-spec.d.ts.map +1 -1
- package/dist/op/op-waves-render-spec.js +68 -10
- package/dist/op/op-waves-run.d.ts +27 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +192 -4
- package/dist/op/op-waves-split-resume.d.ts +57 -0
- package/dist/op/op-waves-split-resume.d.ts.map +1 -0
- package/dist/op/op-waves-split-resume.js +94 -0
- package/dist/op/op-waves.d.ts +26 -1
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +11 -2
- package/dist/release-floors.d.ts +13 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +13 -1
- package/dist/wave-runtime.mjs +360 -360
- package/package.json +1 -1
- package/src/ci-comment-commands.test.ts +147 -0
- package/src/ci-comment-commands.ts +29 -1
- package/src/ci-note-commands.ts +12 -2
- package/src/ci-product.ts +28 -8
- package/src/cli/handlers/pr-comment.ts +10 -4
- package/src/cli/handlers/run-wave.ts +16 -3
- package/src/cli/main.ts +4 -1
- package/src/components/product-pipeline.ts +4 -2
- package/src/components/product-plan.ts +9 -2
- package/src/floor-table.data.ts +15 -6
- package/src/gate-resume-run.ts +38 -3
- package/src/lexicon.ts +47 -1
- package/src/lifecycle/gate-applied.ts +16 -0
- package/src/op/before-merge-decide.ts +74 -2
- package/src/op/gate-run-locator.ts +14 -0
- package/src/op/index.ts +5 -0
- package/src/op/op-waves-names.ts +80 -0
- package/src/op/op-waves-remainder.test.ts +341 -0
- package/src/op/op-waves-remainder.ts +146 -0
- package/src/op/op-waves-render-spec.test.ts +106 -0
- package/src/op/op-waves-render-spec.ts +81 -10
- package/src/op/op-waves-run.ts +200 -5
- package/src/op/op-waves-split-resume.test.ts +148 -0
- package/src/op/op-waves-split-resume.ts +109 -0
- package/src/op/op-waves.ts +33 -2
- package/src/release-floors.ts +19 -1
|
@@ -37,13 +37,29 @@
|
|
|
37
37
|
* not applies nothing and exits 0, since the job exists before the runs
|
|
38
38
|
* are known.
|
|
39
39
|
*
|
|
40
|
+
* With `runsAtHead` (#5046) the job takes its runs from the applied commit,
|
|
41
|
+
* as a job reading a committed spec does. The job carries
|
|
42
|
+
* `CHANT_WAVES_SPEC_RUNS=head`, and chant renders the job's own spec at the
|
|
43
|
+
* commit the job checked out (the pushed commit, a follow-on's
|
|
44
|
+
* `CHANT_WAVES_COMMIT`, or before merge the decided head), with
|
|
45
|
+
* `CHANT_WAVES_SPEC_BASE` set to the base commit beside `CHANT_WAVES_SPEC_AT`,
|
|
46
|
+
* so the command can work out what the change reaches. That spec is the
|
|
47
|
+
* one written over `specFile`: its waves' runs, shares and groups are the
|
|
48
|
+
* ones the job plans and applies. The gate policy, the holds, the hooks and
|
|
49
|
+
* the evidence rules are still read from the render at base, which carries
|
|
50
|
+
* no `CHANT_WAVES_SPEC_BASE`, so the change cannot loosen its own gate. A
|
|
51
|
+
* wave the base render does not have waits as `always`. The gate and record
|
|
52
|
+
* jobs of a split wave run the default branch's code and take the runs from
|
|
53
|
+
* the saved plan, so they render at base as before. The stand-down's render
|
|
54
|
+
* of a newer commit carries no `CHANT_WAVES_SPEC_BASE` either.
|
|
55
|
+
*
|
|
40
56
|
* Nothing here imports the wave runner, so the generators' bundles take
|
|
41
57
|
* the variables without it; `chant run wave` hands in its git reader.
|
|
42
58
|
*/
|
|
43
59
|
import { execFileSync } from "node:child_process";
|
|
44
60
|
import { writeFileSync, mkdirSync } from "node:fs";
|
|
45
61
|
import { dirname, isAbsolute, join, posix } from "node:path";
|
|
46
|
-
export { RUNTIME_WAVES_SPEC_FLOOR } from "../release-floors.js";
|
|
62
|
+
export { RUNTIME_WAVES_SPEC_FLOOR, RUNTIME_WAVES_SPEC_RUNS_AT_HEAD_FLOOR } from "../release-floors.js";
|
|
47
63
|
/** The job variable that holds the product command printing the spec, as a JSON argv. */
|
|
48
64
|
export const OP_WAVES_SPEC_COMMAND_ENV = "CHANT_WAVES_SPEC_COMMAND";
|
|
49
65
|
/** The variable chant hands that command: the full commit to render the spec at. */
|
|
@@ -52,12 +68,19 @@ export const OP_WAVES_SPEC_AT_ENV = "CHANT_WAVES_SPEC_AT";
|
|
|
52
68
|
export const OP_WAVES_SPEC_FILE_ENV = "CHANT_WAVES_SPEC_FILE";
|
|
53
69
|
/** The `chant run wave` flag that renders the spec before the job runs. */
|
|
54
70
|
export const OP_WAVES_RENDER_SPEC_FLAG = "--render-spec";
|
|
71
|
+
/** The job variable that has the job take its runs from the applied commit (#5046): `head`. */
|
|
72
|
+
export const OP_WAVES_SPEC_RUNS_ENV = "CHANT_WAVES_SPEC_RUNS";
|
|
73
|
+
/** The variable chant hands the command in the job's own render under `runsAtHead` (#5046): the full base commit. */
|
|
74
|
+
export const OP_WAVES_SPEC_BASE_ENV = "CHANT_WAVES_SPEC_BASE";
|
|
55
75
|
/** What is wrong with a `renderSpec`, or nothing. */
|
|
56
76
|
export function opWavesRenderSpecProblems(value) {
|
|
57
77
|
const command = value?.command;
|
|
58
78
|
if (!Array.isArray(command) || command.length === 0 || command.some((w) => typeof w !== "string" || w.length === 0)) {
|
|
59
79
|
return ['renderSpec.command must be the product command that prints the spec, as a list of words: ["terragucci", "waves-spec"]'];
|
|
60
80
|
}
|
|
81
|
+
const runsAtHead = value.runsAtHead;
|
|
82
|
+
if (runsAtHead !== undefined && typeof runsAtHead !== "boolean")
|
|
83
|
+
return ["renderSpec.runsAtHead must be true or false"];
|
|
61
84
|
return [];
|
|
62
85
|
}
|
|
63
86
|
/** The variables a wave job carries for `renderSpec`, or none without it. Throws on a `renderSpec` that is wrong. */
|
|
@@ -67,7 +90,16 @@ export function opWavesRenderSpecEnv(renderSpec) {
|
|
|
67
90
|
const problems = opWavesRenderSpecProblems(renderSpec);
|
|
68
91
|
if (problems.length > 0)
|
|
69
92
|
throw new Error(problems.join("; "));
|
|
70
|
-
return { [OP_WAVES_SPEC_COMMAND_ENV]: JSON.stringify(renderSpec.command) };
|
|
93
|
+
return { [OP_WAVES_SPEC_COMMAND_ENV]: JSON.stringify(renderSpec.command), ...(renderSpec.runsAtHead === true ? { [OP_WAVES_SPEC_RUNS_ENV]: "head" } : {}) };
|
|
94
|
+
}
|
|
95
|
+
/** Whether the job takes its runs from the applied commit (#5046): `CHANT_WAVES_SPEC_RUNS` is `head`. Throws on any other value. */
|
|
96
|
+
export function opWavesSpecRunsAtHead(env = process.env) {
|
|
97
|
+
const raw = env[OP_WAVES_SPEC_RUNS_ENV];
|
|
98
|
+
if (raw === undefined || raw === "")
|
|
99
|
+
return false;
|
|
100
|
+
if (raw === "head")
|
|
101
|
+
return true;
|
|
102
|
+
throw new Error(`${OP_WAVES_SPEC_RUNS_ENV} is head or unset: got ${JSON.stringify(raw)}`);
|
|
71
103
|
}
|
|
72
104
|
/** The product command `CHANT_WAVES_SPEC_COMMAND` names. Throws when it is unset or not a JSON list of words. */
|
|
73
105
|
export function opWavesSpecCommandFromEnv(env = process.env) {
|
|
@@ -85,8 +117,12 @@ export function opWavesSpecCommandFromEnv(env = process.env) {
|
|
|
85
117
|
throw new Error(`${OP_WAVES_SPEC_COMMAND_ENV} must be a JSON list of words, such as ["terragucci","waves-spec"]: got ${raw}`);
|
|
86
118
|
return command;
|
|
87
119
|
}
|
|
88
|
-
/**
|
|
89
|
-
|
|
120
|
+
/**
|
|
121
|
+
* {@link OpWavesSpecRender} through the product's command, run in `cwd`. Its
|
|
122
|
+
* standard error goes to the job's log. `extra` adds variables, such as
|
|
123
|
+
* `CHANT_WAVES_SPEC_BASE` for the job's own render at head (#5046).
|
|
124
|
+
*/
|
|
125
|
+
export function commandSpecRender(command, specFile, cwd, extra = {}) {
|
|
90
126
|
return (sha) => {
|
|
91
127
|
let out;
|
|
92
128
|
try {
|
|
@@ -94,7 +130,7 @@ export function commandSpecRender(command, specFile, cwd) {
|
|
|
94
130
|
cwd,
|
|
95
131
|
encoding: "utf-8",
|
|
96
132
|
stdio: ["ignore", "pipe", "inherit"],
|
|
97
|
-
env: { ...process.env, [OP_WAVES_SPEC_AT_ENV]: sha, [OP_WAVES_SPEC_FILE_ENV]: specFile },
|
|
133
|
+
env: { ...process.env, [OP_WAVES_SPEC_AT_ENV]: sha, [OP_WAVES_SPEC_FILE_ENV]: specFile, ...extra },
|
|
98
134
|
maxBuffer: 64 * 1024 * 1024,
|
|
99
135
|
});
|
|
100
136
|
}
|
|
@@ -139,24 +175,46 @@ export function renderOpWavesSpecFile(options) {
|
|
|
139
175
|
writeFileSync(path, text.endsWith("\n") ? text : `${text}\n`);
|
|
140
176
|
return { spec, sha };
|
|
141
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* The job's spec and the reader of the rules (#4982, #5046). `show` reads
|
|
180
|
+
* the spec at any commit through `render` (the rules at base, the
|
|
181
|
+
* stand-down's newer commit). The job's own spec is rendered at `base`, or
|
|
182
|
+
* with `runsAtHead` at `HEAD`, the commit the job checked out, through
|
|
183
|
+
* `headRender`, which the caller builds with `CHANT_WAVES_SPEC_BASE` set to
|
|
184
|
+
* the base commit's sha (it gets that sha). Either is written over
|
|
185
|
+
* `specFile`. `at` says where the job's spec came from, for the job's log.
|
|
186
|
+
*/
|
|
187
|
+
export function renderOpWavesJobSpec(options) {
|
|
188
|
+
const show = renderedSpecShow(options.specFile, options.render, options.fallback);
|
|
189
|
+
if (!options.runsAtHead)
|
|
190
|
+
return { ...renderOpWavesSpecFile({ specFile: options.specFile, base: options.base, cwd: options.cwd, show, parse: options.parse }), show, at: "base" };
|
|
191
|
+
if (!options.headRender)
|
|
192
|
+
throw new Error("renderOpWavesJobSpec: runsAtHead needs headRender");
|
|
193
|
+
const { sha: baseSha } = options.fallback(options.base, options.specFile, options.cwd);
|
|
194
|
+
// Its own reader, so the render at head is never taken for the rules, even when the head is the base.
|
|
195
|
+
const headShow = renderedSpecShow(options.specFile, options.headRender(baseSha), options.fallback);
|
|
196
|
+
return { ...renderOpWavesSpecFile({ specFile: options.specFile, base: "HEAD", cwd: options.cwd, show: headShow, parse: options.parse }), show, at: "head" };
|
|
197
|
+
}
|
|
142
198
|
/**
|
|
143
199
|
* Whether job `job` of wave `k` has anything in the rendered spec: a share
|
|
144
200
|
* past the wave's (or the group's) shares, or a group the wave does not
|
|
145
|
-
* have, has nothing. Undefined when it has; otherwise why not.
|
|
201
|
+
* have, has nothing. Undefined when it has; otherwise why not. `at` names
|
|
202
|
+
* the commit the spec was rendered at, `base` or `head` (#5046).
|
|
146
203
|
*/
|
|
147
|
-
export function renderedJobMissing(spec, k, job) {
|
|
204
|
+
export function renderedJobMissing(spec, k, job, at = "base") {
|
|
148
205
|
const wave = spec.waves[k - 1];
|
|
149
206
|
if (!wave)
|
|
150
207
|
return undefined;
|
|
208
|
+
const where = `in the spec rendered at ${at}`;
|
|
151
209
|
if (job.group !== undefined) {
|
|
152
210
|
const group = wave.jobs?.find((g) => g.name === job.group);
|
|
153
211
|
if (!group)
|
|
154
|
-
return `wave ${k} (${wave.name}) has no job group "${job.group}"
|
|
212
|
+
return `wave ${k} (${wave.name}) has no job group "${job.group}" ${where}`;
|
|
155
213
|
if (job.share !== undefined && job.share > (group.shares ?? 1))
|
|
156
|
-
return `job group "${job.group}" of wave ${k} (${wave.name}) has ${group.shares ?? 1} share${(group.shares ?? 1) === 1 ? "" : "s"}
|
|
214
|
+
return `job group "${job.group}" of wave ${k} (${wave.name}) has ${group.shares ?? 1} share${(group.shares ?? 1) === 1 ? "" : "s"} ${where}`;
|
|
157
215
|
return undefined;
|
|
158
216
|
}
|
|
159
217
|
if (job.share !== undefined && wave.jobs === undefined && job.share > (wave.shares ?? 1))
|
|
160
|
-
return `wave ${k} (${wave.name}) has ${wave.shares ?? 1} share${(wave.shares ?? 1) === 1 ? "" : "s"}
|
|
218
|
+
return `wave ${k} (${wave.name}) has ${wave.shares ?? 1} share${(wave.shares ?? 1) === 1 ? "" : "s"} ${where}`;
|
|
161
219
|
return undefined;
|
|
162
220
|
}
|
|
@@ -55,7 +55,7 @@ import { type GateCheckInput, type GateDigestMismatch, type GateLedgerPort } fro
|
|
|
55
55
|
import type { GateAnswerRef, PendingGateRecord } from "../lifecycle/gate-ledger.js";
|
|
56
56
|
import type { GatePointAsker } from "../point-decision.js";
|
|
57
57
|
import type { WaitingPoint } from "./steward-points.js";
|
|
58
|
-
import { type AppliedGateRecord } from "../lifecycle/gate-applied.js";
|
|
58
|
+
import { type AppliedGateChange, type AppliedGateRecord } from "../lifecycle/gate-applied.js";
|
|
59
59
|
import type { HeadPlans, ReviewSource } from "./gate-review.js";
|
|
60
60
|
import type { TrustPolicy } from "../workspace/trust/policy.js";
|
|
61
61
|
import type { GateSigners } from "../lifecycle/gate-seal.js";
|
|
@@ -276,6 +276,28 @@ export interface OpWaveDecision {
|
|
|
276
276
|
approvedAt?: string;
|
|
277
277
|
/** When the wave recorded that it applies under the approval, which spent it. */
|
|
278
278
|
spentAt?: string;
|
|
279
|
+
/** `approvals.remainder` at base, beside `approvals.spend` (#5047): the applied line names the changes, and the apply's end is recorded. */
|
|
280
|
+
remainder?: true;
|
|
281
|
+
/** `approvals.spendStanding` at base (#5047): a wave its gate lets through spends an approval of its digest that stands. */
|
|
282
|
+
spendStanding?: true;
|
|
283
|
+
/**
|
|
284
|
+
* Under `remainder` (#5047): each change the plans make, a run's resource
|
|
285
|
+
* and its digest, which the applied line names. Absent when a run that
|
|
286
|
+
* changes something plans on no resource grain: the apply cannot resume
|
|
287
|
+
* as a remainder.
|
|
288
|
+
*/
|
|
289
|
+
changes?: AppliedGateChange[];
|
|
290
|
+
/**
|
|
291
|
+
* Under `remainder` (#5047): the stopped apply this wave applies the rest
|
|
292
|
+
* of, under its approval. The wave writes no applied line of its own; the
|
|
293
|
+
* finished line names this one.
|
|
294
|
+
*/
|
|
295
|
+
resumes?: {
|
|
296
|
+
planDigest: string;
|
|
297
|
+
appliedAt: string;
|
|
298
|
+
approvedAt: string;
|
|
299
|
+
approvedBy: string;
|
|
300
|
+
};
|
|
279
301
|
/** `apply`: the apply command runs the apply-stage hooks under its own lock (#3804), as read at base. Absent: chant runs them. */
|
|
280
302
|
applyHooksRunBy?: "apply";
|
|
281
303
|
/** Every hook's outcome so far in the job that wrote the record (#3804). */
|
|
@@ -546,6 +568,10 @@ export interface OpWaveBaseRules {
|
|
|
546
568
|
hooksRefused?: string;
|
|
547
569
|
/** The spec at base sets `approvals.spend` (#3784). */
|
|
548
570
|
spend: boolean;
|
|
571
|
+
/** The spec at base sets `approvals.remainder` beside `approvals.spend` (#5047). */
|
|
572
|
+
remainder?: boolean;
|
|
573
|
+
/** The spec at base sets `approvals.spendStanding` beside `approvals.spend` (#5047). */
|
|
574
|
+
spendStanding?: boolean;
|
|
549
575
|
/** Who runs the apply-stage hooks, as read at base (#3804). `chant` when the file, the wave or the hooks are missing there. */
|
|
550
576
|
applyHooksRunBy: OpWaveApplyHooksRunner;
|
|
551
577
|
/** The spec at base sets `neverOverMcp` (#3821). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-waves-run.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAMH,OAAO,EAAyF,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE3I,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAOL,KAAK,UAAU,EAEhB,MAAM,gBAAgB,CAAC;AAYxB,OAAO,EAAmE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC5J,OAAO,KAAK,EAAE,aAAa,EAAoB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,YA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AAK,CAAC;AAqbtC,qHAAqH;AACrH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAElF;AAmiDD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,+HAA+H;IAC/H,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,4HAA4H;IAC5H,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,+FAA+F;IAC/F,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CA2C/F"}
|
package/dist/op/op-waves-run.js
CHANGED
|
@@ -58,10 +58,12 @@ import { decideWaveGate, runWaveLoop, waveDigestMembers, waveSetDigest, writeWav
|
|
|
58
58
|
import { blockedMembers, blockedWords, earlierWaveOutcomes, passesThrough, readWaveOutcomeFile, waveOutcomeFileName, writeWaveOutcomeFile, } from "../wave-blocked.js";
|
|
59
59
|
import { approveCommand, evaluateGate, gitGateLedgerPort } from "./gate.js";
|
|
60
60
|
import { finishedApply, isApprovalSpent } from "../lifecycle/gate-applied.js";
|
|
61
|
+
import { opWaveApprovedChanges, opWaveCoverRemainder, opWaveRunCovered, opWaveStoppedApply, opWaveUnfinishedApply } from "./op-waves-remainder.js";
|
|
61
62
|
import { samePlanDigest } from "../lifecycle/plan-digest.js";
|
|
62
63
|
import { movedSincePreview } from "./op-waves-preview.js";
|
|
63
64
|
import { isLifecycleLocalNote } from "../lifecycle/local-note.js";
|
|
64
|
-
import { ciRunIdFromEnv } from "./gate-run-locator.js";
|
|
65
|
+
import { ciRunIdFromEnv, resolveGateRunLocator } from "./gate-run-locator.js";
|
|
66
|
+
import { opWaveSplitResumeLocator } from "./op-waves-split-resume.js";
|
|
65
67
|
import { appendRunRecord, DEFAULT_RUN_ENV } from "../lifecycle/run-ledger.js";
|
|
66
68
|
import { LifecyclePushLostError, pushLifecycleRebasing } from "../lifecycle/git.js";
|
|
67
69
|
import { opWaveEvidenceRefusal, signOpWaveChecks } from "./op-waves-evidence.js";
|
|
@@ -150,16 +152,19 @@ export function readOpWavePolicy(specFile, name, base, cwd, show = gitShowAtBase
|
|
|
150
152
|
}
|
|
151
153
|
// The spend rule is the spec's, so it holds for a wave the base does not have yet.
|
|
152
154
|
const spend = spec.approvals?.spend === true;
|
|
155
|
+
// #5047: the rest of a stopped apply, and an approval left standing, both work on the spend rule's lines.
|
|
156
|
+
const settings = spec.approvals;
|
|
157
|
+
const spendRules = { ...(spend && settings?.remainder === true ? { remainder: true } : {}), ...(spend && settings?.spendStanding === true ? { spendStanding: true } : {}) };
|
|
153
158
|
const neverOverMcp = spec.neverOverMcp === true;
|
|
154
159
|
// #3836: the gate's decision point, the spec's for a wave the base does not have yet.
|
|
155
160
|
const asks = { ...pointAtBase(spec, name, `${specFile} at ${sha.slice(0, 12)}`), ...quorumAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...holdsAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...evidenceAtBase(spec, `${specFile} at ${sha.slice(0, 12)}`), ...pullRequestGateAtBase(spec), ...(spec.approvals?.preview === true ? { preview: true } : {}) };
|
|
156
161
|
const wave = spec.waves.find((w) => w.name === name);
|
|
157
162
|
if (!wave)
|
|
158
|
-
return { ...absent, spend, neverOverMcp, ...asks };
|
|
163
|
+
return { ...absent, spend, ...spendRules, neverOverMcp, ...asks };
|
|
159
164
|
const policy = wave.gate ?? "always";
|
|
160
165
|
// An approval mode this chant does not know reads as sealed: the strictest, so an unknown rule never loosens a gate.
|
|
161
166
|
const approval = wave.approval === undefined ? "ledger" : GATE_APPROVAL_SOURCES.includes(wave.approval) ? wave.approval : "sealed";
|
|
162
|
-
const rules = { policy: OP_WAVE_GATE_POLICIES.includes(policy) ? policy : "always", approval, source: "base", base: sha, hooks: noHooks(), spend, applyHooksRunBy: "chant", neverOverMcp, ...asks };
|
|
167
|
+
const rules = { policy: OP_WAVE_GATE_POLICIES.includes(policy) ? policy : "always", approval, source: "base", base: sha, hooks: noHooks(), spend, ...spendRules, applyHooksRunBy: "chant", neverOverMcp, ...asks };
|
|
163
168
|
try {
|
|
164
169
|
assertOpWaveHooks(`${specFile} at ${sha.slice(0, 12)}`, spec.hooks);
|
|
165
170
|
assertOpWaveHooks(`${specFile} at ${sha.slice(0, 12)}, wave "${name}"`, wave.hooks);
|
|
@@ -2271,6 +2276,12 @@ async function writeOpWaveRecords(options, at) {
|
|
|
2271
2276
|
result.exitCode = codes.every((c) => c === CHANT_EXIT.done) ? CHANT_EXIT.done : (codes.find((c) => c !== CHANT_EXIT.done && c !== CHANT_EXIT.failed) ?? CHANT_EXIT.failed);
|
|
2272
2277
|
if (lost && result.exitCode === CHANT_EXIT.done)
|
|
2273
2278
|
result.exitCode = CHANT_EXIT.failed;
|
|
2279
|
+
// #5047: how the apply under the gate job's applied line ended; an applying job that left no run record stopped, and says nothing.
|
|
2280
|
+
const line = decision ? remainderLine(decision) : undefined;
|
|
2281
|
+
if (line && !codes.includes(CHANT_EXIT.waiting)) {
|
|
2282
|
+
const applied = codes.every((c) => c === CHANT_EXIT.done) && result.failed.length === 0;
|
|
2283
|
+
await writeApplyFinished(options, { spec: options.spec, k, wave: { name: decision.name }, cwd, log }, line, applied ? "applied" : "failed");
|
|
2284
|
+
}
|
|
2274
2285
|
log(`wave ${k}: wrote the run record${records.length === 1 ? "" : "s"} of ${records.length} applying job${records.length === 1 ? "" : "s"}; the wave ends with exit ${result.exitCode}`);
|
|
2275
2286
|
return result;
|
|
2276
2287
|
}
|
|
@@ -2497,6 +2508,8 @@ async function openWaveDecision(options, ctx, opts) {
|
|
|
2497
2508
|
status: "not-required",
|
|
2498
2509
|
...(Object.keys(hooks).length > 0 ? { hooks } : {}),
|
|
2499
2510
|
...(rules.spend ? { spend: "base" } : spec.approvals?.spend === true ? { spend: "change" } : {}),
|
|
2511
|
+
...(rules.remainder ? { remainder: true } : {}),
|
|
2512
|
+
...(rules.spendStanding ? { spendStanding: true } : {}),
|
|
2500
2513
|
...(rules.applyHooksRunBy === "apply" ? { applyHooksRunBy: "apply" } : {}),
|
|
2501
2514
|
...(spec.digest?.over === "changing" ? { digestOver: "changing" } : {}),
|
|
2502
2515
|
...(neverOverMcp ? { neverOverMcp: true } : {}),
|
|
@@ -2721,6 +2734,20 @@ async function shareUnmoved(planned) {
|
|
|
2721
2734
|
const unmoved = [];
|
|
2722
2735
|
for (const run of slice) {
|
|
2723
2736
|
const now = planned.planned.get(run.target);
|
|
2737
|
+
if (decidedDigests.get(run.target) !== now.planDigest && ctx.options.phase === "apply" && decision.remainder && decision.changes) {
|
|
2738
|
+
// #5047: a split wave's applying job run again after it stopped: a plan that makes only changes the decision recorded is their rest.
|
|
2739
|
+
const cover = opWaveRunCovered(decision.changes, run.target, now, ctx.steps);
|
|
2740
|
+
if (cover.covered && now.empty === true) {
|
|
2741
|
+
ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided and changes nothing now, so every change the decision recorded for it is done`);
|
|
2742
|
+
continue;
|
|
2743
|
+
}
|
|
2744
|
+
if (cover.covered) {
|
|
2745
|
+
ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided; ${cover.done.length} of the changes the decision recorded for it are done and it makes the other ${cover.remaining.length}, so it applies under the decision's approval`);
|
|
2746
|
+
unmoved.push(run);
|
|
2747
|
+
continue;
|
|
2748
|
+
}
|
|
2749
|
+
ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided, and ${cover.why}`);
|
|
2750
|
+
}
|
|
2724
2751
|
if (decidedDigests.get(run.target) !== now.planDigest) {
|
|
2725
2752
|
ctx.log(`${run.target}: its plan moved since wave ${ctx.k} was decided, so it was not applied. ` +
|
|
2726
2753
|
`decided: ${decidedDigests.get(run.target) ?? "(not in the decision)"}; planned now: ${now.planDigest}`);
|
|
@@ -2805,14 +2832,25 @@ async function decideOpWave(options, { prior }, planned, digest) {
|
|
|
2805
2832
|
else
|
|
2806
2833
|
log(`wave ${k} (${wave.name}): ${seen.preview.reason}`);
|
|
2807
2834
|
}
|
|
2835
|
+
// #5047: under approvals.remainder at base, the changes the applied line names, and the stopped apply these plans are the rest of.
|
|
2836
|
+
if (decision.remainder && !kept && decision.status !== "refused" && !unseen)
|
|
2837
|
+
await remainderOf(options, ctx, decision, members, extras);
|
|
2808
2838
|
if (kept && was.status === "approved" && decision.status !== "refused") {
|
|
2809
2839
|
// #3821: planned again after the apply asked to, to the same digest: the approval this job found still holds, and is not spent twice.
|
|
2810
|
-
for (const key of ["via", "approvedBy", "approvedAt", "review", "spentAt"])
|
|
2840
|
+
for (const key of ["via", "approvedBy", "approvedAt", "review", "spentAt", "changes", "resumes"])
|
|
2811
2841
|
if (was[key] !== undefined)
|
|
2812
2842
|
decision[key] = was[key];
|
|
2813
2843
|
decision.status = "approved";
|
|
2814
2844
|
log(`wave ${k} (${wave.name}): planned again to the same digest, so the approval by ${was.approvedBy} still holds`);
|
|
2815
2845
|
}
|
|
2846
|
+
else if (decision.resumes && decision.status !== "refused" && (opWaveNeedsApproval(policy, members) || holds.length > 0)) {
|
|
2847
|
+
// #5047: the rest of a stopped apply goes out under the approval it applied under, which its applied line already spent.
|
|
2848
|
+
decision.status = "approved";
|
|
2849
|
+
decision.via = "ledger";
|
|
2850
|
+
decision.approvedBy = decision.resumes.approvedBy;
|
|
2851
|
+
decision.approvedAt = decision.resumes.approvedAt;
|
|
2852
|
+
decision.spentAt = decision.resumes.appliedAt;
|
|
2853
|
+
}
|
|
2816
2854
|
else if (decision.status !== "refused" && (unseen || opWaveNeedsApproval(policy, members) || holds.length > 0)) {
|
|
2817
2855
|
// terragucci issue 1303: what the product settled before the gate, recorded at it for these plans first.
|
|
2818
2856
|
if (ctx.answerApprovals?.length)
|
|
@@ -2984,6 +3022,10 @@ async function applyOpWave(options, planned, decidedWave) {
|
|
|
2984
3022
|
await applyStage(options, ctx, decision, decidedWave.runs, planned.planned, decidedWave.earlierHolds, decidedWave.recordPath);
|
|
2985
3023
|
if (planned.kind === "share" && ctx.result.exitCode === 0 && ctx.result.moved.length > 0)
|
|
2986
3024
|
ctx.result.exitCode = CHANT_EXIT.moved;
|
|
3025
|
+
// #5047: the job that applied the whole wave under an approval its applied line names says how the apply ended.
|
|
3026
|
+
const line = planned.kind === "share" ? undefined : remainderLine(decision);
|
|
3027
|
+
if (line && ctx.result.exitCode !== CHANT_EXIT.waiting)
|
|
3028
|
+
await writeApplyFinished(options, ctx, line, ctx.result.exitCode === 0 && ctx.result.failed.length === 0 ? "applied" : "failed");
|
|
2987
3029
|
return ctx.result;
|
|
2988
3030
|
}
|
|
2989
3031
|
/**
|
|
@@ -4241,12 +4283,18 @@ async function submitStepReleases(port, requests, label, log) {
|
|
|
4241
4283
|
* ledger, so a line recorded there is spent.
|
|
4242
4284
|
*/
|
|
4243
4285
|
async function spendApproval(options, ctx, decision) {
|
|
4286
|
+
// #5047: an approval of these very plans left standing while the gate let them through is spent as they apply.
|
|
4287
|
+
if (decision.spendStanding && decision.spend === "base" && decision.status === "not-required" && !decision.spentAt && options.phase !== "apply") {
|
|
4288
|
+
await spendStanding(options, ctx, decision);
|
|
4289
|
+
return true;
|
|
4290
|
+
}
|
|
4244
4291
|
if (!decision.spend || decision.status !== "approved" || decision.spentAt || !decision.approvedAt)
|
|
4245
4292
|
return true;
|
|
4246
4293
|
const { spec, k, wave, cwd, log } = ctx;
|
|
4247
4294
|
const port = options.gates ?? gitGateLedgerPort({ cwd });
|
|
4248
4295
|
const now = options.now ?? new Date().toISOString();
|
|
4249
4296
|
const record = {
|
|
4297
|
+
...(decision.remainder && decision.changes ? remainderFields(options, ctx, decision, decision.changes) : {}),
|
|
4250
4298
|
version: 1,
|
|
4251
4299
|
kind: "applied",
|
|
4252
4300
|
op: spec.name,
|
|
@@ -4272,8 +4320,148 @@ async function spendApproval(options, ctx, decision) {
|
|
|
4272
4320
|
}
|
|
4273
4321
|
decision.spentAt = now;
|
|
4274
4322
|
log(`wave ${k} (${wave.name}) applies under the approval by ${record.approvedBy} at ${record.approvedAt}, which is now spent`);
|
|
4323
|
+
if (record.changes)
|
|
4324
|
+
log(`wave ${k} (${wave.name}): ${record.changes.length} change${record.changes.length === 1 ? "" : "s"} recorded on the applied line, so an apply that stops applies the rest under this approval`);
|
|
4275
4325
|
return true;
|
|
4276
4326
|
}
|
|
4327
|
+
/**
|
|
4328
|
+
* What an applied line carries under `approvals.remainder` (#5047): the
|
|
4329
|
+
* changes, the digest members that are no run, the commit, the run, and
|
|
4330
|
+
* where the run is, so `chant run resume` starts it again once it is gone.
|
|
4331
|
+
* A split wave's gate job writes the line and its applying job is the one
|
|
4332
|
+
* that may stop: GitHub re-runs a run's failed jobs, so the gate job's run
|
|
4333
|
+
* resumes the applying job. GitLab retries one job by its id and Forgejo
|
|
4334
|
+
* starts a new run of the branch, so there the gate job's locator carries
|
|
4335
|
+
* what the generator told it (#5052): the applying and record jobs' names,
|
|
4336
|
+
* or the run's dispatch inputs. A gate job told neither names no run.
|
|
4337
|
+
*/
|
|
4338
|
+
function remainderFields(options, ctx, decision, changes) {
|
|
4339
|
+
const commit = waveHeadOf(options, ctx.cwd);
|
|
4340
|
+
const runId = ciRunIdFromEnv();
|
|
4341
|
+
const locator = resolveGateRunLocator();
|
|
4342
|
+
const resume = options.phase === "gate" ? opWaveSplitResumeLocator(locator) : locator;
|
|
4343
|
+
return {
|
|
4344
|
+
changes,
|
|
4345
|
+
...(decision.extras?.length ? { extras: decision.extras.map((e) => ({ member: e.member, planDigest: e.planDigest })) } : {}),
|
|
4346
|
+
...(commit ? { commit } : {}),
|
|
4347
|
+
...(runId ? { runId } : {}),
|
|
4348
|
+
...(resume ? { resume } : {}),
|
|
4349
|
+
};
|
|
4350
|
+
}
|
|
4351
|
+
/**
|
|
4352
|
+
* Under `approvals.remainder` (#5047), in a job with the token that decides
|
|
4353
|
+
* a whole wave (its own job, or a split wave's gate job): the changes the
|
|
4354
|
+
* plans make, kept on the decision for the applied line and the applying
|
|
4355
|
+
* job; with plans that change nothing, the close of a stopped apply; else
|
|
4356
|
+
* the stopped apply at this commit whose rest these plans are, which the
|
|
4357
|
+
* decision then `resumes`. A ledger that cannot be read resumes nothing.
|
|
4358
|
+
*/
|
|
4359
|
+
async function remainderOf(options, ctx, decision, members, extras) {
|
|
4360
|
+
const { spec, k, wave, cwd, log } = ctx;
|
|
4361
|
+
const label = `wave ${k} (${wave.name})`;
|
|
4362
|
+
// Only a wave one job applies says how its apply ended.
|
|
4363
|
+
if ((wave.shares ?? 1) > 1 || wave.jobs !== undefined)
|
|
4364
|
+
return;
|
|
4365
|
+
const changes = opWaveApprovedChanges(members, ctx.steps);
|
|
4366
|
+
if (changes)
|
|
4367
|
+
decision.changes = changes;
|
|
4368
|
+
const changing = members.some((m) => m.empty !== true) || (extras?.length ?? 0) > 0;
|
|
4369
|
+
if (changing && !changes)
|
|
4370
|
+
log(`${label}: a run that changes something plans on no resource grain, or gave no resource digests, so an apply of it that stops cannot apply the rest under its approval`);
|
|
4371
|
+
const port = options.gates ?? gitGateLedgerPort({ cwd });
|
|
4372
|
+
if (!port.readApplied || !port.readFinished)
|
|
4373
|
+
return;
|
|
4374
|
+
let applied;
|
|
4375
|
+
let finished;
|
|
4376
|
+
try {
|
|
4377
|
+
applied = await port.readApplied(spec.name);
|
|
4378
|
+
finished = await port.readFinished(spec.name);
|
|
4379
|
+
}
|
|
4380
|
+
catch (err) {
|
|
4381
|
+
log(`${label}: the applied lines could not be read (${err instanceof Error ? err.message : String(err)}), so no stopped apply is taken up`);
|
|
4382
|
+
return;
|
|
4383
|
+
}
|
|
4384
|
+
if (!changing) {
|
|
4385
|
+
// Nothing is left to change: something applied the rest of a stopped apply, which is closed as applied.
|
|
4386
|
+
const open = opWaveUnfinishedApply(applied, finished, decision.gate);
|
|
4387
|
+
if (open)
|
|
4388
|
+
await writeApplyFinished(options, ctx, { gate: open.gate, planDigest: open.planDigest, applied: open.timestamp }, "applied", `the apply of ${open.planDigest} stopped before it finished, and nothing of it is left to apply`);
|
|
4389
|
+
return;
|
|
4390
|
+
}
|
|
4391
|
+
const stopped = opWaveStoppedApply(applied, finished, decision.gate, waveHeadOf(options, cwd));
|
|
4392
|
+
if (!stopped?.changes)
|
|
4393
|
+
return;
|
|
4394
|
+
const cover = opWaveCoverRemainder(stopped.changes, changes, { now: extras, approved: stopped.extras });
|
|
4395
|
+
if (!cover.covered) {
|
|
4396
|
+
log(`${label}: the apply of ${stopped.planDigest}, approved by ${stopped.approvedBy}, stopped before it finished, but ${cover.why}, so these plans need an approval of their own`);
|
|
4397
|
+
return;
|
|
4398
|
+
}
|
|
4399
|
+
decision.resumes = { planDigest: stopped.planDigest, appliedAt: stopped.timestamp, approvedAt: stopped.approvedAt, approvedBy: stopped.approvedBy };
|
|
4400
|
+
log(`${label}: the apply of ${stopped.planDigest}, approved by ${stopped.approvedBy}, stopped before it finished; ${cover.done.length} of its ${stopped.changes.length} change${stopped.changes.length === 1 ? "" : "s"} ` +
|
|
4401
|
+
`are done, and these plans make the other ${cover.remaining.length}, so that approval covers them`);
|
|
4402
|
+
}
|
|
4403
|
+
/**
|
|
4404
|
+
* Write how an apply under an approval ended (#5047): the finished line
|
|
4405
|
+
* that names the applied line. Never fails the wave; a line that cannot be
|
|
4406
|
+
* written is logged, and a resume may apply what is left again, each change
|
|
4407
|
+
* of which the approval covered.
|
|
4408
|
+
*/
|
|
4409
|
+
async function writeApplyFinished(options, ctx, line, result, why) {
|
|
4410
|
+
const { spec, k, cwd, log } = ctx;
|
|
4411
|
+
const label = `wave ${k} (${ctx.wave.name})`;
|
|
4412
|
+
const port = options.gates ?? gitGateLedgerPort({ cwd });
|
|
4413
|
+
try {
|
|
4414
|
+
if (!port.appendFinished)
|
|
4415
|
+
throw new Error("this gate ledger keeps no finished lines");
|
|
4416
|
+
const pushed = await port.appendFinished({ version: 1, kind: "finished", op: spec.name, gate: line.gate, planDigest: line.planDigest, applied: line.applied, result, timestamp: options.now ?? new Date().toISOString() });
|
|
4417
|
+
if (!pushed.pushed && pushed.pushWarning && !isLifecycleLocalNote(pushed.pushWarning))
|
|
4418
|
+
log(`${label}: the finished line of its apply was written and not pushed: ${pushed.pushWarning}`);
|
|
4419
|
+
log(`${label}: ${why ?? `its apply under the approval ${result === "applied" ? "applied" : "failed"}`}; recorded on the finished line`);
|
|
4420
|
+
}
|
|
4421
|
+
catch (err) {
|
|
4422
|
+
log(`${label}: how its apply ended was not recorded (${err instanceof Error ? err.message : String(err)}); a resume may apply what is left again, and each change it makes is one the approval covered`);
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
/** The applied line a decision's apply wrote or took up (#5047), when it names changes; what its finished line names. */
|
|
4426
|
+
function remainderLine(decision) {
|
|
4427
|
+
if (!decision.remainder || !decision.spentAt)
|
|
4428
|
+
return undefined;
|
|
4429
|
+
if (decision.resumes)
|
|
4430
|
+
return { gate: decision.gate, planDigest: decision.resumes.planDigest, applied: decision.resumes.appliedAt };
|
|
4431
|
+
return decision.changes ? { gate: decision.gate, planDigest: decision.digest, applied: decision.spentAt } : undefined;
|
|
4432
|
+
}
|
|
4433
|
+
/**
|
|
4434
|
+
* Under `approvals.spendStanding` (#5047): the wave's gate let its plans
|
|
4435
|
+
* through, and an approval of their digest that no wave applied under
|
|
4436
|
+
* stands. It is spent now, as they apply, so it does not stand for the next
|
|
4437
|
+
* plans. Never fails the wave.
|
|
4438
|
+
*/
|
|
4439
|
+
async function spendStanding(options, ctx, decision) {
|
|
4440
|
+
const { spec, k, wave, cwd, log } = ctx;
|
|
4441
|
+
if (!decision.digest)
|
|
4442
|
+
return;
|
|
4443
|
+
const port = options.gates ?? gitGateLedgerPort({ cwd });
|
|
4444
|
+
if (!port.appendApplied || !port.readApplied)
|
|
4445
|
+
return;
|
|
4446
|
+
const label = `wave ${k} (${wave.name})`;
|
|
4447
|
+
try {
|
|
4448
|
+
const applied = (await port.readApplied(spec.name)).filter((a) => a.gate === decision.gate);
|
|
4449
|
+
const { resolutions } = await port.read(spec.name);
|
|
4450
|
+
const standing = resolutions
|
|
4451
|
+
.filter((r) => r.gate === decision.gate && samePlanDigest(r.planDigest, decision.digest) && !isApprovalSpent(applied, { gate: decision.gate, planDigest: decision.digest, timestamp: r.timestamp }))
|
|
4452
|
+
.reduce((n, r) => (!n || new Date(r.timestamp).getTime() >= new Date(n.timestamp).getTime() ? r : n), undefined);
|
|
4453
|
+
if (!standing)
|
|
4454
|
+
return;
|
|
4455
|
+
const now = options.now ?? new Date().toISOString();
|
|
4456
|
+
const pushed = await port.appendApplied({ version: 1, kind: "applied", op: spec.name, gate: decision.gate, planDigest: decision.digest, approvedAt: standing.timestamp, approvedBy: standing.resolvedBy, timestamp: now, wave: { number: k, name: wave.name } });
|
|
4457
|
+
if (!pushed.pushed && pushed.pushWarning && !isLifecycleLocalNote(pushed.pushWarning))
|
|
4458
|
+
log(`${label}: ${pushed.pushWarning}`);
|
|
4459
|
+
log(`${label}: its gate let these plans through, and the approval of ${decision.digest} by ${standing.resolvedBy} at ${standing.timestamp} stood; it is now spent, so it does not stand for the next plans`);
|
|
4460
|
+
}
|
|
4461
|
+
catch (err) {
|
|
4462
|
+
log(`${label}: the approval of these plans that stands was not spent: ${err instanceof Error ? err.message : String(err)}`);
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4277
4465
|
/**
|
|
4278
4466
|
* Under `pr-review` (#3684): the merged pull request's review approves the
|
|
4279
4467
|
* wave when a writer other than the author approved its head, and the head
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How `chant run resume` starts a killed split apply again (#5052), on the
|
|
3
|
+
* forges whose gate job's run locator alone does not do it.
|
|
4
|
+
*
|
|
5
|
+
* Under `approvals.remainder` (#5047) a split wave's gate job writes the
|
|
6
|
+
* applied line, and its applying job is the one that may be killed. On
|
|
7
|
+
* GitHub the line names the gate job's run, and a re-run of its failed jobs
|
|
8
|
+
* runs the applying and record jobs again. GitLab retries one job by its id,
|
|
9
|
+
* and the gate job knows only the names of the jobs after it; Forgejo has no
|
|
10
|
+
* re-run and dispatches the workflow on the branch, which before merge is
|
|
11
|
+
* not the decided head. So the generator tells the gate job, in
|
|
12
|
+
* {@link OP_WAVES_RESUME_ENV}, what a resume needs:
|
|
13
|
+
*
|
|
14
|
+
* - GitLab: the names of the wave's applying jobs and its record job. The
|
|
15
|
+
* line's locator carries them as `retry`, and the resume retries the
|
|
16
|
+
* newest try of each applying job that failed or was cancelled, then the
|
|
17
|
+
* record job.
|
|
18
|
+
* - Forgejo: the product's names of the dispatch inputs. The line's locator
|
|
19
|
+
* carries the run's own inputs (the decided head of a before-merge run,
|
|
20
|
+
* the wave and commit of a follow-on) as `inputs`, and the resume
|
|
21
|
+
* dispatches with them, so the new run plans the same commit and its gate
|
|
22
|
+
* job applies the rest under the same approval.
|
|
23
|
+
*
|
|
24
|
+
* Without the variable, the gate job's line names no run on those forges,
|
|
25
|
+
* as before.
|
|
26
|
+
*/
|
|
27
|
+
import type { GateRunLocator } from "./gate-run-locator.js";
|
|
28
|
+
import type { OpWaveSplitJob } from "./op-waves-split.js";
|
|
29
|
+
export { OP_WAVES_SPLIT_RESUME_FLOOR } from "../release-floors.js";
|
|
30
|
+
/** The variable a split wave's gate job reads what a resume needs from, as JSON. */
|
|
31
|
+
export declare const OP_WAVES_RESUME_ENV = "CHANT_WAVES_RESUME";
|
|
32
|
+
/** The dispatch inputs a Forgejo resume fills, by chant's names. */
|
|
33
|
+
export type OpWaveResumeInput = "pr" | "head" | "digest" | "wave" | "commit";
|
|
34
|
+
/** What {@link OP_WAVES_RESUME_ENV} holds: GitLab's job names, or Forgejo's input names (each chant's own when left out). */
|
|
35
|
+
export interface OpWaveSplitResume {
|
|
36
|
+
apply?: string[];
|
|
37
|
+
record?: string;
|
|
38
|
+
inputs?: Partial<Record<OpWaveResumeInput, string>>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The variable a split wave's gate job carries (#5052): on GitLab the names
|
|
42
|
+
* of wave `gate.wave`'s applying jobs and its record job, on Forgejo the
|
|
43
|
+
* product's dispatch input names. Empty on GitHub, whose re-run needs none,
|
|
44
|
+
* and for a job that is no gate job.
|
|
45
|
+
*/
|
|
46
|
+
export declare function opWaveSplitResumeEnv(split: readonly Pick<OpWaveSplitJob, "jobName" | "phase" | "wave">[], gate: Pick<OpWaveSplitJob, "phase" | "wave">, forge: "github" | "forgejo" | "gitlab", inputs?: Partial<Record<OpWaveResumeInput, string>>): Record<string, string>;
|
|
47
|
+
/** Read {@link OP_WAVES_RESUME_ENV}; undefined when unset or not one. */
|
|
48
|
+
export declare function parseOpWaveSplitResume(raw: string | undefined): OpWaveSplitResume | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The run locator a split wave's gate job writes on its applied line
|
|
51
|
+
* (#5052), from its own locator and what {@link OP_WAVES_RESUME_ENV} says:
|
|
52
|
+
* GitHub's as it is; GitLab's with `retry`, when the variable names applying
|
|
53
|
+
* jobs; Forgejo's with the run's own dispatch inputs, when the variable is
|
|
54
|
+
* set. Undefined where a resume could not start the applying jobs again.
|
|
55
|
+
*/
|
|
56
|
+
export declare function opWaveSplitResumeLocator(locator: GateRunLocator | undefined, env?: Record<string, string | undefined>): GateRunLocator | undefined;
|
|
57
|
+
//# sourceMappingURL=op-waves-split-resume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"op-waves-split-resume.d.ts","sourceRo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