@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
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* chant lock <target>... --pr <n> [--stage plan|apply|lock] [--head <sha>] [--by <who>] [--gate <name>] [--forge <kind>] [--json]
|
|
7
7
|
* chant lock --from-report <pr-plan.json> --pr <n> [--stage plan] [--forge <kind>] [--json]
|
|
8
8
|
* chant lock --keep --pr <n> [--head <sha>] [--gate <name>] [--forge <kind>] [--json]
|
|
9
|
+
* chant lock --reach --pr <n> --head <sha> --base <sha> --forge <kind> [--stage plan|apply|lock] [--gate <name>] [--json]
|
|
10
|
+
* chant lock --reach --open --base <sha> --forge gitlab [--branch <name>] [--stage plan] [--gate <name>] [--json]
|
|
9
11
|
* chant lock --list [--gate <name>] [--json]
|
|
10
12
|
* chant lock --alive <run>
|
|
11
13
|
* chant unlock --pr <n> [<target>...] [--gate <name>] [--json]
|
|
@@ -20,6 +22,13 @@
|
|
|
20
22
|
* a member is on the resource lock grain (#4552) the report carries
|
|
21
23
|
* `lockTargets`, its row keys, and those are locked instead.
|
|
22
24
|
*
|
|
25
|
+
* `--reach` (#4979) locks what a change reaches by the pipeline's reach line
|
|
26
|
+
* in `CHANT_LOCK_REACH`, which prints target names one a line from the
|
|
27
|
+
* change's files read as data (../../lifecycle/reach-locks.ts). chant first
|
|
28
|
+
* fetches the pull request's head and checks it is `--head`. With `--open`
|
|
29
|
+
* (GitLab's plan notes pipeline) every open merge request into the branch is
|
|
30
|
+
* locked, and a holder that is no longer open releases its locks.
|
|
31
|
+
*
|
|
23
32
|
* `--list` prints the target locks, then the apply rows of the gate's rows
|
|
24
33
|
* file (#4552, #4594), each with the run that holds it and when it took it.
|
|
25
34
|
*
|
|
@@ -52,9 +61,13 @@ import { readFileSync } from "node:fs";
|
|
|
52
61
|
import { CHANT_EXIT } from "../../exit-codes.js";
|
|
53
62
|
import { resolve } from "node:path";
|
|
54
63
|
import { formatError, formatInfo, formatSuccess, formatWarning } from "../format.js";
|
|
55
|
-
import { FORGE_KINDS
|
|
64
|
+
import { FORGE_KINDS } from "../../pr-forge.js";
|
|
65
|
+
// #4964: a status for a pull_request run's merge preview goes on the pull request's head.
|
|
66
|
+
import { forgeFromJobEnv } from "../../pr-forge-job.js";
|
|
56
67
|
import { PR_APPLY_GATE } from "../../pr-loop.js";
|
|
68
|
+
import { actorFromEnv } from "../../actor.js";
|
|
57
69
|
import { describeHeldTargetLocks, readTargetLocks, releaseTargetLocks, takeTargetLocks, targetLockGateProblem, targetLockPathAt, TARGET_LOCK_STAGES, } from "../../lifecycle/target-lock.js";
|
|
70
|
+
import { LOCK_REACH_ENV, reachedTargets, reachOpen } from "../../lifecycle/reach-locks.js";
|
|
58
71
|
/** The exit for a target another open pull request holds: `CHANT_EXIT.held`, 5 (#4553). */
|
|
59
72
|
const HELD_EXIT_CODE = CHANT_EXIT.held;
|
|
60
73
|
/** The status `chant lock --head <sha> --forge <kind>` posts. */
|
|
@@ -79,7 +92,7 @@ function forgeOf(ctx) {
|
|
|
79
92
|
if (!FORGE_KINDS.includes(kind))
|
|
80
93
|
return { error: `--forge ${kind} is not one of ${FORGE_KINDS.join(", ")}` };
|
|
81
94
|
try {
|
|
82
|
-
return
|
|
95
|
+
return forgeFromJobEnv(kind);
|
|
83
96
|
}
|
|
84
97
|
catch (err) {
|
|
85
98
|
return { error: err instanceof Error ? err.message : String(err) };
|
|
@@ -179,6 +192,9 @@ export async function runLock(ctx) {
|
|
|
179
192
|
console.log(`${key}\trun ${holder.run}\t${holder.at}${holder.url ? `\t${holder.url}` : ""}${holder.beat ? `\tbeat ${holder.beat}` : ""}`);
|
|
180
193
|
return 0;
|
|
181
194
|
}
|
|
195
|
+
// #4979: GitLab's lock job, in the target branch's plan notes pipeline, locks what every open merge request reaches.
|
|
196
|
+
if (args.lockReach && args.open)
|
|
197
|
+
return runReachOpen(ctx, gate);
|
|
182
198
|
if (args.pr === undefined)
|
|
183
199
|
return fail("chant lock needs the pull or merge request that holds the locks: --pr <n>", "chant lock --list prints the locks held now.");
|
|
184
200
|
const stage = (args.lockStage ?? "lock");
|
|
@@ -186,7 +202,27 @@ export async function runLock(ctx) {
|
|
|
186
202
|
return fail(`--stage ${args.lockStage} is not one of ${TARGET_LOCK_STAGES.join(", ")}`);
|
|
187
203
|
let targets = targetsOf(ctx);
|
|
188
204
|
let head = args.head;
|
|
189
|
-
if (args.
|
|
205
|
+
if (args.lockReach) {
|
|
206
|
+
// #4979: the targets the change reaches, from the pipeline's reach line, after the head is fetched and checked.
|
|
207
|
+
if (targets.length > 0 || args.fromReport || args.keepLocks)
|
|
208
|
+
return fail("--reach locks what the reach line prints; drop the names, --from-report and --keep");
|
|
209
|
+
const line = process.env[LOCK_REACH_ENV] ?? "";
|
|
210
|
+
if (!line.trim())
|
|
211
|
+
return fail(`--reach runs the reach line in ${LOCK_REACH_ENV}, which is not set`, "The generated lock job sets it from the product plan's reach.");
|
|
212
|
+
if (args.forge === undefined || !FORGE_KINDS.includes(args.forge))
|
|
213
|
+
return fail("--reach fetches the pull request's head from the forge: give --forge github, gitlab or forgejo");
|
|
214
|
+
if (!head || args.base === undefined)
|
|
215
|
+
return fail("--reach measures the change from --base <sha> to --head <sha>");
|
|
216
|
+
const reached = reachedTargets({ forge: args.forge, pr: args.pr, head, base: args.base, line });
|
|
217
|
+
if ("error" in reached)
|
|
218
|
+
return fail(reached.error);
|
|
219
|
+
if ("moved" in reached) {
|
|
220
|
+
console.error(formatInfo(reached.moved));
|
|
221
|
+
return 0;
|
|
222
|
+
}
|
|
223
|
+
targets = reached.targets;
|
|
224
|
+
}
|
|
225
|
+
else if (args.keepLocks) {
|
|
190
226
|
if (targets.length > 0 || args.fromReport)
|
|
191
227
|
return fail("--keep keeps the locks the pull request holds; drop the names and --from-report");
|
|
192
228
|
let file;
|
|
@@ -217,7 +253,7 @@ export async function runLock(ctx) {
|
|
|
217
253
|
if (forge && "error" in forge)
|
|
218
254
|
return fail(forge.error);
|
|
219
255
|
const isOpen = forge?.pullRequestOpen?.bind(forge);
|
|
220
|
-
const by = args.by ??
|
|
256
|
+
const by = args.by ?? actorFromEnv();
|
|
221
257
|
const name = prName(forge);
|
|
222
258
|
let result;
|
|
223
259
|
try {
|
|
@@ -250,6 +286,87 @@ export async function runLock(ctx) {
|
|
|
250
286
|
console.error(formatInfo("chant/lifecycle was not pushed: this repository has no remote, or recording is off"));
|
|
251
287
|
return 0;
|
|
252
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* `chant lock --reach --open --base <sha> --forge gitlab [--branch <name>]`
|
|
291
|
+
* (#4979): GitLab's lock job, in a pipeline of the target branch. Every
|
|
292
|
+
* open merge request from the project that merges into the branch (default
|
|
293
|
+
* `CI_COMMIT_BRANCH`) takes the locks of what its change reaches, and a
|
|
294
|
+
* holder that is no longer open releases its locks. Exit 3 when another
|
|
295
|
+
* merge request holds what one reaches, 1 when a reach could not be read.
|
|
296
|
+
*/
|
|
297
|
+
async function runReachOpen(ctx, gate) {
|
|
298
|
+
const { args } = ctx;
|
|
299
|
+
const line = process.env[LOCK_REACH_ENV] ?? "";
|
|
300
|
+
if (!line.trim())
|
|
301
|
+
return fail(`--reach runs the reach line in ${LOCK_REACH_ENV}, which is not set`);
|
|
302
|
+
if (args.pr !== undefined || targetsOf(ctx).length > 0)
|
|
303
|
+
return fail("--open locks every open merge request; drop --pr and the names");
|
|
304
|
+
if (args.base === undefined)
|
|
305
|
+
return fail("--reach measures each change from --base <sha>, the target branch's commit");
|
|
306
|
+
const stage = (args.lockStage ?? "plan");
|
|
307
|
+
if (!TARGET_LOCK_STAGES.includes(stage))
|
|
308
|
+
return fail(`--stage ${args.lockStage} is not one of ${TARGET_LOCK_STAGES.join(", ")}`);
|
|
309
|
+
const forge = forgeOf(ctx);
|
|
310
|
+
if (!forge)
|
|
311
|
+
return fail("--open asks the forge for the open merge requests: give --forge gitlab");
|
|
312
|
+
if ("error" in forge)
|
|
313
|
+
return fail(forge.error);
|
|
314
|
+
const branch = args.branch ?? process.env.CI_COMMIT_BRANCH ?? "";
|
|
315
|
+
if (!branch)
|
|
316
|
+
return fail("--open locks the merge requests into one branch: give --branch <name>, or run it in a branch pipeline");
|
|
317
|
+
if (!forge.openPullRequests || !forge.pullRequestOpen)
|
|
318
|
+
return fail(`the ${forge.kind} client cannot list the open merge requests`);
|
|
319
|
+
const isOpen = forge.pullRequestOpen.bind(forge);
|
|
320
|
+
const name = prName(forge);
|
|
321
|
+
let open;
|
|
322
|
+
try {
|
|
323
|
+
open = await forge.openPullRequests(branch);
|
|
324
|
+
}
|
|
325
|
+
catch (err) {
|
|
326
|
+
return fail(`could not list the open merge requests into ${branch}: ${err instanceof Error ? err.message : String(err)}`);
|
|
327
|
+
}
|
|
328
|
+
const by = actorFromEnv();
|
|
329
|
+
const { outcomes, released } = await reachOpen({
|
|
330
|
+
forge: forge.kind,
|
|
331
|
+
base: args.base,
|
|
332
|
+
line,
|
|
333
|
+
branch,
|
|
334
|
+
open,
|
|
335
|
+
isOpen,
|
|
336
|
+
take: async (pr, head, targets) => {
|
|
337
|
+
const r = await takeTargetLocks(gate, targets, { pr, by, at: new Date().toISOString(), stage, head }, { isOpen, releaseStalePlan: stage === "plan" });
|
|
338
|
+
if (r.ok) {
|
|
339
|
+
await postStatus(forge, head, "success", r.taken.length > 0 ? `holds ${r.taken.join(", ")}` : "reaches no target");
|
|
340
|
+
return { ok: true, released: r.released };
|
|
341
|
+
}
|
|
342
|
+
await postStatus(forge, head, "failure", `locked by ${[...new Set(r.held.map((h) => h.pr))].map(name).join(", ")}: ${r.held.map((h) => h.target).join(", ")}`);
|
|
343
|
+
return { ok: false, held: `${describeHeldTargetLocks(r.held, name)}, so ${name(pr)} is not locked` };
|
|
344
|
+
},
|
|
345
|
+
holders: async () => [...new Set(Object.values((await readTargetLocks(gate)).locks).map((l) => l.pr))].sort((a, b) => a - b),
|
|
346
|
+
release: async (pr) => (await releaseTargetLocks(gate, pr)).released,
|
|
347
|
+
});
|
|
348
|
+
let code = 0;
|
|
349
|
+
for (const o of outcomes) {
|
|
350
|
+
if (o.kind === "locked")
|
|
351
|
+
console.error(formatSuccess(`${name(o.pr)} ${o.targets.length > 0 ? `holds ${o.targets.join(", ")}` : "reaches no target"} on ${gate}${o.released.length > 0 ? `; released ${o.released.join(", ")}, which it no longer reaches` : ""}`));
|
|
352
|
+
else if (o.kind === "skipped")
|
|
353
|
+
console.error(formatInfo(o.text));
|
|
354
|
+
else if (o.kind === "held") {
|
|
355
|
+
console.error(formatError({ message: o.text }));
|
|
356
|
+
if (code === 0)
|
|
357
|
+
code = HELD_EXIT_CODE;
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
console.error(formatError({ message: `${name(o.pr)}: ${o.text}` }));
|
|
361
|
+
code = 1;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
for (const r of released)
|
|
365
|
+
console.error(formatInfo(`${name(r.pr)} is not open, so its locks on ${r.targets.join(", ")} are released`));
|
|
366
|
+
if (args.json)
|
|
367
|
+
console.log(JSON.stringify({ gate, outcomes, released }, null, 2));
|
|
368
|
+
return code;
|
|
369
|
+
}
|
|
253
370
|
/** chant unlock */
|
|
254
371
|
export async function runUnlock(ctx) {
|
|
255
372
|
const { args } = ctx;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant components pr-comment --forge github|forgejo` (#4946): the comment
|
|
3
|
+
* job of GitHub's and Forgejo's product pipeline.
|
|
4
|
+
*
|
|
5
|
+
* It reads the `issue_comment` event from `GITHUB_EVENT_PATH`, and the jobs
|
|
6
|
+
* the pipeline has from `CHANT_COMMENT_JOBS` (JSON, written by the
|
|
7
|
+
* generator), and answers the comment when no other job of the pipeline
|
|
8
|
+
* does (`../../ci-comment-commands.ts`): a refusal, a command no job runs,
|
|
9
|
+
* or the re-run of a merged pull request's apply. The words are the
|
|
10
|
+
* product's, as its bin set them.
|
|
11
|
+
*
|
|
12
|
+
* It runs at the target branch's commit with the job's token
|
|
13
|
+
* (`GITHUB_TOKEN`), so none of the change's code runs here, and it loads no
|
|
14
|
+
* plugins.
|
|
15
|
+
*/
|
|
16
|
+
import { type CommentBeforeMerge, type CommentJobs } from "../../ci-comment-commands.js";
|
|
17
|
+
import type { WavesBeforeMergeJobs } from "../../op/before-merge-decide.js";
|
|
18
|
+
import { type PrForge } from "../../pr-forge.js";
|
|
19
|
+
import type { CommandContext } from "../registry.js";
|
|
20
|
+
/** The jobs named in {@link COMMENT_JOBS_ENV}: each a boolean, `targets` a list of names, and anything else is refused. */
|
|
21
|
+
export declare function commentJobsFromEnv(raw: string | undefined): CommentJobs;
|
|
22
|
+
/** {@link COMMENT_JOBS_ENV}'s `wavesBeforeMerge` (#4984), each field checked, since the comment job pushes and dispatches with what it names. */
|
|
23
|
+
export declare function wavesBeforeMergeOf(x: unknown): WavesBeforeMergeJobs;
|
|
24
|
+
/**
|
|
25
|
+
* What the decision before merge reads and writes with (#4984), in the
|
|
26
|
+
* comment job (GitHub, Forgejo) and the note poll (GitLab): the requires
|
|
27
|
+
* and statuses through the job's client, git in the checkout of the
|
|
28
|
+
* default branch, the reach line's locks at stage apply, and the decision
|
|
29
|
+
* and the wave stop on this checkout's `chant/lifecycle`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function beforeMergeDeps(forge: PrForge, jobs: CommentJobs, env?: NodeJS.ProcessEnv): Promise<CommentBeforeMerge>;
|
|
32
|
+
export declare function runComponentsPrComment(ctx: CommandContext): Promise<number>;
|
|
33
|
+
//# sourceMappingURL=pr-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-comment.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAuD,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3I,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAoC,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,2HAA2H;AAC3H,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CA8BvE;AAED,iJAAiJ;AACjJ,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAiBnE;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA4C1I;AAED,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDjF"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant components pr-comment --forge github|forgejo` (#4946): the comment
|
|
3
|
+
* job of GitHub's and Forgejo's product pipeline.
|
|
4
|
+
*
|
|
5
|
+
* It reads the `issue_comment` event from `GITHUB_EVENT_PATH`, and the jobs
|
|
6
|
+
* the pipeline has from `CHANT_COMMENT_JOBS` (JSON, written by the
|
|
7
|
+
* generator), and answers the comment when no other job of the pipeline
|
|
8
|
+
* does (`../../ci-comment-commands.ts`): a refusal, a command no job runs,
|
|
9
|
+
* or the re-run of a merged pull request's apply. The words are the
|
|
10
|
+
* product's, as its bin set them.
|
|
11
|
+
*
|
|
12
|
+
* It runs at the target branch's commit with the job's token
|
|
13
|
+
* (`GITHUB_TOKEN`), so none of the change's code runs here, and it loads no
|
|
14
|
+
* plugins.
|
|
15
|
+
*/
|
|
16
|
+
import { readFileSync } from "node:fs";
|
|
17
|
+
import { activeProductWords } from "../../ci-product-words.js";
|
|
18
|
+
import { answerProductComment, COMMENT_JOBS_ENV, commentRuns } from "../../ci-comment-commands.js";
|
|
19
|
+
import { PR_APPLY_REQUIRES } from "../../pr-requires.js";
|
|
20
|
+
import { forgeFromEnv, forgeTargetFromEnv } from "../../pr-forge.js";
|
|
21
|
+
import { forgeReadsFor } from "../../pr-forge-reads.js";
|
|
22
|
+
import { formatError, formatInfo } from "../format.js";
|
|
23
|
+
const fail = (message) => {
|
|
24
|
+
console.error(formatError({ message }));
|
|
25
|
+
return 1;
|
|
26
|
+
};
|
|
27
|
+
/** The jobs named in {@link COMMENT_JOBS_ENV}: each a boolean, `targets` a list of names, and anything else is refused. */
|
|
28
|
+
export function commentJobsFromEnv(raw) {
|
|
29
|
+
if (raw === undefined || raw.trim() === "")
|
|
30
|
+
return {};
|
|
31
|
+
const v = JSON.parse(raw);
|
|
32
|
+
if (typeof v !== "object" || v === null || Array.isArray(v))
|
|
33
|
+
throw new Error(`${COMMENT_JOBS_ENV} is a JSON object of the jobs the pipeline has`);
|
|
34
|
+
const known = new Set(["preview", "applyBeforeMerge", "applyOnMerge", "locks", "agent", "commits", "actions", "skipForks", "targets", "noPlanFlags", "waves", "wavesBeforeMerge"]);
|
|
35
|
+
const jobs = {};
|
|
36
|
+
for (const [k, x] of Object.entries(v)) {
|
|
37
|
+
if (!known.has(k))
|
|
38
|
+
throw new Error(`${COMMENT_JOBS_ENV} names ${JSON.stringify(k)}, which is not one of ${[...known].join(", ")}`);
|
|
39
|
+
// #4984: the waves before merge.
|
|
40
|
+
if (k === "wavesBeforeMerge") {
|
|
41
|
+
jobs.wavesBeforeMerge = wavesBeforeMergeOf(x);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
// #4979: the waves' op and count, for a wave stop on a re-run.
|
|
45
|
+
if (k === "waves") {
|
|
46
|
+
const w = x;
|
|
47
|
+
if (!w || typeof w !== "object" || typeof w.op !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/.test(w.op) || !Number.isInteger(w.count) || w.count < 1)
|
|
48
|
+
throw new Error(`${COMMENT_JOBS_ENV}.waves is { op, count }: the waves' op name and how many waves there are`);
|
|
49
|
+
jobs.waves = { op: w.op, count: w.count };
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (k === "targets") {
|
|
53
|
+
if (!Array.isArray(x) || x.some((t) => typeof t !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(t)))
|
|
54
|
+
throw new Error(`${COMMENT_JOBS_ENV}.targets is a list of target names`);
|
|
55
|
+
if (x.length > 0)
|
|
56
|
+
jobs.targets = x;
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
if (typeof x !== "boolean")
|
|
60
|
+
throw new Error(`${COMMENT_JOBS_ENV}.${k} is true or false`);
|
|
61
|
+
if (x)
|
|
62
|
+
jobs[k] = true;
|
|
63
|
+
}
|
|
64
|
+
if (jobs.wavesBeforeMerge && !jobs.waves)
|
|
65
|
+
throw new Error(`${COMMENT_JOBS_ENV}.wavesBeforeMerge needs waves: { op, count }, the waves it starts`);
|
|
66
|
+
return jobs;
|
|
67
|
+
}
|
|
68
|
+
/** {@link COMMENT_JOBS_ENV}'s `wavesBeforeMerge` (#4984), each field checked, since the comment job pushes and dispatches with what it names. */
|
|
69
|
+
export function wavesBeforeMergeOf(x) {
|
|
70
|
+
const what = `${COMMENT_JOBS_ENV}.wavesBeforeMerge`;
|
|
71
|
+
const o = x;
|
|
72
|
+
if (!o || typeof o !== "object" || Array.isArray(o))
|
|
73
|
+
throw new Error(`${what} is { workflow?, requires?, plan, pipelineFiles, locks? }`);
|
|
74
|
+
const strings = (v) => Array.isArray(v) && v.every((s) => typeof s === "string" && s.trim() !== "" && !/[\r\n]/.test(s));
|
|
75
|
+
if (o.workflow !== undefined && (typeof o.workflow !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._-]*\.ya?ml$/.test(o.workflow)))
|
|
76
|
+
throw new Error(`${what}.workflow is a workflow file name, like deploy.yml`);
|
|
77
|
+
if (o.requires !== undefined && (!Array.isArray(o.requires) || o.requires.some((r) => !PR_APPLY_REQUIRES.includes(r))))
|
|
78
|
+
throw new Error(`${what}.requires is a list of ${PR_APPLY_REQUIRES.join(", ")}`);
|
|
79
|
+
if (!strings(o.plan))
|
|
80
|
+
throw new Error(`${what}.plan is the list of plan statuses that must pass on the head`);
|
|
81
|
+
if (!strings(o.pipelineFiles))
|
|
82
|
+
throw new Error(`${what}.pipelineFiles is the list of paths a change may not touch`);
|
|
83
|
+
if (o.locks !== undefined && (typeof o.locks !== "object" || o.locks === null || (o.locks.gate !== undefined && (typeof o.locks.gate !== "string" || !/^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/.test(o.locks.gate)))))
|
|
84
|
+
throw new Error(`${what}.locks is { gate? }`);
|
|
85
|
+
return {
|
|
86
|
+
...(o.workflow ? { workflow: o.workflow } : {}),
|
|
87
|
+
...(o.requires ? { requires: [...o.requires] } : {}),
|
|
88
|
+
plan: [...o.plan],
|
|
89
|
+
pipelineFiles: [...o.pipelineFiles],
|
|
90
|
+
...(o.locks ? { locks: { ...(o.locks.gate ? { gate: o.locks.gate } : {}) } } : {}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* What the decision before merge reads and writes with (#4984), in the
|
|
95
|
+
* comment job (GitHub, Forgejo) and the note poll (GitLab): the requires
|
|
96
|
+
* and statuses through the job's client, git in the checkout of the
|
|
97
|
+
* default branch, the reach line's locks at stage apply, and the decision
|
|
98
|
+
* and the wave stop on this checkout's `chant/lifecycle`.
|
|
99
|
+
*/
|
|
100
|
+
export async function beforeMergeDeps(forge, jobs, env = process.env) {
|
|
101
|
+
const bm = jobs.wavesBeforeMerge;
|
|
102
|
+
const op = jobs.waves.op;
|
|
103
|
+
const { spawnSync } = await import("node:child_process");
|
|
104
|
+
const { checkPrRequires, unmetRequires } = await import("../../pr-requires.js");
|
|
105
|
+
const { productStatusContext, activeProductWords } = await import("../../ci-product-words.js");
|
|
106
|
+
const { LOCK_REACH_ENV, reachedTargets } = await import("../../lifecycle/reach-locks.js");
|
|
107
|
+
const { takeTargetLocks, describeHeldTargetLocks } = await import("../../lifecycle/target-lock.js");
|
|
108
|
+
const { recordBeforeMerge } = await import("../../op/before-merge-store.js");
|
|
109
|
+
const { setWaveStop } = await import("../../op/wave-stop.js");
|
|
110
|
+
const { PR_APPLY_GATE } = await import("../../pr-loop.js");
|
|
111
|
+
const words = activeProductWords();
|
|
112
|
+
const line = env[LOCK_REACH_ENV];
|
|
113
|
+
const name = (n) => (forge.kind === "gitlab" ? `!${n}` : `pull request ${n}`);
|
|
114
|
+
return {
|
|
115
|
+
// The plan and apply statuses never hold the apply back: the plan status is asked for by name.
|
|
116
|
+
requires: async (pr, head) => unmetRequires(await checkPrRequires(forge, pr, head, { ignore: [productStatusContext(words, "apply"), productStatusContext(words, "plan"), `${productStatusContext(words, "plan")}/`], ...(bm.requires ? { only: bm.requires } : {}) })),
|
|
117
|
+
statuses: async (sha) => (await forge.commitStatuses?.(sha)) ?? [],
|
|
118
|
+
git: (argv, o) => {
|
|
119
|
+
const r = spawnSync(argv[0], argv.slice(1), { encoding: "utf8", ...(o.cwd ? { cwd: o.cwd } : {}) });
|
|
120
|
+
return { status: r.status, stdout: r.stdout ?? "", stderr: r.error ? r.error.message : (r.stderr ?? "") };
|
|
121
|
+
},
|
|
122
|
+
// #4979's reach line says what the change reaches; the locks go up at stage apply, refused while another holds one.
|
|
123
|
+
...(line && line.trim()
|
|
124
|
+
? {
|
|
125
|
+
lock: async (pr, head, base, by) => {
|
|
126
|
+
const reached = reachedTargets({ forge: forge.kind, pr, head, base, line });
|
|
127
|
+
if ("error" in reached)
|
|
128
|
+
throw new Error(reached.error);
|
|
129
|
+
if ("moved" in reached)
|
|
130
|
+
return { ok: false, text: `${name(pr)} moved while this comment was read, so nothing is ${words.verbs.apply[1]}; comment again once its checks pass` };
|
|
131
|
+
const isOpen = forge.pullRequestOpen?.bind(forge);
|
|
132
|
+
const r = await takeTargetLocks(bm.locks?.gate ?? PR_APPLY_GATE, reached.targets, { pr, by, at: new Date().toISOString(), stage: "apply", head }, { ...(isOpen ? { isOpen } : {}) });
|
|
133
|
+
if (!r.ok) {
|
|
134
|
+
const request = forge.kind === "gitlab" ? "merge request" : "pull request";
|
|
135
|
+
return { ok: false, text: `${describeHeldTargetLocks(r.held, name)}, so ${name(pr)} is not ${words.verbs.apply[1]}. It ${words.verbs.apply[0]}s once that ${request} merges or closes, or someone with write access unlocks it` };
|
|
136
|
+
}
|
|
137
|
+
return { ok: true, targets: r.taken };
|
|
138
|
+
},
|
|
139
|
+
}
|
|
140
|
+
: {}),
|
|
141
|
+
record: (d) => recordBeforeMerge(op, d),
|
|
142
|
+
stop: async (head, through) => {
|
|
143
|
+
await setWaveStop(op, head, through === null ? null : { through, at: new Date().toISOString() });
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export async function runComponentsPrComment(ctx) {
|
|
148
|
+
const { args } = ctx;
|
|
149
|
+
const kind = args.forge;
|
|
150
|
+
if (kind !== "github" && kind !== "forgejo")
|
|
151
|
+
return fail("pr-comment answers a GitHub or Forgejo comment: --forge github|forgejo (GitLab's notes are polled by pr-notes)");
|
|
152
|
+
const env = process.env;
|
|
153
|
+
const eventPath = env.GITHUB_EVENT_PATH;
|
|
154
|
+
if (!eventPath)
|
|
155
|
+
return fail("pr-comment reads the comment from the event file, and GITHUB_EVENT_PATH is not set");
|
|
156
|
+
let event;
|
|
157
|
+
let jobs;
|
|
158
|
+
let poster;
|
|
159
|
+
let target;
|
|
160
|
+
try {
|
|
161
|
+
event = JSON.parse(readFileSync(eventPath, "utf8"));
|
|
162
|
+
jobs = commentJobsFromEnv(env[COMMENT_JOBS_ENV]);
|
|
163
|
+
poster = forgeFromEnv(kind, env);
|
|
164
|
+
target = forgeTargetFromEnv(env, { kind });
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
168
|
+
}
|
|
169
|
+
const repository = event?.repository;
|
|
170
|
+
const base = args.branch ?? (typeof repository?.default_branch === "string" ? repository.default_branch : undefined);
|
|
171
|
+
if (!base)
|
|
172
|
+
return fail("pr-comment needs the default branch: --branch <name>, or repository.default_branch in the event");
|
|
173
|
+
const outcome = await answerProductComment({
|
|
174
|
+
forge: kind,
|
|
175
|
+
event,
|
|
176
|
+
repo: target.repo,
|
|
177
|
+
reads: forgeReadsFor(target),
|
|
178
|
+
poster,
|
|
179
|
+
runs: commentRuns({ apiBase: target.apiBase, repo: target.repo, token: target.token }),
|
|
180
|
+
words: activeProductWords(),
|
|
181
|
+
base,
|
|
182
|
+
jobs,
|
|
183
|
+
env,
|
|
184
|
+
// #4984: the decision before merge, its record and its wave stop on this checkout's chant/lifecycle.
|
|
185
|
+
...(jobs.wavesBeforeMerge ? { beforeMerge: await beforeMergeDeps(poster, jobs, env) } : {}),
|
|
186
|
+
// #4979: the wave stop goes on this checkout's chant/lifecycle, which the job pushes with its token.
|
|
187
|
+
...(jobs.waves
|
|
188
|
+
? {
|
|
189
|
+
stops: async (op, sha, stop) => {
|
|
190
|
+
const { setWaveStop } = await import("../../op/wave-stop.js");
|
|
191
|
+
await setWaveStop(op, sha, stop);
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
|
+
: {}),
|
|
195
|
+
});
|
|
196
|
+
const line = `pr-comment: ${outcome.reason}`;
|
|
197
|
+
if (outcome.fail)
|
|
198
|
+
return fail(line);
|
|
199
|
+
console.error(formatInfo(line));
|
|
200
|
+
return 0;
|
|
201
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-env.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;
|
|
1
|
+
{"version":3,"file":"pr-env.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AA8CH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAWlD,8CAA8C;AAC9C,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAO7E"}
|
|
@@ -44,9 +44,12 @@ import { commandTeardownAdapter, prEnvDown as prEnvDownRun, prEnvOp, prEnvSweep
|
|
|
44
44
|
import { forgePrEnvPublisher, lifecyclePrEnvPorts } from "../../components/pr-env-ports.js";
|
|
45
45
|
import { applyPrSet } from "../../components/pr-run.js";
|
|
46
46
|
import { prOp } from "../../pr-loop.js";
|
|
47
|
-
import { FORGE_KINDS,
|
|
47
|
+
import { FORGE_KINDS, forgePrincipalOf } from "../../pr-forge.js";
|
|
48
|
+
// #4964: a status for a pull_request run's merge preview goes on the pull request's head.
|
|
49
|
+
import { forgeFromJobEnv } from "../../pr-forge-job.js";
|
|
48
50
|
import { formatError, formatInfo, formatWarning } from "../format.js";
|
|
49
51
|
import { withComponentEndpoint } from "../component-endpoint.js";
|
|
52
|
+
import { actorFromEnv } from "../../actor.js";
|
|
50
53
|
const USAGE = "chant components pr-env up --base <ref> --pr <n> [--no-push] | post --pr <n> --head <sha> | down --pr <n> [--reason closed|expired] | sweep";
|
|
51
54
|
const fail = (message, hint) => {
|
|
52
55
|
console.error(formatError({ message, ...(hint ? { hint } : {}) }));
|
|
@@ -72,14 +75,14 @@ function forgeOf(ctx) {
|
|
|
72
75
|
if (!FORGE_KINDS.includes(kind))
|
|
73
76
|
return fail(`--forge ${kind} is not one of ${FORGE_KINDS.join(", ")}`);
|
|
74
77
|
try {
|
|
75
|
-
return
|
|
78
|
+
return forgeFromJobEnv(kind);
|
|
76
79
|
}
|
|
77
80
|
catch (err) {
|
|
78
81
|
return fail(err instanceof Error ? err.message : String(err));
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
function actor() {
|
|
82
|
-
return process.env
|
|
85
|
+
return actorFromEnv(process.env, "chant");
|
|
83
86
|
}
|
|
84
87
|
function memberOf(ctx) {
|
|
85
88
|
return ctx.args.members?.length === 1 ? ctx.args.members[0] : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-notes.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"pr-notes.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr-notes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmE/E"}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
import { resolve } from "node:path";
|
|
12
12
|
import { activeProductWords } from "../../ci-product-words.js";
|
|
13
13
|
import { chantNoteRuns, gitlabPipelines, ledgerNoteLog, pollNoteCommands } from "../../ci-note-commands.js";
|
|
14
|
+
import { COMMENT_JOBS_ENV } from "../../ci-comment-commands.js";
|
|
15
|
+
import { beforeMergeDeps, commentJobsFromEnv } from "./pr-comment.js";
|
|
14
16
|
import { forgeFromEnv, forgeTargetFromEnv } from "../../pr-forge.js";
|
|
15
17
|
import { forgeReadsFor } from "../../pr-forge-reads.js";
|
|
16
18
|
import { formatError, formatInfo, formatWarning } from "../format.js";
|
|
@@ -40,6 +42,15 @@ export async function runComponentsPrNotes(ctx) {
|
|
|
40
42
|
// The ledger keeps the notes answered: read it as the remote has it.
|
|
41
43
|
await fetchLifecycle({ cwd });
|
|
42
44
|
const words = activeProductWords();
|
|
45
|
+
// #4984: the waves' op and count, and the waves before merge, as the pipeline wrote them in CHANT_COMMENT_JOBS.
|
|
46
|
+
let more;
|
|
47
|
+
try {
|
|
48
|
+
more = commentJobsFromEnv(env[COMMENT_JOBS_ENV]);
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
52
|
+
}
|
|
53
|
+
const beforeMerge = more.wavesBeforeMerge && more.waves ? await beforeMergeDeps(forge, more, env) : undefined;
|
|
43
54
|
const polled = await pollNoteCommands({
|
|
44
55
|
reads: forgeReadsFor(target),
|
|
45
56
|
forge,
|
|
@@ -51,9 +62,20 @@ export async function runComponentsPrNotes(ctx) {
|
|
|
51
62
|
...(args.applyBeforeMerge ? { applyBeforeMerge: true } : {}),
|
|
52
63
|
...(args.applyOnMerge ? { applyOnMerge: true } : {}),
|
|
53
64
|
...(args.locks ? { locks: true } : {}),
|
|
54
|
-
|
|
65
|
+
...(more.waves ? { waves: more.waves } : {}),
|
|
66
|
+
...(more.wavesBeforeMerge ? { wavesBeforeMerge: more.wavesBeforeMerge } : {}),
|
|
67
|
+
}, beforeMerge ? { beforeMerge } : {}),
|
|
55
68
|
log: ledgerNoteLog({ cwd }),
|
|
56
69
|
env,
|
|
70
|
+
// #4984: a merged merge request's wave-<n> stops the retried waves after it.
|
|
71
|
+
...(more.waves
|
|
72
|
+
? {
|
|
73
|
+
stops: async (op, sha, stop) => {
|
|
74
|
+
const { setWaveStop } = await import("../../op/wave-stop.js");
|
|
75
|
+
await setWaveStop(op, sha, stop, { cwd });
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
: {}),
|
|
57
79
|
});
|
|
58
80
|
let failed = polled.fail !== undefined;
|
|
59
81
|
for (const o of polled.outcomes) {
|
|
@@ -172,6 +172,28 @@ export declare function leaseRoundRows(p: Pick<Prepared, "gate">): NonNullable<P
|
|
|
172
172
|
export declare function runComponentsPrPlan(ctx: CommandContext): Promise<number>;
|
|
173
173
|
/** chant components pr-apply --base <ref> [--pr <n>] [--env <env>] [--gate <name>] [--forge <kind>] [--require-review] [--before-merge [--requires <list>]] [--output <dir>] [--json] [--events-json] [--report-url <url>] */
|
|
174
174
|
export declare function runComponentsPrApply(ctx: CommandContext): Promise<number>;
|
|
175
|
+
/**
|
|
176
|
+
* The branch an apply before merge lands on (#4966): `--branch`, else the
|
|
177
|
+
* pull request's target as its job names it, else the branch the job runs
|
|
178
|
+
* on, which for the generated apply job is the target branch (an
|
|
179
|
+
* `issue_comment` run on GitHub and Forgejo, a target-branch pipeline on
|
|
180
|
+
* GitLab).
|
|
181
|
+
*/
|
|
182
|
+
export declare function beforeMergeBranch(explicit: string | undefined, env?: Record<string, string | undefined>): string | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* The statuses an apply before merge waits for beside the forge's own
|
|
185
|
+
* (#4966): the ref gate's status for the target branch, as the policy at
|
|
186
|
+
* `base` sets it (`refGateRulesAt`), passed as `require` to the `checks`
|
|
187
|
+
* require, so `checks` does not pass before the `ref-gate` job posted it.
|
|
188
|
+
* No rule for the branch requires nothing; a policy that can't be read is
|
|
189
|
+
* a problem, and the apply stops.
|
|
190
|
+
*/
|
|
191
|
+
export declare function beforeMergeRefGate(cwd: string, base: string, branch: string | undefined, env?: Record<string, string | undefined>): Promise<{
|
|
192
|
+
require: string[];
|
|
193
|
+
note?: string;
|
|
194
|
+
} | {
|
|
195
|
+
problem: string;
|
|
196
|
+
}>;
|
|
175
197
|
/** chant components pr-record --base <ref> [--pr <n>] [--env <env>] [--gate <name>] [--forge <kind>] [--output <dir>] [--json] [--events-json] [--report-url <url>] */
|
|
176
198
|
export declare function runComponentsPrRecord(ctx: CommandContext): Promise<number>;
|
|
177
199
|
/** A waiting wave's or round's approve lines (#4574): one per component when the product's template names `{target}`, as the note names them (#4601). */
|
|
@@ -200,7 +222,7 @@ export declare function runComponentsPlanWave(ctx: CommandContext): Promise<numb
|
|
|
200
222
|
*/
|
|
201
223
|
export declare function runComponentsApplyWave(ctx: CommandContext): Promise<number>;
|
|
202
224
|
/**
|
|
203
|
-
* chant components pr-post --pr <n> --head <sha> --env <env> --forge <kind> [--member <name>] [--output <dir>] [--result <result>] (#4295)
|
|
225
|
+
* chant components pr-post --pr <n> --head <sha> --env <env> --forge <kind> [--member <name>] [--output <dir>] [--result <result>] [--not-affected <argument>] (#4295, #4963)
|
|
204
226
|
* chant components pr-post --open --env <env> --forge gitlab [--branch <branch>] [--member <name>] [--output <dir>] (#4328)
|
|
205
227
|
*
|
|
206
228
|
* Post the plan note and the `chant/plan` status from the report a plan job
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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