@intentius/chant 0.124.88 → 0.124.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +193 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +353 -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-job-guard.d.ts +42 -45
- package/dist/ci-job-guard.d.ts.map +1 -1
- package/dist/ci-job-guard.js +206 -3
- package/dist/ci-note-commands.d.ts +104 -4
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +131 -38
- 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 +72 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +73 -6
- 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 +33 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +201 -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-notes.d.ts.map +1 -1
- package/dist/cli/handlers/pr-notes.js +23 -1
- 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 +71 -23
- 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 +180 -4
- 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 +41 -2
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +31 -0
- package/dist/cli/registry.d.ts +19 -1
- 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 +97 -6
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +107 -13
- package/dist/components/pr-pipeline.d.ts +19 -14
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +7 -13
- package/dist/components/product-pipeline.d.ts +96 -3
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +120 -14
- package/dist/components/product-plan.d.ts +203 -6
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +250 -43
- 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 +63 -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 +93 -4
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-applied.d.ts +9 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -1
- package/dist/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/apply-status.d.ts +84 -0
- package/dist/op/apply-status.d.ts.map +1 -0
- package/dist/op/apply-status.js +106 -0
- package/dist/op/before-merge-decide.d.ts +102 -0
- package/dist/op/before-merge-decide.d.ts.map +1 -0
- package/dist/op/before-merge-decide.js +142 -0
- package/dist/op/before-merge-done.d.ts +56 -0
- package/dist/op/before-merge-done.d.ts.map +1 -0
- package/dist/op/before-merge-done.js +69 -0
- package/dist/op/before-merge-store.d.ts +20 -0
- package/dist/op/before-merge-store.d.ts.map +1 -0
- package/dist/op/before-merge-store.js +48 -0
- package/dist/op/before-merge.d.ts +150 -0
- package/dist/op/before-merge.d.ts.map +1 -0
- package/dist/op/before-merge.js +207 -0
- package/dist/op/follow-on-run.d.ts +117 -0
- package/dist/op/follow-on-run.d.ts.map +1 -0
- package/dist/op/follow-on-run.js +154 -0
- package/dist/op/follow-on-store.d.ts +17 -0
- package/dist/op/follow-on-store.d.ts.map +1 -0
- package/dist/op/follow-on-store.js +54 -0
- package/dist/op/gate.d.ts +6 -0
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +10 -1
- package/dist/op/index.d.ts +5 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +2 -0
- package/dist/op/op-waves-after-plan.d.ts +13 -0
- package/dist/op/op-waves-after-plan.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.d.ts +10 -2
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +19 -5
- package/dist/op/op-waves-follow-on.d.ts +162 -0
- package/dist/op/op-waves-follow-on.d.ts.map +1 -0
- package/dist/op/op-waves-follow-on.js +355 -0
- package/dist/op/op-waves-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 +148 -6
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +873 -100
- package/dist/op/op-waves-split.d.ts +122 -0
- package/dist/op/op-waves-split.d.ts.map +1 -0
- package/dist/op/op-waves-split.js +166 -0
- package/dist/op/op-waves.d.ts +24 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +18 -1
- package/dist/op/schedule-overdue.d.ts +15 -1
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +77 -5
- package/dist/op/stage-hooks.d.ts +36 -1
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +17 -3
- package/dist/op/wave-stop.d.ts +67 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +129 -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 +146 -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 +39 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +63 -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-blocked.d.ts +7 -1
- package/dist/wave-blocked.d.ts.map +1 -1
- package/dist/wave-blocked.js +7 -2
- package/dist/wave-runtime.mjs +366 -350
- 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 +439 -0
- package/src/ci-comment-commands.ts +428 -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 -10
- package/src/ci-image.ts +85 -12
- package/src/ci-job-guard.before-merge.test.ts +148 -0
- package/src/ci-job-guard.follow-on-record.test.ts +137 -0
- package/src/ci-job-guard.follow-on.test.ts +144 -0
- package/src/ci-job-guard.ts +221 -3
- package/src/ci-note-commands.test.ts +76 -1
- package/src/ci-note-commands.ts +198 -46
- package/src/ci-product-words.ts +59 -0
- package/src/ci-product.ts +90 -6
- 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 +187 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-notes.ts +30 -6
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +64 -21
- 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 +170 -4
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +41 -2
- package/src/cli/parse-args.ts +23 -0
- package/src/cli/registry.ts +19 -1
- package/src/components/auto-release.ts +2 -1
- package/src/components/pr-checks.ts +165 -17
- package/src/components/pr-pipeline.ts +22 -18
- package/src/components/product-pipeline.apply-status.test.ts +50 -0
- package/src/components/product-pipeline.ts +204 -17
- package/src/components/product-plan.test.ts +60 -4
- package/src/components/product-plan.ts +367 -50
- package/src/drift-record.test.ts +20 -0
- package/src/drift-record.ts +16 -0
- package/src/floor-table.data.ts +63 -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 +89 -1
- package/src/lifecycle/gate-applied.ts +7 -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/apply-status.test.ts +83 -0
- package/src/op/apply-status.ts +132 -0
- package/src/op/before-merge-decide.ts +190 -0
- package/src/op/before-merge-done.ts +99 -0
- package/src/op/before-merge-store.ts +44 -0
- package/src/op/before-merge.test.ts +201 -0
- package/src/op/before-merge.ts +266 -0
- package/src/op/follow-on-run.ts +206 -0
- package/src/op/follow-on-store.ts +54 -0
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/gate.ts +16 -1
- package/src/op/index.ts +15 -0
- package/src/op/op-waves-after-plan.ts +13 -0
- package/src/op/op-waves-evidence-jobs.ts +21 -7
- package/src/op/op-waves-follow-on-record.test.ts +152 -0
- package/src/op/op-waves-follow-on.test.ts +247 -0
- package/src/op/op-waves-follow-on.ts +385 -0
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +159 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +973 -94
- package/src/op/op-waves-split-product.test.ts +288 -0
- package/src/op/op-waves-split-step.test.ts +298 -0
- package/src/op/op-waves-split.test.ts +196 -0
- package/src/op/op-waves-split.ts +189 -0
- package/src/op/op-waves.ts +31 -3
- package/src/op/schedule-overdue.test.ts +72 -1
- package/src/op/schedule-overdue.ts +84 -6
- package/src/op/stage-hooks.ts +52 -4
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +139 -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 +151 -15
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +30 -11
- package/src/release-floors.ts +81 -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/wave-blocked.ts +9 -4
- 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
package/dist/ci-note-commands.js
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
import { GITLAB_AGENT_ASK_VAR, GITLAB_AGENT_PR_VAR } from "./ci-agent.js";
|
|
30
30
|
import { GITLAB_COMMIT_ARG_VAR, GITLAB_COMMIT_PR_VAR, GITLAB_COMMIT_WORD_VAR } from "./ci-commit.js";
|
|
31
31
|
import { parseProductComment, productStatusContext } from "./ci-product-words.js";
|
|
32
|
+
import { commandLine, commentTerms, forkReply, memberReply, notRunReply } from "./ci-comment-replies.js";
|
|
32
33
|
import { GITLAB_APPLY_PR_VAR, GITLAB_LOCK_PR_VAR, GITLAB_PREVIEW_PR_VAR, GITLAB_UNLOCK_PR_VAR, PREVIEW_COMMENT_ENV } from "./components/pr-pipeline.js";
|
|
33
34
|
import { ForgeApiError } from "./pr-forge.js";
|
|
34
35
|
export { GITLAB_NOTE_COMMANDS_VAR } from "./components/pr-pipeline.js";
|
|
@@ -204,17 +205,52 @@ async function answer(o, mr, note, least, at, me) {
|
|
|
204
205
|
}
|
|
205
206
|
return reply(`started pipeline${link(started)} to ${run.doing} for ${note.author}`, true, started.url);
|
|
206
207
|
}
|
|
207
|
-
case "retry":
|
|
208
|
-
|
|
208
|
+
case "retry": {
|
|
209
|
+
// #4984: the stop goes on chant/lifecycle just before the retry, so every wave job after it reads it.
|
|
210
|
+
const stop = run.stop;
|
|
211
|
+
if (stop && !o.stops)
|
|
212
|
+
return broke("the retry carries a wave stop, and this poll cannot write one");
|
|
213
|
+
const retry = gitlabRetry(o.pipelines);
|
|
214
|
+
const author = note.author;
|
|
215
|
+
const rerun = stop
|
|
216
|
+
? async (pipeline, jobs, ctx) => {
|
|
217
|
+
try {
|
|
218
|
+
await o.stops(stop.op, run.sha, stop.through === null ? null : { through: stop.through, at, by: author, pr: mr.number });
|
|
219
|
+
}
|
|
220
|
+
catch (e) {
|
|
221
|
+
return { kind: "fail", reason: `could not write the wave stop for ${short(run.sha)}, so nothing was retried (${message(e)})` };
|
|
222
|
+
}
|
|
223
|
+
return retry(pipeline, jobs, ctx);
|
|
224
|
+
}
|
|
225
|
+
: retry;
|
|
226
|
+
const done = await retryApply(o, "gitlab", mr, note.author, run, rerun);
|
|
227
|
+
if (done.kind === "ran" && stop?.through !== null && stop?.through !== undefined) {
|
|
228
|
+
return reply(`${done.text}; it stops after \`wave-${stop.through}\`, and the waves after it wait until ${commandLine(o.words, "apply")} runs it again`, true, done.url);
|
|
229
|
+
}
|
|
230
|
+
if (done.kind === "fail")
|
|
231
|
+
return broke(done.reason);
|
|
232
|
+
return reply(done.text, done.kind === "ran", done.kind === "ran" ? done.url : undefined);
|
|
233
|
+
}
|
|
209
234
|
}
|
|
210
235
|
}
|
|
211
236
|
/** chant's apply jobs and terragucci's: `apply`, `apply-wave-<n>` and `apply-wave-<n>-share-<m>`, a member's prefixed with its name. */
|
|
212
237
|
export const APPLY_JOBS = /^(?:[a-z0-9][a-z0-9-]*-)?apply(?:-wave-([1-9][0-9]*)(?:-share-([1-9][0-9]*))?)?$/;
|
|
213
238
|
const NOT_DONE = new Set(["created", "pending", "running", "waiting_for_resource", "preparing", "scheduled"]);
|
|
214
|
-
|
|
239
|
+
/**
|
|
240
|
+
* Start a merged pull request's apply again (#4785; shared with GitHub and
|
|
241
|
+
* Forgejo in #4946): the newest push run at the merge commit that has an
|
|
242
|
+
* apply job, refused when a later commit of the default branch already
|
|
243
|
+
* carries the product's apply status, since going back to this one would
|
|
244
|
+
* undo it. `rerun` is the forge's own start.
|
|
245
|
+
*/
|
|
246
|
+
export async function retryApply(o, forgeKind, mr, user, run, rerun) {
|
|
215
247
|
const { sha } = run;
|
|
216
248
|
const pattern = run.jobs ?? APPLY_JOBS;
|
|
217
|
-
const
|
|
249
|
+
const t = commentTerms(forgeKind);
|
|
250
|
+
const at = t.at(mr.number);
|
|
251
|
+
const gitlab = forgeKind === "gitlab";
|
|
252
|
+
const runWord = gitlab ? "pipeline" : "workflow run";
|
|
253
|
+
const reply = (text) => ({ kind: "reply", text });
|
|
218
254
|
// The newest push pipeline at the merge commit with an apply job: a branch pipeline, or a ci/green tag's.
|
|
219
255
|
let pipeline;
|
|
220
256
|
let jobs = [];
|
|
@@ -229,11 +265,11 @@ async function retry(o, mr, user, run, reply, broke) {
|
|
|
229
265
|
}
|
|
230
266
|
}
|
|
231
267
|
if (!pipeline)
|
|
232
|
-
return reply(`no
|
|
268
|
+
return reply(`no ${runWord} at the merge commit ${short(sha)} of ${at} has an apply job, so there is nothing to ${gitlab ? "retry" : "run again"}; push to ${o.base} again`);
|
|
233
269
|
newer = await o.reads.branchRuns(o.base, { event: "push", limit: NOTE_COMMANDS_NEWER_PIPELINES });
|
|
234
270
|
}
|
|
235
271
|
catch (e) {
|
|
236
|
-
return
|
|
272
|
+
return { kind: "fail", reason: `could not read the ${runWord}s at ${short(sha)} (${message(e)})` };
|
|
237
273
|
}
|
|
238
274
|
// A later commit whose apply started applied a newer tree: going back to this one would undo it.
|
|
239
275
|
const applyContext = productStatusContext(o.words, "apply");
|
|
@@ -244,46 +280,64 @@ async function retry(o, mr, user, run, reply, broke) {
|
|
|
244
280
|
applied = (await o.forge.commitStatuses?.(c))?.find((s) => s.context === applyContext);
|
|
245
281
|
}
|
|
246
282
|
catch (e) {
|
|
247
|
-
return
|
|
283
|
+
return { kind: "fail", reason: `could not read the statuses of ${short(c)} (${message(e)})` };
|
|
248
284
|
}
|
|
249
285
|
if (applied) {
|
|
250
|
-
const
|
|
251
|
-
return reply(`a later apply already ran on ${o.base} at ${short(c)}${
|
|
286
|
+
const link = applied.targetUrl && /^https?:\/\//.test(applied.targetUrl) ? ` (${applied.targetUrl})` : "";
|
|
287
|
+
return reply(`a later apply already ran on ${o.base} at ${short(c)}${link}, so the merge commit ${short(sha)} of ${at} is not applied: comment on the ${t.request} that commit came from, or push again`);
|
|
252
288
|
}
|
|
253
289
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
290
|
+
return rerun(pipeline, jobs, { sha, at, user, base: o.base, pattern });
|
|
291
|
+
}
|
|
292
|
+
/** GitLab's start: retry the first apply job, by wave and share, that did not succeed; the jobs after it follow by themselves. */
|
|
293
|
+
export function gitlabRetry(pipelines) {
|
|
294
|
+
return async (pipeline, jobs, { sha, at, user, base, pattern }) => {
|
|
295
|
+
const reply = (text) => ({ kind: "reply", text });
|
|
296
|
+
const order = (j) => {
|
|
297
|
+
const m = pattern.exec(j.name);
|
|
298
|
+
return [m?.[1] ? Number(m[1]) : 0, m?.[2] ? Number(m[2]) : 0];
|
|
299
|
+
};
|
|
300
|
+
const sorted = [...jobs].sort((a, b) => order(a)[0] - order(b)[0] || order(a)[1] - order(b)[1]);
|
|
301
|
+
const next = sorted.find((j) => j.status !== "success");
|
|
302
|
+
if (!next)
|
|
303
|
+
return reply(`every apply job of ${at}'s merge commit ${short(sha)} already succeeded`);
|
|
304
|
+
if (NOT_DONE.has(next.status))
|
|
305
|
+
return reply(`${next.name} at ${short(sha)} is ${next.status} already, so it is not retried`);
|
|
306
|
+
if (next.status !== "failed" && next.status !== "canceled") {
|
|
307
|
+
return reply(`${next.name} at ${short(sha)} was ${next.status}, and GitLab retries only a failed or canceled job; push to ${base} again`);
|
|
308
|
+
}
|
|
309
|
+
let retried;
|
|
310
|
+
try {
|
|
311
|
+
retried = await pipelines.retryJob(next.id);
|
|
312
|
+
}
|
|
313
|
+
catch (e) {
|
|
314
|
+
return { kind: "fail", reason: `could not retry ${next.name} of pipeline ${pipeline.id} (${message(e)})` };
|
|
315
|
+
}
|
|
316
|
+
const link = retried.url ? ` (${retried.url})` : "";
|
|
317
|
+
return { kind: "ran", text: `retried ${next.name} of ${at}'s merge commit ${short(sha)}${link} for ${user}; its gate decides again, and the jobs after it follow, each behind its own gate`, ...(retried.url ? { url: retried.url } : {}) };
|
|
257
318
|
};
|
|
258
|
-
const sorted = [...jobs].sort((a, b) => order(a)[0] - order(b)[0] || order(a)[1] - order(b)[1]);
|
|
259
|
-
const next = sorted.find((j) => j.status !== "success");
|
|
260
|
-
if (!next)
|
|
261
|
-
return reply(`every apply job of !${iid}'s merge commit ${short(sha)} already succeeded`);
|
|
262
|
-
if (NOT_DONE.has(next.status))
|
|
263
|
-
return reply(`${next.name} at ${short(sha)} is ${next.status} already, so it is not retried`);
|
|
264
|
-
if (next.status !== "failed" && next.status !== "canceled") {
|
|
265
|
-
return reply(`${next.name} at ${short(sha)} was ${next.status}, and GitLab retries only a failed or canceled job; push to ${o.base} again`);
|
|
266
|
-
}
|
|
267
|
-
let retried;
|
|
268
|
-
try {
|
|
269
|
-
retried = await o.pipelines.retryJob(next.id);
|
|
270
|
-
}
|
|
271
|
-
catch (e) {
|
|
272
|
-
return broke(`could not retry ${next.name} of pipeline ${pipeline.id} (${message(e)})`);
|
|
273
|
-
}
|
|
274
|
-
const link = retried.url ? ` (${retried.url})` : "";
|
|
275
|
-
return reply(`retried ${next.name} of !${iid}'s merge commit ${short(sha)}${link} for ${user}; its gate decides again, and the jobs after it follow, each behind its own gate`, true, retried.url);
|
|
276
319
|
}
|
|
277
|
-
/**
|
|
278
|
-
|
|
320
|
+
/**
|
|
321
|
+
* What a command runs in chant's own GitLab pipeline, for the jobs it has.
|
|
322
|
+
* A command no job runs gets the words' reply for it (`words.replies`,
|
|
323
|
+
* #4946), else chant's.
|
|
324
|
+
*/
|
|
325
|
+
export function chantNoteRuns(jobs, opts = {}) {
|
|
279
326
|
return ({ mr, note, parsed, base, words }) => {
|
|
280
327
|
const iid = String(mr.number);
|
|
281
328
|
const at = `!${mr.number}`;
|
|
282
|
-
const line = (kind) =>
|
|
329
|
+
const line = (kind) => commandLine(words, kind);
|
|
330
|
+
// #4946: a member outside the pipeline's is refused before anything starts, a fork's included.
|
|
331
|
+
const member = parsed.kind === "plan" || parsed.kind === "action" ? parsed.member : undefined;
|
|
332
|
+
if (member !== undefined && jobs.members && !jobs.members.includes(member))
|
|
333
|
+
return { kind: "reply", text: memberReply(words, member, jobs.members, "gitlab") };
|
|
283
334
|
if (!mr.sameRepo)
|
|
284
|
-
return { kind: "reply", text:
|
|
335
|
+
return { kind: "reply", text: forkReply(words, "gitlab") };
|
|
285
336
|
const open = mr.state === "open";
|
|
286
337
|
const intoBase = mr.base === undefined || mr.base === base;
|
|
338
|
+
// #4946: the product's sentence for an apply no job answers, in place of chant's, which say what the merge does.
|
|
339
|
+
if (parsed.kind === "apply" && !jobs.applyBeforeMerge && !jobs.applyOnMerge && !jobs.wavesBeforeMerge && words.replies?.apply !== undefined)
|
|
340
|
+
return { kind: "reply", text: words.replies.apply };
|
|
287
341
|
switch (parsed.kind) {
|
|
288
342
|
case "plan":
|
|
289
343
|
if (!open)
|
|
@@ -293,6 +347,9 @@ export function chantNoteRuns(jobs) {
|
|
|
293
347
|
return { kind: "merge-request-pipeline", doing: `${words.verbs.plan[0]} ${at} again` };
|
|
294
348
|
case "apply":
|
|
295
349
|
if (open) {
|
|
350
|
+
// #4984: the waves before merge decide here, and the pipeline they start runs the decided head.
|
|
351
|
+
if (jobs.wavesBeforeMerge && jobs.waves && opts.beforeMerge && !jobs.applyBeforeMerge)
|
|
352
|
+
return wavesBeforeMergeRun(jobs, opts.beforeMerge, { mr, note, parsed, base, words });
|
|
296
353
|
if (!jobs.applyBeforeMerge)
|
|
297
354
|
return { kind: "reply", text: `${at} is not merged, and this project ${words.verbs.apply[0]}s after a merge request merges, never from its branch` };
|
|
298
355
|
if (!intoBase)
|
|
@@ -304,23 +361,26 @@ export function chantNoteRuns(jobs) {
|
|
|
304
361
|
if (!jobs.applyOnMerge) {
|
|
305
362
|
return { kind: "reply", text: jobs.applyBeforeMerge ? `${at} is merged, and this project ${words.verbs.apply[0]}s a merge request before it merges, so there is nothing of it left to ${words.verbs.apply[0]}` : `${at} is merged, and a merge here records the plan: a release deploys it` };
|
|
306
363
|
}
|
|
307
|
-
|
|
364
|
+
// #4984: with the waves' op, a wave-<n> writes a stop for the merge commit before the retry, as on GitHub and Forgejo.
|
|
365
|
+
if (parsed.wave !== undefined && !jobs.waves)
|
|
308
366
|
return { kind: "reply", text: `GitLab runs the waves after a retried apply job by itself, so \`wave-${parsed.wave}\` cannot stop them; write ${line("apply")}, and each wave still waits behind its own gate` };
|
|
367
|
+
if (parsed.wave !== undefined && jobs.waves && parsed.wave > jobs.waves.count)
|
|
368
|
+
return { kind: "reply", text: `the ${words.verbs.apply[0]} of this project runs in ${jobs.waves.count} wave${jobs.waves.count === 1 ? "" : "s"}, so there is no \`wave-${parsed.wave}\`` };
|
|
309
369
|
if (!intoBase)
|
|
310
370
|
return { kind: "reply", text: `${at} was merged into ${mr.base}, not the default branch ${base}, so nothing applies from it` };
|
|
311
371
|
if (!mr.mergeCommit)
|
|
312
372
|
return { kind: "fail", reason: `${at} has no merge commit` };
|
|
313
|
-
return { kind: "retry", sha: mr.mergeCommit };
|
|
373
|
+
return { kind: "retry", sha: mr.mergeCommit, ...(jobs.waves ? { stop: { op: jobs.waves.op, through: parsed.wave !== undefined && parsed.wave < jobs.waves.count ? parsed.wave : null } } : {}) };
|
|
314
374
|
case "lock":
|
|
315
375
|
case "unlock":
|
|
316
376
|
if (!jobs.locks)
|
|
317
|
-
return { kind: "reply", text:
|
|
377
|
+
return { kind: "reply", text: notRunReply(words, parsed.kind, "gitlab") };
|
|
318
378
|
if (parsed.kind === "lock" && !open)
|
|
319
379
|
return { kind: "reply", text: `${at} is not open, so it takes no lock` };
|
|
320
380
|
return { kind: "pipeline", ref: base, variables: { [parsed.kind === "lock" ? GITLAB_LOCK_PR_VAR : GITLAB_UNLOCK_PR_VAR]: iid }, doing: `${parsed.kind} the ${words.noun[1]} of ${at}` };
|
|
321
381
|
case "agent":
|
|
322
382
|
if (!jobs.agent)
|
|
323
|
-
return { kind: "reply", text:
|
|
383
|
+
return { kind: "reply", text: notRunReply(words, "agent", "gitlab") };
|
|
324
384
|
if (!open)
|
|
325
385
|
return { kind: "reply", text: `${at} is not open, so the agent does not run` };
|
|
326
386
|
if (mr.head === base)
|
|
@@ -337,6 +397,39 @@ export function chantNoteRuns(jobs) {
|
|
|
337
397
|
}
|
|
338
398
|
};
|
|
339
399
|
}
|
|
400
|
+
/**
|
|
401
|
+
* An open merge request's apply under the waves before merge (#4984): the
|
|
402
|
+
* decision records the head, and the run is a pipeline of the default branch
|
|
403
|
+
* started with the decision's three variables, which the wave jobs' guard
|
|
404
|
+
* checks against the record.
|
|
405
|
+
*/
|
|
406
|
+
async function wavesBeforeMergeRun(jobs, deps, c) {
|
|
407
|
+
const parsed = c.parsed;
|
|
408
|
+
const { decideWavesBeforeMerge } = await import("./op/before-merge-decide.js");
|
|
409
|
+
const { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV } = await import("./op/before-merge.js");
|
|
410
|
+
let variables;
|
|
411
|
+
const done = await decideWavesBeforeMerge({
|
|
412
|
+
...deps,
|
|
413
|
+
forge: "gitlab",
|
|
414
|
+
pr: c.mr,
|
|
415
|
+
user: c.note.author ?? "",
|
|
416
|
+
base: c.base,
|
|
417
|
+
...(parsed.wave !== undefined ? { wave: parsed.wave } : {}),
|
|
418
|
+
op: jobs.waves.op,
|
|
419
|
+
count: jobs.waves.count,
|
|
420
|
+
jobs: jobs.wavesBeforeMerge,
|
|
421
|
+
words: c.words,
|
|
422
|
+
// The poll starts the pipeline once the decision is recorded, and its reply links it.
|
|
423
|
+
start: async (r) => {
|
|
424
|
+
variables = { [BEFORE_MERGE_PR_ENV]: String(r.pr), [BEFORE_MERGE_HEAD_ENV]: r.head, [BEFORE_MERGE_DIGEST_ENV]: r.digest };
|
|
425
|
+
return {};
|
|
426
|
+
},
|
|
427
|
+
});
|
|
428
|
+
if (done.kind !== "ran")
|
|
429
|
+
return done.kind === "fail" ? { kind: "fail", reason: done.reason } : { kind: "reply", text: done.text };
|
|
430
|
+
const through = parsed.wave !== undefined && parsed.wave < jobs.waves.count ? ` through wave ${parsed.wave}` : "";
|
|
431
|
+
return { kind: "pipeline", ref: c.base, variables: variables, doing: `${c.words.verbs.apply[0]} !${c.mr.number}'s head ${short(c.mr.headSha ?? "")}${through} before it merges` };
|
|
432
|
+
}
|
|
340
433
|
/** The directory on `chant/lifecycle` that keeps the notes the poll answered. */
|
|
341
434
|
export const NOTES_DIR = "_notes";
|
|
342
435
|
/** A note's file in {@link NOTES_DIR}. */
|
|
@@ -59,7 +59,45 @@ export interface CiProductAlias {
|
|
|
59
59
|
command: CiProductCommand;
|
|
60
60
|
/** The variable that turns the alias on in a job (terragucci's `TG_ATLANTIS_COMMENTS`). Absent: always on. */
|
|
61
61
|
when?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Flags of the other tool that the product has no counterpart for, each
|
|
64
|
+
* with the reply that refuses it (#4946), such as terragucci's `{ "-p":
|
|
65
|
+
* "a root goes by its path, not a project name: ..." }` on `atlantis
|
|
66
|
+
* plan`. A flag here is refused before the alias reads `-d`, so a product
|
|
67
|
+
* can refuse `atlantis apply -d` too. `--` refuses everything after it.
|
|
68
|
+
*/
|
|
69
|
+
refuse?: Record<string, string>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* What a comment job replies to a command the pipeline runs no job for
|
|
73
|
+
* (#4946), in the product's own sentences. Each slot left out takes
|
|
74
|
+
* chant's. The comment job on GitHub and Forgejo and the note poll on
|
|
75
|
+
* GitLab both read these.
|
|
76
|
+
*/
|
|
77
|
+
export interface CiProductCommentReplies {
|
|
78
|
+
/** A plan comment where no job plans on a comment (GitHub and Forgejo; GitLab starts a merge request pipeline). */
|
|
79
|
+
plan?: string;
|
|
80
|
+
/** An apply comment where no job applies on a comment: neither an apply before merge nor the re-run of a merged pull request's apply. */
|
|
81
|
+
apply?: string;
|
|
82
|
+
/** A lock comment where the pipeline takes no locks. */
|
|
83
|
+
lock?: string;
|
|
84
|
+
/** An unlock comment where the pipeline takes no locks. */
|
|
85
|
+
unlock?: string;
|
|
86
|
+
/** An action comment where no workflow runs actions (GitHub and Forgejo; GitLab names the checkout to run it from). */
|
|
87
|
+
action?: string;
|
|
88
|
+
/** An agent comment where the agent is off. */
|
|
89
|
+
agent?: string;
|
|
90
|
+
/** Any command on a pull request from a fork. */
|
|
91
|
+
fork?: string;
|
|
92
|
+
/**
|
|
93
|
+
* A comment that names a member the pipeline was not written with, over
|
|
94
|
+
* `{member}` (the one named) and `{members}` (the pipeline's, each in
|
|
95
|
+
* backticks, sorted, comma separated).
|
|
96
|
+
*/
|
|
97
|
+
member?: string;
|
|
62
98
|
}
|
|
99
|
+
/** The reply slots, for checking a product's words. */
|
|
100
|
+
export declare const CI_PRODUCT_COMMENT_REPLIES: readonly (keyof CiProductCommentReplies)[];
|
|
63
101
|
/** The words a product passes. Every slot is optional; a missing one takes chant's. */
|
|
64
102
|
export interface CiProductWordsInput {
|
|
65
103
|
/** The status prefix, the note heading and the comment prefix: `chant`, `terragucci`, `plywood`. */
|
|
@@ -117,6 +155,8 @@ export interface CiProductWordsInput {
|
|
|
117
155
|
adoptMarkers?: string[];
|
|
118
156
|
/** What chant's notify sends under these words (#4610). */
|
|
119
157
|
notify?: CiProductNotifyWordsInput;
|
|
158
|
+
/** The replies to commands the pipeline runs no job for (#4946). Default: chant's. */
|
|
159
|
+
replies?: CiProductCommentReplies;
|
|
120
160
|
}
|
|
121
161
|
/** The notify slots a product passes (#4610). */
|
|
122
162
|
export interface CiProductNotifyWordsInput {
|
|
@@ -166,6 +206,8 @@ export interface CiProductWords {
|
|
|
166
206
|
bin?: string;
|
|
167
207
|
adoptMarkers: string[];
|
|
168
208
|
notify: CiProductNotifyWords;
|
|
209
|
+
/** The product's replies to commands no job runs (#4946), when it gives any. */
|
|
210
|
+
replies?: CiProductCommentReplies;
|
|
169
211
|
}
|
|
170
212
|
/** chant's own approve line. */
|
|
171
213
|
export declare const CHANT_APPROVE_TEMPLATE = "chant approve {op} {gate} --plan {digest} --approver {approver} {sign}";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-product-words.d.ts","sourceRoot":"","sources":["../src/ci-product-words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,iGAAiG;AACjG,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/G,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAA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O,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKrF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,IAAI,EAAE,OAAO,EACb,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,EAC5C,UAAU,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,EACjD,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,GAAG,SAAS,CA2GlC;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;aAAK,OAAO,EAAE,sBAAsB;aAAE,MAAM,EAAE,qBAAqB;aAAE,MAAM,EAAE,cAAc;CAAW,CAAC;AAEtI,0HAA0H;AAC1H,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,sGAAsG;AACtG,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,UAAU,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3J;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,oBAAoB,CAiBzH"}
|
package/dist/ci-product-words.js
CHANGED
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
export const CI_PRODUCT_STAGES = ["plan", "apply", "record", "check", "drift", "lock", "approval", "control"];
|
|
27
27
|
export const CI_PRODUCT_COMMANDS = ["plan", "apply", "lock", "unlock", "agent", "action", "commit"];
|
|
28
28
|
export const CI_PRODUCT_APPLY_MODES = ["on-merge", "release", "before-merge"];
|
|
29
|
+
/** The reply slots, for checking a product's words. */
|
|
30
|
+
export const CI_PRODUCT_COMMENT_REPLIES = ["plan", "apply", "lock", "unlock", "action", "agent", "fork", "member"];
|
|
29
31
|
/** chant's own wave label in a notify summary. */
|
|
30
32
|
export const CHANT_NOTIFY_WAVE_TEMPLATE = "wave {k} ({name}) of {spec}";
|
|
31
33
|
/** chant's own approve line. */
|
|
@@ -76,6 +78,7 @@ export function resolveProductWords(input = {}) {
|
|
|
76
78
|
headers: input.notify?.headers ?? `x-${product}`,
|
|
77
79
|
...(input.notify?.message ? { message: input.notify.message } : {}),
|
|
78
80
|
},
|
|
81
|
+
...(input.replies !== undefined ? { replies: input.replies } : {}),
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
/** A word that may reach a shell line, an `if:` expression or a status context. */
|
|
@@ -131,6 +134,24 @@ export function productWordsProblems(words, options = {}) {
|
|
|
131
134
|
problems.push(`the alias ${JSON.stringify(a.from)} is lowercase words`);
|
|
132
135
|
if (!Object.values(words.commands).includes(a.command))
|
|
133
136
|
problems.push(`the alias ${JSON.stringify(a.from)} stands for ${a.command}, which no command names`);
|
|
137
|
+
// #4946: a refused flag is one word starting with -, and its reply one line.
|
|
138
|
+
for (const [flag, reason] of Object.entries(a.refuse ?? {})) {
|
|
139
|
+
if (!/^--?[A-Za-z0-9-]*$/.test(flag))
|
|
140
|
+
problems.push(`the alias ${JSON.stringify(a.from)} refuses ${JSON.stringify(flag)}, and a flag is - or -- then letters, digits and -`);
|
|
141
|
+
if (typeof reason !== "string" || reason.trim() === "" || /[\r\n]/.test(reason))
|
|
142
|
+
problems.push(`the alias ${JSON.stringify(a.from)} refuses ${flag} with no one-line reply`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// #4946: each reply is one line of text; the member reply's placeholders are {member} and {members}.
|
|
146
|
+
for (const [slot, text] of Object.entries(words.replies ?? {})) {
|
|
147
|
+
if (!CI_PRODUCT_COMMENT_REPLIES.includes(slot))
|
|
148
|
+
problems.push(`replies.${slot} is not one of ${CI_PRODUCT_COMMENT_REPLIES.join(", ")}`);
|
|
149
|
+
else if (typeof text !== "string" || text.trim() === "" || /[\r\n]/.test(text))
|
|
150
|
+
problems.push(`replies.${slot} is one line of text`);
|
|
151
|
+
else
|
|
152
|
+
for (const m of text.matchAll(/\{([^}]*)\}/g))
|
|
153
|
+
if (slot !== "member" || (m[1] !== "member" && m[1] !== "members"))
|
|
154
|
+
problems.push(`replies.${slot} names {${m[1]}}, which chant does not fill`);
|
|
134
155
|
}
|
|
135
156
|
for (const [where, template] of [["approve", words.approve], ["override", words.override]]) {
|
|
136
157
|
for (const m of template.matchAll(/\{([^}]*)\}/g))
|
|
@@ -352,6 +373,10 @@ export function parseProductComment(words, body, env = {}, commitArgs = {}, opti
|
|
|
352
373
|
const args = [];
|
|
353
374
|
for (let i = 0; i < rest.length; i++) {
|
|
354
375
|
const w = rest[i];
|
|
376
|
+
// #4946: a flag the product has no counterpart for gets the product's own reason.
|
|
377
|
+
const refused = a.refuse && Object.prototype.hasOwnProperty.call(a.refuse, w) ? a.refuse[w] : undefined;
|
|
378
|
+
if (refused !== undefined)
|
|
379
|
+
return { kind: "refused", reason: refused };
|
|
355
380
|
if (w === "-d" || w === "--dir") {
|
|
356
381
|
const dir = rest[++i];
|
|
357
382
|
if (dir === undefined)
|
package/dist/ci-product.d.ts
CHANGED
|
@@ -57,16 +57,87 @@ export { PLAN_ARGUMENT_ENV, PLAN_NOTE_NOTICES_ENV, type ProductPlanReplanJob, ty
|
|
|
57
57
|
* The first chant whose `parseProductComment` takes `leaveCommit` and that has `commitWordOf` (#4890): a comment job that is not the commit job leaves every comment for a commit word to it, a malformed one included, so the comment gets one reply.
|
|
58
58
|
*/
|
|
59
59
|
export declare const COMMENT_LEAVES_COMMIT_FLOOR = "0.124.88";
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
*/
|
|
63
|
+
export declare const COMMENT_COMMANDS_FLOOR = "0.124.89";
|
|
64
|
+
export { answerProductComment, answeredElsewhere, COMMENT_JOBS_ENV, commentRuns, PR_COMMENT_JOB, RERUN_APPLY_JOBS, type CommentJobs, type CommentOutcome, type CommentRuns, type AnswerCommentOptions } from "./ci-comment-commands.js";
|
|
65
|
+
export { forkReply, memberReply, notRunReply } from "./ci-comment-replies.js";
|
|
66
|
+
export type { CiProductCommentReplies } from "./ci-product-words.js";
|
|
67
|
+
export { productCommentJob, type ProductCommentJob } from "./components/product-pipeline.js";
|
|
68
|
+
/**
|
|
69
|
+
* 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`).
|
|
70
|
+
*/
|
|
71
|
+
export declare const PRODUCT_PLAN_REACH_LOCKS_FLOOR = "0.124.89";
|
|
72
|
+
export { LOCK_REACH_ENV, reachedTargets, reachOpen, type Reached, type ReachInput } from "./lifecycle/reach-locks.js";
|
|
73
|
+
export { productPlanReachLock, type ProductPlanReachLock } from "./components/product-plan.js";
|
|
74
|
+
export { planFlagsReply } from "./ci-comment-commands.js";
|
|
75
|
+
/**
|
|
76
|
+
* 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).
|
|
77
|
+
*/
|
|
78
|
+
export declare const WAVE_STOP_FLOOR = "0.124.89";
|
|
79
|
+
export { setWaveStop, waveStopAt, waveStopLine, type WaveStop } from "./op/wave-stop.js";
|
|
80
|
+
/**
|
|
81
|
+
* 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`).
|
|
82
|
+
*/
|
|
83
|
+
export declare const WAVES_BEFORE_MERGE_FLOOR = "0.124.90";
|
|
84
|
+
export { BEFORE_MERGE_DIGEST_ENV, BEFORE_MERGE_DONE_JOB, BEFORE_MERGE_HEAD_ENV, BEFORE_MERGE_PR_ENV, beforeMergeDigest, beforeMergePath, beforeMergeProblems, WAVES_BASE_ENV, type BeforeMergeDecision, type BeforeMergeRecord, type OpWavesBeforeMerge } from "./op/before-merge.js";
|
|
85
|
+
export { decideWavesBeforeMerge, defaultPipelineFiles, type WavesBeforeMergeJobs } from "./op/before-merge-decide.js";
|
|
86
|
+
export type { ProductWavesBeforeMerge } from "./components/product-pipeline.js";
|
|
87
|
+
/**
|
|
88
|
+
* 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`).
|
|
89
|
+
*/
|
|
90
|
+
export declare const WAVES_APPLY_STATUS_FLOOR = "0.124.90";
|
|
91
|
+
export { applyStatusJobName, opWaveApplyStatus, postOpWaveApplyStatus, type OpWaveApplyStatus, type OpWavesApplyStatus } from "./op/apply-status.js";
|
|
92
|
+
/**
|
|
93
|
+
* 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`). A `rest` wave is refused with `beforeMerge`.
|
|
94
|
+
*/
|
|
95
|
+
export declare const WAVES_BEFORE_MERGE_SPLIT_FLOOR = "0.124.90";
|
|
96
|
+
export { opWaveSplitJobs, type OpWavePhase, type OpWaveSplitJob } from "./op/op-waves-split.js";
|
|
97
|
+
/**
|
|
98
|
+
* 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. A `rest` wave splits from {@link WAVES_BEFORE_MERGE_REST_FLOOR} on.
|
|
99
|
+
*/
|
|
100
|
+
export declare const WAVES_BEFORE_MERGE_STEP_FLOOR = "0.124.90";
|
|
101
|
+
export type { OpWaveSavedStep, OpWaveSplitHandoff, OpWaveSplitLease } from "./op/op-waves-run.js";
|
|
102
|
+
/**
|
|
103
|
+
* 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.
|
|
104
|
+
*/
|
|
105
|
+
export declare const WAVES_PRODUCT_HOOKS_FLOOR = "0.124.90";
|
|
106
|
+
export type { OpWaveHandedFinished, OpWaveInProcessHook, OpWaveInProcessHookCall } from "./op/op-waves-run.js";
|
|
107
|
+
export { opWaveProductStateDir } from "./op/op-waves-split.js";
|
|
108
|
+
/**
|
|
109
|
+
* 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.
|
|
110
|
+
*/
|
|
111
|
+
export declare const WAVES_BEFORE_MERGE_REST_FLOOR = "0.124.90";
|
|
112
|
+
/**
|
|
113
|
+
* 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`.
|
|
114
|
+
*/
|
|
115
|
+
export declare const WAVES_FOLLOW_ON_RECORD_FLOOR = "0.124.90";
|
|
60
116
|
/**
|
|
61
117
|
* 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`.
|
|
62
118
|
*/
|
|
63
119
|
export declare const PRODUCT_PLAN_WATCHES_FLOOR = "0.124.88";
|
|
64
|
-
export { PLAN_WATCHES_ENV } from "./op/schedule-overdue.js";
|
|
120
|
+
export { PLAN_WATCHES_ENV, watchesForTarget } from "./op/schedule-overdue.js";
|
|
121
|
+
/**
|
|
122
|
+
* 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`).
|
|
123
|
+
*/
|
|
124
|
+
export declare const PRODUCT_PLAN_WATCH_TARGETS_FLOOR = "0.124.90";
|
|
65
125
|
/**
|
|
66
126
|
* 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.
|
|
67
127
|
*/
|
|
68
128
|
export declare const PRODUCT_PLAN_RECORD_FLOOR = "0.124.88";
|
|
69
129
|
export { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE, readPlanRunRecord } from "./pr-plan-record.js";
|
|
130
|
+
/**
|
|
131
|
+
* 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`).
|
|
132
|
+
*/
|
|
133
|
+
export declare const PRODUCT_PLAN_REPLAN_FLOOR = "0.124.89";
|
|
134
|
+
export { gitlabReplanArgumentLines, PREVIOUS_MARKER_JS, replanDecideJs, type ProductPlanReplanOptions } from "./components/product-plan.js";
|
|
135
|
+
export { planBodyHandoff, PLAN_BODY_LIMIT, type PrPlanBodyHandoff } from "./pr-plan-note.js";
|
|
136
|
+
/**
|
|
137
|
+
* 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. The plan job reads no note, and `previousMarker` is deprecated.
|
|
138
|
+
*/
|
|
139
|
+
export declare const PRODUCT_PLAN_SUBJECT_FLOOR = "0.124.89";
|
|
140
|
+
export { PLAN_SUBJECT_LIMIT, planSubjectProblem, sinceLastLine, subjectChanges, type PrPlanSubject, type PrPlanSubjectPartWords } from "./pr-plan-note.js";
|
|
70
141
|
/**
|
|
71
142
|
* Day-2 actions in the product pipeline (#4654): the `action` comment
|
|
72
143
|
* command counted as answered by the product's own workflow
|
package/dist/ci-product.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-product.d.ts","sourceRoot":"","sources":["../src/ci-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH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