@intentius/chant 0.124.89 → 0.124.90
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 +18 -2
- package/dist/ci-comment-commands.d.ts.map +1 -1
- package/dist/ci-comment-commands.js +30 -2
- package/dist/ci-job-guard.d.ts +42 -45
- package/dist/ci-job-guard.d.ts.map +1 -1
- package/dist/ci-job-guard.js +206 -3
- package/dist/ci-note-commands.d.ts +41 -1
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +64 -5
- package/dist/ci-product.d.ts +41 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +44 -7
- package/dist/cli/handlers/pr-comment.d.ts +13 -1
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
- package/dist/cli/handlers/pr-comment.js +90 -1
- package/dist/cli/handlers/pr-notes.d.ts.map +1 -1
- package/dist/cli/handlers/pr-notes.js +23 -1
- package/dist/cli/handlers/pr.js +16 -14
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +154 -4
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +17 -0
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +15 -0
- package/dist/cli/registry.d.ts +8 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/pr-checks.d.ts +28 -1
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +35 -2
- package/dist/components/pr-pipeline.d.ts +3 -2
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +4 -2
- package/dist/components/product-pipeline.d.ts +54 -2
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +59 -5
- package/dist/components/product-plan.d.ts +13 -1
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +36 -10
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +32 -23
- package/dist/lexicon.d.ts +82 -4
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-applied.d.ts +9 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -1
- package/dist/op/apply-status.d.ts +84 -0
- package/dist/op/apply-status.d.ts.map +1 -0
- package/dist/op/apply-status.js +106 -0
- package/dist/op/before-merge-decide.d.ts +102 -0
- package/dist/op/before-merge-decide.d.ts.map +1 -0
- package/dist/op/before-merge-decide.js +142 -0
- package/dist/op/before-merge-done.d.ts +56 -0
- package/dist/op/before-merge-done.d.ts.map +1 -0
- package/dist/op/before-merge-done.js +69 -0
- package/dist/op/before-merge-store.d.ts +20 -0
- package/dist/op/before-merge-store.d.ts.map +1 -0
- package/dist/op/before-merge-store.js +48 -0
- package/dist/op/before-merge.d.ts +150 -0
- package/dist/op/before-merge.d.ts.map +1 -0
- package/dist/op/before-merge.js +207 -0
- package/dist/op/follow-on-run.d.ts +117 -0
- package/dist/op/follow-on-run.d.ts.map +1 -0
- package/dist/op/follow-on-run.js +154 -0
- package/dist/op/follow-on-store.d.ts +17 -0
- package/dist/op/follow-on-store.d.ts.map +1 -0
- package/dist/op/follow-on-store.js +54 -0
- package/dist/op/gate.d.ts +6 -0
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +10 -1
- package/dist/op/index.d.ts +3 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-after-plan.d.ts +13 -0
- package/dist/op/op-waves-after-plan.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.d.ts +4 -1
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +10 -2
- package/dist/op/op-waves-follow-on.d.ts +162 -0
- package/dist/op/op-waves-follow-on.d.ts.map +1 -0
- package/dist/op/op-waves-follow-on.js +355 -0
- package/dist/op/op-waves-run.d.ts +146 -6
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +871 -99
- package/dist/op/op-waves-split.d.ts +122 -0
- package/dist/op/op-waves-split.d.ts.map +1 -0
- package/dist/op/op-waves-split.js +166 -0
- package/dist/op/op-waves.d.ts +20 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +15 -1
- package/dist/op/schedule-overdue.d.ts +15 -1
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +18 -2
- package/dist/op/stage-hooks.d.ts +36 -1
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +17 -3
- package/dist/op/wave-stop.d.ts +4 -1
- package/dist/op/wave-stop.d.ts.map +1 -1
- package/dist/op/wave-stop.js +4 -2
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +2 -1
- package/dist/release-floors.d.ts +3 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +21 -19
- package/dist/wave-blocked.d.ts +7 -1
- package/dist/wave-blocked.d.ts.map +1 -1
- package/dist/wave-blocked.js +7 -2
- package/dist/wave-runtime.mjs +364 -351
- package/package.json +1 -1
- package/src/ci-comment-commands.test.ts +63 -0
- package/src/ci-comment-commands.ts +43 -4
- package/src/ci-image.test.ts +1 -2
- package/src/ci-job-guard.before-merge.test.ts +148 -0
- package/src/ci-job-guard.follow-on-record.test.ts +137 -0
- package/src/ci-job-guard.follow-on.test.ts +144 -0
- package/src/ci-job-guard.ts +221 -3
- package/src/ci-note-commands.test.ts +76 -1
- package/src/ci-note-commands.ts +96 -7
- package/src/ci-product.ts +55 -7
- package/src/cli/handlers/pr-comment.ts +85 -2
- package/src/cli/handlers/pr-notes.ts +30 -6
- package/src/cli/handlers/pr.ts +14 -11
- package/src/cli/handlers/run-wave.ts +144 -4
- package/src/cli/main.ts +17 -0
- package/src/cli/parse-args.ts +11 -0
- package/src/cli/registry.ts +8 -1
- package/src/components/pr-checks.ts +55 -2
- package/src/components/pr-pipeline.ts +5 -3
- package/src/components/product-pipeline.apply-status.test.ts +50 -0
- package/src/components/product-pipeline.ts +113 -8
- package/src/components/product-plan.test.ts +23 -5
- package/src/components/product-plan.ts +43 -12
- package/src/floor-table.data.ts +32 -23
- package/src/lexicon.ts +78 -1
- package/src/lifecycle/gate-applied.ts +7 -0
- package/src/op/apply-status.test.ts +83 -0
- package/src/op/apply-status.ts +132 -0
- package/src/op/before-merge-decide.ts +190 -0
- package/src/op/before-merge-done.ts +99 -0
- package/src/op/before-merge-store.ts +44 -0
- package/src/op/before-merge.test.ts +201 -0
- package/src/op/before-merge.ts +266 -0
- package/src/op/follow-on-run.ts +206 -0
- package/src/op/follow-on-store.ts +54 -0
- package/src/op/gate.ts +16 -1
- package/src/op/index.ts +5 -0
- package/src/op/op-waves-after-plan.ts +13 -0
- package/src/op/op-waves-evidence-jobs.ts +11 -3
- package/src/op/op-waves-follow-on-record.test.ts +152 -0
- package/src/op/op-waves-follow-on.test.ts +247 -0
- package/src/op/op-waves-follow-on.ts +385 -0
- package/src/op/op-waves-render-spec.test.ts +1 -2
- package/src/op/op-waves-run.ts +971 -93
- package/src/op/op-waves-split-product.test.ts +288 -0
- package/src/op/op-waves-split-step.test.ts +298 -0
- package/src/op/op-waves-split.test.ts +196 -0
- package/src/op/op-waves-split.ts +189 -0
- package/src/op/op-waves.ts +28 -3
- package/src/op/schedule-overdue.test.ts +29 -1
- package/src/op/schedule-overdue.ts +27 -3
- package/src/op/stage-hooks.ts +52 -4
- package/src/op/wave-stop.ts +5 -3
- package/src/pr-post.ts +2 -1
- package/src/release-floors.ts +22 -19
- package/src/wave-blocked.ts +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-note-commands.d.ts","sourceRoot":"","sources":["../src/ci-note-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAoE,KAAK,cAAc,EAAE,KA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AE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAiBlF"}
|
package/dist/ci-note-commands.js
CHANGED
|
@@ -206,7 +206,27 @@ async function answer(o, mr, note, least, at, me) {
|
|
|
206
206
|
return reply(`started pipeline${link(started)} to ${run.doing} for ${note.author}`, true, started.url);
|
|
207
207
|
}
|
|
208
208
|
case "retry": {
|
|
209
|
-
|
|
209
|
+
// #4984: the stop goes on chant/lifecycle just before the retry, so every wave job after it reads it.
|
|
210
|
+
const stop = run.stop;
|
|
211
|
+
if (stop && !o.stops)
|
|
212
|
+
return broke("the retry carries a wave stop, and this poll cannot write one");
|
|
213
|
+
const retry = gitlabRetry(o.pipelines);
|
|
214
|
+
const author = note.author;
|
|
215
|
+
const rerun = stop
|
|
216
|
+
? async (pipeline, jobs, ctx) => {
|
|
217
|
+
try {
|
|
218
|
+
await o.stops(stop.op, run.sha, stop.through === null ? null : { through: stop.through, at, by: author, pr: mr.number });
|
|
219
|
+
}
|
|
220
|
+
catch (e) {
|
|
221
|
+
return { kind: "fail", reason: `could not write the wave stop for ${short(run.sha)}, so nothing was retried (${message(e)})` };
|
|
222
|
+
}
|
|
223
|
+
return retry(pipeline, jobs, ctx);
|
|
224
|
+
}
|
|
225
|
+
: retry;
|
|
226
|
+
const done = await retryApply(o, "gitlab", mr, note.author, run, rerun);
|
|
227
|
+
if (done.kind === "ran" && stop?.through !== null && stop?.through !== undefined) {
|
|
228
|
+
return reply(`${done.text}; it stops after \`wave-${stop.through}\`, and the waves after it wait until ${commandLine(o.words, "apply")} runs it again`, true, done.url);
|
|
229
|
+
}
|
|
210
230
|
if (done.kind === "fail")
|
|
211
231
|
return broke(done.reason);
|
|
212
232
|
return reply(done.text, done.kind === "ran", done.kind === "ran" ? done.url : undefined);
|
|
@@ -302,7 +322,7 @@ export function gitlabRetry(pipelines) {
|
|
|
302
322
|
* A command no job runs gets the words' reply for it (`words.replies`,
|
|
303
323
|
* #4946), else chant's.
|
|
304
324
|
*/
|
|
305
|
-
export function chantNoteRuns(jobs) {
|
|
325
|
+
export function chantNoteRuns(jobs, opts = {}) {
|
|
306
326
|
return ({ mr, note, parsed, base, words }) => {
|
|
307
327
|
const iid = String(mr.number);
|
|
308
328
|
const at = `!${mr.number}`;
|
|
@@ -316,7 +336,7 @@ export function chantNoteRuns(jobs) {
|
|
|
316
336
|
const open = mr.state === "open";
|
|
317
337
|
const intoBase = mr.base === undefined || mr.base === base;
|
|
318
338
|
// #4946: the product's sentence for an apply no job answers, in place of chant's, which say what the merge does.
|
|
319
|
-
if (parsed.kind === "apply" && !jobs.applyBeforeMerge && !jobs.applyOnMerge && words.replies?.apply !== undefined)
|
|
339
|
+
if (parsed.kind === "apply" && !jobs.applyBeforeMerge && !jobs.applyOnMerge && !jobs.wavesBeforeMerge && words.replies?.apply !== undefined)
|
|
320
340
|
return { kind: "reply", text: words.replies.apply };
|
|
321
341
|
switch (parsed.kind) {
|
|
322
342
|
case "plan":
|
|
@@ -327,6 +347,9 @@ export function chantNoteRuns(jobs) {
|
|
|
327
347
|
return { kind: "merge-request-pipeline", doing: `${words.verbs.plan[0]} ${at} again` };
|
|
328
348
|
case "apply":
|
|
329
349
|
if (open) {
|
|
350
|
+
// #4984: the waves before merge decide here, and the pipeline they start runs the decided head.
|
|
351
|
+
if (jobs.wavesBeforeMerge && jobs.waves && opts.beforeMerge && !jobs.applyBeforeMerge)
|
|
352
|
+
return wavesBeforeMergeRun(jobs, opts.beforeMerge, { mr, note, parsed, base, words });
|
|
330
353
|
if (!jobs.applyBeforeMerge)
|
|
331
354
|
return { kind: "reply", text: `${at} is not merged, and this project ${words.verbs.apply[0]}s after a merge request merges, never from its branch` };
|
|
332
355
|
if (!intoBase)
|
|
@@ -338,13 +361,16 @@ export function chantNoteRuns(jobs) {
|
|
|
338
361
|
if (!jobs.applyOnMerge) {
|
|
339
362
|
return { kind: "reply", text: jobs.applyBeforeMerge ? `${at} is merged, and this project ${words.verbs.apply[0]}s a merge request before it merges, so there is nothing of it left to ${words.verbs.apply[0]}` : `${at} is merged, and a merge here records the plan: a release deploys it` };
|
|
340
363
|
}
|
|
341
|
-
|
|
364
|
+
// #4984: with the waves' op, a wave-<n> writes a stop for the merge commit before the retry, as on GitHub and Forgejo.
|
|
365
|
+
if (parsed.wave !== undefined && !jobs.waves)
|
|
342
366
|
return { kind: "reply", text: `GitLab runs the waves after a retried apply job by itself, so \`wave-${parsed.wave}\` cannot stop them; write ${line("apply")}, and each wave still waits behind its own gate` };
|
|
367
|
+
if (parsed.wave !== undefined && jobs.waves && parsed.wave > jobs.waves.count)
|
|
368
|
+
return { kind: "reply", text: `the ${words.verbs.apply[0]} of this project runs in ${jobs.waves.count} wave${jobs.waves.count === 1 ? "" : "s"}, so there is no \`wave-${parsed.wave}\`` };
|
|
343
369
|
if (!intoBase)
|
|
344
370
|
return { kind: "reply", text: `${at} was merged into ${mr.base}, not the default branch ${base}, so nothing applies from it` };
|
|
345
371
|
if (!mr.mergeCommit)
|
|
346
372
|
return { kind: "fail", reason: `${at} has no merge commit` };
|
|
347
|
-
return { kind: "retry", sha: mr.mergeCommit };
|
|
373
|
+
return { kind: "retry", sha: mr.mergeCommit, ...(jobs.waves ? { stop: { op: jobs.waves.op, through: parsed.wave !== undefined && parsed.wave < jobs.waves.count ? parsed.wave : null } } : {}) };
|
|
348
374
|
case "lock":
|
|
349
375
|
case "unlock":
|
|
350
376
|
if (!jobs.locks)
|
|
@@ -371,6 +397,39 @@ export function chantNoteRuns(jobs) {
|
|
|
371
397
|
}
|
|
372
398
|
};
|
|
373
399
|
}
|
|
400
|
+
/**
|
|
401
|
+
* An open merge request's apply under the waves before merge (#4984): the
|
|
402
|
+
* decision records the head, and the run is a pipeline of the default branch
|
|
403
|
+
* started with the decision's three variables, which the wave jobs' guard
|
|
404
|
+
* checks against the record.
|
|
405
|
+
*/
|
|
406
|
+
async function wavesBeforeMergeRun(jobs, deps, c) {
|
|
407
|
+
const parsed = c.parsed;
|
|
408
|
+
const { decideWavesBeforeMerge } = await import("./op/before-merge-decide.js");
|
|
409
|
+
const { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV } = await import("./op/before-merge.js");
|
|
410
|
+
let variables;
|
|
411
|
+
const done = await decideWavesBeforeMerge({
|
|
412
|
+
...deps,
|
|
413
|
+
forge: "gitlab",
|
|
414
|
+
pr: c.mr,
|
|
415
|
+
user: c.note.author ?? "",
|
|
416
|
+
base: c.base,
|
|
417
|
+
...(parsed.wave !== undefined ? { wave: parsed.wave } : {}),
|
|
418
|
+
op: jobs.waves.op,
|
|
419
|
+
count: jobs.waves.count,
|
|
420
|
+
jobs: jobs.wavesBeforeMerge,
|
|
421
|
+
words: c.words,
|
|
422
|
+
// The poll starts the pipeline once the decision is recorded, and its reply links it.
|
|
423
|
+
start: async (r) => {
|
|
424
|
+
variables = { [BEFORE_MERGE_PR_ENV]: String(r.pr), [BEFORE_MERGE_HEAD_ENV]: r.head, [BEFORE_MERGE_DIGEST_ENV]: r.digest };
|
|
425
|
+
return {};
|
|
426
|
+
},
|
|
427
|
+
});
|
|
428
|
+
if (done.kind !== "ran")
|
|
429
|
+
return done.kind === "fail" ? { kind: "fail", reason: done.reason } : { kind: "reply", text: done.text };
|
|
430
|
+
const through = parsed.wave !== undefined && parsed.wave < jobs.waves.count ? ` through wave ${parsed.wave}` : "";
|
|
431
|
+
return { kind: "pipeline", ref: c.base, variables: variables, doing: `${c.words.verbs.apply[0]} !${c.mr.number}'s head ${short(c.mr.headSha ?? "")}${through} before it merges` };
|
|
432
|
+
}
|
|
374
433
|
/** The directory on `chant/lifecycle` that keeps the notes the poll answered. */
|
|
375
434
|
export const NOTES_DIR = "_notes";
|
|
376
435
|
/** A note's file in {@link NOTES_DIR}. */
|
package/dist/ci-product.d.ts
CHANGED
|
@@ -77,11 +77,51 @@ export { planFlagsReply } from "./ci-comment-commands.js";
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const WAVE_STOP_FLOOR = "0.124.89";
|
|
79
79
|
export { setWaveStop, waveStopAt, waveStopLine, type WaveStop } from "./op/wave-stop.js";
|
|
80
|
+
/**
|
|
81
|
+
* The first chant whose Op waves run before merge (#4984): `wavesBeforeMerge` in the product pipeline, where the comment job (GitHub, Forgejo) or the note poll (GitLab) decides `/<product> apply [wave-<n>]` on an open pull request (`decideWavesBeforeMerge`, `@intentius/chant/op/before-merge-decide`), records the head and its digest on `chant/lifecycle` (`_waves/<op>.before-merge.json`) and starts the waves for it; the generators' `beforeMerge`, whose guard admits that head alone, whose jobs check it out and read the base from the default branch, and whose `before-merge-done` job merges and releases the locks (`chant run wave --merge`); `waveJobs.<wave>.prelude`; the GitLab note poll's wave stop (`chantNoteRuns`' `waves`); a re-plan word that never starts with `-`; and the terraform lexicon's reach helpers (`@intentius/chant-lexicon-terraform/reach`).
|
|
82
|
+
*/
|
|
83
|
+
export declare const WAVES_BEFORE_MERGE_FLOOR = "0.124.90";
|
|
84
|
+
export { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_DONE_JOB, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV, beforeMergeDigest, beforeMergePath, beforeMergeProblems, WAVES_BASE_ENV, type BeforeMergeDecision, type BeforeMergeRecord, type OpWavesBeforeMerge } from "./op/before-merge.js";
|
|
85
|
+
export { decideWavesBeforeMerge, defaultPipelineFiles, type WavesBeforeMergeJobs } from "./op/before-merge-decide.js";
|
|
86
|
+
export type { ProductWavesBeforeMerge } from "./components/product-pipeline.js";
|
|
87
|
+
/**
|
|
88
|
+
* The first chant whose Op waves post the apply statuses (#4987): the generators' `applyStatus`, a job `apply-status-<n>` after each wave at the default branch's commit that posts `<product>/apply` on the commit the waves applied (a before-merge run's decided head) with `chant run wave --apply-status` (`@intentius/chant/op/apply-status`), and the product pipeline's `applyStatus`; whose product plan takes `staleNotes`, each target's note carrying the target branch's commit and a `stale-notes` job beside wave 1 on a push marking each target's note (`pr-post --stale` with one `--member` per target); whose `productPipelineJobs` returns `waves.pipeline` for the generators; and whose GitLab reach line reaches the lock and note-commands jobs unexpanded (`expand: false`).
|
|
89
|
+
*/
|
|
90
|
+
export declare const WAVES_APPLY_STATUS_FLOOR = "0.124.90";
|
|
91
|
+
export { applyStatusJobName, opWaveApplyStatus, postOpWaveApplyStatus, type OpWaveApplyStatus, type OpWavesApplyStatus } from "./op/apply-status.js";
|
|
92
|
+
/**
|
|
93
|
+
* The first chant whose before-merge waves never run the change's code beside a write token (#4987): with `beforeMerge` each wave is a plan job (the change's code, a checkout with no credentials kept, a read-only token; GitLab drops `CHANT_FORGE_TOKEN` and the job token), a gate job at the default branch with the token, an applying job on the saved plan with no write token, and a record job at the default branch that writes the run records (`chant run wave --phase plan|gate|apply|record`, `@intentius/chant/op/op-waves-split`). A `rest` wave is refused with `beforeMerge`.
|
|
94
|
+
*/
|
|
95
|
+
export declare const WAVES_BEFORE_MERGE_SPLIT_FLOOR = "0.124.90";
|
|
96
|
+
export { opWaveSplitJobs, type OpWavePhase, type OpWaveSplitJob } from "./op/op-waves-split.js";
|
|
97
|
+
/**
|
|
98
|
+
* The first chant whose split before-merge waves take a `step` spec, Forgejo's hand-off, holds on other gates and one approval per wave (#4992): the plan job saves each run's step plan, the gate job leases the rows they change (no heartbeat; the decision names the lease) before it spends the approval, the applying job plans its runs again through the step and applies each whose digest the decision holds, and the record job writes the release records and lets go of the rows; a hook in the plan or apply job that holds the wave on another gate reads it with no write token and leaves its pending fact to the gate or record job; on Forgejo the plan and applying jobs hand their files on as job outputs (`packJs`), never through the artifact upload, and the gate and record jobs keep them as the artifacts; the plan job names no environment on GitHub (a wave's `planEnvironment` when set; on GitLab it prepares it), so the environment's reviewers are asked once. A `rest` wave splits from {@link WAVES_BEFORE_MERGE_REST_FLOOR} on.
|
|
99
|
+
*/
|
|
100
|
+
export declare const WAVES_BEFORE_MERGE_STEP_FLOOR = "0.124.90";
|
|
101
|
+
export type { OpWaveSavedStep, OpWaveSplitHandoff, OpWaveSplitLease } from "./op/op-waves-run.js";
|
|
102
|
+
/**
|
|
103
|
+
* The first chant whose split waves run a product's own process in every job (#4994): the product wave hook's `hooks` (`runChantInProcess(["run", "wave", ..., "--phase", <phase>], words, { wave: { afterPlan, capabilities, hookExec, runHooks, hooks } })`, `RunOpWaveOptions.inProcessHooks`) serves a spec hook by its name in the process of whichever job runs it, plan, gate or applying job or the one-job shape, in place of a command that called back over a socket; `opWaveProductStateDir` is where the plan job's code keeps what the later jobs read; a `record: true` hold in the plan job is spent by the gate job for a re-run of the hook at the wave's commit (an applied line with `rerun.head`), which the next run's plan job runs and its gate job finishes (`holdsFinished`); and `waveJobs.<wave>.artifact.path` takes a list and `waveJobs.<wave>.gate` gives the gate job a report and an artifact, so a product's own upload steps go through chant's Forgejo hand-off.
|
|
104
|
+
*/
|
|
105
|
+
export declare const WAVES_PRODUCT_HOOKS_FLOOR = "0.124.90";
|
|
106
|
+
export type { OpWaveHandedFinished, OpWaveInProcessHook, OpWaveInProcessHookCall } from "./op/op-waves-run.js";
|
|
107
|
+
export { opWaveProductStateDir } from "./op/op-waves-split.js";
|
|
108
|
+
/**
|
|
109
|
+
* The first chant whose split before-merge waves take a `rest` wave (#4992): its four jobs run one wave per run, the wave `CHANT_WAVES_WAVE` names (their own by default), and its record job, once the run applied and the plan found another wave, starts the waves workflow again for it (GitHub and Forgejo: a dispatch with the inputs `wave` and the decision's `pr`, `head` and `digest`, or a push's `commit`; GitLab: a pipeline with the same variables, with `CHANT_FORGE_TOKEN`), whose guard admits it as the same decided head; the jobs of the waves before it do not run in that follow-on; the record job's note (`rest-wave.json` beside the outcomes, `@intentius/chant/op/op-waves-follow-on`) tells `before-merge-done`, the control dispatch and the apply status that a run which started a follow-on is not the last.
|
|
110
|
+
*/
|
|
111
|
+
export declare const WAVES_BEFORE_MERGE_REST_FLOOR = "0.124.90";
|
|
112
|
+
/**
|
|
113
|
+
* The first chant whose rest wave's record job records each follow-on it starts on `chant/lifecycle` before it starts it (#4998): `_waves/<op>.follow-on.json` keeps, per decided head or pushed commit, the wave started, the run that started it, the decision (`pr`, `digest`) or the `commit`, and the outcomes of every run of the chain so far; the guard admits a follow-on only for the wave that record names, so a wave started by hand past it is refused; and the last run's control dispatch, apply status and `before-merge-done` add up the outcomes of every run of the chain (the note's `chain`), so a chain whose last wave changed nothing reports `applied`.
|
|
114
|
+
*/
|
|
115
|
+
export declare const WAVES_FOLLOW_ON_RECORD_FLOOR = "0.124.90";
|
|
80
116
|
/**
|
|
81
117
|
* The first chant whose product plan takes `watches`, the product's own scheduled jobs the note job's `pr-post` checks for having stopped with the job's token (#4888), and whose `checkOverdueOps` and `overdueOpsAt` take a product's `logPrefix` and `label`.
|
|
82
118
|
*/
|
|
83
119
|
export declare const PRODUCT_PLAN_WATCHES_FLOOR = "0.124.88";
|
|
84
|
-
export { PLAN_WATCHES_ENV } from "./op/schedule-overdue.js";
|
|
120
|
+
export { PLAN_WATCHES_ENV, watchesForTarget } from "./op/schedule-overdue.js";
|
|
121
|
+
/**
|
|
122
|
+
* The first chant whose product plan's `watches` take `targets` (#4988): a watch scoped to those targets is checked by their notes alone, and the note of another target checks neither it nor the discovered Op of its name (`watchesForTarget`).
|
|
123
|
+
*/
|
|
124
|
+
export declare const PRODUCT_PLAN_WATCH_TARGETS_FLOOR = "0.124.90";
|
|
85
125
|
/**
|
|
86
126
|
* The first chant whose product plan takes `record` (#4899): the plan step writes the plan job's run record into the hand-off, and the note job keeps it as Op `pr-plan` on `chant/lifecycle` with `pr-post --record-run <plan job>` (`--open` on GitLab), as `chant ci run plan --in-place` records `pr-plan`'s.
|
|
87
127
|
*/
|
package/dist/ci-product.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-product.d.ts","sourceRoot":"","sources":["../src/ci-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,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present means the rest is too.
|
|
10
10
|
*/
|
|
11
|
-
import { OTLP_EXPORTER_FLOOR } from "./otlp.js";
|
|
12
11
|
import { NEXT_RELEASE } from "./release-floors.js";
|
|
12
|
+
import { OTLP_EXPORTER_FLOOR } from "./otlp.js";
|
|
13
13
|
/**
|
|
14
14
|
* The first chant with the product pipeline (#4550): the words, the
|
|
15
15
|
* `pull-request` op-wave approval source, `runCommandInProcess(argv, {
|
|
@@ -59,27 +59,64 @@ export const COMMENT_LEAVES_COMMIT_FLOOR = "0.124.88";
|
|
|
59
59
|
/**
|
|
60
60
|
* The first chant with the comment job on GitHub and Forgejo and the replies to commands no job runs (#4946): `commentJob` in the product pipeline (`chant components pr-comment`, `answerProductComment` in `@intentius/chant/ci-comment-commands`), which replies to a refusal and to a command the pipeline runs no job for, and with waves on merge starts a merged pull request's apply again; the words' `replies` and an alias's `refuse`, which the GitLab note poll reads too, as `chantNoteRuns`' `members`; `retryApply`; and `locks: "plan"` in GitHub's and Forgejo's product plan, with the lock, unlock and comment lock jobs.
|
|
61
61
|
*/
|
|
62
|
-
export const COMMENT_COMMANDS_FLOOR =
|
|
62
|
+
export const COMMENT_COMMANDS_FLOOR = "0.124.89";
|
|
63
63
|
export { answerProductComment, answeredElsewhere, COMMENT_JOBS_ENV, commentRuns, PR_COMMENT_JOB, RERUN_APPLY_JOBS } from "./ci-comment-commands.js";
|
|
64
64
|
export { forkReply, memberReply, notRunReply } from "./ci-comment-replies.js";
|
|
65
65
|
export { productCommentJob } from "./components/product-pipeline.js";
|
|
66
66
|
/**
|
|
67
67
|
* The first chant whose product plan locks what a change reaches (#4979): `productPlan.reach`, a reach line the lock job runs at the target branch's commit with `chant lock --reach` (`@intentius/chant/lifecycle/reach-locks`), on GitHub, Forgejo and GitLab, where the lock job runs in the plan notes pipeline with `--open` beside the comment lock and unlock jobs; and whose comment job answers a re-plan comment with flags the product plan's re-plan cannot take (`noPlanFlags`).
|
|
68
68
|
*/
|
|
69
|
-
export const PRODUCT_PLAN_REACH_LOCKS_FLOOR =
|
|
69
|
+
export const PRODUCT_PLAN_REACH_LOCKS_FLOOR = "0.124.89";
|
|
70
70
|
export { LOCK_REACH_ENV, reachedTargets, reachOpen } from "./lifecycle/reach-locks.js";
|
|
71
71
|
export { productPlanReachLock } from "./components/product-plan.js";
|
|
72
72
|
export { planFlagsReply } from "./ci-comment-commands.js";
|
|
73
73
|
/**
|
|
74
74
|
* The first chant whose comment job stops a merged pull request's re-run at a wave (#4979): `/<product> apply wave-<n>` writes a stop for the merge commit on `chant/lifecycle` (`_waves/<op>.stops.json`, `@intentius/chant/op/wave-stop`) before GitHub's re-run or Forgejo's dispatch, and `chant run wave` leaves each wave after n waiting (exit 3).
|
|
75
75
|
*/
|
|
76
|
-
export const WAVE_STOP_FLOOR =
|
|
76
|
+
export const WAVE_STOP_FLOOR = "0.124.89";
|
|
77
77
|
export { setWaveStop, waveStopAt, waveStopLine } from "./op/wave-stop.js";
|
|
78
|
+
/**
|
|
79
|
+
* The first chant whose Op waves run before merge (#4984): `wavesBeforeMerge` in the product pipeline, where the comment job (GitHub, Forgejo) or the note poll (GitLab) decides `/<product> apply [wave-<n>]` on an open pull request (`decideWavesBeforeMerge`, `@intentius/chant/op/before-merge-decide`), records the head and its digest on `chant/lifecycle` (`_waves/<op>.before-merge.json`) and starts the waves for it; the generators' `beforeMerge`, whose guard admits that head alone, whose jobs check it out and read the base from the default branch, and whose `before-merge-done` job merges and releases the locks (`chant run wave --merge`); `waveJobs.<wave>.prelude`; the GitLab note poll's wave stop (`chantNoteRuns`' `waves`); a re-plan word that never starts with `-`; and the terraform lexicon's reach helpers (`@intentius/chant-lexicon-terraform/reach`).
|
|
80
|
+
*/
|
|
81
|
+
export const WAVES_BEFORE_MERGE_FLOOR = NEXT_RELEASE;
|
|
82
|
+
export { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_DONE_JOB, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV, beforeMergeDigest, beforeMergePath, beforeMergeProblems, WAVES_BASE_ENV } from "./op/before-merge.js";
|
|
83
|
+
export { decideWavesBeforeMerge, defaultPipelineFiles } from "./op/before-merge-decide.js";
|
|
84
|
+
/**
|
|
85
|
+
* The first chant whose Op waves post the apply statuses (#4987): the generators' `applyStatus`, a job `apply-status-<n>` after each wave at the default branch's commit that posts `<product>/apply` on the commit the waves applied (a before-merge run's decided head) with `chant run wave --apply-status` (`@intentius/chant/op/apply-status`), and the product pipeline's `applyStatus`; whose product plan takes `staleNotes`, each target's note carrying the target branch's commit and a `stale-notes` job beside wave 1 on a push marking each target's note (`pr-post --stale` with one `--member` per target); whose `productPipelineJobs` returns `waves.pipeline` for the generators; and whose GitLab reach line reaches the lock and note-commands jobs unexpanded (`expand: false`).
|
|
86
|
+
*/
|
|
87
|
+
export const WAVES_APPLY_STATUS_FLOOR = NEXT_RELEASE;
|
|
88
|
+
export { applyStatusJobName, opWaveApplyStatus, postOpWaveApplyStatus } from "./op/apply-status.js";
|
|
89
|
+
/**
|
|
90
|
+
* The first chant whose before-merge waves never run the change's code beside a write token (#4987): with `beforeMerge` each wave is a plan job (the change's code, a checkout with no credentials kept, a read-only token; GitLab drops `CHANT_FORGE_TOKEN` and the job token), a gate job at the default branch with the token, an applying job on the saved plan with no write token, and a record job at the default branch that writes the run records (`chant run wave --phase plan|gate|apply|record`, `@intentius/chant/op/op-waves-split`). A `rest` wave is refused with `beforeMerge`.
|
|
91
|
+
*/
|
|
92
|
+
export const WAVES_BEFORE_MERGE_SPLIT_FLOOR = NEXT_RELEASE;
|
|
93
|
+
export { opWaveSplitJobs } from "./op/op-waves-split.js";
|
|
94
|
+
/**
|
|
95
|
+
* The first chant whose split before-merge waves take a `step` spec, Forgejo's hand-off, holds on other gates and one approval per wave (#4992): the plan job saves each run's step plan, the gate job leases the rows they change (no heartbeat; the decision names the lease) before it spends the approval, the applying job plans its runs again through the step and applies each whose digest the decision holds, and the record job writes the release records and lets go of the rows; a hook in the plan or apply job that holds the wave on another gate reads it with no write token and leaves its pending fact to the gate or record job; on Forgejo the plan and applying jobs hand their files on as job outputs (`packJs`), never through the artifact upload, and the gate and record jobs keep them as the artifacts; the plan job names no environment on GitHub (a wave's `planEnvironment` when set; on GitLab it prepares it), so the environment's reviewers are asked once. A `rest` wave splits from {@link WAVES_BEFORE_MERGE_REST_FLOOR} on.
|
|
96
|
+
*/
|
|
97
|
+
export const WAVES_BEFORE_MERGE_STEP_FLOOR = NEXT_RELEASE;
|
|
98
|
+
/**
|
|
99
|
+
* The first chant whose split waves run a product's own process in every job (#4994): the product wave hook's `hooks` (`runChantInProcess(["run", "wave", ..., "--phase", <phase>], words, { wave: { afterPlan, capabilities, hookExec, runHooks, hooks } })`, `RunOpWaveOptions.inProcessHooks`) serves a spec hook by its name in the process of whichever job runs it, plan, gate or applying job or the one-job shape, in place of a command that called back over a socket; `opWaveProductStateDir` is where the plan job's code keeps what the later jobs read; a `record: true` hold in the plan job is spent by the gate job for a re-run of the hook at the wave's commit (an applied line with `rerun.head`), which the next run's plan job runs and its gate job finishes (`holdsFinished`); and `waveJobs.<wave>.artifact.path` takes a list and `waveJobs.<wave>.gate` gives the gate job a report and an artifact, so a product's own upload steps go through chant's Forgejo hand-off.
|
|
100
|
+
*/
|
|
101
|
+
export const WAVES_PRODUCT_HOOKS_FLOOR = NEXT_RELEASE;
|
|
102
|
+
export { opWaveProductStateDir } from "./op/op-waves-split.js";
|
|
103
|
+
/**
|
|
104
|
+
* The first chant whose split before-merge waves take a `rest` wave (#4992): its four jobs run one wave per run, the wave `CHANT_WAVES_WAVE` names (their own by default), and its record job, once the run applied and the plan found another wave, starts the waves workflow again for it (GitHub and Forgejo: a dispatch with the inputs `wave` and the decision's `pr`, `head` and `digest`, or a push's `commit`; GitLab: a pipeline with the same variables, with `CHANT_FORGE_TOKEN`), whose guard admits it as the same decided head; the jobs of the waves before it do not run in that follow-on; the record job's note (`rest-wave.json` beside the outcomes, `@intentius/chant/op/op-waves-follow-on`) tells `before-merge-done`, the control dispatch and the apply status that a run which started a follow-on is not the last.
|
|
105
|
+
*/
|
|
106
|
+
export const WAVES_BEFORE_MERGE_REST_FLOOR = NEXT_RELEASE;
|
|
107
|
+
/**
|
|
108
|
+
* The first chant whose rest wave's record job records each follow-on it starts on `chant/lifecycle` before it starts it (#4998): `_waves/<op>.follow-on.json` keeps, per decided head or pushed commit, the wave started, the run that started it, the decision (`pr`, `digest`) or the `commit`, and the outcomes of every run of the chain so far; the guard admits a follow-on only for the wave that record names, so a wave started by hand past it is refused; and the last run's control dispatch, apply status and `before-merge-done` add up the outcomes of every run of the chain (the note's `chain`), so a chain whose last wave changed nothing reports `applied`.
|
|
109
|
+
*/
|
|
110
|
+
export const WAVES_FOLLOW_ON_RECORD_FLOOR = NEXT_RELEASE;
|
|
78
111
|
/**
|
|
79
112
|
* The first chant whose product plan takes `watches`, the product's own scheduled jobs the note job's `pr-post` checks for having stopped with the job's token (#4888), and whose `checkOverdueOps` and `overdueOpsAt` take a product's `logPrefix` and `label`.
|
|
80
113
|
*/
|
|
81
114
|
export const PRODUCT_PLAN_WATCHES_FLOOR = "0.124.88";
|
|
82
|
-
export { PLAN_WATCHES_ENV } from "./op/schedule-overdue.js";
|
|
115
|
+
export { PLAN_WATCHES_ENV, watchesForTarget } from "./op/schedule-overdue.js";
|
|
116
|
+
/**
|
|
117
|
+
* The first chant whose product plan's `watches` take `targets` (#4988): a watch scoped to those targets is checked by their notes alone, and the note of another target checks neither it nor the discovered Op of its name (`watchesForTarget`).
|
|
118
|
+
*/
|
|
119
|
+
export const PRODUCT_PLAN_WATCH_TARGETS_FLOOR = NEXT_RELEASE;
|
|
83
120
|
/**
|
|
84
121
|
* The first chant whose product plan takes `record` (#4899): the plan step writes the plan job's run record into the hand-off, and the note job keeps it as Op `pr-plan` on `chant/lifecycle` with `pr-post --record-run <plan job>` (`--open` on GitLab), as `chant ci run plan --in-place` records `pr-plan`'s.
|
|
85
122
|
*/
|
|
@@ -88,13 +125,13 @@ export { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE, readPlanRunRecord } from "./pr-plan-
|
|
|
88
125
|
/**
|
|
89
126
|
* The first chant whose product plan carries what terragucci's and sql-yodeler's plan jobs did themselves (#4963, #4951): `trade` (a plan's or a target's) before the checkout, `replan: { dispatch, reply, notAffected }` (a re-plan from `workflow_dispatch`, a reply to a comment no other job takes, `pr-post --not-affected`), `previousMarker` (`CHANT_PLAN_PREVIOUS_MARKER`), `noteSteps.pullRequest`, a `PrReport`'s `marker`, and a hand-off of the product's own note text (`planBodyHandoff`).
|
|
90
127
|
*/
|
|
91
|
-
export const PRODUCT_PLAN_REPLAN_FLOOR =
|
|
128
|
+
export const PRODUCT_PLAN_REPLAN_FLOOR = "0.124.89";
|
|
92
129
|
export { gitlabReplanArgumentLines, PREVIOUS_MARKER_JS, replanDecideJs } from "./components/product-plan.js";
|
|
93
130
|
export { planBodyHandoff, PLAN_BODY_LIMIT } from "./pr-plan-note.js";
|
|
94
131
|
/**
|
|
95
132
|
* The first chant whose note job compares the plan's subject with the previous note's (#4972), on GitHub, Forgejo and GitLab: a plan note hand-off's `subject` (`PrPlanSubject`, an id and named parts) is kept in the note, and `pr-post` adds the note words' `sinceLast` line, naming the parts added, gone and changed (`subjectParts`), when the previous note kept another id. The plan job reads no note, and `previousMarker` is deprecated.
|
|
96
133
|
*/
|
|
97
|
-
export const PRODUCT_PLAN_SUBJECT_FLOOR =
|
|
134
|
+
export const PRODUCT_PLAN_SUBJECT_FLOOR = "0.124.89";
|
|
98
135
|
export { PLAN_SUBJECT_LIMIT, planSubjectProblem, sinceLastLine, subjectChanges } from "./pr-plan-note.js";
|
|
99
136
|
/**
|
|
100
137
|
* Day-2 actions in the product pipeline (#4654): the `action` comment
|
|
@@ -13,9 +13,21 @@
|
|
|
13
13
|
* (`GITHUB_TOKEN`), so none of the change's code runs here, and it loads no
|
|
14
14
|
* plugins.
|
|
15
15
|
*/
|
|
16
|
-
import { type CommentJobs } from "../../ci-comment-commands.js";
|
|
16
|
+
import { type CommentBeforeMerge, type CommentJobs } from "../../ci-comment-commands.js";
|
|
17
|
+
import type { WavesBeforeMergeJobs } from "../../op/before-merge-decide.js";
|
|
18
|
+
import { type PrForge } from "../../pr-forge.js";
|
|
17
19
|
import type { CommandContext } from "../registry.js";
|
|
18
20
|
/** The jobs named in {@link COMMENT_JOBS_ENV}: each a boolean, `targets` a list of names, and anything else is refused. */
|
|
19
21
|
export declare function commentJobsFromEnv(raw: string | undefined): CommentJobs;
|
|
22
|
+
/** {@link COMMENT_JOBS_ENV}'s `wavesBeforeMerge` (#4984), each field checked, since the comment job pushes and dispatches with what it names. */
|
|
23
|
+
export declare function wavesBeforeMergeOf(x: unknown): WavesBeforeMergeJobs;
|
|
24
|
+
/**
|
|
25
|
+
* What the decision before merge reads and writes with (#4984), in the
|
|
26
|
+
* comment job (GitHub, Forgejo) and the note poll (GitLab): the requires
|
|
27
|
+
* and statuses through the job's client, git in the checkout of the
|
|
28
|
+
* default branch, the reach line's locks at stage apply, and the decision
|
|
29
|
+
* and the wave stop on this checkout's `chant/lifecycle`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function beforeMergeDeps(forge: PrForge, jobs: CommentJobs, env?: NodeJS.ProcessEnv): Promise<CommentBeforeMerge>;
|
|
20
32
|
export declare function runComponentsPrComment(ctx: CommandContext): Promise<number>;
|
|
21
33
|
//# sourceMappingURL=pr-comment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-comment.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAuD,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"pr-comment.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAuD,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3I,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAoC,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,2HAA2H;AAC3H,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CA8BvE;AAED,iJAAiJ;AACjJ,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAiBnE;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA4C1I;AAED,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDjF"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { activeProductWords } from "../../ci-product-words.js";
|
|
18
18
|
import { answerProductComment, COMMENT_JOBS_ENV, commentRuns } from "../../ci-comment-commands.js";
|
|
19
|
+
import { PR_APPLY_REQUIRES } from "../../pr-requires.js";
|
|
19
20
|
import { forgeFromEnv, forgeTargetFromEnv } from "../../pr-forge.js";
|
|
20
21
|
import { forgeReadsFor } from "../../pr-forge-reads.js";
|
|
21
22
|
import { formatError, formatInfo } from "../format.js";
|
|
@@ -30,11 +31,16 @@ export function commentJobsFromEnv(raw) {
|
|
|
30
31
|
const v = JSON.parse(raw);
|
|
31
32
|
if (typeof v !== "object" || v === null || Array.isArray(v))
|
|
32
33
|
throw new Error(`${COMMENT_JOBS_ENV} is a JSON object of the jobs the pipeline has`);
|
|
33
|
-
const known = new Set(["preview", "applyBeforeMerge", "applyOnMerge", "locks", "agent", "commits", "actions", "skipForks", "targets", "noPlanFlags", "waves"]);
|
|
34
|
+
const known = new Set(["preview", "applyBeforeMerge", "applyOnMerge", "locks", "agent", "commits", "actions", "skipForks", "targets", "noPlanFlags", "waves", "wavesBeforeMerge"]);
|
|
34
35
|
const jobs = {};
|
|
35
36
|
for (const [k, x] of Object.entries(v)) {
|
|
36
37
|
if (!known.has(k))
|
|
37
38
|
throw new Error(`${COMMENT_JOBS_ENV} names ${JSON.stringify(k)}, which is not one of ${[...known].join(", ")}`);
|
|
39
|
+
// #4984: the waves before merge.
|
|
40
|
+
if (k === "wavesBeforeMerge") {
|
|
41
|
+
jobs.wavesBeforeMerge = wavesBeforeMergeOf(x);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
38
44
|
// #4979: the waves' op and count, for a wave stop on a re-run.
|
|
39
45
|
if (k === "waves") {
|
|
40
46
|
const w = x;
|
|
@@ -55,8 +61,89 @@ export function commentJobsFromEnv(raw) {
|
|
|
55
61
|
if (x)
|
|
56
62
|
jobs[k] = true;
|
|
57
63
|
}
|
|
64
|
+
if (jobs.wavesBeforeMerge && !jobs.waves)
|
|
65
|
+
throw new Error(`${COMMENT_JOBS_ENV}.wavesBeforeMerge needs waves: { op, count }, the waves it starts`);
|
|
58
66
|
return jobs;
|
|
59
67
|
}
|
|
68
|
+
/** {@link COMMENT_JOBS_ENV}'s `wavesBeforeMerge` (#4984), each field checked, since the comment job pushes and dispatches with what it names. */
|
|
69
|
+
export function wavesBeforeMergeOf(x) {
|
|
70
|
+
const what = `${COMMENT_JOBS_ENV}.wavesBeforeMerge`;
|
|
71
|
+
const o = x;
|
|
72
|
+
if (!o || typeof o !== "object" || Array.isArray(o))
|
|
73
|
+
throw new Error(`${what} is { workflow?, requires?, plan, pipelineFiles, locks? }`);
|
|
74
|
+
const strings = (v) => Array.isArray(v) && v.every((s) => typeof s === "string" && s.trim() !== "" && !/[\r\n]/.test(s));
|
|
75
|
+
if (o.workflow !== undefined && (typeof o.workflow !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._-]*\.ya?ml$/.test(o.workflow)))
|
|
76
|
+
throw new Error(`${what}.workflow is a workflow file name, like deploy.yml`);
|
|
77
|
+
if (o.requires !== undefined && (!Array.isArray(o.requires) || o.requires.some((r) => !PR_APPLY_REQUIRES.includes(r))))
|
|
78
|
+
throw new Error(`${what}.requires is a list of ${PR_APPLY_REQUIRES.join(", ")}`);
|
|
79
|
+
if (!strings(o.plan))
|
|
80
|
+
throw new Error(`${what}.plan is the list of plan statuses that must pass on the head`);
|
|
81
|
+
if (!strings(o.pipelineFiles))
|
|
82
|
+
throw new Error(`${what}.pipelineFiles is the list of paths a change may not touch`);
|
|
83
|
+
if (o.locks !== undefined && (typeof o.locks !== "object" || o.locks === null || (o.locks.gate !== undefined && (typeof o.locks.gate !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/.test(o.locks.gate)))))
|
|
84
|
+
throw new Error(`${what}.locks is { gate? }`);
|
|
85
|
+
return {
|
|
86
|
+
...(o.workflow ? { workflow: o.workflow } : {}),
|
|
87
|
+
...(o.requires ? { requires: [...o.requires] } : {}),
|
|
88
|
+
plan: [...o.plan],
|
|
89
|
+
pipelineFiles: [...o.pipelineFiles],
|
|
90
|
+
...(o.locks ? { locks: { ...(o.locks.gate ? { gate: o.locks.gate } : {}) } } : {}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* What the decision before merge reads and writes with (#4984), in the
|
|
95
|
+
* comment job (GitHub, Forgejo) and the note poll (GitLab): the requires
|
|
96
|
+
* and statuses through the job's client, git in the checkout of the
|
|
97
|
+
* default branch, the reach line's locks at stage apply, and the decision
|
|
98
|
+
* and the wave stop on this checkout's `chant/lifecycle`.
|
|
99
|
+
*/
|
|
100
|
+
export async function beforeMergeDeps(forge, jobs, env = process.env) {
|
|
101
|
+
const bm = jobs.wavesBeforeMerge;
|
|
102
|
+
const op = jobs.waves.op;
|
|
103
|
+
const { spawnSync } = await import("node:child_process");
|
|
104
|
+
const { checkPrRequires, unmetRequires } = await import("../../pr-requires.js");
|
|
105
|
+
const { productStatusContext, activeProductWords } = await import("../../ci-product-words.js");
|
|
106
|
+
const { LOCK_REACH_ENV, reachedTargets } = await import("../../lifecycle/reach-locks.js");
|
|
107
|
+
const { takeTargetLocks, describeHeldTargetLocks } = await import("../../lifecycle/target-lock.js");
|
|
108
|
+
const { recordBeforeMerge } = await import("../../op/before-merge-store.js");
|
|
109
|
+
const { setWaveStop } = await import("../../op/wave-stop.js");
|
|
110
|
+
const { PR_APPLY_GATE } = await import("../../pr-loop.js");
|
|
111
|
+
const words = activeProductWords();
|
|
112
|
+
const line = env[LOCK_REACH_ENV];
|
|
113
|
+
const name = (n) => (forge.kind === "gitlab" ? `!${n}` : `pull request ${n}`);
|
|
114
|
+
return {
|
|
115
|
+
// The plan and apply statuses never hold the apply back: the plan status is asked for by name.
|
|
116
|
+
requires: async (pr, head) => unmetRequires(await checkPrRequires(forge, pr, head, { ignore: [productStatusContext(words, "apply"), productStatusContext(words, "plan"), `${productStatusContext(words, "plan")}/`], ...(bm.requires ? { only: bm.requires } : {}) })),
|
|
117
|
+
statuses: async (sha) => (await forge.commitStatuses?.(sha)) ?? [],
|
|
118
|
+
git: (argv, o) => {
|
|
119
|
+
const r = spawnSync(argv[0], argv.slice(1), { encoding: "utf8", ...(o.cwd ? { cwd: o.cwd } : {}) });
|
|
120
|
+
return { status: r.status, stdout: r.stdout ?? "", stderr: r.error ? r.error.message : (r.stderr ?? "") };
|
|
121
|
+
},
|
|
122
|
+
// #4979's reach line says what the change reaches; the locks go up at stage apply, refused while another holds one.
|
|
123
|
+
...(line && line.trim()
|
|
124
|
+
? {
|
|
125
|
+
lock: async (pr, head, base, by) => {
|
|
126
|
+
const reached = reachedTargets({ forge: forge.kind, pr, head, base, line });
|
|
127
|
+
if ("error" in reached)
|
|
128
|
+
throw new Error(reached.error);
|
|
129
|
+
if ("moved" in reached)
|
|
130
|
+
return { ok: false, text: `${name(pr)} moved while this comment was read, so nothing is ${words.verbs.apply[1]}; comment again once its checks pass` };
|
|
131
|
+
const isOpen = forge.pullRequestOpen?.bind(forge);
|
|
132
|
+
const r = await takeTargetLocks(bm.locks?.gate ?? PR_APPLY_GATE, reached.targets, { pr, by, at: new Date().toISOString(), stage: "apply", head }, { ...(isOpen ? { isOpen } : {}) });
|
|
133
|
+
if (!r.ok) {
|
|
134
|
+
const request = forge.kind === "gitlab" ? "merge request" : "pull request";
|
|
135
|
+
return { ok: false, text: `${describeHeldTargetLocks(r.held, name)}, so ${name(pr)} is not ${words.verbs.apply[1]}. It ${words.verbs.apply[0]}s once that ${request} merges or closes, or someone with write access unlocks it` };
|
|
136
|
+
}
|
|
137
|
+
return { ok: true, targets: r.taken };
|
|
138
|
+
},
|
|
139
|
+
}
|
|
140
|
+
: {}),
|
|
141
|
+
record: (d) => recordBeforeMerge(op, d),
|
|
142
|
+
stop: async (head, through) => {
|
|
143
|
+
await setWaveStop(op, head, through === null ? null : { through, at: new Date().toISOString() });
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
}
|
|
60
147
|
export async function runComponentsPrComment(ctx) {
|
|
61
148
|
const { args } = ctx;
|
|
62
149
|
const kind = args.forge;
|
|
@@ -94,6 +181,8 @@ export async function runComponentsPrComment(ctx) {
|
|
|
94
181
|
base,
|
|
95
182
|
jobs,
|
|
96
183
|
env,
|
|
184
|
+
// #4984: the decision before merge, its record and its wave stop on this checkout's chant/lifecycle.
|
|
185
|
+
...(jobs.wavesBeforeMerge ? { beforeMerge: await beforeMergeDeps(poster, jobs, env) } : {}),
|
|
97
186
|
// #4979: the wave stop goes on this checkout's chant/lifecycle, which the job pushes with its token.
|
|
98
187
|
...(jobs.waves
|
|
99
188
|
? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-notes.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"pr-notes.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmE/E"}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
import { resolve } from "node:path";
|
|
12
12
|
import { activeProductWords } from "../../ci-product-words.js";
|
|
13
13
|
import { chantNoteRuns, gitlabPipelines, ledgerNoteLog, pollNoteCommands } from "../../ci-note-commands.js";
|
|
14
|
+
import { COMMENT_JOBS_ENV } from "../../ci-comment-commands.js";
|
|
15
|
+
import { beforeMergeDeps, commentJobsFromEnv } from "./pr-comment.js";
|
|
14
16
|
import { forgeFromEnv, forgeTargetFromEnv } from "../../pr-forge.js";
|
|
15
17
|
import { forgeReadsFor } from "../../pr-forge-reads.js";
|
|
16
18
|
import { formatError, formatInfo, formatWarning } from "../format.js";
|
|
@@ -40,6 +42,15 @@ export async function runComponentsPrNotes(ctx) {
|
|
|
40
42
|
// The ledger keeps the notes answered: read it as the remote has it.
|
|
41
43
|
await fetchLifecycle({ cwd });
|
|
42
44
|
const words = activeProductWords();
|
|
45
|
+
// #4984: the waves' op and count, and the waves before merge, as the pipeline wrote them in CHANT_COMMENT_JOBS.
|
|
46
|
+
let more;
|
|
47
|
+
try {
|
|
48
|
+
more = commentJobsFromEnv(env[COMMENT_JOBS_ENV]);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
52
|
+
}
|
|
53
|
+
const beforeMerge = more.wavesBeforeMerge && more.waves ? await beforeMergeDeps(forge, more, env) : undefined;
|
|
43
54
|
const polled = await pollNoteCommands({
|
|
44
55
|
reads: forgeReadsFor(target),
|
|
45
56
|
forge,
|
|
@@ -51,9 +62,20 @@ export async function runComponentsPrNotes(ctx) {
|
|
|
51
62
|
...(args.applyBeforeMerge ? { applyBeforeMerge: true } : {}),
|
|
52
63
|
...(args.applyOnMerge ? { applyOnMerge: true } : {}),
|
|
53
64
|
...(args.locks ? { locks: true } : {}),
|
|
54
|
-
|
|
65
|
+
...(more.waves ? { waves: more.waves } : {}),
|
|
66
|
+
...(more.wavesBeforeMerge ? { wavesBeforeMerge: more.wavesBeforeMerge } : {}),
|
|
67
|
+
}, beforeMerge ? { beforeMerge } : {}),
|
|
55
68
|
log: ledgerNoteLog({ cwd }),
|
|
56
69
|
env,
|
|
70
|
+
// #4984: a merged merge request's wave-<n> stops the retried waves after it.
|
|
71
|
+
...(more.waves
|
|
72
|
+
? {
|
|
73
|
+
stops: async (op, sha, stop) => {
|
|
74
|
+
const { setWaveStop } = await import("../../op/wave-stop.js");
|
|
75
|
+
await setWaveStop(op, sha, stop, { cwd });
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
: {}),
|
|
57
79
|
});
|
|
58
80
|
let failed = polled.fail !== undefined;
|
|
59
81
|
for (const o of polled.outcomes) {
|
package/dist/cli/handlers/pr.js
CHANGED
|
@@ -2865,7 +2865,8 @@ async function descriptionCheckOf(ctx, forge) {
|
|
|
2865
2865
|
* `--preview-comment`, and set its plan status back to pending
|
|
2866
2866
|
* (`markStaleNotes`, ../../pr-post.ts). The branch is `--branch`, else the
|
|
2867
2867
|
* job's (`GITHUB_REF_NAME`, `CI_COMMIT_BRANCH`). It exits 0 once it has
|
|
2868
|
-
* marked, as `pr-post` does.
|
|
2868
|
+
* marked, as `pr-post` does. `--member` given more than once (#4987, a
|
|
2869
|
+
* product plan's targets) marks each member's note in turn.
|
|
2869
2870
|
*/
|
|
2870
2871
|
async function runComponentsPrPostStale(ctx) {
|
|
2871
2872
|
const { args } = ctx;
|
|
@@ -2877,8 +2878,6 @@ async function runComponentsPrPostStale(ctx) {
|
|
|
2877
2878
|
return fail("pr-post needs the environment the plan was for: --env <env>");
|
|
2878
2879
|
if (!args.forge || !FORGE_KINDS.includes(args.forge))
|
|
2879
2880
|
return fail(`pr-post posts to a forge: --forge ${FORGE_KINDS.join("|")}`);
|
|
2880
|
-
if (args.members && args.members.length > 1)
|
|
2881
|
-
return fail(`pr-post takes one --member, not ${args.members.join(", ")}`);
|
|
2882
2881
|
const branch = args.branch ?? process.env.CI_COMMIT_BRANCH ?? process.env.GITHUB_REF_NAME;
|
|
2883
2882
|
if (!branch)
|
|
2884
2883
|
return fail("pr-post --stale marks the notes of the pull requests into a branch: run it in a job of a push, or pass --branch <branch>");
|
|
@@ -2889,19 +2888,22 @@ async function runComponentsPrPostStale(ctx) {
|
|
|
2889
2888
|
catch (err) {
|
|
2890
2889
|
return fail(err instanceof Error ? err.message : String(err));
|
|
2891
2890
|
}
|
|
2892
|
-
|
|
2891
|
+
// #4987: a product plan's targets each have their note, so --member may be given once per target.
|
|
2892
|
+
const members = args.members?.length ? [...new Set(args.members)] : [undefined];
|
|
2893
2893
|
const { markStaleNotes } = await import("../../pr-post.js");
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2894
|
+
for (const member of members) {
|
|
2895
|
+
let done;
|
|
2896
|
+
try {
|
|
2897
|
+
done = await markStaleNotes({ forge, branch, tip: args.tip, env: args.env, ...(member ? { member } : {}), ...(args.previewComment ? { previewComment: true } : {}) });
|
|
2898
|
+
}
|
|
2899
|
+
catch (err) {
|
|
2900
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
2901
|
+
}
|
|
2902
|
+
for (const message of done.warnings)
|
|
2903
|
+
console.error(formatWarning({ message }));
|
|
2904
|
+
const marked = done.marks.filter((m) => m.marked).map((m) => `#${m.pr}`);
|
|
2905
|
+
console.error(formatInfo(`pr-post --stale${member ? ` (${member})` : ""}: ${marked.length > 0 ? `marked ${marked.join(", ")} stale` : "no note to mark"} after ${branch} moved to ${args.tip.slice(0, 12)}`));
|
|
2900
2906
|
}
|
|
2901
|
-
for (const message of done.warnings)
|
|
2902
|
-
console.error(formatWarning({ message }));
|
|
2903
|
-
const marked = done.marks.filter((m) => m.marked).map((m) => `#${m.pr}`);
|
|
2904
|
-
console.error(formatInfo(`pr-post --stale: ${marked.length > 0 ? `marked ${marked.join(", ")} stale` : "no note to mark"} after ${branch} moved to ${args.tip.slice(0, 12)}`));
|
|
2905
2907
|
return 0;
|
|
2906
2908
|
}
|
|
2907
2909
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-wave.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run-wave.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"run-wave.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run-wave.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB3E"}
|