@intentius/chant 0.124.88 → 0.124.89
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 +36 -1
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +39 -1
- package/dist/chant-install.d.ts.map +1 -1
- package/dist/chant-install.js +1 -2
- package/dist/ci-base.d.ts +30 -0
- package/dist/ci-base.d.ts.map +1 -0
- package/dist/ci-base.js +33 -0
- package/dist/ci-comment-commands.d.ts +177 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +325 -0
- package/dist/ci-comment-replies.d.ts +40 -0
- package/dist/ci-comment-replies.d.ts.map +1 -0
- package/dist/ci-comment-replies.js +59 -0
- package/dist/ci-evidence-from-job.d.ts +25 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -1
- package/dist/ci-evidence-from-job.js +43 -2
- package/dist/ci-evidence-jobs.d.ts +30 -1
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +46 -3
- package/dist/ci-image.d.ts +21 -4
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +62 -10
- package/dist/ci-note-commands.d.ts +63 -3
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +69 -35
- package/dist/ci-product-words.d.ts +42 -0
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +25 -0
- package/dist/ci-product.d.ts +31 -0
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +34 -4
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +29 -2
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +2 -1
- package/dist/cli/handlers/ci-check.d.ts +1 -1
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +17 -7
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +33 -7
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +3 -1
- package/dist/cli/handlers/generated-check.d.ts +8 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -1
- package/dist/cli/handlers/generated-check.js +31 -1
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +121 -4
- package/dist/cli/handlers/pr-comment.d.ts +21 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +112 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +6 -3
- package/dist/cli/handlers/pr.d.ts +23 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +55 -9
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +2 -1
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +11 -2
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +28 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +2 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +24 -2
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +16 -0
- package/dist/cli/registry.d.ts +11 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -1
- package/dist/components/pr-checks.d.ts +70 -6
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +74 -13
- package/dist/components/pr-pipeline.d.ts +16 -12
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +3 -11
- package/dist/components/product-pipeline.d.ts +42 -1
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +64 -12
- package/dist/components/product-plan.d.ts +190 -5
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +220 -39
- package/dist/drift-record.d.ts +7 -0
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +19 -0
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +54 -31
- package/dist/forge-check/contract.d.ts +11 -1
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +4 -1
- package/dist/forge-check/index.d.ts +2 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +2 -0
- package/dist/gate-resume-run.d.ts +9 -1
- package/dist/gate-resume-run.d.ts.map +1 -1
- package/dist/gate-resume-run.js +26 -3
- package/dist/generated-check.d.ts +18 -4
- package/dist/generated-check.d.ts.map +1 -1
- package/dist/generated-check.js +37 -5
- package/dist/image-pins.d.ts +26 -0
- package/dist/image-pins.d.ts.map +1 -0
- package/dist/image-pins.js +19 -0
- package/dist/lexicon.d.ts +11 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +11 -0
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +30 -3
- package/dist/lifecycle/publish-npm.d.ts +11 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +27 -1
- package/dist/lifecycle/reach-locks.d.ts +131 -0
- package/dist/lifecycle/reach-locks.d.ts.map +1 -0
- package/dist/lifecycle/reach-locks.js +118 -0
- package/dist/lifecycle/release-cut.d.ts +3 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +15 -0
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +1 -2
- package/dist/notify-product.d.ts +12 -3
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +10 -6
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +2 -1
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +2 -1
- package/dist/op/index.d.ts +2 -0
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-evidence-jobs.d.ts +6 -1
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +9 -3
- package/dist/op/op-waves-render-spec.d.ts +100 -0
- package/dist/op/op-waves-render-spec.d.ts.map +1 -0
- package/dist/op/op-waves-render-spec.js +162 -0
- package/dist/op/op-waves-run.d.ts +2 -0
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +2 -1
- package/dist/op/op-waves.d.ts +4 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +4 -1
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +59 -3
- package/dist/op/wave-stop.d.ts +64 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +127 -0
- package/dist/planned-files.d.ts +76 -0
- package/dist/planned-files.d.ts.map +1 -0
- package/dist/planned-files.js +108 -0
- package/dist/pr-forge-job.d.ts +22 -0
- package/dist/pr-forge-job.d.ts.map +1 -0
- package/dist/pr-forge-job.js +46 -0
- package/dist/pr-loop.d.ts +3 -6
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +4 -81
- package/dist/pr-plan-note.d.ts +97 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +94 -1
- package/dist/pr-post.d.ts +28 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +145 -13
- package/dist/pr-status.d.ts +16 -0
- package/dist/pr-status.d.ts.map +1 -0
- package/dist/pr-status.js +90 -0
- package/dist/ref-gate-init.d.ts +16 -2
- package/dist/ref-gate-init.d.ts.map +1 -1
- package/dist/ref-gate-init.js +24 -13
- package/dist/release-floors.d.ts +37 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +61 -25
- package/dist/render-module.d.ts +15 -0
- package/dist/render-module.d.ts.map +1 -0
- package/dist/render-module.js +73 -0
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +1 -2
- package/dist/wave-runtime.mjs +304 -301
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +3 -2
- package/dist/workspace/release-train.d.ts.map +1 -1
- package/dist/workspace/release-train.js +2 -1
- package/dist/workspace/release-workflow.d.ts +4 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +10 -7
- package/dist/workspace/trust/check-evidence-report.d.ts +7 -2
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +15 -8
- package/dist/workspace/trust/ref-gate-cli.d.ts +10 -1
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +30 -10
- package/dist/workspace/workspace-run.d.ts.map +1 -1
- package/dist/workspace/workspace-run.js +2 -1
- package/package.json +1 -1
- package/src/actor.test.ts +68 -2
- package/src/actor.ts +61 -1
- package/src/chant-install.test.ts +2 -3
- package/src/chant-install.ts +1 -2
- package/src/ci-base.test.ts +41 -0
- package/src/ci-base.ts +43 -0
- package/src/ci-comment-commands.test.ts +376 -0
- package/src/ci-comment-commands.ts +389 -0
- package/src/ci-comment-replies.ts +78 -0
- package/src/ci-commit.test.ts +2 -3
- package/src/ci-evidence-from-job.test.ts +18 -0
- package/src/ci-evidence-from-job.ts +58 -2
- package/src/ci-evidence-jobs.ts +50 -5
- package/src/ci-image.test.ts +130 -9
- package/src/ci-image.ts +85 -12
- package/src/ci-note-commands.ts +104 -41
- package/src/ci-product-words.ts +59 -0
- package/src/ci-product.ts +40 -4
- package/src/cli/commands/build.test.ts +41 -0
- package/src/cli/commands/build.ts +27 -2
- package/src/cli/handlers/approve.ts +2 -1
- package/src/cli/handlers/ci-check.ts +19 -7
- package/src/cli/handlers/ci-evidence.ts +29 -8
- package/src/cli/handlers/components.ts +3 -1
- package/src/cli/handlers/generated-check.ts +31 -1
- package/src/cli/handlers/lock-reach.test.ts +103 -0
- package/src/cli/handlers/lock.ts +100 -4
- package/src/cli/handlers/pr-comment.ts +104 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +50 -10
- package/src/cli/handlers/promote.ts +2 -1
- package/src/cli/handlers/release.e2e.test.ts +35 -0
- package/src/cli/handlers/release.ts +14 -2
- package/src/cli/handlers/run-wave.ts +28 -2
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +24 -2
- package/src/cli/parse-args.ts +12 -0
- package/src/cli/registry.ts +11 -0
- package/src/components/auto-release.ts +2 -1
- package/src/components/pr-checks.ts +112 -17
- package/src/components/pr-pipeline.ts +17 -15
- package/src/components/product-pipeline.ts +93 -11
- package/src/components/product-plan.test.ts +40 -2
- package/src/components/product-plan.ts +331 -45
- package/src/drift-record.test.ts +20 -0
- package/src/drift-record.ts +16 -0
- package/src/floor-table.data.ts +54 -31
- package/src/forge-check/contract.ts +12 -1
- package/src/forge-check/forge-check.test.ts +17 -0
- package/src/forge-check/index.ts +2 -0
- package/src/gate-resume-run.ts +27 -3
- package/src/generated-check.e2e.test.ts +21 -1
- package/src/generated-check.test.ts +66 -0
- package/src/generated-check.ts +51 -10
- package/src/image-pins.ts +31 -0
- package/src/lexicon.ts +11 -0
- package/src/lifecycle/git.test.ts +48 -0
- package/src/lifecycle/git.ts +27 -4
- package/src/lifecycle/publish-npm.ts +31 -1
- package/src/lifecycle/reach-locks.test.ts +87 -0
- package/src/lifecycle/reach-locks.ts +169 -0
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images.test.ts +56 -0
- package/src/lifecycle/release-images.ts +1 -2
- package/src/notify-product.ts +19 -8
- package/src/op/activities/source-release.ts +2 -1
- package/src/op/activities/source-rollback.ts +2 -1
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/index.ts +10 -0
- package/src/op/op-waves-evidence-jobs.ts +10 -4
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +160 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +2 -1
- package/src/op/op-waves.ts +5 -2
- package/src/op/schedule-overdue.test.ts +43 -0
- package/src/op/schedule-overdue.ts +57 -3
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +137 -0
- package/src/planned-files.test.ts +80 -0
- package/src/planned-files.ts +134 -0
- package/src/pr-forge-job.test.ts +53 -0
- package/src/pr-forge-job.ts +46 -0
- package/src/pr-loop-narrowed.test.ts +2 -1
- package/src/pr-loop-words.test.ts +2 -1
- package/src/pr-loop.test.ts +1 -2
- package/src/pr-loop.ts +4 -80
- package/src/pr-plan-note.ts +155 -3
- package/src/pr-post-replan.test.ts +144 -0
- package/src/pr-post-subject.test.ts +230 -0
- package/src/pr-post.test.ts +2 -1
- package/src/pr-post.ts +150 -15
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +30 -11
- package/src/release-floors.ts +78 -25
- package/src/render-module.ts +73 -0
- package/src/state-migration-record.test.ts +2 -3
- package/src/state-migration.ts +1 -2
- package/src/workspace/ci-green-cli.ts +3 -2
- package/src/workspace/ci-green-workflow.test.ts +32 -1
- package/src/workspace/release-train.ts +2 -1
- package/src/workspace/release-workflow.test.ts +36 -5
- package/src/workspace/release-workflow.ts +10 -7
- package/src/workspace/trust/check-evidence-report.ts +15 -8
- package/src/workspace/trust/check-evidence.test.ts +5 -0
- package/src/workspace/trust/ref-gate-cli.ts +30 -8
- package/src/workspace/trust/ref-gate-pieces.test.ts +46 -1
- package/src/workspace/trust/ref-gate.test.ts +10 -0
- package/src/workspace/workspace-run.ts +2 -1
|
@@ -33,7 +33,15 @@
|
|
|
33
33
|
*
|
|
34
34
|
* The commit is the one the plan job checked out and every other status of
|
|
35
35
|
* the loop names: `github.sha` on GitHub and Forgejo, `CI_COMMIT_SHA` in a
|
|
36
|
-
* GitLab merge request pipeline.
|
|
36
|
+
* GitLab merge request pipeline. On a GitHub `pull_request` run that is the
|
|
37
|
+
* merge preview, and the status goes on the pull request's head, where the
|
|
38
|
+
* forge shows and requires it (#4964, ../pr-forge-job.ts).
|
|
39
|
+
*
|
|
40
|
+
* #4964: a workspace member's pipeline takes all three. The check job runs
|
|
41
|
+
* in the member's directory, the product's own service containers,
|
|
42
|
+
* variables, lines and report directory come with `PrCheckJobOptions`, and
|
|
43
|
+
* a product's own workflow renders the jobs through the lexicons'
|
|
44
|
+
* `productCheckJobs`.
|
|
37
45
|
*/
|
|
38
46
|
import { GITHUB_JOB_TOKEN } from "../ci-jobs.js";
|
|
39
47
|
import { assertPipelineEvidence, evidenceIdTokens, evidenceKeyEnv, evidenceKeyless, gitlabOpenEvidenceDir, openEvidenceLines, planEvidenceLines } from "../ci-evidence-jobs.js";
|
|
@@ -48,16 +56,62 @@ export const PR_REF_GATE_JOB = "ref-gate";
|
|
|
48
56
|
export const PR_CHECK_REPORT_DIR = ".chant/check";
|
|
49
57
|
/** The artifact the check report is kept as. */
|
|
50
58
|
export const PR_CHECK_ARTIFACT = "chant-pr-check";
|
|
51
|
-
/**
|
|
59
|
+
/** One shell word: as it is when it needs no quoting, else in single quotes. */
|
|
60
|
+
function shellWord(word) {
|
|
61
|
+
return /^[A-Za-z0-9._\/=:@+,-]+$/.test(word) ? word : `'${word.replace(/'/g, `'\\''`)}'`;
|
|
62
|
+
}
|
|
63
|
+
/** The variables a check job's own `env` may not set: the ones the job and its handover read, and the credentials it drops. */
|
|
64
|
+
const CHECK_RESERVED_ENV = /^(BASE_SHA|HEAD_SHA|CHECK_RESULT|CHANT_RUNNER_KEY|CHANT_RUNNER_IDENTITY|CHANT_LOCAL_EVIDENCE_KEY|CHANT_CHECKOUT_TOKEN|GITHUB_TOKEN|GH_TOKEN|FORGEJO_TOKEN|GITLAB_TOKEN|CI_JOB_TOKEN|CHANT_FORGE_TOKEN|ACTIONS_ID_TOKEN_REQUEST_(URL|TOKEN))$/;
|
|
65
|
+
/** Refuse check job settings no job could hold (#4964). */
|
|
66
|
+
function assertCheckJobOptions(opts) {
|
|
67
|
+
if (opts.dir !== undefined && (!/^[A-Za-z0-9._][A-Za-z0-9._\/-]*$/.test(opts.dir) || opts.dir.split("/").includes(".."))) {
|
|
68
|
+
throw new Error(`the check job's report directory ${JSON.stringify(opts.dir)} is not a relative path inside the checkout`);
|
|
69
|
+
}
|
|
70
|
+
for (const a of opts.args ?? []) {
|
|
71
|
+
if (a === "" || /[\0\n]/.test(a) || a === "--base" || a === "--output" || a === "-o")
|
|
72
|
+
throw new Error(`the check job's argument ${JSON.stringify(a)} is not one it takes: --base and --output are its own`);
|
|
73
|
+
}
|
|
74
|
+
const names = new Set();
|
|
75
|
+
for (const s of opts.services ?? []) {
|
|
76
|
+
if (!/^[a-z0-9][a-z0-9._-]*$/.test(s.name))
|
|
77
|
+
throw new Error(`the check job's service name ${JSON.stringify(s.name)} is not a host name: lower-case letters, digits, . _ -`);
|
|
78
|
+
if (names.has(s.name))
|
|
79
|
+
throw new Error(`the check job names service ${s.name} twice`);
|
|
80
|
+
names.add(s.name);
|
|
81
|
+
if (!s.image.trim() || /\s/.test(s.image))
|
|
82
|
+
throw new Error(`the check job's service ${s.name} needs an image reference`);
|
|
83
|
+
}
|
|
84
|
+
for (const name of Object.keys(opts.env ?? {})) {
|
|
85
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(name))
|
|
86
|
+
throw new Error(`the check job's variable ${JSON.stringify(name)} is not a variable name`);
|
|
87
|
+
if (CHECK_RESERVED_ENV.test(name))
|
|
88
|
+
throw new Error(`the check job sets ${name} itself, or drops it before the hooks run, so checkJob.env cannot name it`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The check job for `forge` (#4935), with the check evidence job when
|
|
93
|
+
* `evidence` names a runner identity. #4964: the product's services,
|
|
94
|
+
* variables, lines and report directory (`PrCheckJobOptions`), and for a
|
|
95
|
+
* workspace member's GitLab file (`member`) the jobs named
|
|
96
|
+
* `<member>-check` and `<member>-check-evidence`, with the report read from
|
|
97
|
+
* the artifact at the member's `reportPath`, as GitLab includes every
|
|
98
|
+
* member's file in one pipeline. On GitHub and Forgejo a member's workflow
|
|
99
|
+
* is a file of its own, and the jobs keep their names.
|
|
100
|
+
*/
|
|
52
101
|
export function prCheckJob(forge, opts = {}) {
|
|
53
102
|
assertPipelineEvidence(opts.evidence);
|
|
103
|
+
assertCheckJobOptions(opts);
|
|
54
104
|
const gitlab = forge === "gitlab";
|
|
55
105
|
const base = gitlab ? "$CI_MERGE_REQUEST_DIFF_BASE_SHA" : "${{ github.event.pull_request.base.sha }}";
|
|
106
|
+
const dir = opts.dir ?? PR_CHECK_REPORT_DIR;
|
|
107
|
+
const named = (job) => (gitlab && opts.member ? `${opts.member.name}-${job}` : job);
|
|
56
108
|
const job = {
|
|
57
|
-
jobName: PR_CHECK_JOB,
|
|
58
|
-
command: withProductBin(
|
|
59
|
-
env: { BASE_SHA: base },
|
|
60
|
-
dir
|
|
109
|
+
jobName: named(PR_CHECK_JOB),
|
|
110
|
+
command: withProductBin(`chant ci check --base "$BASE_SHA"${dir === PR_CHECK_REPORT_DIR ? "" : ` --output ${dir}`}${(opts.args ?? []).map((a) => ` ${shellWord(a)}`).join("")}`, opts.bin),
|
|
111
|
+
env: { BASE_SHA: base, ...opts.env },
|
|
112
|
+
dir,
|
|
113
|
+
...(opts.services?.length ? { services: opts.services } : {}),
|
|
114
|
+
...(opts.before?.length ? { before: opts.before } : {}),
|
|
61
115
|
};
|
|
62
116
|
const evidence = opts.evidence;
|
|
63
117
|
if (!evidence)
|
|
@@ -67,15 +121,15 @@ export function prCheckJob(forge, opts = {}) {
|
|
|
67
121
|
if (gitlab) {
|
|
68
122
|
// #4914: the job runs in the target branch's plan notes pipeline and signs every open merge request's
|
|
69
123
|
// settled check job from its artifact; no job of a merge request pipeline holds the key.
|
|
70
|
-
const
|
|
124
|
+
const out = gitlabOpenEvidenceDir(job.jobName);
|
|
71
125
|
return {
|
|
72
126
|
...job,
|
|
73
127
|
evidence: {
|
|
74
|
-
jobName: PR_CHECK_EVIDENCE_JOB,
|
|
128
|
+
jobName: named(PR_CHECK_EVIDENCE_JOB),
|
|
75
129
|
// A fork's check job runs too, as it holds nothing; with noForks (a product plan's forks: "skip") its hooks are not signed for.
|
|
76
|
-
lines: openEvidenceLines({ job:
|
|
130
|
+
lines: openEvidenceLines({ job: job.jobName, dir: opts.member?.reportPath ?? dir, out, ...bin, ...(opts.noForks ? { noForks: true } : {}) }),
|
|
77
131
|
env: key,
|
|
78
|
-
dir,
|
|
132
|
+
dir: out,
|
|
79
133
|
...(evidenceKeyless(evidence) ? { idTokens: evidenceIdTokens(evidence) } : {}),
|
|
80
134
|
},
|
|
81
135
|
};
|
|
@@ -84,7 +138,7 @@ export function prCheckJob(forge, opts = {}) {
|
|
|
84
138
|
...job,
|
|
85
139
|
evidence: {
|
|
86
140
|
jobName: PR_CHECK_EVIDENCE_JOB,
|
|
87
|
-
lines: planEvidenceLines({ dir
|
|
141
|
+
lines: planEvidenceLines({ dir, at: '"$HEAD_SHA"', base: '"$BASE_SHA"', result: '"$CHECK_RESULT"', ...bin }),
|
|
88
142
|
env: { HEAD_SHA: "${{ github.sha }}", BASE_SHA: base, CHECK_RESULT: `\${{ needs.${PR_CHECK_JOB}.result }}`, ...key },
|
|
89
143
|
...(evidenceKeyless(evidence) ? { idToken: true } : {}),
|
|
90
144
|
},
|
|
@@ -94,12 +148,19 @@ export function prCheckJob(forge, opts = {}) {
|
|
|
94
148
|
* The ref gate's status job for `forge` (#4935). `branch` is the target
|
|
95
149
|
* branch on GitHub and Forgejo (default `main`); GitLab's job runs in a
|
|
96
150
|
* pipeline of the target branch and names it from `CI_COMMIT_BRANCH`.
|
|
151
|
+
*
|
|
152
|
+
* #4964: in a workspace member's GitLab file (`member`) the job is
|
|
153
|
+
* `<member>-ref-gate`. Each member's pipeline decides the whole update
|
|
154
|
+
* against the one rule and sets the one status, so the last job to run
|
|
155
|
+
* after the evidence it needs is in sets success; one that ran before
|
|
156
|
+
* another member's evidence was in set failure, and a re-run settles it.
|
|
157
|
+
* None sets success while a required check lacks evidence.
|
|
97
158
|
*/
|
|
98
159
|
export function prRefGateJob(forge, opts = {}) {
|
|
99
160
|
const notes = "'+refs/notes/chant/evidence:refs/notes/chant/evidence'";
|
|
100
161
|
if (forge === "gitlab") {
|
|
101
162
|
return {
|
|
102
|
-
jobName: PR_REF_GATE_JOB,
|
|
163
|
+
jobName: opts.member ? `${opts.member}-${PR_REF_GATE_JOB}` : PR_REF_GATE_JOB,
|
|
103
164
|
// The heads are fetched by the command, one merge request at a time.
|
|
104
165
|
setup: [`git fetch --quiet --no-tags origin ${notes} || true`],
|
|
105
166
|
command: withProductBin('chant workspace ref-gate status --open --ref "refs/heads/$CI_COMMIT_BRANCH" --base "$CI_COMMIT_SHA"', opts.bin),
|
|
@@ -116,4 +177,4 @@ export function prRefGateJob(forge, opts = {}) {
|
|
|
116
177
|
env: { HEAD_SHA: "${{ github.sha }}", BASE_SHA: "${{ github.event.pull_request.base.sha }}", GITHUB_TOKEN: GITHUB_JOB_TOKEN },
|
|
117
178
|
};
|
|
118
179
|
}
|
|
119
|
-
export { CHECK_JOB_FLOOR, GITLAB_OPEN_EVIDENCE_FLOOR, PR_LOOP_EVIDENCE_FLOOR, REF_GATE_STATUS_JOB_FLOOR } from "../release-floors.js";
|
|
180
|
+
export { CHECK_JOB_FLOOR, GITLAB_OPEN_EVIDENCE_FLOOR, MEMBER_SIGNED_CHECKS_FLOOR, PR_LOOP_EVIDENCE_FLOOR, PRODUCT_CHECK_JOBS_FLOOR, REF_GATE_STATUS_JOB_FLOOR } from "../release-floors.js";
|
|
@@ -93,6 +93,7 @@ import { type CiProductWords, type CiProductWordsInput } from "../ci-product-wor
|
|
|
93
93
|
import type { ControlTarget } from "../control/dispatch.js";
|
|
94
94
|
import { type CiResponses } from "../ci-respond.js";
|
|
95
95
|
import type { PipelineEvidence } from "../ci-evidence-jobs.js";
|
|
96
|
+
import type { PrCheckJobOptions } from "./pr-checks.js";
|
|
96
97
|
/** Where both jobs write their reports, kept as a CI artifact. */
|
|
97
98
|
export declare const PR_LOOP_REPORT_DIR = ".chant/pr";
|
|
98
99
|
/**
|
|
@@ -384,31 +385,34 @@ export interface PrLoopPipelineOptions {
|
|
|
384
385
|
* With `checkJob`, the `check-evidence` job signs each passed hook. Set
|
|
385
386
|
* from `--evidence-runner-key-secret`, or `--evidence-identity oidc` with
|
|
386
387
|
* an optional `--evidence-audience`. Absent: nothing is signed, and every
|
|
387
|
-
* job is as before.
|
|
388
|
-
*
|
|
388
|
+
* job is as before. #4964: a workspace member's pipeline plans that member
|
|
389
|
+
* alone, so it signs `plan:<member>` and `policy:<member>`
|
|
390
|
+
* (`memberEvidenceCheck`), which the `refs` rule names for each member.
|
|
389
391
|
*/
|
|
390
392
|
evidence?: PipelineEvidence;
|
|
391
393
|
/**
|
|
392
394
|
* The check job (#4935, ./pr-checks.ts): `chant ci check --base <base>` on
|
|
393
395
|
* the pull request's commit, with no forge token, runner key or OIDC token
|
|
394
|
-
* while the hooks run. Set from `--check-job`.
|
|
395
|
-
*
|
|
396
|
+
* while the hooks run. Set from `--check-job`. #4964: an object gives the
|
|
397
|
+
* job service containers, variables, lines before the check and its own
|
|
398
|
+
* report directory (`PrCheckJobOptions`). In a workspace member's pipeline
|
|
399
|
+
* it runs in the member's directory: the top level's hooks and the
|
|
400
|
+
* member's, each signed by its own name, the same for every member that
|
|
401
|
+
* runs it.
|
|
396
402
|
*/
|
|
397
|
-
checkJob?: boolean;
|
|
403
|
+
checkJob?: boolean | PrCheckJobOptions;
|
|
398
404
|
/**
|
|
399
405
|
* The ref gate's status job (#4935, ./pr-checks.ts): `chant workspace
|
|
400
406
|
* ref-gate status` for the pull request's commit, after the note and the
|
|
401
407
|
* check evidence, so `chant/ref-gate` can be a required status. Set from
|
|
402
|
-
* `--ref-gate-status`.
|
|
408
|
+
* `--ref-gate-status`. #4964: in a member's pipeline it decides the whole
|
|
409
|
+
* update against the one rule, as the root's does, and sets the one
|
|
410
|
+
* status (`prRefGateJob`).
|
|
403
411
|
*/
|
|
404
412
|
refGateStatus?: boolean;
|
|
405
413
|
}
|
|
406
|
-
/**
|
|
407
|
-
|
|
408
|
-
* workspace member's pipeline: a check and its evidence are the commit's,
|
|
409
|
-
* so the root pipeline runs and signs them once.
|
|
410
|
-
*/
|
|
411
|
-
export declare function assertRootChecks(options: Pick<PrLoopPipelineOptions, "evidence" | "checkJob" | "refGateStatus">, member: string | undefined): void;
|
|
414
|
+
/** The check job's own settings from `checkJob` (#4964): undefined when there is no check job, `{}` for `true`. */
|
|
415
|
+
export declare function checkJobOptions(checkJob: boolean | PrCheckJobOptions | undefined): PrCheckJobOptions | undefined;
|
|
412
416
|
/** The `CHANT_RESPOND` value of `respond` (#4629), or undefined when every event is at its default. Throws on a description check with no decide service. */
|
|
413
417
|
export declare function prLoopRespondEnv(options: Pick<PrLoopPipelineOptions, "respond" | "decide">): Record<string, string>;
|
|
414
418
|
/** The variable the comment preview's plan reads the comment from (#4626); never a shell argument. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/pr-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAA+D,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAMxG,OA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wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D;AAOD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,gGAAgG;AAChG,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,kGAAkG;AAClG,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAC1D,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,yGAAyG;IACzG,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,gGAAgG;AAChG,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,qBAA0B,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,CAkC5G"}
|
|
@@ -142,17 +142,9 @@ export function engineSetupLines(perLexicon) {
|
|
|
142
142
|
* artifact carries them.
|
|
143
143
|
*/
|
|
144
144
|
export const PR_LOOP_EVENTS_DIR = `${PR_LOOP_REPORT_DIR}/run-events`;
|
|
145
|
-
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* so the root pipeline runs and signs them once.
|
|
149
|
-
*/
|
|
150
|
-
export function assertRootChecks(options, member) {
|
|
151
|
-
if (!member)
|
|
152
|
-
return;
|
|
153
|
-
const given = [...(options.evidence ? ["evidence"] : []), ...(options.checkJob ? ["checkJob"] : []), ...(options.refGateStatus ? ["refGateStatus"] : [])];
|
|
154
|
-
if (given.length > 0)
|
|
155
|
-
throw new Error(`${given.join(", ")} sign and judge the pull request's commit once, for the whole workspace, so give ${given.length === 1 ? "it" : "them"} on the root pipeline, not member ${member}'s`);
|
|
145
|
+
/** The check job's own settings from `checkJob` (#4964): undefined when there is no check job, `{}` for `true`. */
|
|
146
|
+
export function checkJobOptions(checkJob) {
|
|
147
|
+
return checkJob === true ? {} : checkJob ? checkJob : undefined;
|
|
156
148
|
}
|
|
157
149
|
/** The `CHANT_RESPOND` value of `respond` (#4629), or undefined when every event is at its default. Throws on a description check with no decide service. */
|
|
158
150
|
export function prLoopRespondEnv(options) {
|
|
@@ -31,9 +31,10 @@ import type { CiRunner } from "../ci-jobs.js";
|
|
|
31
31
|
import { type OpAgentSpec } from "../ci-agent.js";
|
|
32
32
|
import { type OpCommitSpec } from "../ci-commit.js";
|
|
33
33
|
import type { CiResponses } from "../ci-respond.js";
|
|
34
|
-
import { type ProductPlanJob, type ProductPlanOptions } from "./product-plan.js";
|
|
34
|
+
import { type ProductPlanJob, type ProductPlanOptions, type ProductPlanReachLock } from "./product-plan.js";
|
|
35
35
|
import { type PipelineEvidence } from "../ci-evidence-jobs.js";
|
|
36
36
|
import { type PrCheckJob, type PrRefGateJob } from "./pr-checks.js";
|
|
37
|
+
import { PR_COMMENT_JOB, type CommentJobs } from "../ci-comment-commands.js";
|
|
37
38
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
38
39
|
export declare const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
39
40
|
/** The waves spec file of op `name`: `.chant/op-waves/<name>.spec.json`. */
|
|
@@ -125,6 +126,30 @@ export interface ProductPipelineOptions extends Omit<PrLoopPipelineOptions, "wor
|
|
|
125
126
|
* Absent: nothing is signed, and the jobs are as before.
|
|
126
127
|
*/
|
|
127
128
|
evidence?: PipelineEvidence;
|
|
129
|
+
/**
|
|
130
|
+
* The comment job (#4946), GitHub and Forgejo: one job on every
|
|
131
|
+
* `/<product>` comment (and every alias's) that answers what no other job
|
|
132
|
+
* of the pipeline takes, with `chant components pr-comment`: a refusal,
|
|
133
|
+
* a command the pipeline has no job for (the words' `replies`, else
|
|
134
|
+
* chant's), and with waves on merge the re-run of a merged pull request's
|
|
135
|
+
* apply. The jobs it leaves comments to are the ones these options write.
|
|
136
|
+
* On GitLab the note-commands job answers every note already; refused
|
|
137
|
+
* there.
|
|
138
|
+
*/
|
|
139
|
+
commentJob?: boolean;
|
|
140
|
+
}
|
|
141
|
+
/** The comment job (#4946): its command, the values it reads, and the comment prefixes that start it. */
|
|
142
|
+
export interface ProductCommentJob {
|
|
143
|
+
jobName: typeof PR_COMMENT_JOB;
|
|
144
|
+
/** `<bin> components pr-comment --forge <forge>`. */
|
|
145
|
+
command: string;
|
|
146
|
+
/** `GITHUB_TOKEN` and {@link COMMENT_JOBS_ENV}. */
|
|
147
|
+
env: Record<string, string>;
|
|
148
|
+
/** What a comment starts with for the job to start: `/<product>`, then each alias. */
|
|
149
|
+
prefixes: string[];
|
|
150
|
+
/** The jobs it leaves comments to. */
|
|
151
|
+
jobs: CommentJobs;
|
|
152
|
+
runner?: CiRunner;
|
|
128
153
|
}
|
|
129
154
|
/** The jobs of one product pipeline. */
|
|
130
155
|
export interface ProductPipelineJobs {
|
|
@@ -238,6 +263,14 @@ export interface ProductPipelineJobs {
|
|
|
238
263
|
refGate?: PrRefGateJob & {
|
|
239
264
|
runner?: CiRunner;
|
|
240
265
|
};
|
|
266
|
+
/** The comment job (#4946), with `commentJob`. */
|
|
267
|
+
comment?: ProductCommentJob;
|
|
268
|
+
/**
|
|
269
|
+
* The reach lock job (#4979), with `locks: "plan"` and the product plan's
|
|
270
|
+
* `reach`: `chant lock --reach`, in place of the lock jobs that read a
|
|
271
|
+
* `PrReport`. The forge lexicons render it.
|
|
272
|
+
*/
|
|
273
|
+
reachLock?: ProductPlanReachLock;
|
|
241
274
|
}
|
|
242
275
|
/** An agent's settings as a product passes them (#4616): {@link OpAgentSpec} without the trigger, which the pipeline names. */
|
|
243
276
|
export interface ProductAgentOptions extends Omit<OpAgentSpec, "on" | "comment" | "branch"> {
|
|
@@ -345,6 +378,14 @@ export interface ComponentWavesSpecOptions {
|
|
|
345
378
|
* names. `pr-apply --wave-gate` runs its waves on it.
|
|
346
379
|
*/
|
|
347
380
|
export declare function componentWavesSpec(components: readonly Pick<DriverComponent, "name" | "dependsOn">[], wordsIn: CiProductWordsInput | CiProductWords, steps: ComponentWaveSteps, options?: ComponentWavesSpecOptions): OpWavesSpec;
|
|
381
|
+
/**
|
|
382
|
+
* The comment job's descriptor (#4946): `chant components pr-comment
|
|
383
|
+
* --forge <forge>` through the words' bin, the jobs it leaves comments to as
|
|
384
|
+
* {@link COMMENT_JOBS_ENV}, and the comment prefixes the forge's `if:`
|
|
385
|
+
* starts it on. Throws on GitLab, whose note-commands job answers every
|
|
386
|
+
* note.
|
|
387
|
+
*/
|
|
388
|
+
export declare function productCommentJob(forge: ForgeKind, words: CiProductWords, jobs: CommentJobs): ProductCommentJob;
|
|
348
389
|
/** A shell line with the product's bin in place of `chant`, for a product's own jobs beside these. */
|
|
349
390
|
export declare function productCommand(words: CiProductWords, line: string): string;
|
|
350
391
|
//# sourceMappingURL=product-pipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/product-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAgE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChI,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,
|
|
1
|
+
{"version":3,"file":"product-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/product-pipeline.ts"],"names":[],"mappings":"AA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BAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,GAAG,iBAAiB,CAU/G;AAED,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1E"}
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
import { layerWaves } from "../gated-waves.js";
|
|
24
24
|
import { opWaveBinArgv, opWaveJobs, opWavesControlTarget } from "../op/op-waves.js";
|
|
25
25
|
import { controlNoteCheckout } from "../control/dispatch.js";
|
|
26
|
-
import { assertProductWords, CHANT_WORDS, commentLine, } from "../ci-product-words.js";
|
|
27
|
-
import { prActionJob, prCommentLockJobs, prCommentPreviewJob, prLoopJobs, prLoopPostJob, prLoopRunner, prNoteCommandsJob, prStaleJob, withProductBin } from "./pr-pipeline.js";
|
|
26
|
+
import { assertProductWords, CHANT_WORDS, CI_PRODUCT_COMMANDS, commentLine, } from "../ci-product-words.js";
|
|
27
|
+
import { checkJobOptions, PR_LOOP_REPORT_DIR, prActionJob, prCommentLockJobs, prCommentPreviewJob, prLoopJobs, prLoopPostJob, prLoopRunner, prNoteCommandsJob, prStaleJob, withProductBin } from "./pr-pipeline.js";
|
|
28
28
|
import { resolveAgentSpec } from "../ci-agent.js";
|
|
29
29
|
import { resolveCommitSpec } from "../ci-commit.js";
|
|
30
|
-
import { planEvidenceOf, productPlanJobs } from "./product-plan.js";
|
|
30
|
+
import { planEvidenceOf, productPlanJobs, productPlanReachLock } from "./product-plan.js";
|
|
31
31
|
import { gitlabOpenEvidenceDir } from "../ci-evidence-jobs.js";
|
|
32
32
|
import { prCheckJob, prRefGateJob } from "./pr-checks.js";
|
|
33
|
-
import {
|
|
33
|
+
import { COMMENT_JOBS_ENV, PR_COMMENT_JOB } from "../ci-comment-commands.js";
|
|
34
|
+
import { GITHUB_JOB_TOKEN } from "../ci-jobs.js";
|
|
34
35
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
35
36
|
export const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
36
37
|
/** The waves spec file of op `name`: `.chant/op-waves/<name>.spec.json`. */
|
|
@@ -120,11 +121,11 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
120
121
|
// Words that ask for before-merge keep it when the pipeline has that job beside its waves.
|
|
121
122
|
const built = options.waves || options.componentWaves ? "on-merge" : options.applyBeforeMerge ? "before-merge" : "release";
|
|
122
123
|
const applyMode = options.words.applyMode === "before-merge" && options.applyBeforeMerge ? "before-merge" : built;
|
|
123
|
-
|
|
124
|
-
const
|
|
124
|
+
// #4946: the comment job answers every command but a commit word (the commit job's) with a reply, so the words may name any.
|
|
125
|
+
const answered = options.commentJob ? [...new Set([...jobs, ...CI_PRODUCT_COMMANDS.filter((c) => c !== "commit")])] : jobs;
|
|
126
|
+
const words = assertProductWords({ ...options.words, applyMode }, { jobs: answered });
|
|
127
|
+
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, productPlan, evidence, commentJob: _commentJob, ...loop } = options;
|
|
125
128
|
const { respond } = options;
|
|
126
|
-
// #4935: the check job and the ref gate's status judge the commit once, from the root pipeline.
|
|
127
|
-
assertRootChecks({ checkJob: options.checkJob, refGateStatus: options.refGateStatus }, member);
|
|
128
129
|
// #4629: the pull request loop puts the responses on the apply and note jobs, as `chant build --pr-loop --respond` does.
|
|
129
130
|
const prLoop = { ...loop, words, gate: options.gate ?? words.prGate };
|
|
130
131
|
const [plan, apply, record] = prLoopJobs(forge, env, prLoop, member);
|
|
@@ -145,23 +146,29 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
145
146
|
const out = {
|
|
146
147
|
words,
|
|
147
148
|
plan: plan,
|
|
148
|
-
// #4870: the note job signs the plan job's plan and policy checks before it posts.
|
|
149
|
-
post: { ...post, ...(controlTarget ? { control: controlNoteCheckout(forge, controlTarget, words) } : {}), ...defaultRunner, ...(evidence ? { evidence: planEvidenceOf(forge, evidence, words, plan.jobName) } : {}) },
|
|
149
|
+
// #4870: the note job signs the plan job's plan and policy checks before it posts; #4964: a member's under its name.
|
|
150
|
+
post: { ...post, ...(controlTarget ? { control: controlNoteCheckout(forge, controlTarget, words) } : {}), ...defaultRunner, ...(evidence ? { evidence: planEvidenceOf(forge, evidence, words, plan.jobName, member ? { member: { name: member, reportPath: PR_LOOP_REPORT_DIR } } : {}) } : {}) },
|
|
150
151
|
comments,
|
|
151
152
|
...(options.applyBeforeMerge ? { applyBeforeMerge: apply } : {}),
|
|
152
153
|
// #4799: the product's plan verb, a plan job and a note job per target.
|
|
153
154
|
...(productPlan ? { productPlan: productPlanJobs(forge, env, { ...prLoop, plan: productPlan }, words, evidence) } : {}),
|
|
154
155
|
};
|
|
155
156
|
// #4935: the check job runs the change's code on the plan runner; the signing and the status run on the default one.
|
|
156
|
-
|
|
157
|
+
// #4964: with the product's own services, variables, lines and report directory.
|
|
158
|
+
const checkOptions = checkJobOptions(options.checkJob);
|
|
159
|
+
if (checkOptions) {
|
|
157
160
|
const planRunner = prLoopRunner(options, "plan");
|
|
158
|
-
out.check = { ...prCheckJob(forge, { ...(words.bin ? { bin: words.bin } : {}), ...(evidence ? { evidence } : {}), ...(productPlan?.forks === "skip" ? { noForks: true } : {}) }), ...(planRunner !== undefined ? { runner: planRunner } : {}), ...(runnerOfDefault !== undefined ? { evidenceRunner: runnerOfDefault } : {}) };
|
|
161
|
+
out.check = { ...prCheckJob(forge, { ...checkOptions, ...(words.bin ? { bin: words.bin } : {}), ...(evidence ? { evidence } : {}), ...(productPlan?.forks === "skip" ? { noForks: true } : {}) }), ...(planRunner !== undefined ? { runner: planRunner } : {}), ...(runnerOfDefault !== undefined ? { evidenceRunner: runnerOfDefault } : {}) };
|
|
159
162
|
}
|
|
160
163
|
if (options.refGateStatus)
|
|
161
164
|
out.refGate = { ...prRefGateJob(forge, { ...(words.bin ? { bin: words.bin } : {}), ...(options.branch ? { branch: options.branch } : {}) }), ...defaultRunner };
|
|
162
165
|
const locks = prCommentLockJobs(forge, { locks: options.locks, words });
|
|
163
166
|
if (locks.length > 0)
|
|
164
167
|
out.locks = locks.map((job) => ({ ...job, ...defaultRunner }));
|
|
168
|
+
// #4979: the product plan's reach says what the lock job locks.
|
|
169
|
+
const reachLock = productPlan ? productPlanReachLock(forge, { ...prLoop, plan: productPlan }, words) : undefined;
|
|
170
|
+
if (reachLock)
|
|
171
|
+
out.reachLock = reachLock;
|
|
165
172
|
const action = prActionJob(forge, prLoop);
|
|
166
173
|
if (action)
|
|
167
174
|
out.action = { ...action, ...(prLoopRunner(options, "apply") !== undefined ? { runner: prLoopRunner(options, "apply") } : {}) };
|
|
@@ -194,6 +201,30 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
194
201
|
const spec = given ?? (componentWaves
|
|
195
202
|
? componentWavesSpec(componentWaves.components, words, componentWaveSteps({ ...(words.bin ? { bin: words.bin } : {}), env, base: componentWaves.base ?? "HEAD^1", ...(member ? { member } : {}), op, gate: prLoop.gate }), { ...(componentWaves.waveGate ? { gate: componentWaves.waveGate } : {}) })
|
|
196
203
|
: undefined);
|
|
204
|
+
// #4946: the comment job answers what no other job of the pipeline takes, so it is told which jobs there are.
|
|
205
|
+
if (options.commentJob) {
|
|
206
|
+
// #4963's re-plan reply answers the same stray comments, so one of the two answers them.
|
|
207
|
+
if (typeof productPlan?.replan === "object" && productPlan.replan.reply)
|
|
208
|
+
throw new Error("commentJob answers every /<product> comment no other job takes, and so does the product plan's replan.reply; drop replan.reply, since the comment job answers the re-plan's refusals too");
|
|
209
|
+
// The product plan's re-plan skips a target that is none of its own and, with forks: "skip", a fork's pull request without a word; the comment job says why.
|
|
210
|
+
const planTargets = productPlan?.replan ? productPlan.targets?.map((t) => t.name) : undefined;
|
|
211
|
+
const commentJobs = {
|
|
212
|
+
...(productPlan?.replan || options.previewComment ? { preview: true } : {}),
|
|
213
|
+
...(planTargets?.length ? { targets: planTargets } : {}),
|
|
214
|
+
...(productPlan?.replan && productPlan.forks === "skip" ? { skipForks: true } : {}),
|
|
215
|
+
...(options.applyBeforeMerge ? { applyBeforeMerge: true } : {}),
|
|
216
|
+
...(given || componentWaves ? { applyOnMerge: true } : {}),
|
|
217
|
+
// #4979: the waves' op (the name productWavesSpec gives them) and count, so a wave-<n> stops a re-run after wave n.
|
|
218
|
+
...(spec ? { waves: { op: words.op ?? spec.name, count: spec.waves.length } } : {}),
|
|
219
|
+
// #4979: the product plan's re-plan takes no flags, so the comment job answers a plan comment that carries them.
|
|
220
|
+
...(productPlan?.replan ? { noPlanFlags: true } : {}),
|
|
221
|
+
...(locks.length > 0 ? { locks: true } : {}),
|
|
222
|
+
...(out.agent ? { agent: true } : {}),
|
|
223
|
+
...(out.commits ? { commits: true } : {}),
|
|
224
|
+
...(options.actions || options.actionJob ? { actions: true } : {}),
|
|
225
|
+
};
|
|
226
|
+
out.comment = { ...productCommentJob(forge, words, commentJobs), ...defaultRunner };
|
|
227
|
+
}
|
|
197
228
|
if (!spec)
|
|
198
229
|
return { ...out, record: record };
|
|
199
230
|
const wavesRespond = respond ? Object.fromEntries(Object.entries(respond).filter(([e]) => e !== "description")) : {};
|
|
@@ -268,6 +299,27 @@ export function componentWavesSpec(components, wordsIn, steps, options = {}) {
|
|
|
268
299
|
approvals: { ...(named.approvals ?? {}), pullRequest: { gate: options.prGate ?? words.prGate } },
|
|
269
300
|
};
|
|
270
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* The comment job's descriptor (#4946): `chant components pr-comment
|
|
304
|
+
* --forge <forge>` through the words' bin, the jobs it leaves comments to as
|
|
305
|
+
* {@link COMMENT_JOBS_ENV}, and the comment prefixes the forge's `if:`
|
|
306
|
+
* starts it on. Throws on GitLab, whose note-commands job answers every
|
|
307
|
+
* note.
|
|
308
|
+
*/
|
|
309
|
+
export function productCommentJob(forge, words, jobs) {
|
|
310
|
+
if (forge === "gitlab")
|
|
311
|
+
throw new Error("the comment job answers a GitHub or Forgejo comment; on GitLab the note-commands job (noteCommands) answers every note, so drop commentJob");
|
|
312
|
+
for (const a of words.aliases)
|
|
313
|
+
if (/['\\]/.test(a.from))
|
|
314
|
+
throw new Error(`the alias ${JSON.stringify(a.from)} holds a quote, which the comment job's condition cannot carry`);
|
|
315
|
+
return {
|
|
316
|
+
jobName: PR_COMMENT_JOB,
|
|
317
|
+
command: withProductBin(`chant components pr-comment --forge ${forge}`, words.bin),
|
|
318
|
+
env: { GITHUB_TOKEN: GITHUB_JOB_TOKEN, [COMMENT_JOBS_ENV]: JSON.stringify(jobs) },
|
|
319
|
+
prefixes: [`/${words.product}`, ...words.aliases.map((a) => a.from)],
|
|
320
|
+
jobs,
|
|
321
|
+
};
|
|
322
|
+
}
|
|
271
323
|
/** A shell line with the product's bin in place of `chant`, for a product's own jobs beside these. */
|
|
272
324
|
export function productCommand(words, line) {
|
|
273
325
|
return withProductBin(line, words.bin);
|