@intentius/chant 0.124.90 → 0.124.92
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/actor.d.ts +5 -3
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +7 -5
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/core.js +11 -1
- package/dist/ci-comment-commands.d.ts +11 -1
- package/dist/ci-comment-commands.d.ts.map +1 -1
- package/dist/ci-comment-commands.js +10 -3
- package/dist/ci-product.d.ts +27 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +36 -10
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
- package/dist/cli/handlers/pr-comment.js +17 -4
- package/dist/cli/handlers/pr.d.ts +2 -2
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +32 -10
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +13 -0
- package/dist/cli/registry.d.ts +4 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/pr-checks.d.ts +11 -0
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +15 -5
- package/dist/components/pr-pipeline.d.ts +13 -4
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +23 -9
- package/dist/components/product-pipeline.d.ts +41 -7
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +63 -23
- package/dist/components/product-plan.d.ts +86 -1
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +141 -16
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +18 -9
- package/dist/lexicon-module.d.ts +2 -0
- package/dist/lexicon-module.d.ts.map +1 -1
- package/dist/lexicon-module.js +6 -2
- package/dist/lexicon.d.ts +42 -1
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/op/before-merge-decide.d.ts +2 -0
- package/dist/op/before-merge-decide.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.d.ts +3 -2
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +4 -3
- package/dist/op/op-waves-follow-on.d.ts +2 -0
- package/dist/op/op-waves-follow-on.d.ts.map +1 -1
- package/dist/op/op-waves-follow-on.js +8 -2
- package/dist/op/op-waves-names.d.ts +122 -0
- package/dist/op/op-waves-names.d.ts.map +1 -0
- package/dist/op/op-waves-names.js +151 -0
- package/dist/planned-files.d.ts +16 -8
- package/dist/planned-files.d.ts.map +1 -1
- package/dist/planned-files.js +12 -8
- package/dist/pr-forge-job.d.ts +8 -0
- package/dist/pr-forge-job.d.ts.map +1 -1
- package/dist/pr-forge-job.js +13 -0
- package/dist/pr-plan-record.d.ts +3 -1
- package/dist/pr-plan-record.d.ts.map +1 -1
- package/dist/pr-plan-record.js +1 -1
- package/dist/pr-post.d.ts +15 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +10 -6
- package/dist/release-floors.d.ts +7 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +8 -2
- package/dist/wave-runtime.mjs +276 -276
- package/package.json +1 -1
- package/src/actor.test.ts +14 -1
- package/src/actor.ts +8 -6
- package/src/audit/core.ts +13 -1
- package/src/audit/first-load.test.ts +101 -0
- package/src/ci-comment-commands.test.ts +19 -5
- package/src/ci-comment-commands.ts +18 -3
- package/src/ci-product.ts +42 -10
- package/src/cli/handlers/pr-comment.ts +14 -4
- package/src/cli/handlers/pr.ts +27 -10
- package/src/cli/parse-args.ts +9 -0
- package/src/cli/registry.ts +4 -0
- package/src/components/pr-checks.ts +16 -5
- package/src/components/pr-pipeline.ts +24 -11
- package/src/components/product-job-names.test.ts +176 -0
- package/src/components/product-pipeline.ts +101 -31
- package/src/components/product-plan-names.test.ts +135 -0
- package/src/components/product-plan.ts +218 -18
- package/src/floor-table.data.ts +18 -9
- package/src/lexicon-module.ts +6 -2
- package/src/lexicon.ts +42 -1
- package/src/op/before-merge-decide.ts +2 -0
- package/src/op/op-waves-evidence-jobs.ts +4 -3
- package/src/op/op-waves-follow-on.ts +10 -2
- package/src/op/op-waves-names.test.ts +131 -0
- package/src/op/op-waves-names.ts +241 -0
- package/src/planned-files.test.ts +33 -0
- package/src/planned-files.ts +26 -10
- package/src/pr-forge-job.ts +13 -0
- package/src/pr-plan-record.ts +4 -2
- package/src/pr-post-head.test.ts +116 -0
- package/src/pr-post.ts +26 -9
- package/src/release-floors.ts +11 -2
|
@@ -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,aAAa,CAAC;AAE7C,OAAO,EAAgE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChI,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAOL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAoL,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAChU,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,E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AK,EAAE,kBAAkB,EACzB,OAAO,GAAE,yBAA8B,GACtC,WAAW,CAuBb;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,MAAuB,GAAG,iBAAiB,CAWjJ;AAED,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1E"}
|
|
@@ -27,12 +27,14 @@ import { assertProductWords, CHANT_WORDS, CI_PRODUCT_COMMANDS, commentLine, prod
|
|
|
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";
|
|
30
|
-
import { planEvidenceOf, productPlanJobs, productPlanReachLock } from "./product-plan.js";
|
|
30
|
+
import { planEvidenceOf, productPlanContext, productPlanJobs, productPlanReachLock } from "./product-plan.js";
|
|
31
31
|
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
35
|
import { defaultPipelineFiles } from "../op/before-merge-decide.js";
|
|
36
|
+
import { opWavesDispatchInputs, opWavesInputsRenamed, opWavesNamer, opWavesWorkflowFile } from "../op/op-waves-names.js";
|
|
37
|
+
import { opWaveSplitJobs } from "../op/op-waves-split.js";
|
|
36
38
|
import { LOCK_REACH_ENV } from "../lifecycle/reach-locks.js";
|
|
37
39
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
38
40
|
export const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
@@ -126,7 +128,7 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
126
128
|
// #4946: the comment job answers every command but a commit word (the commit job's) with a reply, so the words may name any.
|
|
127
129
|
const answered = options.commentJob ? [...new Set([...jobs, ...CI_PRODUCT_COMMANDS.filter((c) => c !== "commit")])] : jobs;
|
|
128
130
|
const words = assertProductWords({ ...options.words, applyMode }, { jobs: answered });
|
|
129
|
-
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, productPlan, evidence, commentJob: _commentJob, wavesBeforeMerge, applyStatus: _applyStatus, ...loop } = options;
|
|
131
|
+
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, productPlan, evidence, commentJob: _commentJob, wavesBeforeMerge, applyStatus: _applyStatus, wavesJobNames, ...loop } = options;
|
|
130
132
|
if (options.applyStatus && !given && !componentWaves)
|
|
131
133
|
throw new Error("applyStatus posts the waves' apply statuses, and there are none: give waves (or componentWaves)");
|
|
132
134
|
const { respond } = options;
|
|
@@ -177,8 +179,10 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
177
179
|
if (action)
|
|
178
180
|
out.action = { ...action, ...(prLoopRunner(options, "apply") !== undefined ? { runner: prLoopRunner(options, "apply") } : {}) };
|
|
179
181
|
// #4987: a product plan's notes are marked from the waves workflow's push run, one --member per target, naming the re-plan comment.
|
|
182
|
+
// #5003: with the product's status context, the stale job sets that status back to pending, one a target.
|
|
183
|
+
const planContexts = productPlan?.statusContext !== undefined ? out.productPlan.map((p) => productPlanContext(p, words)) : undefined;
|
|
180
184
|
const planStale = productPlan
|
|
181
|
-
? prStaleJob(forge, env, { ...prLoop, ...(productPlan.replan ? { previewComment: true } : {}) }, productPlan.targets?.map((t) => t.name) ?? member)
|
|
185
|
+
? prStaleJob(forge, env, { ...prLoop, ...(productPlan.replan ? { previewComment: true } : {}) }, productPlan.targets?.map((t) => t.name) ?? member, planContexts)
|
|
182
186
|
: undefined;
|
|
183
187
|
if (planStale && !options.waves && !options.componentWaves)
|
|
184
188
|
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");
|
|
@@ -222,10 +226,17 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
222
226
|
if (forge === "gitlab" ? !options.noteCommands : !options.commentJob)
|
|
223
227
|
throw new Error(`wavesBeforeMerge is decided by ${forge === "gitlab" ? "the note poll: set noteCommands" : "the comment job: set commentJob"}`);
|
|
224
228
|
const targets = productPlan?.targets?.map((t) => t.name);
|
|
229
|
+
if (forge === "gitlab" && (wavesBeforeMerge.workflowFile !== undefined || wavesBeforeMerge.dispatchInputs !== undefined))
|
|
230
|
+
throw new Error("wavesBeforeMerge.workflowFile and dispatchInputs name a GitHub or Forgejo workflow; GitLab's note poll starts a pipeline with variables");
|
|
231
|
+
// #5022: the product's workflow and input names, checked as the generator checks them.
|
|
232
|
+
const workflowFile = opWavesWorkflowFile({ name: wavesOp }, wavesBeforeMerge.workflowFile);
|
|
233
|
+
const dispatchInputs = wavesBeforeMerge.dispatchInputs ? opWavesDispatchInputs(wavesBeforeMerge.dispatchInputs) : undefined;
|
|
225
234
|
bmJobs = {
|
|
226
|
-
...(forge !== "gitlab" ? { workflow:
|
|
235
|
+
...(forge !== "gitlab" ? { workflow: workflowFile } : {}),
|
|
236
|
+
...(dispatchInputs && opWavesInputsRenamed(dispatchInputs) ? { inputs: { pr: dispatchInputs.pr, head: dispatchInputs.head, digest: dispatchInputs.digest } } : {}),
|
|
227
237
|
...(wavesBeforeMerge.requires ? { requires: [...wavesBeforeMerge.requires] } : {}),
|
|
228
|
-
|
|
238
|
+
// #5003: the product's own status contexts, when it named them.
|
|
239
|
+
plan: planContexts ?? (targets?.length ? targets.map((t) => productStatusContext(words, "plan", t)) : [productStatusContext(words, "plan", member)]),
|
|
229
240
|
pipelineFiles: wavesBeforeMerge.pipelineFiles ?? defaultPipelineFiles(forge),
|
|
230
241
|
...(productPlan?.reach ? { locks: { ...(productPlan.reach.gate ? { gate: productPlan.reach.gate } : {}) } } : {}),
|
|
231
242
|
};
|
|
@@ -240,6 +251,25 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
240
251
|
},
|
|
241
252
|
};
|
|
242
253
|
}
|
|
254
|
+
const wavesRespond = respond ? Object.fromEntries(Object.entries(respond).filter(([e]) => e !== "description")) : {};
|
|
255
|
+
// #4625: the waves run on the apply runner and with the plan's parallelism, unless the spec names its own.
|
|
256
|
+
const applyRunner = prLoopRunner(options, "apply");
|
|
257
|
+
const named = spec
|
|
258
|
+
? {
|
|
259
|
+
...productWavesSpec({
|
|
260
|
+
...spec,
|
|
261
|
+
...(spec.runner === undefined && applyRunner !== undefined ? { runner: applyRunner } : {}),
|
|
262
|
+
...(spec.parallelism === undefined && options.parallelism !== undefined && spec.step !== undefined ? { parallelism: options.parallelism } : {}),
|
|
263
|
+
}, words),
|
|
264
|
+
...(Object.keys(wavesRespond).length > 0 ? { respond: { ...(spec.respond ?? {}), ...wavesRespond } } : {}),
|
|
265
|
+
}
|
|
266
|
+
: undefined;
|
|
267
|
+
const specFile = named ? (wavesSpecFile ?? productWavesSpecFile(named.name)) : undefined;
|
|
268
|
+
if (wavesJobNames !== undefined && !named)
|
|
269
|
+
throw new Error("wavesJobNames names the waves' jobs, and there are none: give waves (or componentWaves)");
|
|
270
|
+
// #5027: the waves' jobs under the product's names, the same the generator gives them from the same jobNames.
|
|
271
|
+
const waveJobs = named && specFile ? opWaveJobs(named, specFile, { bin: words.bin, ...(wavesBeforeMerge ? { beforeMerge: true } : {}) }) : undefined;
|
|
272
|
+
const namedWaveJobs = waveJobs && wavesJobNames ? opWavesNamer(named, forge, wavesJobNames).jobs(waveJobs) : waveJobs;
|
|
243
273
|
// #4946: the comment job answers what no other job of the pipeline takes, so it is told which jobs there are.
|
|
244
274
|
if (options.commentJob) {
|
|
245
275
|
// #4963's re-plan reply answers the same stray comments, so one of the two answers them.
|
|
@@ -262,27 +292,17 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
262
292
|
...(out.agent ? { agent: true } : {}),
|
|
263
293
|
...(out.commits ? { commits: true } : {}),
|
|
264
294
|
...(options.actions || options.actionJob ? { actions: true } : {}),
|
|
295
|
+
// #5027: a re-run looks for the waves' jobs by the product's names; without them, by chant's pattern.
|
|
296
|
+
...(namedWaveJobs && wavesJobNames ? { applyJobs: productApplyJobs(named, waveJobs, namedWaveJobs, forge, wavesJobNames, wavesBeforeMerge !== undefined) } : {}),
|
|
265
297
|
};
|
|
266
|
-
const comment = productCommentJob(forge, words, commentJobs);
|
|
298
|
+
const comment = productCommentJob(forge, words, commentJobs, typeof options.commentJob === "object" ? options.commentJob.jobName : undefined);
|
|
267
299
|
// #4984: the decision before merge locks what the reach line prints, at stage apply.
|
|
268
300
|
if (bmJobs && productPlan?.reach)
|
|
269
301
|
comment.env = { ...comment.env, [LOCK_REACH_ENV]: productPlan.reach.command };
|
|
270
302
|
out.comment = { ...comment, ...defaultRunner };
|
|
271
303
|
}
|
|
272
|
-
if (!
|
|
304
|
+
if (!named || !specFile || !namedWaveJobs)
|
|
273
305
|
return { ...out, record: record };
|
|
274
|
-
const wavesRespond = respond ? Object.fromEntries(Object.entries(respond).filter(([e]) => e !== "description")) : {};
|
|
275
|
-
// #4625: the waves run on the apply runner and with the plan's parallelism, unless the spec names its own.
|
|
276
|
-
const applyRunner = prLoopRunner(options, "apply");
|
|
277
|
-
const named = {
|
|
278
|
-
...productWavesSpec({
|
|
279
|
-
...spec,
|
|
280
|
-
...(spec.runner === undefined && applyRunner !== undefined ? { runner: applyRunner } : {}),
|
|
281
|
-
...(spec.parallelism === undefined && options.parallelism !== undefined && spec.step !== undefined ? { parallelism: options.parallelism } : {}),
|
|
282
|
-
}, words),
|
|
283
|
-
...(Object.keys(wavesRespond).length > 0 ? { respond: { ...(spec.respond ?? {}), ...wavesRespond } } : {}),
|
|
284
|
-
};
|
|
285
|
-
const specFile = wavesSpecFile ?? productWavesSpecFile(named.name);
|
|
286
306
|
// #4984: what the generator's before-merge mode takes: the merge after the last wave and the lock file it releases.
|
|
287
307
|
const beforeMerge = wavesBeforeMerge
|
|
288
308
|
? { ...(wavesBeforeMerge.merge ? { merge: wavesBeforeMerge.merge } : {}), ...(wavesBeforeMerge.mergeTokenSecret ? { mergeTokenSecret: wavesBeforeMerge.mergeTokenSecret } : {}), ...(productPlan?.reach?.gate ? { gate: productPlan.reach.gate } : {}) }
|
|
@@ -290,10 +310,27 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
290
310
|
// #4987: the apply statuses after each wave, and with a product plan the stale marking beside wave 1, one --member per target.
|
|
291
311
|
const pipeline = {
|
|
292
312
|
...(beforeMerge ? { beforeMerge } : {}),
|
|
313
|
+
// #5027: the same job names the comment job's re-run looks for.
|
|
314
|
+
...(wavesJobNames ? { jobNames: wavesJobNames } : {}),
|
|
315
|
+
// #5022: the workflow and input names the comment job dispatches, for the generator.
|
|
316
|
+
...(wavesBeforeMerge?.workflowFile ? { workflowFile: wavesBeforeMerge.workflowFile } : {}),
|
|
317
|
+
...(wavesBeforeMerge?.dispatchInputs ? { dispatchInputs: { ...wavesBeforeMerge.dispatchInputs } } : {}),
|
|
293
318
|
...(options.applyStatus ? { applyStatus: { context: productStatusContext(words, "apply", member) } } : {}),
|
|
294
319
|
...(planStale ? { staleNotes: planStale } : {}),
|
|
295
320
|
};
|
|
296
|
-
return { ...out, waves: { spec: named, specFile, jobs:
|
|
321
|
+
return { ...out, waves: { spec: named, specFile, jobs: namedWaveJobs, ...(beforeMerge ? { beforeMerge } : {}), pipeline } };
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* The waves' jobs a re-run looks for, by the product's names (#5027): each
|
|
325
|
+
* wave's job, its deciding, share and job group jobs, and before merge the
|
|
326
|
+
* split jobs, named as the Op waves generator names them from the same
|
|
327
|
+
* `jobNames`.
|
|
328
|
+
*/
|
|
329
|
+
function productApplyJobs(spec, chantJobs, named, forge, jobNames, split) {
|
|
330
|
+
const out = named.map((j) => j.jobName);
|
|
331
|
+
if (split)
|
|
332
|
+
out.push(...opWavesNamer(spec, forge, jobNames).jobs(opWaveSplitJobs(spec, chantJobs)).map((j) => j.jobName));
|
|
333
|
+
return [...new Set(out)];
|
|
297
334
|
}
|
|
298
335
|
/** Where a component waves spec keeps the outputs each wave's components left, for the next wave's plans (#4588). */
|
|
299
336
|
export function componentWaveOutputsFile(op) {
|
|
@@ -358,16 +395,19 @@ export function componentWavesSpec(components, wordsIn, steps, options = {}) {
|
|
|
358
395
|
* --forge <forge>` through the words' bin, the jobs it leaves comments to as
|
|
359
396
|
* {@link COMMENT_JOBS_ENV}, and the comment prefixes the forge's `if:`
|
|
360
397
|
* starts it on. Throws on GitLab, whose note-commands job answers every
|
|
361
|
-
* note.
|
|
398
|
+
* note. `jobName` is the product's name for the job (#5027), default
|
|
399
|
+
* {@link PR_COMMENT_JOB}.
|
|
362
400
|
*/
|
|
363
|
-
export function productCommentJob(forge, words, jobs) {
|
|
401
|
+
export function productCommentJob(forge, words, jobs, jobName = PR_COMMENT_JOB) {
|
|
364
402
|
if (forge === "gitlab")
|
|
365
403
|
throw new Error("the comment job answers a GitHub or Forgejo comment; on GitLab the note-commands job (noteCommands) answers every note, so drop commentJob");
|
|
366
404
|
for (const a of words.aliases)
|
|
367
405
|
if (/['\\]/.test(a.from))
|
|
368
406
|
throw new Error(`the alias ${JSON.stringify(a.from)} holds a quote, which the comment job's condition cannot carry`);
|
|
407
|
+
if (typeof jobName !== "string" || !/^[A-Za-z_][A-Za-z0-9_-]*$/.test(jobName))
|
|
408
|
+
throw new Error(`commentJob.jobName ${JSON.stringify(jobName)} is not a job name of letters, digits, _ and -, starting with a letter or _`);
|
|
369
409
|
return {
|
|
370
|
-
jobName
|
|
410
|
+
jobName,
|
|
371
411
|
command: withProductBin(`chant components pr-comment --forge ${forge}`, words.bin),
|
|
372
412
|
env: { GITHUB_TOKEN: GITHUB_JOB_TOKEN, [COMMENT_JOBS_ENV]: JSON.stringify(jobs) },
|
|
373
413
|
prefixes: [`/${words.product}`, ...words.aliases.map((a) => a.from)],
|
|
@@ -44,6 +44,7 @@ import type { OpWaveRunStep } from "../lexicon.js";
|
|
|
44
44
|
import { type ControlNoteCheckout, type ControlTarget } from "../control/dispatch.js";
|
|
45
45
|
import { type ScheduledWatch } from "../op/schedule-overdue.js";
|
|
46
46
|
import { type CloudTradeSpec } from "../ci-identity.js";
|
|
47
|
+
import { type PrCheckArtifacts } from "./pr-checks.js";
|
|
47
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. */
|
|
48
49
|
export declare const PR_PLAN_NOTE_WORDS_ENV = "CHANT_PLAN_NOTE_WORDS";
|
|
49
50
|
/** One target the product plans in a job of its own (#4799): an environment, for sql-yodeler. */
|
|
@@ -375,6 +376,65 @@ export interface ProductPlanOptions {
|
|
|
375
376
|
command: string;
|
|
376
377
|
gate?: string;
|
|
377
378
|
};
|
|
379
|
+
/**
|
|
380
|
+
* The file the product writes the workflow to (#5003), from the
|
|
381
|
+
* repository root: on GitHub a file directly under `.github/workflows/`,
|
|
382
|
+
* on Forgejo under `.forgejo/workflows/`, on GitLab a `.yml` file, such
|
|
383
|
+
* as one the project's `.gitlab-ci.yml` includes. The generators return it as
|
|
384
|
+
* `path`. Default `<forge's workflow directory>/<workflow>.yml`, and on
|
|
385
|
+
* GitLab `.gitlab/<workflow>.gitlab-ci.yml`, with `workflow` the
|
|
386
|
+
* workflow's name.
|
|
387
|
+
*/
|
|
388
|
+
workflowFile?: string;
|
|
389
|
+
/**
|
|
390
|
+
* The plan jobs' names (#5003), so a product's required checks keep
|
|
391
|
+
* matching: `plan`, the plan job; `note`, its note job; `replan` and
|
|
392
|
+
* `replanNote`, the comment re-plan's. With `targets` each name holds
|
|
393
|
+
* `{target}`, filled with the target's name. Left out, a name is chant's:
|
|
394
|
+
* `plan`, `plan-note`, `replan`, `replan-note`, with targets
|
|
395
|
+
* `plan-{target}`, `plan-note-{target}`, `replan-{target}` and
|
|
396
|
+
* `replan-note-{target}` on GitHub and Forgejo and `{target}-plan`,
|
|
397
|
+
* `{target}-plan-note`, `{target}-replan` and `{target}-replan-note` on
|
|
398
|
+
* GitLab. A name is letters, digits, `_` and `-`, starting with a letter
|
|
399
|
+
* or `_` (on GitLab a digit too, and no top-level keyword such as
|
|
400
|
+
* `stages`), and no two jobs share one.
|
|
401
|
+
*/
|
|
402
|
+
jobNames?: {
|
|
403
|
+
plan?: string;
|
|
404
|
+
note?: string;
|
|
405
|
+
replan?: string;
|
|
406
|
+
replanNote?: string;
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* The plan status's context (#5003), which the note job posts
|
|
410
|
+
* (`pr-post --context`), the pending step says is pending, the stale job
|
|
411
|
+
* sets back to pending, and the apply before merge asks has passed. With
|
|
412
|
+
* `targets` it holds `{target}`. Default the words' `<product>/<plan
|
|
413
|
+
* stage>`, with targets `<product>/<plan stage>/<target>`. Letters,
|
|
414
|
+
* digits and `_./:-`.
|
|
415
|
+
*/
|
|
416
|
+
statusContext?: string;
|
|
417
|
+
/**
|
|
418
|
+
* The directory the plan verb writes into and the jobs hand on, keep as
|
|
419
|
+
* the artifact's path and post from (#5003): `{output}` in `command`
|
|
420
|
+
* and `report`, and `pr-post --output`. A path from the checkout's root
|
|
421
|
+
* that stays inside it, such as terragucci's `terragucci-report`.
|
|
422
|
+
* Default {@link PR_LOOP_REPORT_DIR}.
|
|
423
|
+
*/
|
|
424
|
+
reportDir?: string;
|
|
425
|
+
/**
|
|
426
|
+
* GitLab only (#5004): what each plan job keeps beside the report
|
|
427
|
+
* directory, as the check job's `artifacts` (#4988, {@link PrCheckArtifacts}):
|
|
428
|
+
* `paths` after it in `artifacts:paths`, and `reports` as
|
|
429
|
+
* `artifacts:reports`, such as terragucci's `{ terraform:
|
|
430
|
+
* "{output}/gitlab-terraform.json" }` for the merge request's widget.
|
|
431
|
+
* `{target}` and `{output}` are filled as in `command`. Kept when the plan
|
|
432
|
+
* fails too, as the report is. The re-plan jobs keep only the report
|
|
433
|
+
* directory: they run in a pipeline of the target branch, whose reports
|
|
434
|
+
* GitLab would read as the target branch's own. GitHub and Forgejo refuse
|
|
435
|
+
* it, since the plan verb is the job's last step there.
|
|
436
|
+
*/
|
|
437
|
+
artifacts?: PrCheckArtifacts;
|
|
378
438
|
}
|
|
379
439
|
/** The lock job a product plan with {@link ProductPlanOptions.reach} writes (#4979): its command and the values the command reads. */
|
|
380
440
|
export interface ProductPlanReachLock {
|
|
@@ -450,6 +510,13 @@ export interface ProductPlanJob {
|
|
|
450
510
|
login?: OpWaveRunStep[];
|
|
451
511
|
/** The OIDC tokens the plan job requests (#4931), `{ <variable>: <audience> }`: the login's and the product's own. */
|
|
452
512
|
idTokens?: Record<string, string>;
|
|
513
|
+
/**
|
|
514
|
+
* With the product's own `idTokens` (#5021): the plan verb asks the forge
|
|
515
|
+
* for them by audience, so on GitHub and Forgejo the plan step keeps the
|
|
516
|
+
* variables a token is requested with. Without it, every step after the
|
|
517
|
+
* checkout but the login's starts without them.
|
|
518
|
+
*/
|
|
519
|
+
ownIdTokens?: true;
|
|
453
520
|
/** The pending status posted before the checkout (#4899), on GitHub and Forgejo. */
|
|
454
521
|
pending?: {
|
|
455
522
|
context: string;
|
|
@@ -480,7 +547,24 @@ export interface ProductPlanJob {
|
|
|
480
547
|
record?: {
|
|
481
548
|
env: Record<string, string>;
|
|
482
549
|
};
|
|
550
|
+
/** With `statusContext` (#5003): the plan status's context, filled for the target. Absent: the words' {@link productStatusContext}. */
|
|
551
|
+
context?: string;
|
|
552
|
+
/** With `reportDir` (#5003): the directory the plan verb writes into and the jobs hand on. Absent: {@link PR_LOOP_REPORT_DIR}. */
|
|
553
|
+
reportDir?: string;
|
|
554
|
+
/** With `artifacts` (#5004), GitLab: the plan job's own paths and reports beside the report directory, `{target}` and `{output}` filled. */
|
|
555
|
+
artifacts?: PrCheckArtifacts;
|
|
483
556
|
}
|
|
557
|
+
/** The plan status's context of one plan job (#5003): its own, else the words'. */
|
|
558
|
+
export declare function productPlanContext(p: Pick<ProductPlanJob, "context" | "target">, words: CiProductWords): string;
|
|
559
|
+
/** The directory one plan job hands on (#5003): its own, else {@link PR_LOOP_REPORT_DIR}. */
|
|
560
|
+
export declare function productPlanReportDir(p: Pick<ProductPlanJob, "reportDir">): string;
|
|
561
|
+
/**
|
|
562
|
+
* The file a product plan's workflow is written to (#5003),
|
|
563
|
+
* {@link ProductPlanOptions.workflowFile}: the product's, checked for the
|
|
564
|
+
* forge, else the workflow's name in the forge's workflow directory
|
|
565
|
+
* (`.gitlab/<name>.gitlab-ci.yml` on GitLab).
|
|
566
|
+
*/
|
|
567
|
+
export declare function productPlanWorkflowFile(forge: ForgeKind, env: string, plan: Pick<ProductPlanOptions, "workflow" | "workflowFile">): string;
|
|
484
568
|
/**
|
|
485
569
|
* The product plan's jobs for `forge` (#4799). `words` are the pipeline's,
|
|
486
570
|
* already checked. Throws on a target name that is not one, a name given
|
|
@@ -560,7 +644,7 @@ export declare const PENDING_JS: string;
|
|
|
560
644
|
* report line whatever the verb's exit, then the step exits with the verb's
|
|
561
645
|
* status. Without a report line, the verb alone.
|
|
562
646
|
*/
|
|
563
|
-
export declare function planVerbLines(p: Pick<ProductPlanJob, "command" | "report" | "record">): string[];
|
|
647
|
+
export declare function planVerbLines(p: Pick<ProductPlanJob, "command" | "report" | "record" | "reportDir">): string[];
|
|
564
648
|
/**
|
|
565
649
|
* The plan step's record line (#4899): `node -e`, writing the run record of
|
|
566
650
|
* the plan verb into the directory it is given, {@link PLAN_RUN_RECORD_FILE}.
|
|
@@ -585,6 +669,7 @@ export declare function planEvidenceOf(forge: ForgeKind, evidence: PipelineEvide
|
|
|
585
669
|
name: string;
|
|
586
670
|
reportPath: string;
|
|
587
671
|
};
|
|
672
|
+
dir?: string;
|
|
588
673
|
}): NonNullable<ProductPlanJob["evidence"]>;
|
|
589
674
|
/** The GitHub and Forgejo condition that a pull request is from this repository, not a fork (#4799). */
|
|
590
675
|
export declare const SAME_REPOSITORY_IF = "github.event.pull_request.head.repo.full_name == github.repository";
|
|
@@ -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;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAA0I,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpM,OAAO,EAAqB,WAAW,EAAsG,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAG/L,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAuB,KAAK,mBAAmB,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAExG,OAAO,EAA2C,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEtG,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
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;AAC3C,OAAO,KAAK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