@intentius/chant 0.124.90 → 0.124.91
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-product.d.ts +9 -0
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +18 -9
- package/dist/cli/handlers/pr-comment.js +2 -2
- 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 +28 -9
- 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 +9 -2
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +16 -5
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +6 -3
- package/dist/components/product-plan.d.ts +79 -1
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +140 -16
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +14 -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/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-post.d.ts +6 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +5 -4
- 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 +215 -215
- 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-product.ts +20 -9
- package/src/cli/handlers/pr-comment.ts +2 -2
- package/src/cli/handlers/pr.ts +23 -9
- 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 +17 -7
- package/src/components/product-pipeline.ts +6 -3
- package/src/components/product-plan-names.test.ts +135 -0
- package/src/components/product-plan.ts +210 -18
- package/src/floor-table.data.ts +14 -9
- package/src/lexicon-module.ts +6 -2
- package/src/planned-files.test.ts +33 -0
- package/src/planned-files.ts +26 -10
- package/src/pr-post.ts +11 -4
- package/src/release-floors.ts +11 -2
|
@@ -45,6 +45,7 @@ import { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE } from "../pr-plan-record.js";
|
|
|
45
45
|
import { idTokenVar, tradedClouds } from "../ci-identity.js";
|
|
46
46
|
import { prNoteMarker } from "../pr-loop.js";
|
|
47
47
|
import { PRODUCT_MARKER_NAME } from "../pr-plan-note.js";
|
|
48
|
+
import { gitlabJobArtifacts } from "./pr-checks.js";
|
|
48
49
|
/** 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
50
|
export const PR_PLAN_NOTE_WORDS_ENV = "CHANT_PLAN_NOTE_WORDS";
|
|
50
51
|
/**
|
|
@@ -100,6 +101,39 @@ export function productPlanReachLock(forge, loop, words) {
|
|
|
100
101
|
export { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE } from "../pr-plan-record.js";
|
|
101
102
|
/** The variable the plan step reads the record's op, environment and labels from (#4899), as JSON. */
|
|
102
103
|
export const PLAN_RUN_RECORD_ENV = "CHANT_PLAN_RECORD";
|
|
104
|
+
/** The plan status's context of one plan job (#5003): its own, else the words'. */
|
|
105
|
+
export function productPlanContext(p, words) {
|
|
106
|
+
return p.context ?? productStatusContext(words, "plan", p.target);
|
|
107
|
+
}
|
|
108
|
+
/** The directory one plan job hands on (#5003): its own, else {@link PR_LOOP_REPORT_DIR}. */
|
|
109
|
+
export function productPlanReportDir(p) {
|
|
110
|
+
return p.reportDir ?? PR_LOOP_REPORT_DIR;
|
|
111
|
+
}
|
|
112
|
+
/** The workflow's default name (#4799): `chant-pr-<env>`. */
|
|
113
|
+
function defaultWorkflowName(env) {
|
|
114
|
+
return `chant-pr-${env}`;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The file a product plan's workflow is written to (#5003),
|
|
118
|
+
* {@link ProductPlanOptions.workflowFile}: the product's, checked for the
|
|
119
|
+
* forge, else the workflow's name in the forge's workflow directory
|
|
120
|
+
* (`.gitlab/<name>.gitlab-ci.yml` on GitLab).
|
|
121
|
+
*/
|
|
122
|
+
export function productPlanWorkflowFile(forge, env, plan) {
|
|
123
|
+
const name = plan.workflow ?? defaultWorkflowName(env);
|
|
124
|
+
const dir = forge === "github" ? ".github/workflows" : forge === "forgejo" ? ".forgejo/workflows" : ".gitlab";
|
|
125
|
+
const file = plan.workflowFile;
|
|
126
|
+
if (file === undefined)
|
|
127
|
+
return forge === "gitlab" ? `${dir}/${name}.gitlab-ci.yml` : `${dir}/${name}.yml`;
|
|
128
|
+
if (!/\.ya?ml$/.test(file))
|
|
129
|
+
throw new Error(`the product plan's workflowFile ${JSON.stringify(file)} is not a .yml or .yaml file`);
|
|
130
|
+
if (file.startsWith("/") || file.split("/").some((part) => part === "" || part === "." || part === "..") || !/^[A-Za-z0-9_.\/-]+$/.test(file)) {
|
|
131
|
+
throw new Error(`the product plan's workflowFile ${JSON.stringify(file)} is not a path from the repository root of letters, digits and _.-, inside it`);
|
|
132
|
+
}
|
|
133
|
+
if (forge !== "gitlab" && (!file.startsWith(`${dir}/`) || file.slice(dir.length + 1).includes("/")))
|
|
134
|
+
throw new Error(`the product plan's workflowFile ${JSON.stringify(file)} is not directly under ${dir}/, where ${forge === "github" ? "GitHub" : "Forgejo"} reads workflows`);
|
|
135
|
+
return file;
|
|
136
|
+
}
|
|
103
137
|
const TARGET_NAME = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
104
138
|
/** The pull request loop's options the product plan's jobs do not carry, and what each needs. Each is refused with `plan` (#4799). */
|
|
105
139
|
const NOT_WITH_PLAN = [
|
|
@@ -154,6 +188,21 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
154
188
|
seen.add(t.name);
|
|
155
189
|
}
|
|
156
190
|
const github = forge !== "gitlab";
|
|
191
|
+
// #5003: the product's own names, checked before any job is written.
|
|
192
|
+
if (plan.workflowFile !== undefined)
|
|
193
|
+
productPlanWorkflowFile(forge, env, plan);
|
|
194
|
+
const reportDir = plan.reportDir;
|
|
195
|
+
if (reportDir !== undefined && !isReportDir(reportDir))
|
|
196
|
+
throw new Error(`the product plan's reportDir ${JSON.stringify(reportDir)} is not a directory from the checkout's root that stays inside it: letters, digits and _.-, parts joined by /, with no . or .. part and no / at either end`);
|
|
197
|
+
const outputDir = reportDir ?? PR_LOOP_REPORT_DIR;
|
|
198
|
+
const statusContext = plan.statusContext;
|
|
199
|
+
if (statusContext !== undefined) {
|
|
200
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9_.\/:{}-]*$/.test(statusContext) || /[{}]/.test(statusContext.replaceAll("{target}", "")))
|
|
201
|
+
throw new Error(`the product plan's statusContext ${JSON.stringify(statusContext)} is not a status context of letters, digits and _./:-${targets ? ", with {target}" : ""}`);
|
|
202
|
+
if (Boolean(targets) !== statusContext.includes("{target}"))
|
|
203
|
+
throw new Error(targets ? `the product plan's statusContext ${JSON.stringify(statusContext)} is every target's, so it holds {target}` : `the product plan's statusContext ${JSON.stringify(statusContext)} holds {target}, and the plan has no targets`);
|
|
204
|
+
}
|
|
205
|
+
const namesOf = productPlanJobNames(forge, plan, targets?.map((t) => t.name));
|
|
157
206
|
const shared = prLoopPassedEnv(forge, loop);
|
|
158
207
|
const jobEnv = plan.env ? prLoopPassedEnv(forge, { variables: plan.env }) : {};
|
|
159
208
|
for (const key of Object.keys(jobEnv)) {
|
|
@@ -211,12 +260,17 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
211
260
|
...(plan.noteWords ? { [PR_PLAN_NOTE_WORDS_ENV]: JSON.stringify(plan.noteWords) } : {}),
|
|
212
261
|
...(plan.watches?.length ? { [PLAN_WATCHES_ENV]: JSON.stringify(plan.watches) } : {}),
|
|
213
262
|
};
|
|
214
|
-
const fill = (line, name) => line.replaceAll("{target}", name ?? env).replaceAll("{output}",
|
|
263
|
+
const fill = (line, name) => line.replaceAll("{target}", name ?? env).replaceAll("{output}", outputDir);
|
|
215
264
|
const control = plan.controlRead ? controlNoteCheckout(forge, plan.controlRead, words) : undefined;
|
|
216
265
|
const one = (target) => {
|
|
217
266
|
const name = target?.name;
|
|
218
|
-
const
|
|
219
|
-
const
|
|
267
|
+
const names = namesOf(name);
|
|
268
|
+
const jobName = names.plan;
|
|
269
|
+
const noteJobName = names.note;
|
|
270
|
+
// #5003: the product's status context, and on GitLab its plan job's name for `pr-post --open` to find.
|
|
271
|
+
const context = statusContext?.replaceAll("{target}", name ?? "");
|
|
272
|
+
const named = [...(context !== undefined ? ["--context", context] : []), ...(!github && jobName !== gitlabPlanJobName(name) ? ["--plan-job", jobName] : [])];
|
|
273
|
+
const withNames = (p) => (named.length > 0 ? { ...p, command: `${p.command} ${named.join(" ")}` } : p);
|
|
220
274
|
const own = target ? prLoopPassedEnv(forge, { ...(target.variables ? { variables: target.variables } : {}), ...(target.secrets ? { secrets: target.secrets } : {}) }) : {};
|
|
221
275
|
for (const key of Object.keys(own)) {
|
|
222
276
|
if (key in shared)
|
|
@@ -225,7 +279,7 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
225
279
|
throw new Error(`target ${name}'s ${key} is the product plan's env too; give it once`);
|
|
226
280
|
}
|
|
227
281
|
// #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 } : {});
|
|
282
|
+
const post0 = withNames(prLoopPostJob(forge, env, name, words, { ...(loop.staleNotes ? { staleNotes: true } : {}), ...(reportDir !== undefined ? { output: reportDir } : {}) }));
|
|
229
283
|
// #4899: the note job records the plan job's run, named by that job.
|
|
230
284
|
const post1 = plan.record ? { ...post0, command: `${post0.command} --record-run ${jobName}` } : post0;
|
|
231
285
|
// #4914: on GitLab the signing job of the same pipeline keeps each merge request's evidence, which the note's checks line reads.
|
|
@@ -256,11 +310,26 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
256
310
|
}
|
|
257
311
|
const idTokens = { ...(login?.idTokens ?? {}), ...tradeTokens, ...(ownTokens ?? {}) };
|
|
258
312
|
const artifact = plan.artifact ? (name ? `${plan.artifact}-${name}` : plan.artifact) : name ? `chant-pr-plan-${name}` : "chant-pr-plan";
|
|
313
|
+
// #5004: on GitLab the plan job's own paths and reports beside the report directory, such as terragucci's terraform report.
|
|
314
|
+
const given = plan.artifacts;
|
|
315
|
+
const artifacts = given
|
|
316
|
+
? gitlabJobArtifacts(forge, {
|
|
317
|
+
...(given.paths ? { paths: given.paths.map((p) => fill(p, name)) } : {}),
|
|
318
|
+
...(given.reports ? { reports: Object.fromEntries(Object.entries(given.reports).map(([type, p]) => [type, Array.isArray(p) ? p.map((q) => fill(q, name)) : fill(p, name)])) } : {}),
|
|
319
|
+
}, { job: "the product plan", last: "the plan verb is the plan job's last step" })
|
|
320
|
+
: undefined;
|
|
259
321
|
// #4963: on GitHub and Forgejo the first re-plan job replies to the comments no other job takes.
|
|
260
322
|
const replies = github && Boolean(replanOpts.reply) && (targets === undefined || target === targets[0]);
|
|
261
323
|
const replan0 = replanComments
|
|
262
324
|
? {
|
|
263
|
-
...replanJobOf(forge, env, words, name, artifact, noteWords, {
|
|
325
|
+
...replanJobOf(forge, env, words, name, artifact, noteWords, {
|
|
326
|
+
notAffected: replanOpts.notAffected === true,
|
|
327
|
+
...(loop.staleNotes ? { staleNotes: true } : {}),
|
|
328
|
+
jobName: names.replan,
|
|
329
|
+
noteJobName: names.replanNote,
|
|
330
|
+
...(reportDir !== undefined ? { output: reportDir } : {}),
|
|
331
|
+
...(context !== undefined ? { context } : {}),
|
|
332
|
+
}),
|
|
264
333
|
...replanComments,
|
|
265
334
|
...(github && dispatchArg !== undefined ? { dispatch: { argument: dispatchArg } } : {}),
|
|
266
335
|
...(replies ? { reply: { prefix: `/${words.product}`, others } } : {}),
|
|
@@ -283,11 +352,11 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
283
352
|
...(planRunner !== undefined ? { runner: planRunner } : {}),
|
|
284
353
|
...(noteRunner !== undefined ? { noteRunner } : {}),
|
|
285
354
|
// #4978: a target's plan job plans that target alone, so its checks are `plan:<target>` and `policy:<target>`.
|
|
286
|
-
...(evidence ? { evidence: planEvidenceOf(forge, evidence, words, jobName, { ...(plan.forks === "skip" ? { noForks: true } : {}), ...(name ? { member: { name, reportPath:
|
|
355
|
+
...(evidence ? { evidence: planEvidenceOf(forge, evidence, words, jobName, { ...(plan.forks === "skip" ? { noForks: true } : {}), ...(name ? { member: { name, reportPath: outputDir } } : {}), ...(reportDir !== undefined ? { dir: reportDir } : {}) }) } : {}),
|
|
287
356
|
...(Object.keys(jobEnv).length > 0 ? { jobEnv } : {}),
|
|
288
357
|
...(login && login.steps.length > 0 ? { login: login.steps } : {}),
|
|
289
358
|
...(Object.keys(idTokens).length > 0 ? { idTokens } : {}),
|
|
290
|
-
...(plan.pending && github ? { pending: { context: productStatusContext(words, "plan", name), description: "planning" } } : {}),
|
|
359
|
+
...(plan.pending && github ? { pending: { context: context ?? productStatusContext(words, "plan", name), description: "planning" } } : {}),
|
|
291
360
|
...(control ? { control } : {}),
|
|
292
361
|
...(plan.setup?.length ? { setup: plan.setup } : {}),
|
|
293
362
|
...(plan.report ? { report: fill(plan.report, name) } : {}),
|
|
@@ -296,10 +365,62 @@ export function productPlanJobs(forge, env, loop, words, evidence) {
|
|
|
296
365
|
...(record ? { record } : {}),
|
|
297
366
|
...(tradeSpec ? { trade: tradeSpec } : {}),
|
|
298
367
|
...(plan.previousMarker && productMarker ? { previous: { marker: prNoteMarker(env, name), name: productMarker } } : {}),
|
|
368
|
+
...(context !== undefined ? { context } : {}),
|
|
369
|
+
...(reportDir !== undefined ? { reportDir } : {}),
|
|
370
|
+
...(artifacts ? { artifacts } : {}),
|
|
299
371
|
};
|
|
300
372
|
};
|
|
301
373
|
return targets ? targets.map(one) : [one()];
|
|
302
374
|
}
|
|
375
|
+
/** Whether `dir` is a report directory a product plan takes (#5003): a relative path that stays in the checkout. */
|
|
376
|
+
function isReportDir(dir) {
|
|
377
|
+
return /^[A-Za-z0-9_.\/-]+$/.test(dir) && !dir.startsWith("-") && dir.split("/").every((part) => part !== "" && part !== "." && part !== "..");
|
|
378
|
+
}
|
|
379
|
+
/** GitLab's top-level keywords, which no job may be named (#5003). */
|
|
380
|
+
const GITLAB_KEYWORDS = new Set(["default", "include", "stages", "variables", "workflow", "image", "services", "cache", "before_script", "after_script", "spec", "pages"]);
|
|
381
|
+
/**
|
|
382
|
+
* The plan jobs' names for each target (#5003), from
|
|
383
|
+
* {@link ProductPlanOptions.jobNames}, else chant's. Throws on a name that
|
|
384
|
+
* is not one, a `{target}` given without targets or left out with them, and
|
|
385
|
+
* two jobs of the plan that share a name.
|
|
386
|
+
*/
|
|
387
|
+
function productPlanJobNames(forge, plan, targets) {
|
|
388
|
+
const github = forge !== "gitlab";
|
|
389
|
+
const given = plan.jobNames ?? {};
|
|
390
|
+
const chant = { plan: "plan", note: PR_PLAN_NOTE_JOB, replan: REPLAN_JOB, replanNote: REPLAN_NOTE_JOB };
|
|
391
|
+
const keys = ["plan", "note", "replan", "replanNote"];
|
|
392
|
+
for (const key of keys) {
|
|
393
|
+
const t = given[key];
|
|
394
|
+
if (t === undefined)
|
|
395
|
+
continue;
|
|
396
|
+
if (Boolean(targets) !== t.includes("{target}"))
|
|
397
|
+
throw new Error(targets ? `the product plan's jobNames.${key} ${JSON.stringify(t)} names every target's job, so it holds {target}` : `the product plan's jobNames.${key} ${JSON.stringify(t)} holds {target}, and the plan has no targets`);
|
|
398
|
+
}
|
|
399
|
+
const namesOf = (target) => {
|
|
400
|
+
const out = {};
|
|
401
|
+
for (const key of keys) {
|
|
402
|
+
const t = given[key];
|
|
403
|
+
// chant's: `plan-<target>` on GitHub and Forgejo, `<target>-plan` on GitLab.
|
|
404
|
+
out[key] = t !== undefined ? t.replaceAll("{target}", target ?? "") : target ? (github ? `${chant[key]}-${target}` : `${target}-${chant[key]}`) : chant[key];
|
|
405
|
+
}
|
|
406
|
+
return out;
|
|
407
|
+
};
|
|
408
|
+
const seen = new Map();
|
|
409
|
+
for (const target of targets ?? [undefined]) {
|
|
410
|
+
const names = namesOf(target);
|
|
411
|
+
for (const key of plan.replan ? keys : ["plan", "note"]) {
|
|
412
|
+
const n = names[key];
|
|
413
|
+
const ok = github ? /^[A-Za-z_][A-Za-z0-9_-]*$/.test(n) : /^[A-Za-z0-9_][A-Za-z0-9_-]*$/.test(n) && !GITLAB_KEYWORDS.has(n);
|
|
414
|
+
if (!ok)
|
|
415
|
+
throw new Error(`the product plan's ${given[key] !== undefined ? `jobNames.${key}` : `${key} job`} ${JSON.stringify(n)} is not a job name of letters, digits, _ and -, starting with a letter or _${github ? "" : " or a digit, and no GitLab keyword"}`);
|
|
416
|
+
const other = seen.get(n);
|
|
417
|
+
if (other !== undefined)
|
|
418
|
+
throw new Error(`the product plan names two jobs ${n}: ${other} and ${key}${target ? ` of ${target}` : ""}`);
|
|
419
|
+
seen.set(n, `${key}${target ? ` of ${target}` : ""}`);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return namesOf;
|
|
423
|
+
}
|
|
303
424
|
/** The comments the re-plan answers (#4899): the plan command, then the words' aliases for it. Refused when the words name no plan command. */
|
|
304
425
|
function replanCommentsOf(words) {
|
|
305
426
|
const command = commentLine(words, "plan");
|
|
@@ -309,16 +430,17 @@ function replanCommentsOf(words) {
|
|
|
309
430
|
return { comments: [command, ...aliases.filter((a) => a.when === undefined).map((a) => a.from)], gated: aliases.filter((a) => a.when !== undefined).map((a) => ({ comment: a.from, when: a.when })) };
|
|
310
431
|
}
|
|
311
432
|
/** The re-plan's jobs for one target (#4899), its comments filled in by the caller. */
|
|
312
|
-
function replanJobOf(forge, env, words, name, artifact, noteWords0, opts
|
|
433
|
+
function replanJobOf(forge, env, words, name, artifact, noteWords0, opts) {
|
|
313
434
|
const github = forge !== "gitlab";
|
|
314
|
-
const
|
|
315
|
-
const noteJobName = github ? (name ? `${REPLAN_NOTE_JOB}-${name}` : REPLAN_NOTE_JOB) : name ? `${name}-${REPLAN_NOTE_JOB}` : REPLAN_NOTE_JOB;
|
|
435
|
+
const { jobName, noteJobName } = opts;
|
|
316
436
|
// 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.
|
|
317
437
|
// #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
|
-
|
|
319
|
-
const
|
|
438
|
+
// #5003: the product's report directory and status context.
|
|
439
|
+
const post0 = { ...(opts.staleNotes ? { staleNotes: true } : {}), ...(opts.output !== undefined ? { output: opts.output } : {}) };
|
|
440
|
+
const command0 = github ? prLoopPostJob(forge, env, name, words, post0).command : prLoopPostJob("github", env, name, words, post0).command.replace(" --forge github ", " --forge gitlab ");
|
|
441
|
+
const command1 = opts.context !== undefined ? `${command0} --context ${opts.context}` : command0;
|
|
320
442
|
// #4963: the argument the re-plan was narrowed to, which pr-post answers "not affected" for when the change does not reach it.
|
|
321
|
-
const command = opts.notAffected ? `${
|
|
443
|
+
const command = opts.notAffected ? `${command1} --not-affected "$${PLAN_ARGUMENT_ENV}"` : command1;
|
|
322
444
|
const noteWords1 = opts.notAffected && github ? { ...noteWords0, [PLAN_ARGUMENT_ENV]: `\${{ needs.${jobName}.outputs.argument }}` } : noteWords0;
|
|
323
445
|
const noteWords = opts.staleNotes ? { ...noteWords1, TIP_SHA: github ? "${{ github.sha }}" : "$CI_COMMIT_SHA" } : noteWords1;
|
|
324
446
|
const post = github
|
|
@@ -523,7 +645,7 @@ export function planVerbLines(p) {
|
|
|
523
645
|
`${p.command} || chant_plan_exit=$?`,
|
|
524
646
|
...(p.report ? [`${p.report} || echo "chant: the report line exited $?" >&2`] : []),
|
|
525
647
|
// #4899: the run record goes into the hand-off, for the note job to keep on chant/lifecycle.
|
|
526
|
-
...(p.record ? [`CHANT_PLAN_EXIT="$chant_plan_exit" CHANT_PLAN_STARTED="$chant_plan_started" node -e '${PLAN_RECORD_JS}' ${
|
|
648
|
+
...(p.record ? [`CHANT_PLAN_EXIT="$chant_plan_exit" CHANT_PLAN_STARTED="$chant_plan_started" node -e '${PLAN_RECORD_JS}' ${productPlanReportDir(p)} || echo "chant: the plan's run record was not written" >&2`] : []),
|
|
527
649
|
'[ "$chant_plan_exit" -eq 0 ] || exit "$chant_plan_exit"',
|
|
528
650
|
];
|
|
529
651
|
}
|
|
@@ -558,20 +680,22 @@ export function planEvidenceOf(forge, evidence, words, planJob, opts = {}) {
|
|
|
558
680
|
const key = evidenceKeyEnv(forge, evidence);
|
|
559
681
|
const bin = words.bin;
|
|
560
682
|
const member = opts.member ? { member: opts.member.name } : {};
|
|
683
|
+
// #5003: the product plan's report directory, which the plan job handed on.
|
|
684
|
+
const reportDir = opts.dir ?? PR_LOOP_REPORT_DIR;
|
|
561
685
|
if (forge === "gitlab") {
|
|
562
686
|
// #4914: the job runs in the target branch's plan notes pipeline, before the note job, and signs every open
|
|
563
687
|
// merge request's settled plan job from its artifact; no job of a merge request pipeline holds the key.
|
|
564
688
|
const dir = gitlabOpenEvidenceDir(planJob);
|
|
565
689
|
return {
|
|
566
690
|
jobName: `${planJob}-evidence`,
|
|
567
|
-
lines: openEvidenceLines({ job: planJob, dir: opts.member?.reportPath ??
|
|
691
|
+
lines: openEvidenceLines({ job: planJob, dir: opts.member?.reportPath ?? reportDir, out: dir, ...(bin ? { bin } : {}), ...(opts.noForks ? { noForks: true } : {}), ...member }),
|
|
568
692
|
env: key,
|
|
569
693
|
dir,
|
|
570
694
|
...(evidenceKeyless(evidence) ? { idTokens: evidenceIdTokens(evidence) } : {}),
|
|
571
695
|
};
|
|
572
696
|
}
|
|
573
697
|
return {
|
|
574
|
-
lines: planEvidenceLines({ dir:
|
|
698
|
+
lines: planEvidenceLines({ dir: reportDir, at: '"$HEAD_SHA"', base: '"$BASE_SHA"', result: '"$PLAN_RESULT"', ...(bin ? { bin } : {}), ...member }),
|
|
575
699
|
env: { HEAD_SHA: "${{ github.sha }}", BASE_SHA: "${{ github.event.pull_request.base.sha }}", PLAN_RESULT: `\${{ needs.${planJob}.result }}`, ...key },
|
|
576
700
|
...(evidenceKeyless(evidence) ? { idToken: true } : {}),
|
|
577
701
|
};
|
|
@@ -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,EAuPzC,CAAC"}
|
package/dist/floor-table.data.js
CHANGED
|
@@ -36,18 +36,20 @@ export const FLOOR_ROWS = [
|
|
|
36
36
|
{ name: "COMMENT_COMMANDS_FLOOR", version: "0.124.89", gates: "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.", issue: "#4946", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
37
37
|
{ name: "PRODUCT_PLAN_REACH_LOCKS_FLOOR", version: "0.124.89", gates: "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`).", issue: "#4979", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
38
38
|
{ name: "WAVE_STOP_FLOOR", version: "0.124.89", gates: "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).", issue: "#4979", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
39
|
-
{ name: "WAVES_BEFORE_MERGE_FLOOR", version:
|
|
40
|
-
{ name: "WAVES_APPLY_STATUS_FLOOR", version:
|
|
41
|
-
{ name: "WAVES_BEFORE_MERGE_SPLIT_FLOOR", version:
|
|
42
|
-
{ name: "WAVES_BEFORE_MERGE_STEP_FLOOR", version:
|
|
43
|
-
{ name: "WAVES_PRODUCT_HOOKS_FLOOR", version:
|
|
44
|
-
{ name: "WAVES_BEFORE_MERGE_REST_FLOOR", version:
|
|
45
|
-
{ name: "WAVES_FOLLOW_ON_RECORD_FLOOR", version:
|
|
39
|
+
{ name: "WAVES_BEFORE_MERGE_FLOOR", version: "0.124.90", gates: "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`).", issue: "#4984", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
40
|
+
{ name: "WAVES_APPLY_STATUS_FLOOR", version: "0.124.90", gates: "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`).", issue: "#4987", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
41
|
+
{ name: "WAVES_BEFORE_MERGE_SPLIT_FLOOR", version: "0.124.90", gates: "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`).", issue: "#4987", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
42
|
+
{ name: "WAVES_BEFORE_MERGE_STEP_FLOOR", version: "0.124.90", gates: "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.", issue: "#4992", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
43
|
+
{ name: "WAVES_PRODUCT_HOOKS_FLOOR", version: "0.124.90", gates: "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.", issue: "#4994", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
44
|
+
{ name: "WAVES_BEFORE_MERGE_REST_FLOOR", version: "0.124.90", gates: "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.", issue: "#4992", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
45
|
+
{ name: "WAVES_FOLLOW_ON_RECORD_FLOOR", version: "0.124.90", gates: "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`.", issue: "#4998", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
46
46
|
{ name: "PRODUCT_PLAN_WATCHES_FLOOR", version: "0.124.88", gates: "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`.", issue: "#4888", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
47
|
-
{ name: "PRODUCT_PLAN_WATCH_TARGETS_FLOOR", version:
|
|
47
|
+
{ name: "PRODUCT_PLAN_WATCH_TARGETS_FLOOR", version: "0.124.90", gates: "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`).", issue: "#4988", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
48
48
|
{ name: "PRODUCT_PLAN_RECORD_FLOOR", version: "0.124.88", gates: "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.", issue: "#4899", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
49
49
|
{ name: "PRODUCT_PLAN_REPLAN_FLOOR", version: "0.124.89", gates: "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`).", issue: "#4963", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
50
50
|
{ name: "PRODUCT_PLAN_SUBJECT_FLOOR", version: "0.124.89", gates: "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.", issue: "#4972", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
51
|
+
{ name: "PRODUCT_PLAN_NAMES_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose product plan keeps a product's own names (#5003): `workflowFile` (the generators' `path`), `jobNames` (the plan, note, re-plan and re-plan note jobs, with `{target}`), `statusContext` (which `pr-post --context`, the pending step, the stale job and the apply before merge use) and `reportDir` (`{output}`, the hand-off, the artifact's path and `pr-post --output`), and whose `pr-post --open` finds a plan job of the product's name (`--plan-job`).", issue: "#5003", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
52
|
+
{ name: "PRODUCT_PLAN_ARTIFACTS_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose GitLab product plan job keeps a product's own artifacts beside the report directory (#5004): `productPlan.artifacts: { paths, reports }`, as `artifacts:paths` and `artifacts:reports`, such as terragucci's `terraform` report for the merge request's widget, with `{target}` and `{output}` filled.", issue: "#5004", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
51
53
|
{ name: "PRODUCT_ACTIONS_FLOOR", version: "0.124.58", gates: "Day-2 actions in the product pipeline (#4654): the `action` comment command counted as answered by the product's own workflow (`productPipelineJobs(forge, env, { words, actions: true })`), or the pipeline's own action job (`actionJob`, `build --pr-loop --action-job`), which answers the comment and a dispatch with a member and an action input, and runs the product's action verb with `--from-event`.", issue: "#4654", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
52
54
|
{ name: "APPROVAL_STATUS_FLOOR", version: "0.124.56", gates: "The approval status before merge (#4630): under a `pr-review` wave, the op waves generators add a job that posts `<product>/approval` on each open pull request's head.", issue: "#4630", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
53
55
|
{ name: "APPROVAL_STATUS_PULL_REQUEST_FLOOR", version: "0.124.56", gates: "The approval status for `pull-request` waves too (#4630, 2026-10-28 ruling): the generators add the record-plans and approval-status jobs for a spec whose waves take the pull request's own approval, and the status reads that approval's coverage of each wave's change set.", issue: "#4630", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
|
|
@@ -209,16 +211,19 @@ export const FLOOR_ROWS = [
|
|
|
209
211
|
{ name: "DRIFT_NOTIFY_STACKS_FLOOR", version: "0.124.89", gates: "The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944).", issue: "#4944", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
210
212
|
{ name: "MEMBER_SIGNED_CHECKS_FLOOR", version: "0.124.89", gates: "The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/components/pr-checks", "@intentius/chant/release-floors"] },
|
|
211
213
|
{ name: "PRODUCT_CHECK_JOBS_FLOOR", version: "0.124.89", gates: "The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/components/pr-checks", "@intentius/chant/release-floors"] },
|
|
212
|
-
{ name: "CHECK_JOB_ARTIFACTS_FLOOR", version:
|
|
214
|
+
{ name: "CHECK_JOB_ARTIFACTS_FLOOR", version: "0.124.90", gates: "The first chant whose `checkJob` takes `artifacts: { paths, reports }` (`PrCheckArtifacts`), which GitLab's check job keeps beside its report as `artifacts:paths` and `artifacts:reports`, such as a lint hook's `codequality` report (#4988).", issue: "#4988", file: "release-floors.ts", modules: ["@intentius/chant/components/pr-checks", "@intentius/chant/release-floors"] },
|
|
213
215
|
{ name: "GITLAB_WAVE_KEY_SCOPE_FLOOR", version: "0.124.89", gates: "The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964).", issue: "#4964", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/release-floors"] },
|
|
214
216
|
{ name: "ACTOR_ORDER_FLOOR", version: "0.124.89", gates: "The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/actor", "@intentius/chant/release-floors"] },
|
|
217
|
+
{ name: "ACTOR_GIT_ENV_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `actorOf({ env, repo })` runs `git config` in `repo` with the `env` it is given rather than the process's, so a job's `GIT_CONFIG_GLOBAL` or `HOME` picks the `user.name` it reads (#5005).", issue: "#5005", file: "release-floors.ts", modules: ["@intentius/chant/actor", "@intentius/chant/release-floors"] },
|
|
215
218
|
{ name: "CI_BASE_REF_FLOOR", version: "0.124.89", gates: "The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/ci-base", "@intentius/chant/release-floors"] },
|
|
216
219
|
{ name: "PLANNED_FILES_FLOOR", version: "0.124.89", gates: "The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/planned-files", "@intentius/chant/release-floors"] },
|
|
220
|
+
{ name: "PLANNED_BYTES_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose `planFile` in `@intentius/chant/planned-files` takes bytes (`Uint8Array` or `Buffer`) as well as text: `writePlannedFiles` writes them unchanged and the plan compares them with the file byte for byte (#5006).", issue: "#5006", file: "release-floors.ts", modules: ["@intentius/chant/planned-files", "@intentius/chant/release-floors"] },
|
|
217
221
|
{ name: "FORGE_CHECK_OWN_JOBS_FLOOR", version: "0.124.89", gates: "The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/forge-check", "@intentius/chant/forge-check/index", "@intentius/chant/release-floors"] },
|
|
218
222
|
{ name: "BEFORE_MERGE_REF_GATE_FLOOR", version: "0.124.89", gates: "The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966).", issue: "#4966", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
219
223
|
{ name: "TARGET_SIGNED_CHECKS_FLOOR", version: "0.124.89", gates: "The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978).", issue: "#4978", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/ref-gate-init", "@intentius/chant/release-floors"] },
|
|
220
224
|
{ name: "RUNTIME_WAVES_SPEC_FLOOR", version: "0.124.89", gates: "The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982).", issue: "#4982", file: "release-floors.ts", modules: ["@intentius/chant/op", "@intentius/chant/op/index", "@intentius/chant/op/op-waves-render-spec", "@intentius/chant/release-floors"] },
|
|
221
225
|
{ name: "GITLAB_WAVE_EVIDENCE_RETRY_FLOOR", version: "0.124.89", gates: "The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978).", issue: "#4978", file: "release-floors.ts", modules: ["@intentius/chant/ci-evidence-jobs", "@intentius/chant/release-floors"] },
|
|
226
|
+
{ name: "TERRAFORM_COMMAND_TRACE_FLOOR", version: NEXT_RELEASE, gates: "The first chant whose terraform lexicon's engine runs carry what a product's own command tracing read: `runBinary` and the engine runner's `exec` and `execSync` answer stderr apart (`Ran.stderr`) and a spawn failure's message (`Ran.error`), a hook's `after` gets a binary that could not be started as a null code with `error`, `commandTrace` ends that span with the message, and `composeCommandHooks` runs a product's own hook and `commandTrace` as one `onCommand` (#5007).", issue: "#5007", file: "release-floors.ts", modules: ["@intentius/chant/release-floors"] },
|
|
222
227
|
{ name: "RUN_EVENT_FLOOR", version: "0.124.28", gates: "The first chant that writes contract version 1 of the run-event stream.", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
|
|
223
228
|
{ name: "RUN_EVENT_FAILURE_FLOOR", version: "0.124.30", gates: "The first chant that writes `failure` on `run-settle` (#4094).", issue: "#4094", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
|
|
224
229
|
{ name: "RUN_EVENT_COMPONENT_SKIP_FLOOR", version: "0.124.29", gates: "The first chant that writes `blocked`, `already-applied` and `blockedBy` on `component-settle` (#4007).", issue: "#4007", file: "run-event.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/run-event"] },
|
package/dist/lexicon-module.d.ts
CHANGED
|
@@ -122,6 +122,8 @@ export declare function lexiconPackagesToInstall(names: readonly string[], paths
|
|
|
122
122
|
* path, which is not a package.
|
|
123
123
|
*/
|
|
124
124
|
export declare function packageNameOf(spec: string): string | undefined;
|
|
125
|
+
/** True when `err` says the package `pkg` itself could not be found, not something it imports. */
|
|
126
|
+
export declare function isPackageNotFound(err: unknown, pkg: string): boolean;
|
|
125
127
|
/**
|
|
126
128
|
* chant#2845 — resolve `spec` (a lexicon package or one of its subpaths) from
|
|
127
129
|
* `fromDir` instead of from chant's own install, or `undefined` when the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicon-module.d.ts","sourceRoot":"","sources":["../src/lexicon-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AASH;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;I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AM,EACZ,OAAO,GAAE,MAAsB,EAC/B,KAAK,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAe,GAC/C,MAAM,CAKR;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAe,GAC/C,MAAM,EAAE,CAEV;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI9D;AAED,kGAAkG;AAClG,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CASpE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAsB,GAAG,MAAM,GAAG,SAAS,CAMpG;AAcD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAqB1H"}
|
package/dist/lexicon-module.js
CHANGED
|
@@ -206,12 +206,16 @@ export function packageNameOf(spec) {
|
|
|
206
206
|
return spec.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
|
|
207
207
|
}
|
|
208
208
|
/** True when `err` says the package `pkg` itself could not be found, not something it imports. */
|
|
209
|
-
function isPackageNotFound(err, pkg) {
|
|
209
|
+
export function isPackageNotFound(err, pkg) {
|
|
210
210
|
const code = err?.code;
|
|
211
211
|
if (code !== "ERR_MODULE_NOT_FOUND" && code !== "MODULE_NOT_FOUND")
|
|
212
212
|
return false;
|
|
213
213
|
const message = err instanceof Error ? err.message : String(err);
|
|
214
|
-
|
|
214
|
+
// The specifier itself is quoted: `'pkg'`, or `'pkg/sub'` for a subpath.
|
|
215
|
+
// chant#4881 — a file missing inside an installed package is named by its
|
|
216
|
+
// path (`'/…/node_modules/pkg/generated/index.js'`), which is not quoted at
|
|
217
|
+
// the package name, so it doesn't count as the package being missing.
|
|
218
|
+
return [`'${pkg}'`, `"${pkg}"`, `'${pkg}/`, `"${pkg}/`].some((quoted) => message.includes(quoted));
|
|
215
219
|
}
|
|
216
220
|
/**
|
|
217
221
|
* chant#2845 — resolve `spec` (a lexicon package or one of its subpaths) from
|
package/dist/planned-files.d.ts
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* - {@link planFile} plans one file against what is on disk, its mode
|
|
14
14
|
* included, and writes nothing, so a dry run prints the plan as it is.
|
|
15
|
+
* Its content is text, or bytes for a file such as terragucci's
|
|
16
|
+
* `registry edge` bundles, compared byte for byte (#5006).
|
|
15
17
|
* - {@link planRemoval} plans the removal of a file an earlier run wrote.
|
|
16
18
|
* - {@link writePlannedFiles} writes the plan: each directory made, each
|
|
17
19
|
* file's mode set, each removed file unlinked, an unchanged one left as
|
|
@@ -24,14 +26,16 @@
|
|
|
24
26
|
*
|
|
25
27
|
* This module imports only Node's own modules.
|
|
26
28
|
*/
|
|
27
|
-
/**
|
|
28
|
-
export
|
|
29
|
+
/** What a planned file holds: text, or bytes such as a bundle or a zip, written as they are (#5006). A `Buffer` is a `Uint8Array`. */
|
|
30
|
+
export type PlannedContent = string | Uint8Array;
|
|
31
|
+
/** One planned file. Its content is text unless the plan was made with bytes (#5006). */
|
|
32
|
+
export interface PlannedFile<C extends PlannedContent = string> {
|
|
29
33
|
/** Where it is written. Absolute, or relative to the process's directory. */
|
|
30
34
|
path: string;
|
|
31
35
|
/** `removed`: a file an earlier run wrote that this one no longer asks for. */
|
|
32
36
|
status: "created" | "updated" | "unchanged" | "removed";
|
|
33
|
-
/** The text to write; empty for a removal. */
|
|
34
|
-
content:
|
|
37
|
+
/** The text or bytes to write; empty text for a removal. */
|
|
38
|
+
content: C;
|
|
35
39
|
/** The permission bits to set, such as `0o755` for a script. Unset, a new file gets the process's default and an existing one keeps its own. */
|
|
36
40
|
mode?: number;
|
|
37
41
|
/** In the git directory or otherwise never committed, such as a hook. */
|
|
@@ -40,17 +44,21 @@ export interface PlannedFile {
|
|
|
40
44
|
/**
|
|
41
45
|
* Plan `content` at `path`: `created` when there is no file, `unchanged`
|
|
42
46
|
* when the file holds the content (and, with `mode`, has that mode),
|
|
43
|
-
* `updated` otherwise. Writes nothing.
|
|
47
|
+
* `updated` otherwise. Writes nothing. Content given as bytes is compared
|
|
48
|
+
* with the file byte for byte, and the plan carries the bytes (#5006).
|
|
44
49
|
*/
|
|
45
50
|
export declare function planFile(path: string, content: string, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile;
|
|
51
|
+
export declare function planFile(path: string, content: Uint8Array, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile<Uint8Array>;
|
|
52
|
+
export declare function planFile(path: string, content: PlannedContent, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile<PlannedContent>;
|
|
46
53
|
/** Plan the removal of the file at `path`; undefined when there is nothing there to remove. */
|
|
47
54
|
export declare function planRemoval(path: string): PlannedFile | undefined;
|
|
48
55
|
/**
|
|
49
56
|
* Write a plan: each created or updated file written, its directory made
|
|
50
57
|
* and its mode set; each removed file unlinked; an unchanged file not
|
|
51
|
-
* touched. A removed file that is already gone is not an error.
|
|
58
|
+
* touched. A removed file that is already gone is not an error. Bytes
|
|
59
|
+
* are written as they are (#5006).
|
|
52
60
|
*/
|
|
53
|
-
export declare function writePlannedFiles(files: readonly Pick<PlannedFile
|
|
61
|
+
export declare function writePlannedFiles(files: readonly Pick<PlannedFile<PlannedContent>, "path" | "status" | "content" | "mode">[]): void;
|
|
54
62
|
export interface StaleGeneratedOptions {
|
|
55
63
|
/** The directory the paths are relative to: a product's checkout. */
|
|
56
64
|
root: string;
|
|
@@ -72,5 +80,5 @@ export interface StaleGeneratedOptions {
|
|
|
72
80
|
* person's own and never listed.
|
|
73
81
|
*/
|
|
74
82
|
export declare function staleGeneratedFiles(options: StaleGeneratedOptions): string[];
|
|
75
|
-
export { PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
83
|
+
export { PLANNED_BYTES_FLOOR, PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
76
84
|
//# sourceMappingURL=planned-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-files.d.ts","sourceRoot":"","sources":["../src/planned-files.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"planned-files.d.ts","sourceRoot":"","sources":["../src/planned-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAKH,sIAAsI;AACtI,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,yFAAyF;AACzF,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,MAAM;IAC5D,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IACxD,4DAA4D;IAC5D,OAAO,EAAE,CAAC,CAAC;IACX,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAiBD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC;AAClH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAClI,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAQ1I,+FAA+F;AAC/F,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,CAWnI;AAED,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,gGAAgG;IAChG,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,yFAAyF;IACzF,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6GAA6G;IAC7G,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAC7C,mFAAmF;IACnF,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,EAAE,CAsB5E;AAED,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/planned-files.js
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* - {@link planFile} plans one file against what is on disk, its mode
|
|
14
14
|
* included, and writes nothing, so a dry run prints the plan as it is.
|
|
15
|
+
* Its content is text, or bytes for a file such as terragucci's
|
|
16
|
+
* `registry edge` bundles, compared byte for byte (#5006).
|
|
15
17
|
* - {@link planRemoval} plans the removal of a file an earlier run wrote.
|
|
16
18
|
* - {@link writePlannedFiles} writes the plan: each directory made, each
|
|
17
19
|
* file's mode set, each removed file unlinked, an unchanged one left as
|
|
@@ -35,16 +37,17 @@ function modeOf(path) {
|
|
|
35
37
|
return undefined;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
/** Whether the file at `path` holds `content`: text compared as UTF-8 text, bytes compared byte for byte (#5006). */
|
|
41
|
+
function holds(path, content) {
|
|
42
|
+
if (typeof content === "string")
|
|
43
|
+
return readFileSync(path, "utf-8") === content;
|
|
44
|
+
return Buffer.from(content.buffer, content.byteOffset, content.byteLength).equals(readFileSync(path));
|
|
45
|
+
}
|
|
43
46
|
export function planFile(path, content, extra = {}) {
|
|
44
47
|
const own = { ...(extra.mode !== undefined ? { mode: extra.mode } : {}), ...(extra.local ? { local: true } : {}) };
|
|
45
48
|
if (!existsSync(path))
|
|
46
49
|
return { path, status: "created", content, ...own };
|
|
47
|
-
const same =
|
|
50
|
+
const same = holds(path, content) && (extra.mode === undefined || modeOf(path) === extra.mode);
|
|
48
51
|
return { path, status: same ? "unchanged" : "updated", content, ...own };
|
|
49
52
|
}
|
|
50
53
|
/** Plan the removal of the file at `path`; undefined when there is nothing there to remove. */
|
|
@@ -54,7 +57,8 @@ export function planRemoval(path) {
|
|
|
54
57
|
/**
|
|
55
58
|
* Write a plan: each created or updated file written, its directory made
|
|
56
59
|
* and its mode set; each removed file unlinked; an unchanged file not
|
|
57
|
-
* touched. A removed file that is already gone is not an error.
|
|
60
|
+
* touched. A removed file that is already gone is not an error. Bytes
|
|
61
|
+
* are written as they are (#5006).
|
|
58
62
|
*/
|
|
59
63
|
export function writePlannedFiles(files) {
|
|
60
64
|
for (const f of files) {
|
|
@@ -105,4 +109,4 @@ export function staleGeneratedFiles(options) {
|
|
|
105
109
|
}
|
|
106
110
|
return out;
|
|
107
111
|
}
|
|
108
|
-
export { PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
112
|
+
export { PLANNED_BYTES_FLOOR, PLANNED_FILES_FLOOR } from "./release-floors.js";
|
package/dist/pr-post.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface PlanPostInput {
|
|
|
48
48
|
head: string;
|
|
49
49
|
env: string;
|
|
50
50
|
member?: string;
|
|
51
|
+
/** The plan status's context (#5003, a product plan's `statusContext`), in place of {@link prStatusContext}'s. */
|
|
52
|
+
context?: string;
|
|
51
53
|
/** The plan job's own result (`needs.plan.result`). `failure` fails the status. */
|
|
52
54
|
result?: string;
|
|
53
55
|
/**
|
|
@@ -207,6 +209,8 @@ export interface OpenPlanPostInput {
|
|
|
207
209
|
artifactDir: string;
|
|
208
210
|
env: string;
|
|
209
211
|
member?: string;
|
|
212
|
+
/** The plan status's context (#5003), in place of {@link prStatusContext}'s. */
|
|
213
|
+
context?: string;
|
|
210
214
|
overdue?: () => Promise<PrOverdue[]>;
|
|
211
215
|
/** The description check, as {@link PlanPostInput.description}. */
|
|
212
216
|
description?: (report: PrReport) => Promise<void>;
|
|
@@ -259,6 +263,8 @@ export interface StaleMarkInput {
|
|
|
259
263
|
tip: string;
|
|
260
264
|
env: string;
|
|
261
265
|
member?: string;
|
|
266
|
+
/** The plan status's context (#5003), which goes back to pending, in place of {@link prStatusContext}'s. */
|
|
267
|
+
context?: string;
|
|
262
268
|
/** The pipeline answers the plan comment (`--preview-comment`), so the stale line names it. */
|
|
263
269
|
previewComment?: boolean;
|
|
264
270
|
words?: CiProductWords;
|
package/dist/pr-post.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-post.d.ts","sourceRoot":"","sources":["../src/pr-post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,OAAO,EAA+C,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;A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