@intentius/chant 0.124.91 → 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/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 +18 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +20 -3
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
- package/dist/cli/handlers/pr-comment.js +15 -2
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +4 -1
- package/dist/components/pr-pipeline.d.ts +4 -2
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +7 -4
- 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 +57 -20
- package/dist/components/product-plan.d.ts +7 -0
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +1 -0
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +9 -5
- 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/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 +9 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +5 -2
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +4 -4
- package/dist/wave-runtime.mjs +258 -258
- package/package.json +1 -1
- package/src/ci-comment-commands.test.ts +19 -5
- package/src/ci-comment-commands.ts +18 -3
- package/src/ci-product.ts +24 -3
- package/src/cli/handlers/pr-comment.ts +12 -2
- package/src/cli/handlers/pr.ts +4 -1
- package/src/components/pr-pipeline.ts +7 -4
- package/src/components/product-job-names.test.ts +176 -0
- package/src/components/product-pipeline.ts +95 -28
- package/src/components/product-plan.ts +8 -0
- package/src/floor-table.data.ts +9 -5
- 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/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 +15 -5
- package/src/release-floors.ts +4 -4
|
@@ -94,7 +94,11 @@ export function parseFollowOnTarget(raw) {
|
|
|
94
94
|
throw new Error(`${OP_WAVES_FOLLOW_ON_ENV}.forge is github, forgejo or gitlab`);
|
|
95
95
|
if (o.forge !== "gitlab" && (typeof o.workflow !== "string" || !/^[A-Za-z0-9._-]+\.ya?ml$/.test(o.workflow)))
|
|
96
96
|
throw new Error(`${OP_WAVES_FOLLOW_ON_ENV}.workflow names the waves workflow's file`);
|
|
97
|
-
|
|
97
|
+
const inputs = o.inputs;
|
|
98
|
+
if (inputs !== undefined && (typeof inputs !== "object" || inputs === null || Object.entries(inputs).some(([k, n]) => !["pr", "head", "digest", "wave", "commit"].includes(k) || typeof n !== "string" || !/^[A-Za-z_][A-Za-z0-9_-]*$/.test(n)))) {
|
|
99
|
+
throw new Error(`${OP_WAVES_FOLLOW_ON_ENV}.inputs names the dispatch inputs pr, head, digest, wave and commit`);
|
|
100
|
+
}
|
|
101
|
+
return { forge: o.forge, ...(o.workflow ? { workflow: o.workflow } : {}), ...(inputs ? { inputs: { ...inputs } } : {}) };
|
|
98
102
|
}
|
|
99
103
|
/**
|
|
100
104
|
* The lines every job of the rest wave runs after its checkout (#4992): in
|
|
@@ -350,6 +354,8 @@ export async function startFollowOn(target, wave, env, fetchFn = fetch) {
|
|
|
350
354
|
const ref = env.GITHUB_REF_NAME?.trim() || env.GITHUB_REF?.replace(/^refs\/heads\//, "");
|
|
351
355
|
if (!ref)
|
|
352
356
|
throw new Error("the job names no branch (no GITHUB_REF_NAME)");
|
|
353
|
-
|
|
357
|
+
// #5022: the inputs under the product's names, when it renamed them.
|
|
358
|
+
const inputs = Object.fromEntries(Object.entries(values).map(([k, v]) => [target.inputs?.[k] ?? k, v]));
|
|
359
|
+
await post(`${t.apiBase}/repos/${t.repo}/actions/workflows/${encodeURIComponent(target.workflow)}/dispatches`, { Authorization: `token ${t.token}` }, { ref, inputs });
|
|
354
360
|
return {};
|
|
355
361
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A product's own names in an Op waves pipeline (#5022), as the product
|
|
3
|
+
* plan keeps them (#5003).
|
|
4
|
+
*
|
|
5
|
+
* Maintainer decision (2026-11-11, on #5000): chant keeps a product's
|
|
6
|
+
* names. A product whose wave jobs live in its own workflow beside its plan
|
|
7
|
+
* jobs (terragucci's `apply-wave-<k>` in `terragucci.yml`) hands the
|
|
8
|
+
* generators the names, and they render them, so the product never renames
|
|
9
|
+
* or edits what chant wrote:
|
|
10
|
+
*
|
|
11
|
+
* - `jobNames`: a name for each job the generator writes (a wave's job, its
|
|
12
|
+
* deciding, share and job group jobs, a split wave's plan, gate, apply and
|
|
13
|
+
* record jobs, the policy and evidence jobs, the apply status, stale,
|
|
14
|
+
* before-merge done and control jobs). Every `needs:`, `if:`, artifact
|
|
15
|
+
* `{job}` and `--from-job` follows it.
|
|
16
|
+
* - `stageNames` (GitLab): a name for each stage.
|
|
17
|
+
* - `artifactNames` (GitHub, Forgejo): the outcome, decision, saved plan and
|
|
18
|
+
* check claims artifacts, and the pattern a wave job downloads the
|
|
19
|
+
* earlier outcomes with.
|
|
20
|
+
* - `workflowFile`, `runIf` and `dispatchInputs`: the jobs go in the
|
|
21
|
+
* product's workflow, each running only on a push `runIf` admits (or a
|
|
22
|
+
* before-merge or follow-on dispatch), and the dispatch inputs take the
|
|
23
|
+
* product's names so they never meet its own. On GitLab `runIf` joins
|
|
24
|
+
* every rule of every job.
|
|
25
|
+
*
|
|
26
|
+
* Left out, each is chant's, and the generators render as before.
|
|
27
|
+
*/
|
|
28
|
+
import type { OpWaveJob, OpWavesSpec } from "./op-waves.js";
|
|
29
|
+
/** What a job of an Op waves pipeline is (#5022), for {@link OpWavesJobNames}. */
|
|
30
|
+
export type OpWavesJobRole = "wave" | "decide" | "share" | "group" | "plan" | "gate" | "apply" | "record" | "policy" | "evidence" | "apply-status" | "stale-notes" | "before-merge-done" | "control";
|
|
31
|
+
/** One job the generator names (#5022). */
|
|
32
|
+
export interface OpWavesJobRef {
|
|
33
|
+
/** The name chant gives it. A policy or evidence job's is the job it belongs to's name, as the product named it, with `-policy` or `-evidence`. */
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* `wave`: a wave's one job. `decide`, `share`, `group`: a wide wave's
|
|
37
|
+
* deciding job, a share's job and a job group's (or a group share's)
|
|
38
|
+
* job. `plan`, `gate`, `apply`, `record`: a split wave's jobs before merge
|
|
39
|
+
* (`apply` with `share` or `group` for a wide wave's). `policy` (GitLab),
|
|
40
|
+
* `evidence`: the jobs of a wave's checks. The rest are the jobs after
|
|
41
|
+
* or beside the waves.
|
|
42
|
+
*/
|
|
43
|
+
role: OpWavesJobRole;
|
|
44
|
+
/** The wave's number from 1, and its name, on every job but the stale and control jobs and the before-merge done job. */
|
|
45
|
+
wave?: number;
|
|
46
|
+
waveName?: string;
|
|
47
|
+
share?: number;
|
|
48
|
+
group?: string;
|
|
49
|
+
/** A job of the spec's `rest` wave. */
|
|
50
|
+
rest?: true;
|
|
51
|
+
/** A policy or evidence job: the name of the job it belongs to. */
|
|
52
|
+
of?: string;
|
|
53
|
+
}
|
|
54
|
+
/** A product's job names (#5022): its name for a job, or undefined for chant's. */
|
|
55
|
+
export type OpWavesJobNames = (job: OpWavesJobRef) => string | undefined;
|
|
56
|
+
/** One GitLab stage the generator names (#5022). */
|
|
57
|
+
export interface OpWavesStageRef {
|
|
58
|
+
/** The name chant gives it: `plans`, `wave-<k>-<wave name>`, `before-merge-done`, `control` or `resume`. */
|
|
59
|
+
name: string;
|
|
60
|
+
role: "plans" | "wave" | "before-merge-done" | "control" | "resume";
|
|
61
|
+
wave?: number;
|
|
62
|
+
waveName?: string;
|
|
63
|
+
}
|
|
64
|
+
/** A product's GitLab stage names (#5022): its name for a stage, or undefined for chant's. Two stages may share a name. */
|
|
65
|
+
export type OpWavesStageNames = (stage: OpWavesStageRef) => string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* A product's artifact names (#5022, GitHub and Forgejo). `{job}` is the
|
|
68
|
+
* job's name as the product named it, `{wave}` the wave's number.
|
|
69
|
+
*/
|
|
70
|
+
export interface OpWavesArtifactNames {
|
|
71
|
+
/** A job's outcome file. Default `<spec>-{job}-outcome`. */
|
|
72
|
+
outcome?: string;
|
|
73
|
+
/** A wave's decision, which its share, apply and record jobs download. Default `<spec>-wave-{wave}-decision`. */
|
|
74
|
+
decision?: string;
|
|
75
|
+
/** A split wave's saved plan (#4987). Default `<spec>-wave-{wave}-plan`. */
|
|
76
|
+
plan?: string;
|
|
77
|
+
/** A job's check claims, for its evidence job (#4926). Default `<spec>-{job}-checks`. */
|
|
78
|
+
checks?: string;
|
|
79
|
+
/**
|
|
80
|
+
* GitHub: the pattern a wave job downloads the earlier jobs' outcomes
|
|
81
|
+
* with, such as `terragucci-report-apply-wave-*`. It has to match every
|
|
82
|
+
* earlier outcome artifact. The jobs after the waves download every
|
|
83
|
+
* artifact of the run, and so does every job on Forgejo. Default: every
|
|
84
|
+
* artifact of the run.
|
|
85
|
+
*/
|
|
86
|
+
earlier?: string;
|
|
87
|
+
}
|
|
88
|
+
/** The `workflow_dispatch` inputs of a waves workflow (#4984, #4992), by chant's name. */
|
|
89
|
+
export type OpWavesDispatchInput = "pr" | "head" | "digest" | "wave" | "commit";
|
|
90
|
+
/** The dispatch inputs' names, chant's unless the product gave its own (#5022). */
|
|
91
|
+
export declare function opWavesDispatchInputs(given: Partial<Record<OpWavesDispatchInput, string>> | undefined): Record<OpWavesDispatchInput, string>;
|
|
92
|
+
/** Whether a product renamed any dispatch input (#5022). */
|
|
93
|
+
export declare function opWavesInputsRenamed(inputs: Record<OpWavesDispatchInput, string>): boolean;
|
|
94
|
+
/** The artifact names of a pipeline (#5022), from {@link OpWavesArtifactNames} or chant's. Throws on a template that cannot name one. */
|
|
95
|
+
export declare function opWavesArtifacts(spec: Pick<OpWavesSpec, "name">, given: OpWavesArtifactNames | undefined): {
|
|
96
|
+
outcome(job: string): string;
|
|
97
|
+
decision(wave: number): string;
|
|
98
|
+
plan(wave: number): string;
|
|
99
|
+
checks(job: string): string;
|
|
100
|
+
earlier?: string;
|
|
101
|
+
};
|
|
102
|
+
/** The file a waves workflow goes in (#5022): `workflowFile`, else `<spec>.yml`. */
|
|
103
|
+
export declare function opWavesWorkflowFile(spec: Pick<OpWavesSpec, "name">, file: string | undefined): string;
|
|
104
|
+
/** A job of a pipeline as {@link opWavesNamer} reads it: an `opWaveJobs` job, or a split one with its phase. */
|
|
105
|
+
type NamedJob = OpWaveJob & {
|
|
106
|
+
phase?: "plan" | "gate" | "apply" | "record";
|
|
107
|
+
rest?: true;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The names of a pipeline's jobs (#5022): {@link OpWavesJobNames}, else
|
|
111
|
+
* chant's. `name` gives one job's (the same each time it is asked),
|
|
112
|
+
* `jobs` names a list of wave jobs and their `needs`, and `claim` keeps a
|
|
113
|
+
* name the generator writes as it is. Throws on a name the forge cannot
|
|
114
|
+
* take and on two jobs that share one.
|
|
115
|
+
*/
|
|
116
|
+
export declare function opWavesNamer(spec: Pick<OpWavesSpec, "waves">, forge: "github" | "forgejo" | "gitlab", given: OpWavesJobNames | undefined): {
|
|
117
|
+
name(ref: OpWavesJobRef): string;
|
|
118
|
+
jobs<T extends NamedJob>(jobs: readonly T[]): T[];
|
|
119
|
+
claim(name: string): string;
|
|
120
|
+
};
|
|
121
|
+
export {};
|
|
122
|
+
//# sourceMappingURL=op-waves-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"op-waves-names.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzD,kFAAkF;AAClF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,SAAS,CAAC;AAEd,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,mJAAmJ;IACnJ,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,IAAI,EAAE,cAAc,CAAC;IACrB,yHAAyH;IACzH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;I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
|
+
* plan keeps them (#5003).
|
|
4
|
+
*
|
|
5
|
+
* Maintainer decision (2026-11-11, on #5000): chant keeps a product's
|
|
6
|
+
* names. A product whose wave jobs live in its own workflow beside its plan
|
|
7
|
+
* jobs (terragucci's `apply-wave-<k>` in `terragucci.yml`) hands the
|
|
8
|
+
* generators the names, and they render them, so the product never renames
|
|
9
|
+
* or edits what chant wrote:
|
|
10
|
+
*
|
|
11
|
+
* - `jobNames`: a name for each job the generator writes (a wave's job, its
|
|
12
|
+
* deciding, share and job group jobs, a split wave's plan, gate, apply and
|
|
13
|
+
* record jobs, the policy and evidence jobs, the apply status, stale,
|
|
14
|
+
* before-merge done and control jobs). Every `needs:`, `if:`, artifact
|
|
15
|
+
* `{job}` and `--from-job` follows it.
|
|
16
|
+
* - `stageNames` (GitLab): a name for each stage.
|
|
17
|
+
* - `artifactNames` (GitHub, Forgejo): the outcome, decision, saved plan and
|
|
18
|
+
* check claims artifacts, and the pattern a wave job downloads the
|
|
19
|
+
* earlier outcomes with.
|
|
20
|
+
* - `workflowFile`, `runIf` and `dispatchInputs`: the jobs go in the
|
|
21
|
+
* product's workflow, each running only on a push `runIf` admits (or a
|
|
22
|
+
* before-merge or follow-on dispatch), and the dispatch inputs take the
|
|
23
|
+
* product's names so they never meet its own. On GitLab `runIf` joins
|
|
24
|
+
* every rule of every job.
|
|
25
|
+
*
|
|
26
|
+
* Left out, each is chant's, and the generators render as before.
|
|
27
|
+
*/
|
|
28
|
+
/** The dispatch inputs' names, chant's unless the product gave its own (#5022). */
|
|
29
|
+
export function opWavesDispatchInputs(given) {
|
|
30
|
+
const out = { pr: "pr", head: "head", digest: "digest", wave: "wave", commit: "commit" };
|
|
31
|
+
const seen = new Map();
|
|
32
|
+
for (const key of Object.keys(out)) {
|
|
33
|
+
const v = given?.[key];
|
|
34
|
+
if (given && key in given && (typeof v !== "string" || !/^[A-Za-z_][A-Za-z0-9_-]*$/.test(v)))
|
|
35
|
+
throw new Error(`dispatchInputs.${key} ${JSON.stringify(v)} is not an input name of letters, digits, _ and -, starting with a letter or _`);
|
|
36
|
+
if (v !== undefined)
|
|
37
|
+
out[key] = v;
|
|
38
|
+
const other = seen.get(out[key]);
|
|
39
|
+
if (other !== undefined)
|
|
40
|
+
throw new Error(`dispatchInputs names two inputs ${out[key]}: ${other} and ${key}`);
|
|
41
|
+
seen.set(out[key], key);
|
|
42
|
+
}
|
|
43
|
+
for (const key of Object.keys(given ?? {}))
|
|
44
|
+
if (!(key in out))
|
|
45
|
+
throw new Error(`dispatchInputs.${key} is none of pr, head, digest, wave and commit`);
|
|
46
|
+
return out;
|
|
47
|
+
}
|
|
48
|
+
/** Whether a product renamed any dispatch input (#5022). */
|
|
49
|
+
export function opWavesInputsRenamed(inputs) {
|
|
50
|
+
return Object.entries(inputs).some(([k, v]) => k !== v);
|
|
51
|
+
}
|
|
52
|
+
const ARTIFACT = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
53
|
+
/** The artifact names of a pipeline (#5022), from {@link OpWavesArtifactNames} or chant's. Throws on a template that cannot name one. */
|
|
54
|
+
export function opWavesArtifacts(spec, given) {
|
|
55
|
+
const t = {
|
|
56
|
+
outcome: given?.outcome ?? `${spec.name}-{job}-outcome`,
|
|
57
|
+
decision: given?.decision ?? `${spec.name}-wave-{wave}-decision`,
|
|
58
|
+
plan: given?.plan ?? `${spec.name}-wave-{wave}-plan`,
|
|
59
|
+
checks: given?.checks ?? `${spec.name}-{job}-checks`,
|
|
60
|
+
};
|
|
61
|
+
const marks = { outcome: "{job}", decision: "{wave}", plan: "{wave}", checks: "{job}" };
|
|
62
|
+
for (const key of Object.keys(marks)) {
|
|
63
|
+
if (given?.[key] === undefined)
|
|
64
|
+
continue;
|
|
65
|
+
const v = t[key];
|
|
66
|
+
if (!v.includes(marks[key]) || !ARTIFACT.test(v.replaceAll("{job}", "j").replaceAll("{wave}", "1"))) {
|
|
67
|
+
throw new Error(`artifactNames.${key} ${JSON.stringify(v)} holds ${marks[key]} and is otherwise letters, digits, '.', '_' and '-'`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const distinct = new Set([t.outcome.replace("{job}", "x"), t.checks.replace("{job}", "x")]);
|
|
71
|
+
if (distinct.size < 2)
|
|
72
|
+
throw new Error(`artifactNames gives the outcome and the check claims one name, ${JSON.stringify(t.outcome)}`);
|
|
73
|
+
if (t.decision === t.plan)
|
|
74
|
+
throw new Error(`artifactNames gives the decision and the saved plan one name, ${JSON.stringify(t.plan)}`);
|
|
75
|
+
const earlier = given?.earlier;
|
|
76
|
+
if (earlier !== undefined && !/^[A-Za-z0-9._*-]+$/.test(earlier))
|
|
77
|
+
throw new Error(`artifactNames.earlier ${JSON.stringify(earlier)} is a pattern of letters, digits, '.', '_', '-' and '*'`);
|
|
78
|
+
return {
|
|
79
|
+
outcome: (job) => t.outcome.replaceAll("{job}", job),
|
|
80
|
+
decision: (wave) => t.decision.replaceAll("{wave}", String(wave)),
|
|
81
|
+
plan: (wave) => t.plan.replaceAll("{wave}", String(wave)),
|
|
82
|
+
checks: (job) => t.checks.replaceAll("{job}", job),
|
|
83
|
+
...(earlier !== undefined ? { earlier } : {}),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** The file a waves workflow goes in (#5022): `workflowFile`, else `<spec>.yml`. */
|
|
87
|
+
export function opWavesWorkflowFile(spec, file) {
|
|
88
|
+
if (file === undefined)
|
|
89
|
+
return `${spec.name}.yml`;
|
|
90
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._-]*\.ya?ml$/.test(file))
|
|
91
|
+
throw new Error(`workflowFile ${JSON.stringify(file)} is a workflow file's name, like terragucci.yml, in the forge's workflow directory`);
|
|
92
|
+
return file;
|
|
93
|
+
}
|
|
94
|
+
const GITLAB_KEYWORDS = new Set(["default", "include", "stages", "variables", "workflow", "image", "services", "cache", "before_script", "after_script", "spec", "pages"]);
|
|
95
|
+
/** What a job is, for its {@link OpWavesJobRef}. */
|
|
96
|
+
function roleOf(job) {
|
|
97
|
+
if (job.phase !== undefined)
|
|
98
|
+
return job.phase;
|
|
99
|
+
return job.kind === "share" && job.group !== undefined ? "group" : job.kind;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The names of a pipeline's jobs (#5022): {@link OpWavesJobNames}, else
|
|
103
|
+
* chant's. `name` gives one job's (the same each time it is asked),
|
|
104
|
+
* `jobs` names a list of wave jobs and their `needs`, and `claim` keeps a
|
|
105
|
+
* name the generator writes as it is. Throws on a name the forge cannot
|
|
106
|
+
* take and on two jobs that share one.
|
|
107
|
+
*/
|
|
108
|
+
export function opWavesNamer(spec, forge, given) {
|
|
109
|
+
const github = forge !== "gitlab";
|
|
110
|
+
const byKey = new Map();
|
|
111
|
+
const owner = new Map();
|
|
112
|
+
const take = (key, name, what) => {
|
|
113
|
+
const other = owner.get(name);
|
|
114
|
+
if (other !== undefined && other !== key)
|
|
115
|
+
throw new Error(`the Op waves pipeline names two jobs ${name}: ${other.split("|")[1]} and ${what}`);
|
|
116
|
+
owner.set(name, key);
|
|
117
|
+
byKey.set(key, name);
|
|
118
|
+
return name;
|
|
119
|
+
};
|
|
120
|
+
const name = (ref) => {
|
|
121
|
+
const key = `${ref.role}|${ref.name}`;
|
|
122
|
+
const known = byKey.get(key);
|
|
123
|
+
if (known !== undefined)
|
|
124
|
+
return known;
|
|
125
|
+
const mine = given?.(ref);
|
|
126
|
+
if (mine !== undefined) {
|
|
127
|
+
const ok = typeof mine === "string" && (github ? /^[A-Za-z_][A-Za-z0-9_-]*$/.test(mine) : /^[A-Za-z0-9_][A-Za-z0-9_.-]*$/.test(mine) && !GITLAB_KEYWORDS.has(mine));
|
|
128
|
+
if (!ok)
|
|
129
|
+
throw new Error(`jobNames gives the ${ref.role} job ${ref.name} the name ${JSON.stringify(mine)}, which is not a job name of letters, digits, _ and -, starting with a letter or _${github ? "" : " or a digit, and no GitLab keyword"}`);
|
|
130
|
+
}
|
|
131
|
+
return take(key, mine ?? ref.name, ref.name);
|
|
132
|
+
};
|
|
133
|
+
const restWave = spec.waves[spec.waves.length - 1]?.rest === true ? spec.waves.length : undefined;
|
|
134
|
+
const jobs = (list) => {
|
|
135
|
+
const renamed = new Map();
|
|
136
|
+
for (const job of list) {
|
|
137
|
+
const ref = {
|
|
138
|
+
name: job.jobName,
|
|
139
|
+
role: roleOf(job),
|
|
140
|
+
wave: job.wave,
|
|
141
|
+
waveName: job.waveName,
|
|
142
|
+
...(job.share !== undefined ? { share: job.share } : {}),
|
|
143
|
+
...(job.group !== undefined ? { group: job.group } : {}),
|
|
144
|
+
...(job.rest || job.wave === restWave ? { rest: true } : {}),
|
|
145
|
+
};
|
|
146
|
+
renamed.set(job.jobName, name(ref));
|
|
147
|
+
}
|
|
148
|
+
return list.map((job) => ({ ...job, jobName: renamed.get(job.jobName), needs: job.needs.map((n) => renamed.get(n) ?? n) }));
|
|
149
|
+
};
|
|
150
|
+
return { name, jobs, claim: (n) => take(`claim|${n}`, n, n) };
|
|
151
|
+
}
|
package/dist/pr-forge-job.d.ts
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import { forgeFromEnv, type ForgeKind, type PrForge } from "./pr-forge.js";
|
|
18
18
|
/** The pull request's head from a GitHub-style `pull_request` run's event payload, or undefined for any other run. */
|
|
19
19
|
export declare function pullRequestEventHead(env: Record<string, string | undefined>): string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The commit a GitHub `pull_request` run's plan job checked out for `head`
|
|
22
|
+
* when it is not `head` (#5020): the run's merge preview, `GITHUB_SHA`, when
|
|
23
|
+
* `head` is the event's pull request head. The note job names the head, and
|
|
24
|
+
* takes a report for the merge preview as the head's. Undefined on any other
|
|
25
|
+
* run, on Forgejo (whose run is of the head) and on GitLab.
|
|
26
|
+
*/
|
|
27
|
+
export declare function plannedForHead(head: string, env?: Record<string, string | undefined>): string | undefined;
|
|
20
28
|
/** {@link forgeFromEnv}, whose statuses for the run's merge preview go on the pull request's head (#4964). */
|
|
21
29
|
export declare function forgeFromJobEnv(kind: ForgeKind, env?: Record<string, string | undefined>, fetchImpl?: Parameters<typeof forgeFromEnv>[2]): PrForge;
|
|
22
30
|
//# sourceMappingURL=pr-forge-job.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-forge-job.d.ts","sourceRoot":"","sources":["../src/pr-forge-job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAExE,sHAAsH;AACtH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAShG;AAED,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAY/J"}
|
|
1
|
+
{"version":3,"file":"pr-forge-job.d.ts","sourceRoot":"","sources":["../src/pr-forge-job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAExE,sHAAsH;AACtH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAShG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAAG,MAAM,GAAG,SAAS,CAItH;AAED,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAY/J"}
|
package/dist/pr-forge-job.js
CHANGED
|
@@ -29,6 +29,19 @@ export function pullRequestEventHead(env) {
|
|
|
29
29
|
return undefined;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* The commit a GitHub `pull_request` run's plan job checked out for `head`
|
|
34
|
+
* when it is not `head` (#5020): the run's merge preview, `GITHUB_SHA`, when
|
|
35
|
+
* `head` is the event's pull request head. The note job names the head, and
|
|
36
|
+
* takes a report for the merge preview as the head's. Undefined on any other
|
|
37
|
+
* run, on Forgejo (whose run is of the head) and on GitLab.
|
|
38
|
+
*/
|
|
39
|
+
export function plannedForHead(head, env = process.env) {
|
|
40
|
+
const merge = env.GITHUB_SHA;
|
|
41
|
+
if (!merge || merge === head || !/^[0-9a-f]{40,64}$/.test(merge))
|
|
42
|
+
return undefined;
|
|
43
|
+
return pullRequestEventHead(env) === head ? merge : undefined;
|
|
44
|
+
}
|
|
32
45
|
/** {@link forgeFromEnv}, whose statuses for the run's merge preview go on the pull request's head (#4964). */
|
|
33
46
|
export function forgeFromJobEnv(kind, env = process.env, fetchImpl) {
|
|
34
47
|
const forge = forgeFromEnv(kind, env, fetchImpl);
|
package/dist/pr-plan-record.d.ts
CHANGED
|
@@ -26,8 +26,10 @@ export declare const PLAN_RUN_OP = "pr-plan";
|
|
|
26
26
|
export interface PlanRunExpect {
|
|
27
27
|
/** The pipeline's environment, `--env`. */
|
|
28
28
|
env: string;
|
|
29
|
-
/** The
|
|
29
|
+
/** The pull request's head, `--head`. */
|
|
30
30
|
head: string;
|
|
31
|
+
/** The commit the plan job checked out when it is not `head` (#5020): a GitHub `pull_request` run's merge preview. */
|
|
32
|
+
planned?: string;
|
|
31
33
|
/** The target, `--member`. */
|
|
32
34
|
target?: string;
|
|
33
35
|
/** The plan job's result as the forge says it (`needs.<job>.result`, GitLab's job status). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-plan-record.d.ts","sourceRoot":"","sources":["../src/pr-plan-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"pr-plan-record.d.ts","sourceRoot":"","sources":["../src/pr-plan-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AASD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA6CpI"}
|
package/dist/pr-plan-record.js
CHANGED
|
@@ -54,7 +54,7 @@ export function readPlanRunRecord(dir, expect) {
|
|
|
54
54
|
const labels = r.labels && typeof r.labels === "object" && !Array.isArray(r.labels) ? r.labels : {};
|
|
55
55
|
if ((labels.Target ?? undefined) !== expect.target)
|
|
56
56
|
return { refused: `the run record is for target ${JSON.stringify(labels.Target ?? null)}, not ${JSON.stringify(expect.target ?? null)}` };
|
|
57
|
-
if (r.gitSha !== undefined && r.gitSha !== expect.head)
|
|
57
|
+
if (r.gitSha !== undefined && r.gitSha !== expect.head && r.gitSha !== expect.planned)
|
|
58
58
|
return { refused: `the run record is for commit ${JSON.stringify(r.gitSha)}, not ${expect.head}` };
|
|
59
59
|
if (!SHA.test(expect.head))
|
|
60
60
|
return { refused: `the head ${JSON.stringify(expect.head)} is not a full commit` };
|
package/dist/pr-post.d.ts
CHANGED
|
@@ -44,8 +44,14 @@ export interface PlanPostInput {
|
|
|
44
44
|
dir: string;
|
|
45
45
|
/** The pull request, from the forge's event. */
|
|
46
46
|
pr: number;
|
|
47
|
-
/** The
|
|
47
|
+
/** The pull request's head, from the forge's event: the commit the statuses go on. */
|
|
48
48
|
head: string;
|
|
49
|
+
/**
|
|
50
|
+
* The commit the plan job checked out when it is not `head` (#5020): a
|
|
51
|
+
* GitHub `pull_request` run's merge preview (`GITHUB_SHA`). A report, plan
|
|
52
|
+
* note or run record for it counts as the head's.
|
|
53
|
+
*/
|
|
54
|
+
planned?: string;
|
|
49
55
|
env: string;
|
|
50
56
|
member?: string;
|
|
51
57
|
/** The plan status's context (#5003, a product plan's `statusContext`), in place of {@link prStatusContext}'s. */
|
|
@@ -132,7 +138,7 @@ export interface PlanPostResult {
|
|
|
132
138
|
* a plan report for the same pull request, head, environment and member.
|
|
133
139
|
* Returns the report, or why it is not used.
|
|
134
140
|
*/
|
|
135
|
-
export declare function readPlanReport(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "env" | "member">): {
|
|
141
|
+
export declare function readPlanReport(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "planned" | "env" | "member">): {
|
|
136
142
|
report: PrReport;
|
|
137
143
|
} | {
|
|
138
144
|
refused: string;
|
|
@@ -169,7 +175,7 @@ export declare function postPlanReport(input: PlanPostInput): Promise<PlanPostRe
|
|
|
169
175
|
* Read a product's plan note hand-off under `dir` (#4799) and check it is the
|
|
170
176
|
* one the caller ran, as {@link readPlanReport} checks a report.
|
|
171
177
|
*/
|
|
172
|
-
export declare function readPlanNoteHandoff(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "env" | "member">): {
|
|
178
|
+
export declare function readPlanNoteHandoff(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "planned" | "env" | "member">): {
|
|
173
179
|
handoff: PrPlanNoteHandoff | PrPlanBodyHandoff;
|
|
174
180
|
} | {
|
|
175
181
|
refused: string;
|
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;AAEvG,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAkD,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,M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M,CAAC;IACX,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAiD/G"}
|
package/dist/pr-post.js
CHANGED
|
@@ -43,6 +43,8 @@ import { isPlanNote, PLAN_BODY_LIMIT, PLAN_SUBJECT_LIMIT, planNoteMarker, planSu
|
|
|
43
43
|
/** The plan report's file under the report directory. */
|
|
44
44
|
export const PR_PLAN_REPORT_FILE = "pr-plan.json";
|
|
45
45
|
const SHA = /^[0-9a-f]{40}$/;
|
|
46
|
+
/** Whether `sha` is the head a caller posts for, or the merge preview its plan job checked out for it (#5020). */
|
|
47
|
+
const isPlannedHead = (sha, input) => sha === input.head || (input.planned !== undefined && sha === input.planned);
|
|
46
48
|
/**
|
|
47
49
|
* Read the plan report under `dir` and check it is the one the caller ran:
|
|
48
50
|
* a plan report for the same pull request, head, environment and member.
|
|
@@ -66,7 +68,7 @@ export function readPlanReport(input) {
|
|
|
66
68
|
return { refused: `the report is not a plan report (stage ${JSON.stringify(r.stage)})` };
|
|
67
69
|
if (r.pr !== input.pr)
|
|
68
70
|
return { refused: `the report is for pull request ${JSON.stringify(r.pr)}, not ${input.pr}` };
|
|
69
|
-
if (typeof r.head !== "string" || !SHA.test(r.head) || r.head
|
|
71
|
+
if (typeof r.head !== "string" || !SHA.test(r.head) || !isPlannedHead(r.head, input))
|
|
70
72
|
return { refused: `the report is for head ${JSON.stringify(r.head)}, not ${input.head}` };
|
|
71
73
|
if (r.env !== input.env)
|
|
72
74
|
return { refused: `the report is for environment ${JSON.stringify(r.env)}, not ${input.env}` };
|
|
@@ -278,6 +280,7 @@ async function keepRunRecord(input, warnings) {
|
|
|
278
280
|
const read = readPlanRunRecord(input.dir, {
|
|
279
281
|
env: input.env,
|
|
280
282
|
head: input.head,
|
|
283
|
+
...(input.planned ? { planned: input.planned } : {}),
|
|
281
284
|
...(input.member ? { target: input.member } : {}),
|
|
282
285
|
...(input.result ? { result: input.result } : {}),
|
|
283
286
|
...(input.recordRun.origin ? { origin: input.recordRun.origin } : {}),
|
|
@@ -358,7 +361,7 @@ export function readPlanNoteHandoff(input) {
|
|
|
358
361
|
return { refused: `the plan note follows contract ${JSON.stringify(r.contract)}, and this chant reads ${PR_PLAN_NOTE_CONTRACT}` };
|
|
359
362
|
if (r.pr !== input.pr)
|
|
360
363
|
return { refused: `the plan note is for pull request ${JSON.stringify(r.pr)}, not ${input.pr}` };
|
|
361
|
-
if (typeof r.head !== "string" || !SHA.test(r.head) || r.head
|
|
364
|
+
if (typeof r.head !== "string" || !SHA.test(r.head) || !isPlannedHead(r.head, input))
|
|
362
365
|
return { refused: `the plan note is for head ${JSON.stringify(r.head)}, not ${input.head}` };
|
|
363
366
|
if (r.env !== input.env)
|
|
364
367
|
return { refused: `the plan note is for environment ${JSON.stringify(r.env)}, not ${input.env}` };
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export declare const NEXT_RELEASE = "0.124.
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.92";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export declare const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for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a,CAAC;AAEtD,6PAA6P;AAC7P,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,wNAAwN;AACxN,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,oQAAoQ;AACpQ,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,mSAAmS;AACnS,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,6OAA6O;AAC7O,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,6OAA6O;AAC7O,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,yNAAyN;AACzN,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAEtD,wUAAwU;AACxU,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,6XAA6X;AAC7X,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,wTAAwT;AACxT,eAAO,MAAM,gCAAgC,aAAa,CAAC;AAE3D,geAAge;AAChe,eAAO,MAAM,6BAA6B,aAAa,CAAC"}
|
package/dist/release-floors.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export const NEXT_RELEASE = "0.124.
|
|
22
|
+
export const NEXT_RELEASE = "0.124.92";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
@@ -151,13 +151,13 @@ export const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
|
|
|
151
151
|
/** 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). */
|
|
152
152
|
export const ACTOR_ORDER_FLOOR = "0.124.89";
|
|
153
153
|
/** 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). */
|
|
154
|
-
export const ACTOR_GIT_ENV_FLOOR =
|
|
154
|
+
export const ACTOR_GIT_ENV_FLOOR = "0.124.91";
|
|
155
155
|
/** 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). */
|
|
156
156
|
export const CI_BASE_REF_FLOOR = "0.124.89";
|
|
157
157
|
/** 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). */
|
|
158
158
|
export const PLANNED_FILES_FLOOR = "0.124.89";
|
|
159
159
|
/** 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). */
|
|
160
|
-
export const PLANNED_BYTES_FLOOR =
|
|
160
|
+
export const PLANNED_BYTES_FLOOR = "0.124.91";
|
|
161
161
|
/** 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). */
|
|
162
162
|
export const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
|
|
163
163
|
/** 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). */
|
|
@@ -169,4 +169,4 @@ export const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
|
|
|
169
169
|
/** 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). */
|
|
170
170
|
export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
|
|
171
171
|
/** 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). */
|
|
172
|
-
export const TERRAFORM_COMMAND_TRACE_FLOOR =
|
|
172
|
+
export const TERRAFORM_COMMAND_TRACE_FLOOR = "0.124.91";
|