@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
|
@@ -26,7 +26,7 @@ import { type ControlNoteCheckout } from "../control/dispatch.js";
|
|
|
26
26
|
import { type CiProductCommand, type CiProductWords, type CiProductWordsInput } from "../ci-product-words.js";
|
|
27
27
|
import { type PrActionJob, type PrCommentLockJob, type PrCommentPreviewJob, type PrLoopJob, type PrLoopPipelineOptions } from "./pr-pipeline.js";
|
|
28
28
|
import type { DriverComponent } from "./driver.js";
|
|
29
|
-
import type { ScheduledOpSpec } from "../lexicon.js";
|
|
29
|
+
import type { OpWavesPipelineOptions, ScheduledOpSpec } from "../lexicon.js";
|
|
30
30
|
import type { CiRunner } from "../ci-jobs.js";
|
|
31
31
|
import { type OpAgentSpec } from "../ci-agent.js";
|
|
32
32
|
import { type OpCommitSpec } from "../ci-commit.js";
|
|
@@ -35,6 +35,8 @@ import { type ProductPlanJob, type ProductPlanOptions, type ProductPlanReachLock
|
|
|
35
35
|
import { type PipelineEvidence } from "../ci-evidence-jobs.js";
|
|
36
36
|
import { type PrCheckJob, type PrRefGateJob } from "./pr-checks.js";
|
|
37
37
|
import { PR_COMMENT_JOB, type CommentJobs } from "../ci-comment-commands.js";
|
|
38
|
+
import type { OpWavesBeforeMerge } from "../op/before-merge.js";
|
|
39
|
+
import type { PrApplyRequire } from "../pr-requires.js";
|
|
38
40
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
39
41
|
export declare const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
40
42
|
/** The waves spec file of op `name`: `.chant/op-waves/<name>.spec.json`. */
|
|
@@ -137,6 +139,42 @@ export interface ProductPipelineOptions extends Omit<PrLoopPipelineOptions, "wor
|
|
|
137
139
|
* there.
|
|
138
140
|
*/
|
|
139
141
|
commentJob?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Waves before merge (#4984, maintainer decision 2026-11-10): `/<product>
|
|
144
|
+
* apply [wave-<n>]` on an open pull request runs the waves on its head.
|
|
145
|
+
* The comment job (GitHub, Forgejo; needs `commentJob`) or the note poll
|
|
146
|
+
* (GitLab; needs `noteCommands`) decides it by the product plan's rules
|
|
147
|
+
* (../op/before-merge-decide.ts): this repository's pull request into the
|
|
148
|
+
* default branch, its head unmoved, `requires` met, every plan status
|
|
149
|
+
* passed on the head, none of `pipelineFiles` touched, and with the
|
|
150
|
+
* product plan's `reach` the locks at stage apply. It records the head
|
|
151
|
+
* and the decision's digest on `chant/lifecycle` and starts the waves
|
|
152
|
+
* workflow for it, whose guard admits that head alone. After the last
|
|
153
|
+
* wave, `merge: "auto"` merges the pull request at that head and releases
|
|
154
|
+
* its locks. Needs `waves` (or `componentWaves`).
|
|
155
|
+
*/
|
|
156
|
+
wavesBeforeMerge?: ProductWavesBeforeMerge;
|
|
157
|
+
/**
|
|
158
|
+
* The apply statuses (#4987): the waves workflow posts `<product>/apply`
|
|
159
|
+
* (`<product>/apply/<member>` for a member) on the commit the waves
|
|
160
|
+
* applied, from a job after each wave that runs none of the change's
|
|
161
|
+
* code (`@intentius/chant/op/apply-status`): pending after each wave,
|
|
162
|
+
* success after the last, failed when a run failed. Needs `waves` (or
|
|
163
|
+
* `componentWaves`); the product passes `waves.pipeline` on when it
|
|
164
|
+
* renders them.
|
|
165
|
+
*/
|
|
166
|
+
applyStatus?: boolean;
|
|
167
|
+
}
|
|
168
|
+
/** {@link ProductPipelineOptions.wavesBeforeMerge} (#4984). */
|
|
169
|
+
export interface ProductWavesBeforeMerge {
|
|
170
|
+
/** The requires the forge is asked before the apply (`apply.requires`). Default every one: approved, mergeable, undiverged, checks. */
|
|
171
|
+
requires?: PrApplyRequire[];
|
|
172
|
+
/** `auto`: merge after the last wave, and release the locks. `manual` (default): reply that it is ready. */
|
|
173
|
+
merge?: "auto" | "manual";
|
|
174
|
+
/** The merge token's secret or CI/CD variable, with `merge: "auto"` (needed on Forgejo and GitLab). */
|
|
175
|
+
mergeTokenSecret?: string;
|
|
176
|
+
/** Paths a change may not touch to apply before merge; one ending in `/` is a directory. Default the forge's workflow directory and `.chant/op-waves/`. */
|
|
177
|
+
pipelineFiles?: string[];
|
|
140
178
|
}
|
|
141
179
|
/** The comment job (#4946): its command, the values it reads, and the comment prefixes that start it. */
|
|
142
180
|
export interface ProductCommentJob {
|
|
@@ -177,11 +215,24 @@ export interface ProductPipelineJobs {
|
|
|
177
215
|
applyBeforeMerge?: PrLoopJob;
|
|
178
216
|
/** The comment each command answers, `/<product> <word>`, for the commands the pipeline has a job for. */
|
|
179
217
|
comments: Partial<Record<CiProductCommand, string>>;
|
|
180
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* The apply on merge: the spec with the words' names, its file, and a job
|
|
220
|
+
* per wave (per share or group). With `wavesBeforeMerge` (#4984),
|
|
221
|
+
* `beforeMerge` is the generators' `OpWavesPipelineOptions.beforeMerge`:
|
|
222
|
+
* the product passes it on when it renders the waves.
|
|
223
|
+
*/
|
|
181
224
|
waves?: {
|
|
182
225
|
spec: OpWavesSpec;
|
|
183
226
|
specFile: string;
|
|
184
227
|
jobs: OpWaveJob[];
|
|
228
|
+
beforeMerge?: OpWavesBeforeMerge;
|
|
229
|
+
/**
|
|
230
|
+
* What the generators take from the pipeline (#4987): `beforeMerge`,
|
|
231
|
+
* `applyStatus` and, with `staleNotes`, the stale marking job that runs
|
|
232
|
+
* beside wave 1 on a push (one `--member` per product plan target). The
|
|
233
|
+
* product spreads it into the `OpWavesPipelineOptions` it renders with.
|
|
234
|
+
*/
|
|
235
|
+
pipeline: Pick<OpWavesPipelineOptions, "beforeMerge" | "applyStatus" | "staleNotes">;
|
|
185
236
|
};
|
|
186
237
|
/**
|
|
187
238
|
* The comment lock and unlock jobs (#4588), under `locks: "plan"`:
|
|
@@ -221,6 +272,7 @@ export interface ProductPipelineJobs {
|
|
|
221
272
|
noteCommands?: {
|
|
222
273
|
command: string;
|
|
223
274
|
runner?: CiRunner;
|
|
275
|
+
env?: Record<string, string>;
|
|
224
276
|
};
|
|
225
277
|
/**
|
|
226
278
|
* The agent (#4616), with `agent`: the comment it answers, `/<product>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/product-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAA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
23
23
|
import { layerWaves } from "../gated-waves.js";
|
|
24
24
|
import { opWaveBinArgv, opWaveJobs, opWavesControlTarget } from "../op/op-waves.js";
|
|
25
25
|
import { controlNoteCheckout } from "../control/dispatch.js";
|
|
26
|
-
import { assertProductWords, CHANT_WORDS, CI_PRODUCT_COMMANDS, commentLine, } from "../ci-product-words.js";
|
|
26
|
+
import { assertProductWords, CHANT_WORDS, CI_PRODUCT_COMMANDS, commentLine, productStatusContext, } from "../ci-product-words.js";
|
|
27
27
|
import { checkJobOptions, PR_LOOP_REPORT_DIR, prActionJob, prCommentLockJobs, prCommentPreviewJob, prLoopJobs, prLoopPostJob, prLoopRunner, prNoteCommandsJob, prStaleJob, withProductBin } from "./pr-pipeline.js";
|
|
28
28
|
import { resolveAgentSpec } from "../ci-agent.js";
|
|
29
29
|
import { resolveCommitSpec } from "../ci-commit.js";
|
|
@@ -32,6 +32,8 @@ import { gitlabOpenEvidenceDir } from "../ci-evidence-jobs.js";
|
|
|
32
32
|
import { prCheckJob, prRefGateJob } from "./pr-checks.js";
|
|
33
33
|
import { COMMENT_JOBS_ENV, PR_COMMENT_JOB } from "../ci-comment-commands.js";
|
|
34
34
|
import { GITHUB_JOB_TOKEN } from "../ci-jobs.js";
|
|
35
|
+
import { defaultPipelineFiles } from "../op/before-merge-decide.js";
|
|
36
|
+
import { LOCK_REACH_ENV } from "../lifecycle/reach-locks.js";
|
|
35
37
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
36
38
|
export const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
37
39
|
/** The waves spec file of op `name`: `.chant/op-waves/<name>.spec.json`. */
|
|
@@ -124,7 +126,9 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
124
126
|
// #4946: the comment job answers every command but a commit word (the commit job's) with a reply, so the words may name any.
|
|
125
127
|
const answered = options.commentJob ? [...new Set([...jobs, ...CI_PRODUCT_COMMANDS.filter((c) => c !== "commit")])] : jobs;
|
|
126
128
|
const words = assertProductWords({ ...options.words, applyMode }, { jobs: answered });
|
|
127
|
-
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, productPlan, evidence, commentJob: _commentJob, ...loop } = options;
|
|
129
|
+
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, productPlan, evidence, commentJob: _commentJob, wavesBeforeMerge, applyStatus: _applyStatus, ...loop } = options;
|
|
130
|
+
if (options.applyStatus && !given && !componentWaves)
|
|
131
|
+
throw new Error("applyStatus posts the waves' apply statuses, and there are none: give waves (or componentWaves)");
|
|
128
132
|
const { respond } = options;
|
|
129
133
|
// #4629: the pull request loop puts the responses on the apply and note jobs, as `chant build --pr-loop --respond` does.
|
|
130
134
|
const prLoop = { ...loop, words, gate: options.gate ?? words.prGate };
|
|
@@ -172,7 +176,13 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
172
176
|
const action = prActionJob(forge, prLoop);
|
|
173
177
|
if (action)
|
|
174
178
|
out.action = { ...action, ...(prLoopRunner(options, "apply") !== undefined ? { runner: prLoopRunner(options, "apply") } : {}) };
|
|
175
|
-
|
|
179
|
+
// #4987: a product plan's notes are marked from the waves workflow's push run, one --member per target, naming the re-plan comment.
|
|
180
|
+
const planStale = productPlan
|
|
181
|
+
? prStaleJob(forge, env, { ...prLoop, ...(productPlan.replan ? { previewComment: true } : {}) }, productPlan.targets?.map((t) => t.name) ?? member)
|
|
182
|
+
: undefined;
|
|
183
|
+
if (planStale && !options.waves && !options.componentWaves)
|
|
184
|
+
throw new Error("staleNotes with the product plan marks the notes from the waves workflow's push run, beside wave 1, and there are no waves: give waves (or componentWaves), or drop staleNotes");
|
|
185
|
+
const stale = productPlan ? undefined : prStaleJob(forge, env, prLoop, member);
|
|
176
186
|
if (stale)
|
|
177
187
|
out.stale = { ...stale, ...defaultRunner };
|
|
178
188
|
// #4785: GitLab's comment commands, polled from the notes; waves on merge are retried by an apply on a merged merge request.
|
|
@@ -201,6 +211,35 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
201
211
|
const spec = given ?? (componentWaves
|
|
202
212
|
? componentWavesSpec(componentWaves.components, words, componentWaveSteps({ ...(words.bin ? { bin: words.bin } : {}), env, base: componentWaves.base ?? "HEAD^1", ...(member ? { member } : {}), op, gate: prLoop.gate }), { ...(componentWaves.waveGate ? { gate: componentWaves.waveGate } : {}) })
|
|
203
213
|
: undefined);
|
|
214
|
+
// #4984: the waves before merge: the comment job (the note poll on GitLab) decides an open pull request's apply and starts them.
|
|
215
|
+
const wavesOp = spec ? (words.op ?? spec.name) : undefined;
|
|
216
|
+
let bmJobs;
|
|
217
|
+
if (wavesBeforeMerge) {
|
|
218
|
+
if (!spec || !wavesOp)
|
|
219
|
+
throw new Error("wavesBeforeMerge runs the waves on an open pull request's head, and there are none: give waves (or componentWaves)");
|
|
220
|
+
if (options.applyBeforeMerge)
|
|
221
|
+
throw new Error("wavesBeforeMerge and applyBeforeMerge both answer an open pull request's apply; give one");
|
|
222
|
+
if (forge === "gitlab" ? !options.noteCommands : !options.commentJob)
|
|
223
|
+
throw new Error(`wavesBeforeMerge is decided by ${forge === "gitlab" ? "the note poll: set noteCommands" : "the comment job: set commentJob"}`);
|
|
224
|
+
const targets = productPlan?.targets?.map((t) => t.name);
|
|
225
|
+
bmJobs = {
|
|
226
|
+
...(forge !== "gitlab" ? { workflow: `${wavesOp}.yml` } : {}),
|
|
227
|
+
...(wavesBeforeMerge.requires ? { requires: [...wavesBeforeMerge.requires] } : {}),
|
|
228
|
+
plan: targets?.length ? targets.map((t) => productStatusContext(words, "plan", t)) : [productStatusContext(words, "plan", member)],
|
|
229
|
+
pipelineFiles: wavesBeforeMerge.pipelineFiles ?? defaultPipelineFiles(forge),
|
|
230
|
+
...(productPlan?.reach ? { locks: { ...(productPlan.reach.gate ? { gate: productPlan.reach.gate } : {}) } } : {}),
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
// #4984: GitLab's note poll writes a wave stop for a merged merge request, and decides the waves before merge.
|
|
234
|
+
if (out.noteCommands && spec && wavesOp) {
|
|
235
|
+
out.noteCommands = {
|
|
236
|
+
...out.noteCommands,
|
|
237
|
+
env: {
|
|
238
|
+
[COMMENT_JOBS_ENV]: JSON.stringify({ waves: { op: wavesOp, count: spec.waves.length }, ...(bmJobs ? { wavesBeforeMerge: bmJobs } : {}) }),
|
|
239
|
+
...(bmJobs && productPlan?.reach ? { [LOCK_REACH_ENV]: productPlan.reach.command } : {}),
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
}
|
|
204
243
|
// #4946: the comment job answers what no other job of the pipeline takes, so it is told which jobs there are.
|
|
205
244
|
if (options.commentJob) {
|
|
206
245
|
// #4963's re-plan reply answers the same stray comments, so one of the two answers them.
|
|
@@ -216,6 +255,7 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
216
255
|
...(given || componentWaves ? { applyOnMerge: true } : {}),
|
|
217
256
|
// #4979: the waves' op (the name productWavesSpec gives them) and count, so a wave-<n> stops a re-run after wave n.
|
|
218
257
|
...(spec ? { waves: { op: words.op ?? spec.name, count: spec.waves.length } } : {}),
|
|
258
|
+
...(bmJobs ? { wavesBeforeMerge: bmJobs } : {}),
|
|
219
259
|
// #4979: the product plan's re-plan takes no flags, so the comment job answers a plan comment that carries them.
|
|
220
260
|
...(productPlan?.replan ? { noPlanFlags: true } : {}),
|
|
221
261
|
...(locks.length > 0 ? { locks: true } : {}),
|
|
@@ -223,7 +263,11 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
223
263
|
...(out.commits ? { commits: true } : {}),
|
|
224
264
|
...(options.actions || options.actionJob ? { actions: true } : {}),
|
|
225
265
|
};
|
|
226
|
-
|
|
266
|
+
const comment = productCommentJob(forge, words, commentJobs);
|
|
267
|
+
// #4984: the decision before merge locks what the reach line prints, at stage apply.
|
|
268
|
+
if (bmJobs && productPlan?.reach)
|
|
269
|
+
comment.env = { ...comment.env, [LOCK_REACH_ENV]: productPlan.reach.command };
|
|
270
|
+
out.comment = { ...comment, ...defaultRunner };
|
|
227
271
|
}
|
|
228
272
|
if (!spec)
|
|
229
273
|
return { ...out, record: record };
|
|
@@ -239,7 +283,17 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
239
283
|
...(Object.keys(wavesRespond).length > 0 ? { respond: { ...(spec.respond ?? {}), ...wavesRespond } } : {}),
|
|
240
284
|
};
|
|
241
285
|
const specFile = wavesSpecFile ?? productWavesSpecFile(named.name);
|
|
242
|
-
|
|
286
|
+
// #4984: what the generator's before-merge mode takes: the merge after the last wave and the lock file it releases.
|
|
287
|
+
const beforeMerge = wavesBeforeMerge
|
|
288
|
+
? { ...(wavesBeforeMerge.merge ? { merge: wavesBeforeMerge.merge } : {}), ...(wavesBeforeMerge.mergeTokenSecret ? { mergeTokenSecret: wavesBeforeMerge.mergeTokenSecret } : {}), ...(productPlan?.reach?.gate ? { gate: productPlan.reach.gate } : {}) }
|
|
289
|
+
: undefined;
|
|
290
|
+
// #4987: the apply statuses after each wave, and with a product plan the stale marking beside wave 1, one --member per target.
|
|
291
|
+
const pipeline = {
|
|
292
|
+
...(beforeMerge ? { beforeMerge } : {}),
|
|
293
|
+
...(options.applyStatus ? { applyStatus: { context: productStatusContext(words, "apply", member) } } : {}),
|
|
294
|
+
...(planStale ? { staleNotes: planStale } : {}),
|
|
295
|
+
};
|
|
296
|
+
return { ...out, waves: { spec: named, specFile, jobs: opWaveJobs(named, specFile, { bin: words.bin, ...(beforeMerge ? { beforeMerge: true } : {}) }), ...(beforeMerge ? { beforeMerge } : {}), pipeline } };
|
|
243
297
|
}
|
|
244
298
|
/** Where a component waves spec keeps the outputs each wave's components left, for the next wave's plans (#4588). */
|
|
245
299
|
export function componentWaveOutputsFile(op) {
|
|
@@ -166,6 +166,15 @@ export interface ProductPlanReplanJob {
|
|
|
166
166
|
/** With `notAffected` (#4963): the note job's command carries `--not-affected`, and reads the argument as {@link PLAN_ARGUMENT_ENV}. */
|
|
167
167
|
notAffected?: true;
|
|
168
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* The one word a comment re-plan takes after the command (#4899): letters,
|
|
171
|
+
* digits and `_./@+=,:-`, and (#4984) never starting with `-`, so a flag
|
|
172
|
+
* such as `--target=x` is refused rather than read as a root. The source
|
|
173
|
+
* of a regular expression, without anchors.
|
|
174
|
+
*/
|
|
175
|
+
export declare const REPLAN_WORD_SOURCE = "[A-Za-z0-9_.\\/@+=,:][A-Za-z0-9_.\\/@+=,:-]*";
|
|
176
|
+
/** Whether `word` is one a re-plan takes (#4984). */
|
|
177
|
+
export declare function isReplanWord(word: string): boolean;
|
|
169
178
|
/** The variable a comment re-plan's one argument reaches the plan verb in (#4899). Empty on a pull request's own plan. */
|
|
170
179
|
export declare const PLAN_ARGUMENT_ENV = "CHANT_PLAN_ARGUMENT";
|
|
171
180
|
/** The file the note job's own lines write extra notices to, one a line (#4931): `pr-post` adds them under the note's counts. */
|
|
@@ -321,7 +330,10 @@ export interface ProductPlanOptions {
|
|
|
321
330
|
* so `pr-post` asks the forge when each last ran, in its checkout of the
|
|
322
331
|
* target branch's commit, and adds the line for one that is overdue under
|
|
323
332
|
* the note's counts. They reach it as `CHANT_PLAN_WATCHES`, from the
|
|
324
|
-
* pipeline, never from the plan job's report.
|
|
333
|
+
* pipeline, never from the plan job's report. #4988: a watch's `targets`
|
|
334
|
+
* scope it to those targets' notes, such as an environment's drift
|
|
335
|
+
* watch to that environment's note; left out, every target's note checks
|
|
336
|
+
* it.
|
|
325
337
|
*/
|
|
326
338
|
watches?: ScheduledWatch[];
|
|
327
339
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-plan.d.ts","sourceRoot":"","sources":["../../src/components/product-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;A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AEX;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAAO,GAAG,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAsB7O;AAED,wGAAwG;AACxG,eAAO,MAAM,kBAAkB,uEAAuE,CAAC;AAEvG,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,wEAAwE,CAAC"}
|
|
@@ -47,6 +47,19 @@ import { prNoteMarker } from "../pr-loop.js";
|
|
|
47
47
|
import { PRODUCT_MARKER_NAME } from "../pr-plan-note.js";
|
|
48
48
|
/** The variable the plan-note job reads the product's note words from (#4799), as JSON. Set from the pipeline, never from the report. */
|
|
49
49
|
export const PR_PLAN_NOTE_WORDS_ENV = "CHANT_PLAN_NOTE_WORDS";
|
|
50
|
+
/**
|
|
51
|
+
* The one word a comment re-plan takes after the command (#4899): letters,
|
|
52
|
+
* digits and `_./@+=,:-`, and (#4984) never starting with `-`, so a flag
|
|
53
|
+
* such as `--target=x` is refused rather than read as a root. The source
|
|
54
|
+
* of a regular expression, without anchors.
|
|
55
|
+
*/
|
|
56
|
+
export const REPLAN_WORD_SOURCE = "[A-Za-z0-9_.\\/@+=,:][A-Za-z0-9_.\\/@+=,:-]*";
|
|
57
|
+
/** {@link REPLAN_WORD_SOURCE} anchored, as the re-plan's `node -e` program writes it between slashes. */
|
|
58
|
+
const REPLAN_WORD_JS = `^${REPLAN_WORD_SOURCE}$`;
|
|
59
|
+
/** Whether `word` is one a re-plan takes (#4984). */
|
|
60
|
+
export function isReplanWord(word) {
|
|
61
|
+
return new RegExp(`^${REPLAN_WORD_SOURCE}$`).test(word);
|
|
62
|
+
}
|
|
50
63
|
/** The variable a comment re-plan's one argument reaches the plan verb in (#4899). Empty on a pull request's own plan. */
|
|
51
64
|
export const PLAN_ARGUMENT_ENV = "CHANT_PLAN_ARGUMENT";
|
|
52
65
|
/** The file the note job's own lines write extra notices to, one a line (#4931): `pr-post` adds them under the note's counts. */
|
|
@@ -90,11 +103,10 @@ export const PLAN_RUN_RECORD_ENV = "CHANT_PLAN_RECORD";
|
|
|
90
103
|
const TARGET_NAME = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
91
104
|
/** The pull request loop's options the product plan's jobs do not carry, and what each needs. Each is refused with `plan` (#4799). */
|
|
92
105
|
const NOT_WITH_PLAN = [
|
|
93
|
-
["applyBeforeMerge", "the apply before merge runs pr-apply on pr-plan's report"],
|
|
106
|
+
["applyBeforeMerge", "the apply before merge runs pr-apply on pr-plan's report; give wavesBeforeMerge to run the waves on an open pull request's head (#4984)"],
|
|
94
107
|
["applyOnMerge", "the apply on merge runs on op waves, from the waves spec"],
|
|
95
108
|
["waveGate", "the apply on merge runs on op waves, from the waves spec"],
|
|
96
109
|
["previewComment", "the comment preview re-runs pr-plan"],
|
|
97
|
-
["staleNotes", "the stale marking names one note per pipeline"],
|
|
98
110
|
["identity", "the identity trade runs before pr-plan's checkout; give the product plan's trade or login (or a target's) instead"],
|
|
99
111
|
["build", "the plan verb builds what it plans"],
|
|
100
112
|
["buildCommand", "the plan verb builds what it plans"],
|
|
@@ -186,6 +198,11 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
186
198
|
const problem = scheduledWatchProblem(w);
|
|
187
199
|
if (problem)
|
|
188
200
|
throw new Error(`the product plan's watches: ${problem}`);
|
|
201
|
+
// #4988: a watch scoped to targets names the plan's own.
|
|
202
|
+
for (const t of w.targets ?? []) {
|
|
203
|
+
if (!seen.has(t))
|
|
204
|
+
throw new Error(`the product plan's watch ${w.op} names target ${t}, which the plan ${targets?.length ? "does not have" : "cannot scope to: it has no targets"}`);
|
|
205
|
+
}
|
|
189
206
|
}
|
|
190
207
|
if (new Set((plan.watches ?? []).map((w) => w.op)).size !== (plan.watches ?? []).length)
|
|
191
208
|
throw new Error("the product plan's watches name an Op twice");
|
|
@@ -207,7 +224,8 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
207
224
|
if (key in jobEnv)
|
|
208
225
|
throw new Error(`target ${name}'s ${key} is the product plan's env too; give it once`);
|
|
209
226
|
}
|
|
210
|
-
|
|
227
|
+
// #4987: with staleNotes each target's note carries the target branch's commit, so the waves' push can mark it stale.
|
|
228
|
+
const post0 = prLoopPostJob(forge, env, name, words, loop.staleNotes ? { staleNotes: true } : {});
|
|
211
229
|
// #4899: the note job records the plan job's run, named by that job.
|
|
212
230
|
const post1 = plan.record ? { ...post0, command: `${post0.command} --record-run ${jobName}` } : post0;
|
|
213
231
|
// #4914: on GitLab the signing job of the same pipeline keeps each merge request's evidence, which the note's checks line reads.
|
|
@@ -242,7 +260,7 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
242
260
|
const replies = github && Boolean(replanOpts.reply) && (targets === undefined || target === targets[0]);
|
|
243
261
|
const replan0 = replanComments
|
|
244
262
|
? {
|
|
245
|
-
...replanJobOf(forge, env, words, name, artifact, noteWords, { notAffected: replanOpts.notAffected === true }),
|
|
263
|
+
...replanJobOf(forge, env, words, name, artifact, noteWords, { notAffected: replanOpts.notAffected === true, ...(loop.staleNotes ? { staleNotes: true } : {}) }),
|
|
246
264
|
...replanComments,
|
|
247
265
|
...(github && dispatchArg !== undefined ? { dispatch: { argument: dispatchArg } } : {}),
|
|
248
266
|
...(replies ? { reply: { prefix: `/${words.product}`, others } } : {}),
|
|
@@ -296,10 +314,13 @@ function replanJobOf(forge, env, words, name, artifact, noteWords0, opts = {}) {
|
|
|
296
314
|
const jobName = github ? (name ? `${REPLAN_JOB}-${name}` : REPLAN_JOB) : name ? `${name}-${REPLAN_JOB}` : REPLAN_JOB;
|
|
297
315
|
const noteJobName = github ? (name ? `${REPLAN_NOTE_JOB}-${name}` : REPLAN_NOTE_JOB) : name ? `${name}-${REPLAN_NOTE_JOB}` : REPLAN_NOTE_JOB;
|
|
298
316
|
// pr-post reads the pull request and the head from the re-plan job, never the comment. GitLab's is GitHub's line with its own --forge.
|
|
299
|
-
|
|
317
|
+
// #4987: with staleNotes the note's tip line is the target branch's commit the re-plan ran at, as the comment preview's is.
|
|
318
|
+
const stale = opts.staleNotes ? { staleNotes: true } : {};
|
|
319
|
+
const command0 = github ? prLoopPostJob(forge, env, name, words, stale).command : prLoopPostJob("github", env, name, words, stale).command.replace(" --forge github ", " --forge gitlab ");
|
|
300
320
|
// #4963: the argument the re-plan was narrowed to, which pr-post answers "not affected" for when the change does not reach it.
|
|
301
321
|
const command = opts.notAffected ? `${command0} --not-affected "$${PLAN_ARGUMENT_ENV}"` : command0;
|
|
302
|
-
const
|
|
322
|
+
const noteWords1 = opts.notAffected && github ? { ...noteWords0, [PLAN_ARGUMENT_ENV]: `\${{ needs.${jobName}.outputs.argument }}` } : noteWords0;
|
|
323
|
+
const noteWords = opts.staleNotes ? { ...noteWords1, TIP_SHA: github ? "${{ github.sha }}" : "$CI_COMMIT_SHA" } : noteWords1;
|
|
303
324
|
const post = github
|
|
304
325
|
? {
|
|
305
326
|
command,
|
|
@@ -339,7 +360,8 @@ function literal(text) {
|
|
|
339
360
|
* a target, the command with at most one word after it.
|
|
340
361
|
*/
|
|
341
362
|
export function gitlabReplanCommentIf(replan, target) {
|
|
342
|
-
|
|
363
|
+
// #4984: the one word never starts with `-`, so a flag such as `--target=x` starts no re-plan.
|
|
364
|
+
const arg = target ? `( +${literal(target)})?` : `( +${REPLAN_WORD_SOURCE})?`;
|
|
343
365
|
const one = (c) => `$${GITLAB_REPLAN_COMMENT_VAR} =~ /^${literal(c)}${arg} *$/`;
|
|
344
366
|
return [...replan.comments.map(one), ...replan.gated.map((g) => `($${g.when} && ${one(g.comment)})`)].join(" || ");
|
|
345
367
|
}
|
|
@@ -385,15 +407,19 @@ export function replanDecideJs(opts = {}) {
|
|
|
385
407
|
'const body=String((e.comment&&e.comment.body)||"").trim();',
|
|
386
408
|
'const cmds=JSON.parse(process.env.CHANT_REPLAN_COMMANDS||"[]");',
|
|
387
409
|
'for(const g of JSON.parse(process.env.CHANT_REPLAN_GATED||"[]")){const v=process.env[g.when]||"";if(v&&v!=="0"&&v!=="false")cmds.push(g.comment)}',
|
|
388
|
-
"let arg;",
|
|
410
|
+
"let arg,flag;",
|
|
389
411
|
...(reply ? ['let refusal;const product=process.env.CHANT_REPLAN_PRODUCT||"",others=JSON.parse(process.env.CHANT_REPLAN_OTHERS||"[]");const says=(c)=>body===c||body.startsWith(c+" ")||body.startsWith(c+"\\t");'] : []),
|
|
390
412
|
...(dispatch
|
|
391
413
|
? [
|
|
392
414
|
'if(dispatch){const pv=String(inputs.pr==null?"":inputs.pr).trim();if(!pv){say("the dispatch names no pull request");process.exit(0)}if(!/^[1-9][0-9]{0,9}$/.test(pv)){console.error("chant: the dispatch\\u0027s pr input is a pull request number, like 42");process.exit(1)}',
|
|
393
|
-
|
|
415
|
+
`const k=process.env.CHANT_REPLAN_DISPATCH_ARGUMENT||"argument",a=String(inputs[k]==null?"":inputs[k]).trim();if(a&&!/${REPLAN_WORD_JS}/.test(a)){console.error("chant: the dispatch\\u0027s "+k+" input is one word of letters, digits and _./@+=,:-, not starting with -");process.exit(1)}arg=a}else `,
|
|
394
416
|
]
|
|
395
417
|
: []),
|
|
396
|
-
|
|
418
|
+
// #4984: a word that starts with `-` is a flag (`--target=x`), which the re-plan does not take.
|
|
419
|
+
`for(const c of cmds){if(body===c){arg="";break}if(body.startsWith(c+" ")){const r=body.slice(c.length).trim();if(r.startsWith("-")){flag=r.split(/\\s/)[0];break}if(/${REPLAN_WORD_JS}/.test(r)){arg=r;break}}}`,
|
|
420
|
+
reply
|
|
421
|
+
? 'if(flag!==undefined){refusal="the re-plan takes no flags, and "+flag+" is one: write the command alone, or with one word that does not start with -";arg=""}'
|
|
422
|
+
: 'if(flag!==undefined){say("the re-plan takes no flags, and "+flag+" is one, so nothing is planned again");process.exit(0)}',
|
|
397
423
|
reply
|
|
398
424
|
? 'if(arg===undefined){if(product&&says(product)&&!others.some(says)){refusal="the commands are "+cmds.concat(others).map((c)=>"`"+c+"`").join(", ")}else{say("the comment asks for no plan");process.exit(0)}}'
|
|
399
425
|
: 'if(arg===undefined){say("the comment asks for no plan");process.exit(0)}',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-table.data.d.ts","sourceRoot":"","sources":["../src/floor-table.data.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"floor-table.data.d.ts","sourceRoot":"","sources":["../src/floor-table.data.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,SAAS,QAAQ,EAkPzC,CAAC"}
|