@intentius/chant 0.124.87 → 0.124.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-pins.d.ts +1 -0
- package/dist/action-pins.d.ts.map +1 -1
- package/dist/action-pins.js +2 -0
- package/dist/actor.d.ts +47 -0
- package/dist/actor.d.ts.map +1 -0
- package/dist/actor.js +56 -0
- package/dist/bundle-check.d.ts +20 -5
- package/dist/bundle-check.d.ts.map +1 -1
- package/dist/bundle-check.js +20 -5
- package/dist/chant-install.d.ts +98 -0
- package/dist/chant-install.d.ts.map +1 -1
- package/dist/chant-install.js +203 -2
- package/dist/ci-base.d.ts +30 -0
- package/dist/ci-base.d.ts.map +1 -0
- package/dist/ci-base.js +33 -0
- package/dist/ci-comment-commands.d.ts +177 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +325 -0
- package/dist/ci-comment-replies.d.ts +40 -0
- package/dist/ci-comment-replies.d.ts.map +1 -0
- package/dist/ci-comment-replies.js +59 -0
- package/dist/ci-commit.d.ts +1 -1
- package/dist/ci-commit.d.ts.map +1 -1
- package/dist/ci-commit.js +1 -2
- package/dist/ci-control.d.ts +1 -1
- package/dist/ci-control.d.ts.map +1 -1
- package/dist/ci-control.js +1 -1
- package/dist/ci-evidence-claims.d.ts +59 -0
- package/dist/ci-evidence-claims.d.ts.map +1 -0
- package/dist/ci-evidence-claims.js +87 -0
- package/dist/ci-evidence-from-job.d.ts +128 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -0
- package/dist/ci-evidence-from-job.js +203 -0
- package/dist/ci-evidence-jobs.d.ts +68 -4
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +82 -5
- package/dist/ci-handover.d.ts +12 -0
- package/dist/ci-handover.d.ts.map +1 -1
- package/dist/ci-handover.js +15 -3
- package/dist/ci-identity.d.ts +32 -6
- package/dist/ci-identity.d.ts.map +1 -1
- package/dist/ci-identity.js +40 -8
- package/dist/ci-image.d.ts +65 -10
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +101 -22
- package/dist/ci-jobs.d.ts +1 -1
- package/dist/ci-jobs.d.ts.map +1 -1
- package/dist/ci-jobs.js +7 -2
- package/dist/ci-login.d.ts +75 -13
- package/dist/ci-login.d.ts.map +1 -1
- package/dist/ci-login.js +89 -37
- package/dist/ci-note-commands.d.ts +63 -3
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +69 -35
- package/dist/ci-product-words.d.ts +62 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +52 -1
- package/dist/ci-product.d.ts +52 -2
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +51 -2
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +29 -2
- package/dist/cli/handlers/approve-confirm.d.ts +14 -0
- package/dist/cli/handlers/approve-confirm.d.ts.map +1 -1
- package/dist/cli/handlers/approve-confirm.js +46 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +2 -1
- package/dist/cli/handlers/build.d.ts +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +22 -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 +37 -7
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +255 -20
- package/dist/cli/handlers/ci-forge-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-forge-check.js +34 -17
- 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 +11 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -0
- package/dist/cli/handlers/generated-check.js +71 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +3 -0
- package/dist/cli/handlers/local-chant.d.ts +13 -0
- package/dist/cli/handlers/local-chant.d.ts.map +1 -1
- package/dist/cli/handlers/local-chant.js +42 -1
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +121 -4
- package/dist/cli/handlers/pr-comment.d.ts +21 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +112 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +6 -3
- package/dist/cli/handlers/pr.d.ts +23 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +97 -14
- 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 +36 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +2 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +60 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +82 -0
- package/dist/cli/registry.d.ts +35 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -1
- package/dist/components/check-hooks.d.ts +10 -0
- package/dist/components/check-hooks.d.ts.map +1 -1
- package/dist/components/check-hooks.js +18 -0
- package/dist/components/pr-checks.d.ts +169 -0
- package/dist/components/pr-checks.d.ts.map +1 -0
- package/dist/components/pr-checks.js +180 -0
- package/dist/components/pr-pipeline.d.ts +38 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +6 -1
- package/dist/components/product-pipeline.d.ts +58 -2
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +76 -9
- package/dist/components/product-plan.d.ts +445 -7
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +426 -15
- package/dist/config.d.ts +10 -6
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -6
- package/dist/control/consumers.d.ts +6 -0
- package/dist/control/consumers.d.ts.map +1 -1
- package/dist/control/consumers.js +6 -0
- package/dist/dead-guards.d.ts.map +1 -1
- package/dist/dead-guards.js +9 -6
- package/dist/discovery/files.d.ts +1 -1
- package/dist/discovery/files.js +1 -1
- package/dist/drift-issue.d.ts +20 -3
- package/dist/drift-issue.d.ts.map +1 -1
- package/dist/drift-issue.js +16 -0
- package/dist/drift-record.d.ts +52 -5
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +46 -6
- package/dist/floor-table.d.ts +6 -6
- package/dist/floor-table.d.ts.map +1 -1
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +81 -21
- package/dist/floor-table.js +10 -7
- package/dist/forge-check/contract.d.ts +19 -1
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +8 -2
- package/dist/forge-check/index.d.ts +4 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +4 -0
- package/dist/forge-flags.d.ts +10 -0
- package/dist/forge-flags.d.ts.map +1 -1
- package/dist/forge-flags.js +31 -0
- package/dist/forge-remote.d.ts +47 -0
- package/dist/forge-remote.d.ts.map +1 -0
- package/dist/forge-remote.js +69 -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 +88 -0
- package/dist/generated-check.d.ts.map +1 -0
- package/dist/generated-check.js +248 -0
- 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 +27 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +11 -0
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +30 -3
- package/dist/lifecycle/publish-npm.d.ts +26 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +76 -4
- 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 +22 -1
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +26 -3
- package/dist/lifecycle/release-ledger.d.ts +4 -3
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +3 -2
- package/dist/local-chant.d.ts +57 -3
- package/dist/local-chant.d.ts.map +1 -1
- package/dist/local-chant.js +122 -13
- package/dist/notify-product.d.ts +12 -3
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +10 -6
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +2 -1
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +2 -1
- package/dist/op/index.d.ts +2 -0
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-evidence-jobs.d.ts +97 -0
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-jobs.js +118 -0
- package/dist/op/op-waves-evidence.d.ts +12 -1
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +23 -2
- 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 +14 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +56 -4
- package/dist/op/op-waves.d.ts +12 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +14 -1
- package/dist/op/schedule-overdue.d.ts +39 -2
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +148 -10
- package/dist/op/wave-stop.d.ts +64 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +127 -0
- package/dist/planned-files.d.ts +76 -0
- package/dist/planned-files.d.ts.map +1 -0
- package/dist/planned-files.js +108 -0
- package/dist/pr-forge-job.d.ts +22 -0
- package/dist/pr-forge-job.d.ts.map +1 -0
- package/dist/pr-forge-job.js +46 -0
- package/dist/pr-forge-reads.d.ts +21 -1
- package/dist/pr-forge-reads.d.ts.map +1 -1
- package/dist/pr-forge-reads.js +19 -1
- package/dist/pr-forge.d.ts +7 -1
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +7 -2
- 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 +121 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +104 -1
- package/dist/pr-plan-record.d.ts +47 -0
- package/dist/pr-plan-record.d.ts.map +1 -0
- package/dist/pr-plan-record.js +89 -0
- package/dist/pr-post.d.ts +68 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +218 -13
- package/dist/pr-requires.d.ts +8 -0
- package/dist/pr-requires.d.ts.map +1 -1
- package/dist/pr-requires.js +3 -1
- 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 +90 -0
- package/dist/ref-gate-init.d.ts.map +1 -0
- package/dist/ref-gate-init.js +155 -0
- package/dist/ref-gate-rules.d.ts +19 -0
- package/dist/ref-gate-rules.d.ts.map +1 -0
- package/dist/ref-gate-rules.js +17 -0
- package/dist/release-floors.d.ts +100 -16
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +101 -17
- 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 +24 -1
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +39 -4
- package/dist/state-unlock.d.ts +32 -1
- package/dist/state-unlock.d.ts.map +1 -1
- package/dist/state-unlock.js +31 -0
- package/dist/wave-runtime.mjs +307 -297
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +15 -8
- package/dist/workspace/drift-cli.d.ts +1 -1
- package/dist/workspace/drift-cli.d.ts.map +1 -1
- package/dist/workspace/drift-cli.js +5 -12
- package/dist/workspace/forge-work.d.ts +3 -2
- package/dist/workspace/forge-work.d.ts.map +1 -1
- package/dist/workspace/forge-work.js +7 -17
- package/dist/workspace/lexicon-outputs.js +2 -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 +27 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +52 -7
- package/dist/workspace/trust/check-evidence-report.d.ts +25 -2
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +28 -8
- package/dist/workspace/trust/check-evidence.d.ts +13 -1
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +8 -3
- package/dist/workspace/trust/evidence.d.ts +5 -0
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/evidence.js +5 -0
- package/dist/workspace/trust/open-evidence.d.ts +67 -0
- package/dist/workspace/trust/open-evidence.d.ts.map +1 -0
- package/dist/workspace/trust/open-evidence.js +92 -0
- 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 +93 -11
- package/dist/workspace/trust/ref-gate.d.ts +61 -2
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +72 -7
- 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/action-pins.ts +2 -0
- package/src/actor.test.ts +78 -0
- package/src/actor.ts +79 -0
- package/src/bundle-check.test.ts +22 -0
- package/src/bundle-check.ts +33 -5
- package/src/chant-install.test.ts +108 -1
- package/src/chant-install.ts +242 -2
- package/src/ci-base.test.ts +41 -0
- package/src/ci-base.ts +43 -0
- package/src/ci-comment-commands.test.ts +376 -0
- package/src/ci-comment-commands.ts +389 -0
- package/src/ci-comment-replies.ts +78 -0
- package/src/ci-commit.test.ts +51 -6
- package/src/ci-commit.ts +1 -2
- package/src/ci-control.ts +1 -0
- package/src/ci-evidence-claims.ts +102 -0
- package/src/ci-evidence-from-job.test.ts +165 -0
- package/src/ci-evidence-from-job.ts +251 -0
- package/src/ci-evidence-jobs.ts +88 -6
- package/src/ci-handover.ts +16 -3
- package/src/ci-identity.test.ts +3 -3
- package/src/ci-identity.ts +51 -11
- package/src/ci-image.test.ts +187 -16
- package/src/ci-image.ts +157 -25
- package/src/ci-jobs.ts +7 -2
- package/src/ci-login.test.ts +131 -3
- package/src/ci-login.token-drop.test.ts +204 -0
- package/src/ci-login.ts +137 -39
- package/src/ci-note-commands.ts +104 -41
- package/src/ci-product-words.ts +89 -0
- package/src/ci-product.ts +62 -1
- package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
- package/src/cli/commands/build.test.ts +41 -0
- package/src/cli/commands/build.ts +27 -2
- package/src/cli/handlers/approve-confirm.test.ts +35 -0
- package/src/cli/handlers/approve-confirm.ts +44 -0
- package/src/cli/handlers/approve.ts +2 -1
- package/src/cli/handlers/build-source-dir.test.ts +4 -0
- package/src/cli/handlers/build.ts +20 -2
- package/src/cli/handlers/ci-check.ts +37 -7
- package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
- package/src/cli/handlers/ci-evidence.ts +233 -18
- package/src/cli/handlers/ci-forge-check.ts +22 -9
- package/src/cli/handlers/components.ts +3 -1
- package/src/cli/handlers/generated-check.ts +69 -0
- package/src/cli/handlers/lifecycle.test.ts +20 -0
- package/src/cli/handlers/lifecycle.ts +4 -0
- package/src/cli/handlers/local-chant.ts +39 -1
- package/src/cli/handlers/lock-reach.test.ts +103 -0
- package/src/cli/handlers/lock.ts +100 -4
- package/src/cli/handlers/pr-comment.ts +104 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +93 -15
- 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 +35 -2
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +60 -4
- package/src/cli/parse-args.ts +58 -0
- package/src/cli/registry.ts +35 -0
- package/src/components/auto-release.ts +2 -1
- package/src/components/check-hooks.ts +22 -0
- package/src/components/check-report-summary.test.ts +78 -0
- package/src/components/pr-checks.ts +254 -0
- package/src/components/pr-pipeline.ts +43 -1
- package/src/components/product-pipeline.ts +113 -9
- package/src/components/product-plan.test.ts +140 -1
- package/src/components/product-plan.ts +707 -20
- package/src/config.ts +13 -8
- package/src/control/consumers.ts +7 -0
- package/src/dead-guards.test.ts +27 -5
- package/src/dead-guards.ts +9 -6
- package/src/discovery/files.ts +1 -1
- package/src/drift-issue.test.ts +29 -1
- package/src/drift-issue.ts +28 -3
- package/src/drift-record.test.ts +45 -0
- package/src/drift-record.ts +71 -6
- package/src/floor-table.data.ts +81 -21
- package/src/floor-table.ts +12 -9
- package/src/forge-check/contract.ts +23 -2
- package/src/forge-check/forge-check.test.ts +25 -0
- package/src/forge-check/index.ts +4 -0
- package/src/forge-flags.test.ts +25 -1
- package/src/forge-flags.ts +34 -0
- package/src/forge-remote.test.ts +37 -0
- package/src/forge-remote.ts +79 -0
- package/src/gate-resume-run.ts +27 -3
- package/src/generated-check.e2e.test.ts +118 -0
- package/src/generated-check.test.ts +170 -0
- package/src/generated-check.ts +310 -0
- package/src/image-pins.ts +31 -0
- package/src/lexicon.ts +28 -0
- package/src/lifecycle/git.test.ts +48 -0
- package/src/lifecycle/git.ts +27 -4
- package/src/lifecycle/publish-npm.ts +87 -4
- package/src/lifecycle/reach-locks.test.ts +87 -0
- package/src/lifecycle/reach-locks.ts +169 -0
- package/src/lifecycle/release-catalog.test.ts +2 -2
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
- package/src/lifecycle/release-images.test.ts +100 -0
- package/src/lifecycle/release-images.ts +38 -3
- package/src/lifecycle/release-ledger.ts +4 -3
- package/src/local-chant.e2e.test.ts +81 -6
- package/src/local-chant.test.ts +22 -3
- package/src/local-chant.ts +130 -13
- package/src/notify-product.ts +19 -8
- package/src/op/activities/source-release.ts +2 -1
- package/src/op/activities/source-rollback.ts +2 -1
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/index.ts +10 -0
- package/src/op/op-waves-evidence-jobs.ts +140 -0
- package/src/op/op-waves-evidence.test.ts +36 -3
- package/src/op/op-waves-evidence.ts +23 -3
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +160 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +59 -3
- package/src/op/op-waves.ts +16 -2
- package/src/op/schedule-overdue.test.ts +126 -1
- package/src/op/schedule-overdue.ts +164 -12
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +137 -0
- package/src/planned-files.test.ts +80 -0
- package/src/planned-files.ts +134 -0
- package/src/pr-forge-job.test.ts +53 -0
- package/src/pr-forge-job.ts +46 -0
- package/src/pr-forge-reads-compare.test.ts +2 -1
- package/src/pr-forge-reads.ts +37 -1
- package/src/pr-forge.ts +14 -3
- 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 +184 -3
- package/src/pr-plan-record.test.ts +75 -0
- package/src/pr-plan-record.ts +101 -0
- package/src/pr-post-plan-note.test.ts +60 -0
- package/src/pr-post-replan.test.ts +144 -0
- package/src/pr-post-subject.test.ts +230 -0
- package/src/pr-post.test.ts +32 -1
- package/src/pr-post.ts +254 -15
- package/src/pr-requires.test.ts +20 -0
- package/src/pr-requires.ts +10 -1
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +208 -0
- package/src/ref-gate-rules.ts +26 -0
- package/src/release-floors.ts +139 -17
- package/src/render-module.ts +73 -0
- package/src/state-migration-record.test.ts +89 -0
- package/src/state-migration.test.ts +1 -1
- package/src/state-migration.ts +52 -4
- package/src/state-unlock.test.ts +33 -1
- package/src/state-unlock.ts +49 -1
- package/src/workspace/ci-green-cli.ts +14 -7
- package/src/workspace/ci-green-workflow.test.ts +32 -1
- package/src/workspace/drift-cli.ts +6 -18
- package/src/workspace/forge-work.ts +7 -14
- package/src/workspace/lexicon-outputs.ts +2 -2
- package/src/workspace/release-train.ts +2 -1
- package/src/workspace/release-workflow.test.ts +104 -3
- package/src/workspace/release-workflow.ts +60 -9
- package/src/workspace/trust/check-evidence-report.ts +39 -8
- package/src/workspace/trust/check-evidence.test.ts +5 -0
- package/src/workspace/trust/check-evidence.ts +17 -5
- package/src/workspace/trust/evidence.ts +5 -0
- package/src/workspace/trust/open-evidence.ts +129 -0
- package/src/workspace/trust/ref-gate-cli.ts +88 -10
- package/src/workspace/trust/ref-gate-pieces.test.ts +220 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
- package/src/workspace/trust/ref-gate.test.ts +10 -0
- package/src/workspace/trust/ref-gate.ts +87 -6
- package/src/workspace/workspace-run.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-green-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAA4G,cAAc,EAAE,MAAM,YAAY,CAAC;AAWtJ,OAAO,EAAE,cAAc,EAAE,CAAC;AAe1B,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBzE;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAID,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBpE;AAeD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"ci-green-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAA4G,cAAc,EAAE,MAAM,YAAY,CAAC;AAWtJ,OAAO,EAAE,cAAc,EAAE,CAAC;AAe1B,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBzE;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAID,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBpE;AAeD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiFxE"}
|
|
@@ -234,8 +234,14 @@ export async function runCiWorkflow(ctx) {
|
|
|
234
234
|
const root = realpathSync(found.dir);
|
|
235
235
|
const repoRoot = gitTop(root) ?? root;
|
|
236
236
|
const member = resolveMemberContext(cwd, found);
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
// #4909: under `chant dev generated-check` the file goes to the render
|
|
238
|
+
// tree; it is read and named as the committed file it stands for. #4950:
|
|
239
|
+
// with no --output too, so a render needs no `--output {out}/...`.
|
|
240
|
+
const { committedPathOf, isRenderPath, renderPathOf } = await import("../generated-check.js");
|
|
241
|
+
const target = ctx.args.output ? resolve(realpathSync(cwd), ctx.args.output) : renderPathOf(join(repoRoot, CI_GREEN_WORKFLOW_FILE));
|
|
242
|
+
const rendering = isRenderPath(target);
|
|
243
|
+
const asCommitted = committedPathOf(target);
|
|
244
|
+
const fromRepo = relative(repoRoot, asCommitted).split(sep).join("/");
|
|
239
245
|
// The merge queue's verdict (#4644) is ours too, and holds no phase.
|
|
240
246
|
const sources = readWorkflowSources(repoRoot, fromRepo).filter((s) => s.path !== MERGE_QUEUE_WORKFLOW_FILE);
|
|
241
247
|
const scan = workflowsHolding(green, sources);
|
|
@@ -254,8 +260,8 @@ export async function runCiWorkflow(ctx) {
|
|
|
254
260
|
}
|
|
255
261
|
const base = member ? member.memberRoot : root;
|
|
256
262
|
const parts = ["chant", "ci", "workflow", ...extra.flatMap((w) => ["--workflow", w])];
|
|
257
|
-
if (ctx.args.output)
|
|
258
|
-
parts.push("--output", relative(base,
|
|
263
|
+
if (ctx.args.output && !(rendering && asCommitted === join(repoRoot, CI_GREEN_WORKFLOW_FILE)))
|
|
264
|
+
parts.push("--output", relative(base, asCommitted).split(sep).join("/"));
|
|
259
265
|
if (ctx.args.ciChant)
|
|
260
266
|
parts.push("--chant", ctx.args.ciChant);
|
|
261
267
|
if (ctx.args.ciInstall)
|
|
@@ -277,21 +283,22 @@ export async function runCiWorkflow(ctx) {
|
|
|
277
283
|
const npmLock = ctx.args.ciInstall && existsSync(join(root, "package-lock.json")) ? (workspaceRoot === "." ? "package-lock.json" : `${workspaceRoot}/package-lock.json`) : undefined;
|
|
278
284
|
const yaml = renderCiGreenWorkflow({ green, workflows, chantVersion: readerVersion(), workspaceRoot, chant: ctx.args.ciChant, install: ctx.args.ciInstall, npmLock, push, ...(runnerKeySecret ? { runnerKeySecret } : {}), ...(compose ? { compose } : {}) });
|
|
279
285
|
const written = writeWorkflowFile(target, ciGreenHeader(command, member ? "member" : "root") + yaml);
|
|
280
|
-
if (member)
|
|
286
|
+
if (member && !rendering)
|
|
281
287
|
recordGeneratedFiles(member.memberRoot, [{ path: fromRepo, command }]);
|
|
282
288
|
console.log(`Wrote ${written}: ticks when ${workflows.join(", ")} complete${workflows.length === 1 ? "s" : ""} on ${greenBranches(green).join(", ")}${compose ? " or a chant/compose/ branch" : ""}, and every 15 minutes.`);
|
|
283
289
|
// #4644: the merge queue's verdict, beside the tick and from the same command.
|
|
284
290
|
if (green.mergeQueue && !member) {
|
|
285
291
|
const queue = renderMergeQueueWorkflow({ green, chantVersion: readerVersion(), workspaceRoot, chant: ctx.args.ciChant, install: ctx.args.ciInstall, npmLock });
|
|
286
|
-
const at = writeWorkflowFile(join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE), ciGreenHeader(command, "root") + queue);
|
|
292
|
+
const at = writeWorkflowFile(rendering ? renderPathOf(join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE)) : join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE), ciGreenHeader(command, "root") + queue);
|
|
287
293
|
const retries = green.mergeQueue.retries;
|
|
288
294
|
const again = retries > 0 ? `, re-running a failed job's workflow run up to ${retries} time${retries === 1 ? "" : "s"} first` : "";
|
|
289
295
|
console.log(`Wrote ${at}: on each merge group, ${MERGE_QUEUE_VERDICT_JOB} passes when every required phase passed on the group's commit${again}. Require ${MERGE_QUEUE_VERDICT_JOB} in the branch's ruleset.`);
|
|
290
296
|
}
|
|
291
297
|
for (const e of edits) {
|
|
292
|
-
|
|
298
|
+
// A check renders every edited workflow, changed or not, so each has its twin in the render tree.
|
|
299
|
+
if (!e.changed && !rendering)
|
|
293
300
|
continue;
|
|
294
|
-
const path = writeWorkflowFile(join(repoRoot, e.path), e.text);
|
|
301
|
+
const path = writeWorkflowFile(rendering ? renderPathOf(join(repoRoot, e.path)) : join(repoRoot, e.path), e.text);
|
|
295
302
|
console.log(e.build === "newest"
|
|
296
303
|
? `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} the newest commit on ${greenBranches(green).join(", ")} when a run ends, and a ci/build/<sha> tag by hand.`
|
|
297
304
|
: `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} every commit on ${greenBranches(green).join(", ")}, none cancelled, and a ci/build/<sha> tag by hand when the forge ran nothing.`);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* | kind | default read | how |
|
|
10
10
|
* |---|---|---|
|
|
11
|
-
* | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, through `liveDiffDriftRecords`
|
|
11
|
+
* | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, each lexicon's section through `lexiconDriftRecords` (`liveDiffDriftRecords`, with `mergeDeepDrift` when a lexicon has a deep reader, and the section's `absent`, #4896). `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
|
|
12
12
|
* | `terraform` | `state` | `chant lifecycle drift` in the member's reader project: the terraform lexicon's `readDrift`, `terraform show -json` over state, or `--read plan` for a saved plan's `show -json` |
|
|
13
13
|
* | `choudoufu` | `ownership` | the same, through `choudoufu live-plan -json` (and `live-ls`), or `--read plan` for live-plan with a plan beside it; `--resource <addr>` passes `choudoufu live-plan -resource=<addr>`'s stream through |
|
|
14
14
|
* | `pulumi` | `refresh` | `chant lifecycle drift` in the member's reader project: the pulumi lexicon's `readDrift`, `pulumi refresh --preview-only --json --target <urn>` per resource in the checked-in export, or `plunge drift --resource <urn> --stream` for a member on plunge; `--resource <urn>` reads that URN alone (#4455) |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/drift-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAElE,OAAO,
|
|
1
|
+
{"version":3,"file":"drift-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/drift-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAeL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,iBAAiB,CAAC;AASzB,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AA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FAAsF;AACtF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAQjG;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuC5E"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* | kind | default read | how |
|
|
10
10
|
* |---|---|---|
|
|
11
|
-
* | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, through `liveDiffDriftRecords`
|
|
11
|
+
* | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, each lexicon's section through `lexiconDriftRecords` (`liveDiffDriftRecords`, with `mergeDeepDrift` when a lexicon has a deep reader, and the section's `absent`, #4896). `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
|
|
12
12
|
* | `terraform` | `state` | `chant lifecycle drift` in the member's reader project: the terraform lexicon's `readDrift`, `terraform show -json` over state, or `--read plan` for a saved plan's `show -json` |
|
|
13
13
|
* | `choudoufu` | `ownership` | the same, through `choudoufu live-plan -json` (and `live-ls`), or `--read plan` for live-plan with a plan beside it; `--resource <addr>` passes `choudoufu live-plan -resource=<addr>`'s stream through |
|
|
14
14
|
* | `pulumi` | `refresh` | `chant lifecycle drift` in the member's reader project: the pulumi lexicon's `readDrift`, `pulumi refresh --preview-only --json --target <urn>` per resource in the checked-in export, or `plunge drift --resource <urn> --stream` for a member on plunge; `--resource <urn>` reads that URN alone (#4455) |
|
|
@@ -44,7 +44,7 @@ import { existsSync } from "node:fs";
|
|
|
44
44
|
import { resolve } from "node:path";
|
|
45
45
|
import { formatError } from "../cli/format.js";
|
|
46
46
|
import { graphNodeFor } from "../change-set-graph.js";
|
|
47
|
-
import { componentStatusDriftRecords, countDriftStatuses, decodeDriftLines,
|
|
47
|
+
import { componentStatusDriftRecords, countDriftStatuses, decodeDriftLines, DRIFT_READS, DRIFT_SCHEMA_ID, DRIFT_VERSION, driftExpected, driftPlanner, driftRecordLine, driftSettle, driftStart, encodeDriftLines, foldDriftLines, lexiconDriftRecords, } from "../drift-record.js";
|
|
48
48
|
import { readDeclaration, readerVersion, WORKSPACE_ERROR_CODES, WorkspaceReadError } from "./declaration.js";
|
|
49
49
|
import { prepareKindReaders } from "./kind-readers.js";
|
|
50
50
|
import { loadKindRegistry } from "./kinds.js";
|
|
@@ -154,16 +154,9 @@ function chantRecords(member, diffOut, componentsOut, observedAt, version) {
|
|
|
154
154
|
const lexicons = [...Object.values(doc.lexicons ?? {}), ...Object.values(doc.stacks ?? {}).flatMap((s) => Object.values(s))];
|
|
155
155
|
const base = { member, observedAt, ...(version ? { version } : {}) };
|
|
156
156
|
const out = [];
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const types = {};
|
|
161
|
-
for (const [name, meta] of Object.entries(lex.observed ?? {}))
|
|
162
|
-
if (typeof meta?.type === "string")
|
|
163
|
-
types[name] = meta.type;
|
|
164
|
-
const thin = liveDiffDriftRecords({ ...base, diff: lex.resources, types });
|
|
165
|
-
out.push(...(lex.deep ? mergeDeepDrift(thin, deepDiffDriftRecords({ ...base, diff: lex.deep })) : thin));
|
|
166
|
-
}
|
|
157
|
+
// The section's own `absent` (#4896): the sql lexicon's confirmed-absent objects are missing, not pending.
|
|
158
|
+
for (const section of lexicons)
|
|
159
|
+
out.push(...lexiconDriftRecords({ ...base, section }));
|
|
167
160
|
if (componentsOut !== undefined) {
|
|
168
161
|
let rows;
|
|
169
162
|
try {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* reason, and its number still stands. After a network failure, a 401 or a
|
|
22
22
|
* 403, the rest are answered with the same reason without another call.
|
|
23
23
|
*/
|
|
24
|
+
import { forgeKindOfHost } from "../forge-remote.js";
|
|
24
25
|
import { type ForgeFetch, type ForgeKind } from "../pr-forge.js";
|
|
25
26
|
/** What the forge says one pull request closes. */
|
|
26
27
|
export interface PullRequestCloses {
|
|
@@ -57,8 +58,8 @@ export interface ForgeWorkOptions {
|
|
|
57
58
|
/** How long one call may take. Default 15 seconds. */
|
|
58
59
|
timeoutMs?: number;
|
|
59
60
|
}
|
|
60
|
-
/** The forge kind a remote host is
|
|
61
|
-
export
|
|
61
|
+
/** The forge kind a remote host is, as `@intentius/chant/forge-remote` reads it (#4920). */
|
|
62
|
+
export { forgeKindOfHost };
|
|
62
63
|
/** The REST base of a forge at `host`, as the clients take it. */
|
|
63
64
|
export declare function forgeApiBase(kind: ForgeKind, host: string): string;
|
|
64
65
|
/** A reader of what pull requests close, for the repository at `top`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-work.d.ts","sourceRoot":"","sources":["../../src/workspace/forge-work.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"forge-work.d.ts","sourceRoot":"","sources":["../../src/workspace/forge-work.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,eAAe,EAAiB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAkF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAkC,MAAM,aAAa,CAAC;AAE9K,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uDAAuD;IACvD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC/C,yDAAyD;IACzD,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,gBAAgB;IAC/B,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,uGAAuG;IACvG,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC/C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqBD,4FAA4F;AAC5F,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlE;AAgCD,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB,GAAG,eAAe,CAkDzF;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE,EAAE,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1J"}
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
* 403, the rest are answered with the same reason without another call.
|
|
23
23
|
*/
|
|
24
24
|
import { execFileSync } from "node:child_process";
|
|
25
|
-
import {
|
|
26
|
-
import { remoteHost } from "../op/activities/gh-host.js";
|
|
25
|
+
import { forgeKindOfHost, forgeOfRemote } from "../forge-remote.js";
|
|
27
26
|
import { detectForge, FORGE_TOKEN_ORDER, ForgeApiError, forgeClient, forgeTargetFromEnv } from "../pr-forge.js";
|
|
28
27
|
/** How many pull requests are asked about at once. */
|
|
29
28
|
const CONCURRENCY = 4;
|
|
@@ -43,17 +42,8 @@ function ghAuthToken(host) {
|
|
|
43
42
|
return undefined;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
/** The forge kind a remote host is
|
|
47
|
-
export
|
|
48
|
-
const h = host.toLowerCase().replace(/:\d+$/, "");
|
|
49
|
-
if (h === "github.com" || /(^|[.-])github([.-]|$)/.test(h))
|
|
50
|
-
return "github";
|
|
51
|
-
if (h === "gitlab.com" || /(^|[.-])gitlab([.-]|$)/.test(h))
|
|
52
|
-
return "gitlab";
|
|
53
|
-
if (h === "codeberg.org" || /(^|[.-])(forgejo|gitea)([.-]|$)/.test(h))
|
|
54
|
-
return "forgejo";
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
45
|
+
/** The forge kind a remote host is, as `@intentius/chant/forge-remote` reads it (#4920). */
|
|
46
|
+
export { forgeKindOfHost };
|
|
57
47
|
/** The REST base of a forge at `host`, as the clients take it. */
|
|
58
48
|
export function forgeApiBase(kind, host) {
|
|
59
49
|
if (kind === "github")
|
|
@@ -75,11 +65,11 @@ function locate(top, opts) {
|
|
|
75
65
|
const url = opts.remoteUrl !== undefined ? opts.remoteUrl : gitRemote(top);
|
|
76
66
|
if (!url)
|
|
77
67
|
return { source: null, reason: "there is no origin remote to name the forge" };
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
if (!host || !repo || !kind)
|
|
68
|
+
// #4920: the origin remote's forge, as `@intentius/chant/forge-remote` reads it.
|
|
69
|
+
const at = forgeOfRemote(url);
|
|
70
|
+
if (!at)
|
|
82
71
|
return { source: null, reason: `origin (${url}) is not on a forge chant reads issues from: GitHub, GitLab or Forgejo` };
|
|
72
|
+
const { kind, host, repo } = at;
|
|
83
73
|
const source = { kind, host, repo };
|
|
84
74
|
const names = ["CHANT_FORGE_TOKEN", ...FORGE_TOKEN_ORDER[kind]];
|
|
85
75
|
const tokenSource = names.find((n) => env[n]?.trim());
|
|
@@ -58,8 +58,8 @@ function staticInclude(read) {
|
|
|
58
58
|
/**
|
|
59
59
|
* Only the files under the member's `sourceDir`, when its config sets one, as
|
|
60
60
|
* a build reads them (#3941). Without one, every source file of the member
|
|
61
|
-
* but its top-level `scripts/`, which a root build leaves
|
|
62
|
-
* `ROOT_SOURCE_EXCLUDES`) unless `include` brings
|
|
61
|
+
* but its top-level `scripts/` and `migrations/`, which a root build leaves
|
|
62
|
+
* out (#4794, #4921, `ROOT_SOURCE_EXCLUDES`) unless `include` brings one back.
|
|
63
63
|
*/
|
|
64
64
|
function withinSourceDir(files, member, sourceDir, include = []) {
|
|
65
65
|
if (!sourceDir) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-train.d.ts","sourceRoot":"","sources":["../../src/workspace/release-train.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"release-train.d.ts","sourceRoot":"","sources":["../../src/workspace/release-train.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOtD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAID,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,EAAE,IAAI,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAa,GAAG;IAAE,OAAO,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAgBhK;AAED,+EAA+E;AAC/E,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAkB/E;AAOD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAE/H;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAEjG;AAID,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiD5E"}
|
|
@@ -16,6 +16,7 @@ import { readAllReleases, readCuts } from "../lifecycle/release-store.js";
|
|
|
16
16
|
import { readDeclaration, WorkspaceReadError } from "./declaration.js";
|
|
17
17
|
import { locateWorkspace } from "./which-chant.js";
|
|
18
18
|
import { appendWorkspaceLine, readWorkspaceLines } from "./workspace-ledger.js";
|
|
19
|
+
import { actorFromEnv } from "../actor.js";
|
|
19
20
|
const TRAINS_FILE = "trains.jsonl";
|
|
20
21
|
/**
|
|
21
22
|
* Pick each member's release, pure. `pins` maps a member to a label or a
|
|
@@ -112,7 +113,7 @@ export async function runWorkspaceTrain(ctx) {
|
|
|
112
113
|
console.error(` ${p}`);
|
|
113
114
|
return 1;
|
|
114
115
|
}
|
|
115
|
-
const actor = ctx.args.actor ??
|
|
116
|
+
const actor = ctx.args.actor ?? actorFromEnv();
|
|
116
117
|
const record = { version: 1, id: `train-${randomUUID()}`, env, timestamp: new Date().toISOString(), actor, members: picked.members };
|
|
117
118
|
if (!ctx.args.dryRun)
|
|
118
119
|
await appendReleaseTrain(root, record);
|
|
@@ -34,9 +34,9 @@ export interface ReleasePipelineConfig {
|
|
|
34
34
|
env?: Record<string, string>;
|
|
35
35
|
/**
|
|
36
36
|
* Steps the cut and publish jobs run after the install (#4751): `{ run }`,
|
|
37
|
-
* or `{ uses, with }` on GitHub and Forgejo, such as
|
|
38
|
-
*
|
|
39
|
-
*
|
|
37
|
+
* or `{ uses, with }` on GitHub and Forgejo, such as a newer npm. GitLab
|
|
38
|
+
* takes `run` steps as script lines and refuses `uses` by name. QEMU for
|
|
39
|
+
* the platforms `release.images` builds is set up without one (#4876).
|
|
40
40
|
*/
|
|
41
41
|
setup?: OpSetupStep[];
|
|
42
42
|
/** Where the workflow is written, from the repository root, such as `.github/workflows/publish.yml` for an npm trusted publisher that names that file. Default {@link RELEASE_WORKFLOW_FILES}. */
|
|
@@ -66,6 +66,12 @@ export interface ReleaseWorkflowInput {
|
|
|
66
66
|
* two jobs cannot change what is published.
|
|
67
67
|
*/
|
|
68
68
|
imageArchives?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* The platforms `release.images` builds (#4876). Those the runner can't run
|
|
71
|
+
* ({@link RELEASE_RUNNER_PLATFORM}) get QEMU's binfmt handlers in the cut
|
|
72
|
+
* and publish jobs, before `release.workflow.setup`.
|
|
73
|
+
*/
|
|
74
|
+
imagePlatforms?: string[];
|
|
69
75
|
/** `release.lane` (#4692): the gate's green lane. */
|
|
70
76
|
lane?: string;
|
|
71
77
|
/**
|
|
@@ -120,6 +126,24 @@ export declare const NPM_TRUSTED_PUBLISHING_SETUP = "have=\"$(npm --version)\";
|
|
|
120
126
|
* nothing.
|
|
121
127
|
*/
|
|
122
128
|
export declare function targetExtras(forge: ReleaseWorkflowForge, targets: ReadonlyArray<ReleaseWorkflowTarget>, p: ReleasePipelineConfig): Pick<ReleasePipelineConfig, "permissions" | "env" | "setup">;
|
|
129
|
+
/** The platform the jobs `chant release workflow` writes run on: GitHub's and Forgejo's `ubuntu-latest`, and a GitLab runner's default (#4876). */
|
|
130
|
+
export declare const RELEASE_RUNNER_PLATFORM = "linux/amd64";
|
|
131
|
+
/** The binfmt image a GitLab job installs QEMU's handlers with (#4876): the repository, which a config's own setup line is recognised by. */
|
|
132
|
+
export declare const RELEASE_BINFMT_IMAGE: string;
|
|
133
|
+
/** The architectures among `platforms` the runner can't run, as QEMU names them (`linux/arm/v7` is `arm`), each once. */
|
|
134
|
+
export declare function qemuArchitectures(platforms: readonly string[]): string[];
|
|
135
|
+
/**
|
|
136
|
+
* QEMU's binfmt setup for the platforms `release.images` builds that the
|
|
137
|
+
* runner can't, such as `linux/arm64` on an amd64 runner (#4876), so no
|
|
138
|
+
* product names it in `release.workflow.setup`. GitHub and Forgejo get
|
|
139
|
+
* `docker/setup-qemu-action` at its pin; GitLab a `docker run --privileged`
|
|
140
|
+
* of {@link RELEASE_BINFMT_IMAGE} by the digest `IMAGE_PINS.binfmt` records
|
|
141
|
+
* (#4941, ../image-pins.ts), which `chant release workflow` notes needs
|
|
142
|
+
* an executor that runs privileged containers. A config whose `setup` names
|
|
143
|
+
* the action or the binfmt image already gets nothing more, so its file
|
|
144
|
+
* renders as it did.
|
|
145
|
+
*/
|
|
146
|
+
export declare function qemuSetup(forge: ReleaseWorkflowForge, platforms: readonly string[], p: ReleasePipelineConfig): OpSetupStep[];
|
|
123
147
|
/** The flags `chant release publish` gets under the groups. */
|
|
124
148
|
export declare function publishFlags(groups: ReadonlySet<SecurityGroup>): string[];
|
|
125
149
|
/** Where `chant release images` writes the digests the publish job's build reads (#4657), by default and at a workstation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-workflow.d.ts","sourceRoot":"","sources":["../../src/workspace/release-workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"release-workflow.d.ts","sourceRoot":"","sources":["../../src/workspace/release-workflow.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,eAAO,MAAM,uBAAuB,YAAI,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAKvE,CAAC;AAEF,yGAAyG;AACzG,MAAM,WAAW,qBAAqB;IACpC,8HAA8H;IAC9H,OAAO,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IAC7B,iLAAiL;IACjL,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAC7B,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yJAAyJ;IACzJ,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACvB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8GAA8G;IAC9G,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IAC/C;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,E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AuEvG"}
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
* renders the tag-triggered file it always did.
|
|
29
29
|
*/
|
|
30
30
|
import { ACTION_PINS, tagComments, usesRef } from "../action-pins.js";
|
|
31
|
-
import {
|
|
31
|
+
import { IMAGE_PINS, imageRef } from "../image-pins.js";
|
|
32
|
+
import { releaseImagePlatforms, resolveReleaseImages } from "../lifecycle/release-images.js";
|
|
32
33
|
import { GENERATED_MARKER } from "../discovery/files.js";
|
|
33
34
|
export const RELEASE_WORKFLOW_FORGES = ["github", "forgejo", "gitlab"];
|
|
34
35
|
/** Where each forge's publish workflow is written, relative to the repository root. */
|
|
@@ -73,6 +74,34 @@ export function targetExtras(forge, targets, p) {
|
|
|
73
74
|
const setup = npm && !(p.setup ?? []).some((s) => !("uses" in s) && s.run === NPM_TRUSTED_PUBLISHING_SETUP) ? [{ run: NPM_TRUSTED_PUBLISHING_SETUP }] : [];
|
|
74
75
|
return { ...(permissions ? { permissions } : {}), ...(Object.keys(env).length > 0 ? { env } : {}), ...(setup.length > 0 ? { setup } : {}) };
|
|
75
76
|
}
|
|
77
|
+
/** The platform the jobs `chant release workflow` writes run on: GitHub's and Forgejo's `ubuntu-latest`, and a GitLab runner's default (#4876). */
|
|
78
|
+
export const RELEASE_RUNNER_PLATFORM = "linux/amd64";
|
|
79
|
+
/** The binfmt image a GitLab job installs QEMU's handlers with (#4876): the repository, which a config's own setup line is recognised by. */
|
|
80
|
+
export const RELEASE_BINFMT_IMAGE = IMAGE_PINS.binfmt.repository;
|
|
81
|
+
/** The architectures among `platforms` the runner can't run, as QEMU names them (`linux/arm/v7` is `arm`), each once. */
|
|
82
|
+
export function qemuArchitectures(platforms) {
|
|
83
|
+
return [...new Set(platforms.filter((p) => p.split("/").slice(0, 2).join("/") !== RELEASE_RUNNER_PLATFORM).map((p) => p.split("/")[1] ?? p))].sort();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* QEMU's binfmt setup for the platforms `release.images` builds that the
|
|
87
|
+
* runner can't, such as `linux/arm64` on an amd64 runner (#4876), so no
|
|
88
|
+
* product names it in `release.workflow.setup`. GitHub and Forgejo get
|
|
89
|
+
* `docker/setup-qemu-action` at its pin; GitLab a `docker run --privileged`
|
|
90
|
+
* of {@link RELEASE_BINFMT_IMAGE} by the digest `IMAGE_PINS.binfmt` records
|
|
91
|
+
* (#4941, ../image-pins.ts), which `chant release workflow` notes needs
|
|
92
|
+
* an executor that runs privileged containers. A config whose `setup` names
|
|
93
|
+
* the action or the binfmt image already gets nothing more, so its file
|
|
94
|
+
* renders as it did.
|
|
95
|
+
*/
|
|
96
|
+
export function qemuSetup(forge, platforms, p) {
|
|
97
|
+
const archs = qemuArchitectures(platforms);
|
|
98
|
+
if (archs.length === 0)
|
|
99
|
+
return [];
|
|
100
|
+
const named = (p.setup ?? []).some((s) => ("uses" in s ? /^docker\/setup-qemu-action@/.test(s.uses) : s.run.includes(RELEASE_BINFMT_IMAGE)));
|
|
101
|
+
if (named)
|
|
102
|
+
return [];
|
|
103
|
+
return forge === "gitlab" ? [{ run: `docker run --privileged --rm ${imageRef(IMAGE_PINS.binfmt)} --install ${archs.join(",")}` }] : [{ uses: usesRef(ACTION_PINS.dockerSetupQemu4), with: { platforms: archs.join(",") } }];
|
|
104
|
+
}
|
|
76
105
|
/** The flags `chant release publish` gets under the groups. */
|
|
77
106
|
export function publishFlags(groups) {
|
|
78
107
|
return [...(groups.has("supply-chain") ? ["--require-provenance"] : []), "--yes"];
|
|
@@ -109,11 +138,13 @@ export function renderReleaseWorkflow(input) {
|
|
|
109
138
|
const version = input.version === true;
|
|
110
139
|
// #4786: the targets' own needs first, then the config's, so a config that set them by hand renders the same file without them.
|
|
111
140
|
const derived = targetExtras(input.forge, input.publish ?? [], p);
|
|
141
|
+
// #4876: QEMU before the config's setup, where the products named it.
|
|
142
|
+
const qemu = images ? qemuSetup(input.forge, input.imagePlatforms ?? [], p) : [];
|
|
112
143
|
const extra = jobExtras({
|
|
113
144
|
...p,
|
|
114
145
|
...(derived.permissions ? { permissions: { ...p.permissions, ...derived.permissions } } : {}),
|
|
115
146
|
...(derived.env ? { env: { ...p.env, ...derived.env } } : {}),
|
|
116
|
-
...(derived.setup ? { setup: [...(p.setup ?? []), ...derived.setup] } : {}),
|
|
147
|
+
...(derived.setup || qemu.length > 0 ? { setup: [...qemu, ...(p.setup ?? []), ...(derived.setup ?? [])] } : {}),
|
|
117
148
|
}, input.forge);
|
|
118
149
|
// #4767: Forgejo's job token is not a GitHub token, and GitLab has no such expression.
|
|
119
150
|
const forgeToken = input.forge === "github" && p.env?.GITHUB_TOKEN === undefined && (input.publish ?? []).some((t) => t.type === "forge" && t.forge === "github" && !t.tokenEnv)
|
|
@@ -212,11 +243,16 @@ function jobExtras(p, forge) {
|
|
|
212
243
|
for (const s of setup)
|
|
213
244
|
if (!("uses" in s) && s.run.trim() === "")
|
|
214
245
|
throw new Error(`${where}.setup: a run step is empty`);
|
|
246
|
+
for (const s of setup)
|
|
247
|
+
if (s.name !== undefined && (s.name.trim() === "" || /[\r\n]/.test(s.name)))
|
|
248
|
+
throw new Error(`${where}.setup: a step's name is blank or more than one line`);
|
|
215
249
|
}
|
|
216
250
|
const q = (v) => JSON.stringify(v);
|
|
217
251
|
const map = (indent, entries) => entries.map(([k, v]) => `${indent}${k}: ${q(v)}`);
|
|
252
|
+
// #4932: a named step opens with its name.
|
|
218
253
|
const githubSteps = setup.flatMap((s) => [
|
|
219
|
-
|
|
254
|
+
...(s.name !== undefined ? [` - name: ${q(s.name)}`] : []),
|
|
255
|
+
` ${s.name !== undefined ? " " : "-"} ${"uses" in s ? `uses: ${s.uses}` : `run: ${q(s.run)}`}`,
|
|
220
256
|
...("uses" in s && s.with && Object.keys(s.with).length > 0 ? [" with:", ...map(" ", Object.entries(s.with))] : []),
|
|
221
257
|
...(s.env && Object.keys(s.env).length > 0 ? [" env:", ...map(" ", Object.entries(s.env))] : []),
|
|
222
258
|
]);
|
|
@@ -489,7 +525,7 @@ export async function runReleaseWorkflow(ctx) {
|
|
|
489
525
|
groups,
|
|
490
526
|
workspaceRoot,
|
|
491
527
|
...(release?.workflow ? { pipeline: release.workflow } : {}),
|
|
492
|
-
...((release?.images?.length ?? 0) > 0 ? { images: true, imageArchives: resolveReleaseImages(release.images).map((i) => i.archive) } : {}),
|
|
528
|
+
...((release?.images?.length ?? 0) > 0 ? { images: true, imageArchives: resolveReleaseImages(release.images).map((i) => i.archive), imagePlatforms: releaseImagePlatforms(release.images) } : {}),
|
|
493
529
|
...(release?.lane ? { lane: release.lane } : {}),
|
|
494
530
|
...(release?.version ? { version: true } : {}),
|
|
495
531
|
...(release?.publish ? { publish: release.publish } : {}),
|
|
@@ -497,7 +533,12 @@ export async function runReleaseWorkflow(ctx) {
|
|
|
497
533
|
...(args.buildCommand ? { build: args.buildCommand } : {}),
|
|
498
534
|
...(args.ciChant ? { chant: args.ciChant } : {}),
|
|
499
535
|
});
|
|
500
|
-
|
|
536
|
+
// #4909: under `chant dev generated-check` the header names the committed file the render stands for.
|
|
537
|
+
// #4950: with no --output the file goes to the render tree too, so a render needs no `--output {out}/...`.
|
|
538
|
+
const { committedPathOf, isRenderPath, renderPathOf } = await import("../generated-check.js");
|
|
539
|
+
const defaultTarget = join(repoRoot, release?.workflow?.file ?? RELEASE_WORKFLOW_FILES[forge]);
|
|
540
|
+
const target = args.output ? resolve(process.cwd(), args.output) : renderPathOf(defaultTarget);
|
|
541
|
+
const asCommitted = committedPathOf(target);
|
|
501
542
|
const parts = ["chant", "release", "workflow", "--forge", forge];
|
|
502
543
|
if (args.ciInstall)
|
|
503
544
|
parts.push("--install", args.ciInstall);
|
|
@@ -505,8 +546,8 @@ export async function runReleaseWorkflow(ctx) {
|
|
|
505
546
|
parts.push("--build", args.buildCommand);
|
|
506
547
|
if (args.ciChant)
|
|
507
548
|
parts.push("--chant", args.ciChant);
|
|
508
|
-
if (args.output)
|
|
509
|
-
parts.push("--output", relative(root,
|
|
549
|
+
if (args.output && !(isRenderPath(target) && asCommitted === defaultTarget))
|
|
550
|
+
parts.push("--output", relative(root, asCommitted).split(sep).join("/"));
|
|
510
551
|
mkdirSync(dirname(target), { recursive: true });
|
|
511
552
|
writeFileSync(target, releaseWorkflowHeader(parts.map(shellArg).join(" ")) + text);
|
|
512
553
|
const shown = relative(process.cwd(), target).split(sep).join("/") || target;
|
|
@@ -515,6 +556,10 @@ export async function runReleaseWorkflow(ctx) {
|
|
|
515
556
|
console.log(formatSuccess(`Wrote ${shown}: ${what}${extras.length > 0 ? `, and ${extras.join(" and ")}` : ""}.`));
|
|
516
557
|
if (forge === "gitlab")
|
|
517
558
|
console.log(`Include it from .gitlab-ci.yml: include: [{ local: ${release?.workflow?.file ?? RELEASE_WORKFLOW_FILES.gitlab} }]`);
|
|
559
|
+
// #4876: a GitLab executor that refuses privileged containers can't install the handlers from the job.
|
|
560
|
+
const archs = (release?.images?.length ?? 0) > 0 ? qemuArchitectures(releaseImagePlatforms(release.images)) : [];
|
|
561
|
+
if (forge === "gitlab" && archs.length > 0 && text.includes(`${RELEASE_BINFMT_IMAGE} --install`))
|
|
562
|
+
console.log(`The cut and publish jobs install QEMU's binfmt handlers for ${archs.join(", ")} with docker run --privileged ${RELEASE_BINFMT_IMAGE}: the runner's executor must run privileged containers, or have the handlers installed on its host.`);
|
|
518
563
|
if (forge === "gitlab" && release?.workflow?.trigger === "dispatch")
|
|
519
564
|
console.log("The cut and publish jobs push with CHANT_RELEASE_TOKEN: a project access token with write_repository, as a masked CI/CD variable.");
|
|
520
565
|
return 0;
|
|
@@ -42,14 +42,37 @@ export interface CheckEvidenceNote {
|
|
|
42
42
|
reason: string;
|
|
43
43
|
}>;
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
46
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The checks to sign from the plan job's hand-off directory and result, and
|
|
47
|
+
* those left unsigned with why. #4964: a workspace member's plan job plans
|
|
48
|
+
* that member alone, so with `member` the two are `plan:<member>` and
|
|
49
|
+
* `policy:<member>`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function planReportChecks(dir: string, result: string | undefined, member?: string): {
|
|
47
52
|
sign: Array<{
|
|
48
53
|
check: string;
|
|
49
54
|
claim?: Buffer;
|
|
50
55
|
}>;
|
|
51
56
|
skipped: CheckEvidenceNote["skipped"];
|
|
52
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* What a GitLab signing job in the target branch's pipeline keeps for one
|
|
60
|
+
* merge request (#4914), `<out>/<iid>/evidence.json`: the note, with the
|
|
61
|
+
* merge request and the head it was signed for, so the note job uses it
|
|
62
|
+
* only for that head.
|
|
63
|
+
*/
|
|
64
|
+
export interface OpenEvidenceFile extends CheckEvidenceNote {
|
|
65
|
+
pr: number;
|
|
66
|
+
head: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The `evidence.json` the signing job kept for merge request `pr` at
|
|
70
|
+
* `head` under `dir` (#4914), as text for the note job's report directory,
|
|
71
|
+
* or undefined when it kept none for that head. The file comes from a job
|
|
72
|
+
* of the same target-branch pipeline, which ran none of the change's code;
|
|
73
|
+
* it is read as data all the same.
|
|
74
|
+
*/
|
|
75
|
+
export declare function openEvidenceFor(dir: string, pr: number, head: string): string | undefined;
|
|
53
76
|
/**
|
|
54
77
|
* The line the plan note ends with when the signing step wrote
|
|
55
78
|
* {@link CHECK_EVIDENCE_FILE} in `dir`, or undefined when it did not.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-evidence-report.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/check-evidence-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,oHAAoH;AACpH,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD,4HAA4H;AAC5H,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAE3D,iHAAiH;AACjH,eAAO,MAAM,oBAAoB,4BAA4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SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CAAE,CAoBpL;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIzF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAWrE"}
|
|
@@ -66,29 +66,49 @@ function policyOf(dir) {
|
|
|
66
66
|
const standing = overrides.filter((o) => !o.override).length;
|
|
67
67
|
return standing === 0 ? { passed: true, reason: "the policy denied nothing that stands" } : { passed: false, reason: `the policy denied ${standing} unit${standing === 1 ? "" : "s"} with no override` };
|
|
68
68
|
}
|
|
69
|
-
/**
|
|
70
|
-
|
|
69
|
+
/**
|
|
70
|
+
* The checks to sign from the plan job's hand-off directory and result, and
|
|
71
|
+
* those left unsigned with why. #4964: a workspace member's plan job plans
|
|
72
|
+
* that member alone, so with `member` the two are `plan:<member>` and
|
|
73
|
+
* `policy:<member>`.
|
|
74
|
+
*/
|
|
75
|
+
export function planReportChecks(dir, result, member) {
|
|
76
|
+
const planCheck = member ? `plan:${member}` : "plan";
|
|
77
|
+
const policyCheck = member ? `policy:${member}` : "policy";
|
|
71
78
|
const file = [REPORT_FILE, HANDOFF_FILE].map((f) => join(dir, f)).find((f) => existsSync(f));
|
|
72
79
|
if (result !== "success") {
|
|
73
80
|
const why = `the plan job's result is ${result ?? "not given"}`;
|
|
74
|
-
return { sign: [], skipped: [{ check:
|
|
81
|
+
return { sign: [], skipped: [{ check: planCheck, reason: why }, { check: policyCheck, reason: why }] };
|
|
75
82
|
}
|
|
76
83
|
if (!file) {
|
|
77
84
|
const why = `the plan job left no ${REPORT_FILE} or ${HANDOFF_FILE}`;
|
|
78
|
-
return { sign: [], skipped: [{ check:
|
|
85
|
+
return { sign: [], skipped: [{ check: planCheck, reason: why }, { check: policyCheck, reason: why }] };
|
|
79
86
|
}
|
|
80
87
|
const claim = readFileSync(file);
|
|
81
|
-
const sign = [{ check:
|
|
88
|
+
const sign = [{ check: planCheck, claim }];
|
|
82
89
|
const skipped = [];
|
|
83
90
|
const policy = policyOf(dir);
|
|
84
91
|
if (policy === null)
|
|
85
|
-
skipped.push({ check:
|
|
92
|
+
skipped.push({ check: policyCheck, reason: "the plan ran no policy" });
|
|
86
93
|
else if (policy.passed)
|
|
87
|
-
sign.push({ check:
|
|
94
|
+
sign.push({ check: policyCheck, claim });
|
|
88
95
|
else
|
|
89
|
-
skipped.push({ check:
|
|
96
|
+
skipped.push({ check: policyCheck, reason: policy.reason });
|
|
90
97
|
return { sign, skipped };
|
|
91
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* The `evidence.json` the signing job kept for merge request `pr` at
|
|
101
|
+
* `head` under `dir` (#4914), as text for the note job's report directory,
|
|
102
|
+
* or undefined when it kept none for that head. The file comes from a job
|
|
103
|
+
* of the same target-branch pipeline, which ran none of the change's code;
|
|
104
|
+
* it is read as data all the same.
|
|
105
|
+
*/
|
|
106
|
+
export function openEvidenceFor(dir, pr, head) {
|
|
107
|
+
const doc = readJson(join(dir, String(pr), CHECK_EVIDENCE_FILE));
|
|
108
|
+
if (!doc || doc.pr !== pr || doc.head !== head || !Array.isArray(doc.signed) || !Array.isArray(doc.skipped))
|
|
109
|
+
return undefined;
|
|
110
|
+
return JSON.stringify({ signed: doc.signed, skipped: doc.skipped }, null, 2) + "\n";
|
|
111
|
+
}
|
|
92
112
|
/**
|
|
93
113
|
* The line the plan note ends with when the signing step wrote
|
|
94
114
|
* {@link CHECK_EVIDENCE_FILE} in `dir`, or undefined when it did not.
|
|
@@ -89,13 +89,24 @@ export declare function commitAndTree(repo: string, rev: string): {
|
|
|
89
89
|
commit: string;
|
|
90
90
|
tree: string;
|
|
91
91
|
};
|
|
92
|
-
/**
|
|
92
|
+
/** Where a check's pass was read from (#4926): the forge's run and job ids, and the step whose conclusion said so. */
|
|
93
|
+
export interface CheckSource {
|
|
94
|
+
run: number;
|
|
95
|
+
job: number;
|
|
96
|
+
step?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The check's statement over `commit`, with the digest of what it said when
|
|
100
|
+
* given, and (#4926) the run, job and step a signer outside the check's job
|
|
101
|
+
* read its pass from, so a verifier can look them up.
|
|
102
|
+
*/
|
|
93
103
|
export declare function checkStatement(input: {
|
|
94
104
|
commit: string;
|
|
95
105
|
tree: string;
|
|
96
106
|
check: string;
|
|
97
107
|
runner: string;
|
|
98
108
|
claim?: Buffer | string;
|
|
109
|
+
source?: CheckSource;
|
|
99
110
|
}): EvidenceStatement;
|
|
100
111
|
/** One check signed. */
|
|
101
112
|
export interface SignedCheck {
|
|
@@ -109,6 +120,7 @@ export interface SignedCheck {
|
|
|
109
120
|
export declare function signChecks(repo: string, at: string, checks: readonly {
|
|
110
121
|
check: string;
|
|
111
122
|
claim?: Buffer | string;
|
|
123
|
+
source?: CheckSource;
|
|
112
124
|
}[], signer: EvidenceSigner): Promise<SignedCheck[]>;
|
|
113
125
|
/**
|
|
114
126
|
* Attach each envelope to its commit's evidence note and push
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-evidence.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/check-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAOH,OAAO,EAA0D,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACnG,OAAO,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