@intentius/chant 0.124.86 → 0.124.88
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 +12 -0
- package/dist/actor.d.ts.map +1 -0
- package/dist/actor.js +18 -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 +204 -2
- 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 +103 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -0
- package/dist/ci-evidence-from-job.js +162 -0
- package/dist/ci-evidence-jobs.d.ts +69 -10
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +72 -8
- 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 +47 -9
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +45 -18
- 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-product-words.d.ts +20 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +27 -1
- package/dist/ci-product.d.ts +20 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +21 -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/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.map +1 -1
- package/dist/cli/handlers/ci-check.js +38 -14
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +238 -26
- 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/generated-check.d.ts +3 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -0
- package/dist/cli/handlers/generated-check.js +41 -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/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +42 -5
- package/dist/cli/handlers/run-wave.js +8 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +38 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +66 -0
- package/dist/cli/registry.d.ts +24 -0
- package/dist/cli/registry.d.ts.map +1 -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 +21 -3
- package/dist/components/check-steps.js +1 -1
- package/dist/components/pr-checks.d.ts +105 -0
- package/dist/components/pr-checks.d.ts.map +1 -0
- package/dist/components/pr-checks.js +119 -0
- package/dist/components/pr-pipeline.d.ts +34 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +14 -1
- package/dist/components/product-pipeline.d.ts +16 -1
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +17 -2
- package/dist/components/product-plan.d.ts +262 -3
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +243 -11
- 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 +45 -5
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +27 -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 +58 -20
- package/dist/floor-table.js +10 -7
- package/dist/forge-check/contract.d.ts +8 -0
- 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/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/generated-check.d.ts +74 -0
- package/dist/generated-check.d.ts.map +1 -0
- package/dist/generated-check.js +216 -0
- package/dist/lexicon.d.ts +16 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.d.ts +15 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +49 -3
- 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 +27 -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/op/op-waves-evidence-jobs.d.ts +92 -0
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-jobs.js +112 -0
- package/dist/op/op-waves-evidence.d.ts +17 -4
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +32 -10
- package/dist/op/op-waves-run.d.ts +12 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +54 -3
- package/dist/op/op-waves.d.ts +8 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +10 -0
- 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 +89 -7
- 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-plan-note.d.ts +24 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +11 -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 +40 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +79 -6
- 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/ref-gate-init.d.ts +76 -0
- package/dist/ref-gate-init.d.ts.map +1 -0
- package/dist/ref-gate-init.js +144 -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 +51 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +66 -16
- package/dist/state-migration.d.ts +23 -0
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +39 -3
- 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 +310 -303
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +13 -7
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +4 -3
- 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-workflow.d.ts +26 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +48 -6
- package/dist/workspace/trust/check-evidence-report.d.ts +25 -0
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +20 -0
- package/dist/workspace/trust/check-evidence.d.ts +59 -13
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +101 -24
- package/dist/workspace/trust/ci-tag-statement.d.ts +2 -2
- package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.d.ts +40 -2
- package/dist/workspace/trust/dsse.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.js +34 -2
- package/dist/workspace/trust/evidence.d.ts +7 -2
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/evidence.js +5 -0
- package/dist/workspace/trust/keyless-fixture.d.ts +41 -0
- package/dist/workspace/trust/keyless-fixture.d.ts.map +1 -0
- package/dist/workspace/trust/keyless-fixture.js +161 -0
- package/dist/workspace/trust/keyless.d.ts +202 -0
- package/dist/workspace/trust/keyless.d.ts.map +1 -0
- package/dist/workspace/trust/keyless.js +488 -0
- package/dist/workspace/trust/local-evidence.d.ts +3 -0
- package/dist/workspace/trust/local-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/op-run-statement.d.ts +2 -2
- package/dist/workspace/trust/op-run-statement.d.ts.map +1 -1
- 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/policy.d.ts +56 -1
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/policy.js +103 -2
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +65 -3
- package/dist/workspace/trust/ref-gate.d.ts +62 -3
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +75 -8
- package/dist/workspace/trust/run-statement.d.ts +3 -3
- package/dist/workspace/trust/run-statement.d.ts.map +1 -1
- package/dist/workspace/trust/runner-identity.d.ts +56 -0
- package/dist/workspace/trust/runner-identity.d.ts.map +1 -0
- package/dist/workspace/trust/runner-identity.js +65 -0
- package/dist/workspace/trust/trust-files.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.js +8 -1
- package/package.json +1 -1
- package/src/action-pins.ts +2 -0
- package/src/actor.test.ts +12 -0
- package/src/actor.ts +19 -0
- package/src/bundle-check.test.ts +22 -0
- package/src/bundle-check.ts +33 -5
- package/src/chant-install.test.ts +109 -1
- package/src/chant-install.ts +243 -2
- package/src/ci-commit.test.ts +51 -5
- 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 +147 -0
- package/src/ci-evidence-from-job.ts +195 -0
- package/src/ci-evidence-jobs.ts +85 -10
- 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 +60 -10
- package/src/ci-image.ts +78 -19
- 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-product-words.ts +30 -0
- package/src/ci-product.ts +26 -1
- package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
- package/src/cli/handlers/approve-confirm.test.ts +35 -0
- package/src/cli/handlers/approve-confirm.ts +44 -0
- 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 +35 -13
- package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
- package/src/cli/handlers/ci-evidence.ts +223 -24
- package/src/cli/handlers/ci-forge-check.ts +22 -9
- package/src/cli/handlers/generated-check.ts +39 -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/pr.ts +43 -5
- package/src/cli/handlers/run-wave.ts +7 -0
- package/src/cli/main.ts +38 -4
- package/src/cli/parse-args.ts +46 -0
- package/src/cli/registry.ts +24 -0
- package/src/components/check-hooks.ts +25 -3
- package/src/components/check-report-summary.test.ts +78 -0
- package/src/components/check-steps.ts +1 -1
- package/src/components/pr-checks.ts +159 -0
- package/src/components/pr-pipeline.ts +41 -1
- package/src/components/product-pipeline.ts +25 -3
- package/src/components/product-plan.test.ts +102 -1
- package/src/components/product-plan.ts +419 -14
- 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 +25 -0
- package/src/drift-record.ts +55 -6
- package/src/floor-table.data.ts +58 -20
- package/src/floor-table.ts +12 -9
- package/src/forge-check/contract.ts +11 -1
- package/src/forge-check/forge-check.test.ts +8 -0
- package/src/forge-check/index.ts +2 -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/generated-check.e2e.test.ts +98 -0
- package/src/generated-check.test.ts +104 -0
- package/src/generated-check.ts +269 -0
- package/src/lexicon.ts +17 -0
- package/src/lifecycle/publish-npm.ts +56 -3
- package/src/lifecycle/release-catalog.test.ts +2 -2
- package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
- package/src/lifecycle/release-images.test.ts +44 -0
- package/src/lifecycle/release-images.ts +39 -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/op/op-waves-evidence-jobs.ts +134 -0
- package/src/op/op-waves-evidence.test.ts +37 -4
- package/src/op/op-waves-evidence.ts +32 -11
- package/src/op/op-waves-run.ts +57 -2
- package/src/op/op-waves.ts +11 -0
- package/src/op/schedule-overdue.test.ts +83 -1
- package/src/op/schedule-overdue.ts +107 -9
- 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-plan-note.ts +32 -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.test.ts +30 -0
- package/src/pr-post.ts +110 -6
- package/src/pr-requires.test.ts +20 -0
- package/src/pr-requires.ts +10 -1
- package/src/ref-gate-init.ts +189 -0
- package/src/ref-gate-rules.ts +26 -0
- package/src/release-floors.ts +88 -16
- package/src/state-migration-record.test.ts +90 -0
- package/src/state-migration.test.ts +1 -1
- package/src/state-migration.ts +52 -3
- package/src/state-unlock.test.ts +33 -1
- package/src/state-unlock.ts +49 -1
- package/src/workspace/ci-green-cli.ts +12 -6
- package/src/workspace/ci-green.ts +4 -3
- 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-workflow.test.ts +70 -0
- package/src/workspace/release-workflow.ts +56 -8
- package/src/workspace/trust/check-evidence-report.ts +33 -0
- package/src/workspace/trust/check-evidence.test.ts +3 -3
- package/src/workspace/trust/check-evidence.ts +110 -28
- package/src/workspace/trust/ci-tag-statement.ts +2 -2
- package/src/workspace/trust/dsse.ts +48 -4
- package/src/workspace/trust/evidence.ts +7 -2
- package/src/workspace/trust/keyless-fixture.ts +214 -0
- package/src/workspace/trust/keyless.test.ts +220 -0
- package/src/workspace/trust/keyless.ts +557 -0
- package/src/workspace/trust/local-evidence.ts +3 -1
- package/src/workspace/trust/op-run-statement.ts +2 -2
- package/src/workspace/trust/open-evidence.ts +129 -0
- package/src/workspace/trust/policy.ts +129 -2
- package/src/workspace/trust/ref-gate-cli.ts +59 -3
- package/src/workspace/trust/ref-gate-pieces.test.ts +175 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
- package/src/workspace/trust/ref-gate.ts +90 -8
- package/src/workspace/trust/run-statement.ts +3 -3
- package/src/workspace/trust/runner-identity.ts +92 -0
- package/src/workspace/trust/trust-files.test.ts +6 -0
- package/src/workspace/trust/trust-files.ts +14 -1
|
@@ -6,18 +6,40 @@
|
|
|
6
6
|
*
|
|
7
7
|
* - `sign --check-id <id>[,<id>...]` signs that each check passed at `--at`
|
|
8
8
|
* (default `HEAD`), with the runner key in `--key <file>` or
|
|
9
|
-
* `CHANT_RUNNER_KEY`,
|
|
9
|
+
* `CHANT_RUNNER_KEY`, or keyless from the job's OIDC identity with
|
|
10
|
+
* `CHANT_RUNNER_IDENTITY=oidc` (#4869), and pushes the notes unless
|
|
11
|
+
* `--no-push`.
|
|
10
12
|
* - `sign --from-report <dir> --result <result>` is the plan note job's
|
|
11
13
|
* form: it signs `plan` when the plan job succeeded and left a report in
|
|
12
14
|
* `<dir>`, and `policy` when the policy evaluated inside that plan did not
|
|
13
15
|
* deny it (a `pr-plan.json`'s `policy`, a plan note hand-off's overrides).
|
|
14
16
|
* It writes `evidence.json` in `<dir>`, which `pr-post` reads to say in the
|
|
15
17
|
* note which checks were signed.
|
|
18
|
+
* - `sign --from-report <dir>` on a check job's report (#4935), a
|
|
19
|
+
* `check-hooks.json` from `chant ci check`, is the `check-evidence` job's
|
|
20
|
+
* form: it signs each hook that passed, by name, with the runs as its
|
|
21
|
+
* claim, as `ci check` with a runner identity signs them. A hook skipped on
|
|
22
|
+
* local evidence did not pass here and is not signed. With `--result`, a
|
|
23
|
+
* check job that neither succeeded nor failed signs nothing.
|
|
24
|
+
* - `sign --open --job <job> --from-report <dir> -o <out>` (#4914) is the
|
|
25
|
+
* GitLab signing job's form, in a pipeline of the target branch: for each
|
|
26
|
+
* open merge request it reads the report from the newest pipeline's
|
|
27
|
+
* `<job>` artifact, fetches the head and signs it as `--from-report`
|
|
28
|
+
* does, skipping a check already signed for the head's tree, and keeps
|
|
29
|
+
* `<out>/<iid>/evidence.json` for the note job. No job of a merge request
|
|
30
|
+
* pipeline, which the change's own files build, holds the key.
|
|
31
|
+
* - `sign --from-job <job> --check-id <id>[,<id>...] [--claims <dir>]`
|
|
32
|
+
* (#4926) is a wave's evidence job's form: it reads the job of that name
|
|
33
|
+
* in this run through the forge, refuses one of another run or commit,
|
|
34
|
+
* and signs each check whose step (named in `CHANT_EVIDENCE_SOURCES`; on
|
|
35
|
+
* GitLab, whose jobs have no steps, the job) the forge reports passed and
|
|
36
|
+
* whose claim file in `<dir>` says so. Each statement names the run, job
|
|
37
|
+
* and step it relied on (`source`).
|
|
16
38
|
* - `verify --check-id <id>[,<id>...]` reads the evidence for `--at`'s tree
|
|
17
39
|
* and verifies it against the runner keys at `--base`; exits 1 when one
|
|
18
40
|
* is not current.
|
|
19
41
|
*
|
|
20
|
-
* Without a runner
|
|
42
|
+
* Without a runner identity, `sign` signs nothing and says so: a project that
|
|
21
43
|
* declares no runner identity gets the same job it had.
|
|
22
44
|
*
|
|
23
45
|
* `--local` (#4868) is the developer's or agent session's form: `sign
|
|
@@ -25,15 +47,18 @@
|
|
|
25
47
|
* `local.keys` at base lists, and pushes `refs/notes/chant/local-evidence`;
|
|
26
48
|
* `verify --local` says whether CI would skip each check on that evidence.
|
|
27
49
|
*/
|
|
28
|
-
import {
|
|
50
|
+
import { execFileSync, spawnSync } from "node:child_process";
|
|
51
|
+
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
29
52
|
import { join } from "node:path";
|
|
30
53
|
import { CHANT_EXIT } from "../../exit-codes.js";
|
|
31
54
|
import { formatError } from "../format.js";
|
|
32
55
|
import { gitRoot } from "../../workspace/record-source.js";
|
|
33
56
|
import { resolveBase } from "../../workspace/trust/provenance.js";
|
|
34
|
-
import { CHECK_EVIDENCE_KEY_ENV, readCheckEvidence, recordChecks,
|
|
57
|
+
import { CHECK_EVIDENCE_KEY_ENV, noRunnerIdentity, readCheckEvidence, recordChecks, RUNNER_IDENTITY_ENV, runnerEvidenceSigner, signChecks, } from "../../workspace/trust/check-evidence.js";
|
|
35
58
|
import { CHECK_EVIDENCE_FILE, LOCAL_EVIDENCE_KEY_ENV, planReportChecks } from "../../workspace/trust/check-evidence-report.js";
|
|
36
59
|
const USAGE = "chant ci evidence sign (--check-id <id>[,<id>...] | --from-report <dir> --result <result>) [--at <rev>] [--base <rev>] [--key <file>] [--claim <file>] [--no-push] [--json]\n" +
|
|
60
|
+
" chant ci evidence sign --open --job <job> --from-report <dir> -o <out> [--branch <branch>] [--base <rev>] [--key <file>] [--no-push] [--json]\n" +
|
|
61
|
+
" chant ci evidence sign --from-job <job> --check-id <id>[,<id>...] [--claims <dir>] [--at <rev>] [--base <rev>] [--key <file>] [--no-push] [--json]\n" +
|
|
37
62
|
" chant ci evidence sign --local --check-id <id>[,<id>...] [--at <rev>] [--base <rev>] [--key <file>] [--claim <file>] [--no-push] [--json]\n" +
|
|
38
63
|
" chant ci evidence verify [--local] --check-id <id>[,<id>...] [--at <rev>] [--base <rev>] [--json]";
|
|
39
64
|
function usage(message) {
|
|
@@ -105,56 +130,243 @@ async function verifyLocal(ctx, repo, base, at) {
|
|
|
105
130
|
console.error(v.status === "accepted" ? ` accepted ${v.check} (${v.class} ${v.signer} at ${v.commit.slice(0, 12)})` : ` ${v.status.padEnd(12)} ${v.check}: ${v.reason}`);
|
|
106
131
|
return verdicts.every((v) => v.status === "accepted") ? CHANT_EXIT.done : CHANT_EXIT.failed;
|
|
107
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* `sign --from-job <job>` (#4926): the wave's evidence job, signing each
|
|
135
|
+
* named check whose step in that job of this run and commit the forge
|
|
136
|
+
* reports as passed (../../ci-evidence-from-job.ts). Exits 1 when the job is
|
|
137
|
+
* another run's or commit's.
|
|
138
|
+
*/
|
|
139
|
+
async function signFromJobCommand(ctx, repo, base) {
|
|
140
|
+
const { args } = ctx;
|
|
141
|
+
const checks = idsOf(args.checkId);
|
|
142
|
+
if (checks.length === 0)
|
|
143
|
+
return usage("sign --from-job needs --check-id <id>[,<id>...], the checks the job ran");
|
|
144
|
+
if (args.fromReport)
|
|
145
|
+
return usage("--from-job and --from-report are two ways to sign; pass one");
|
|
146
|
+
const pem = args.key ? readFileSync(args.key, "utf-8") : undefined;
|
|
147
|
+
try {
|
|
148
|
+
const { forgeTargetFromEnv } = await import("../../pr-forge.js");
|
|
149
|
+
const { forgeReadsFor } = await import("../../pr-forge-reads.js");
|
|
150
|
+
const { signFromJob } = await import("../../ci-evidence-from-job.js");
|
|
151
|
+
const reads = forgeReadsFor(forgeTargetFromEnv(process.env));
|
|
152
|
+
const done = await signFromJob({ repo, base, fromJob: args.fromJob, checks, ...(args.claims ? { claims: args.claims } : {}), ...(args.at ? { at: args.at } : {}), reads, ...(pem ? { key: pem } : {}), push: !args.noPush });
|
|
153
|
+
if ("refused" in done) {
|
|
154
|
+
console.error(formatError({ message: `ci evidence: ${done.refused}`, hint: USAGE }));
|
|
155
|
+
return CHANT_EXIT.failed;
|
|
156
|
+
}
|
|
157
|
+
if (args.json)
|
|
158
|
+
console.log(JSON.stringify({ signed: done.signed, skipped: done.skipped }, null, 2));
|
|
159
|
+
return CHANT_EXIT.done;
|
|
160
|
+
}
|
|
161
|
+
catch (err) {
|
|
162
|
+
console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
|
|
163
|
+
return CHANT_EXIT.failed;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
108
166
|
async function sign(ctx, repo, base, at) {
|
|
109
167
|
const { args } = ctx;
|
|
168
|
+
if (args.open && args.fromJob)
|
|
169
|
+
return usage("--open and --from-job are two ways to sign; pass one");
|
|
170
|
+
if (args.open)
|
|
171
|
+
return signOpen(ctx, repo, base);
|
|
172
|
+
if (args.fromJob)
|
|
173
|
+
return signFromJobCommand(ctx, repo, base);
|
|
110
174
|
const fromReport = args.fromReport;
|
|
111
175
|
if (!fromReport && idsOf(args.checkId).length === 0)
|
|
112
176
|
return usage("sign needs --check-id <id>, or --from-report <dir> in a plan note job");
|
|
113
177
|
const pem = args.key ? readFileSync(args.key, "utf-8") : process.env[CHECK_EVIDENCE_KEY_ENV];
|
|
178
|
+
let wanted;
|
|
179
|
+
if (!fromReport) {
|
|
180
|
+
const claim = args.claim ? readFileSync(args.claim) : undefined;
|
|
181
|
+
wanted = idsOf(args.checkId).map((check) => ({ check, ...(claim ? { claim } : {}) }));
|
|
182
|
+
}
|
|
183
|
+
const done = await signChecksOf(repo, base, at, { ...(fromReport ? { fromReport } : {}), ...(wanted ? { wanted } : {}), ...(args.planResult ? { result: args.planResult } : {}), pem, push: !args.noPush });
|
|
184
|
+
if ("usage" in done)
|
|
185
|
+
return usage(done.usage);
|
|
186
|
+
if (fromReport)
|
|
187
|
+
writeFileSync(join(fromReport, CHECK_EVIDENCE_FILE), JSON.stringify(done.note, null, 2) + "\n");
|
|
188
|
+
if (args.json)
|
|
189
|
+
console.log(JSON.stringify(done.note, null, 2));
|
|
190
|
+
return done.code;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Sign the checks of a report directory (`fromReport`) or the named ones
|
|
194
|
+
* (`wanted`) at `at`, against the runner identities at `base`. With
|
|
195
|
+
* `skipCurrent` (#4914), a check whose current evidence the notes already
|
|
196
|
+
* hold is not signed again and is listed as signed by that runner, so a
|
|
197
|
+
* pipeline that runs on every schedule signs each head once.
|
|
198
|
+
*/
|
|
199
|
+
async function signChecksOf(repo, base, at, opts) {
|
|
200
|
+
const { fromReport, pem } = opts;
|
|
201
|
+
const identity = pem !== undefined && pem !== "" ? "key" : process.env[RUNNER_IDENTITY_ENV] ? "oidc" : undefined;
|
|
114
202
|
const note = { signed: [], skipped: [] };
|
|
115
203
|
let wanted;
|
|
116
|
-
if (fromReport) {
|
|
117
|
-
|
|
204
|
+
if (fromReport && isCheckReportDir(fromReport)) {
|
|
205
|
+
// #4935: a check job's report, each passed hook signed by name.
|
|
206
|
+
const decided = await checkReportChecks(fromReport, opts.result);
|
|
207
|
+
if ("error" in decided)
|
|
208
|
+
return { usage: decided.error };
|
|
209
|
+
wanted = decided.sign;
|
|
210
|
+
note.skipped.push(...decided.skipped);
|
|
211
|
+
}
|
|
212
|
+
else if (fromReport) {
|
|
213
|
+
const decided = planReportChecks(fromReport, opts.result);
|
|
118
214
|
wanted = decided.sign;
|
|
119
215
|
note.skipped.push(...decided.skipped);
|
|
120
216
|
}
|
|
121
217
|
else {
|
|
122
|
-
|
|
123
|
-
wanted = idsOf(args.checkId).map((check) => ({ check, ...(claim ? { claim } : {}) }));
|
|
218
|
+
wanted = opts.wanted ?? [];
|
|
124
219
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
console.log(JSON.stringify(note, null, 2));
|
|
130
|
-
return code;
|
|
131
|
-
};
|
|
132
|
-
if (!pem) {
|
|
133
|
-
note.skipped.push(...wanted.map((w) => ({ check: w.check, reason: `no runner key: ${CHECK_EVIDENCE_KEY_ENV} is not set` })));
|
|
134
|
-
console.error(`ci evidence: no runner key in ${CHECK_EVIDENCE_KEY_ENV}, so no check was signed`);
|
|
135
|
-
return finish(CHANT_EXIT.done);
|
|
220
|
+
if (!identity) {
|
|
221
|
+
note.skipped.push(...wanted.map((w) => ({ check: w.check, reason: noRunnerIdentity() })));
|
|
222
|
+
console.error(`ci evidence: ${noRunnerIdentity()}, so no check was signed`);
|
|
223
|
+
return { note, code: CHANT_EXIT.done };
|
|
136
224
|
}
|
|
137
225
|
let signer;
|
|
138
226
|
try {
|
|
139
|
-
signer =
|
|
227
|
+
signer = (await runnerEvidenceSigner(repo, base, pem ? { key: pem } : {}));
|
|
140
228
|
}
|
|
141
229
|
catch (err) {
|
|
142
230
|
console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
|
|
143
|
-
return
|
|
231
|
+
return { note, code: CHANT_EXIT.failed };
|
|
144
232
|
}
|
|
145
233
|
for (const s of note.skipped)
|
|
146
234
|
console.error(`ci evidence: ${s.check} not signed: ${s.reason}`);
|
|
235
|
+
if (opts.skipCurrent && wanted.length > 0) {
|
|
236
|
+
const { tree } = commitTree(repo, at);
|
|
237
|
+
const current = (await readCheckEvidence(repo, at, base, wanted.map((w) => w.check))).filter((v) => v.status === "current");
|
|
238
|
+
for (const v of current) {
|
|
239
|
+
note.signed.push({ check: v.check, runner: v.runner, commit: v.commit, tree });
|
|
240
|
+
console.error(`ci evidence: ${v.check} at ${at.slice(0, 12)} is already signed by ${v.runner}`);
|
|
241
|
+
}
|
|
242
|
+
const kept = new Set(current.map((v) => v.check));
|
|
243
|
+
wanted = wanted.filter((w) => !kept.has(w.check));
|
|
244
|
+
}
|
|
147
245
|
if (wanted.length === 0)
|
|
148
|
-
return
|
|
149
|
-
const signed = signChecks(repo, at, wanted, signer);
|
|
150
|
-
const pushed = await recordChecks(repo, signed, { push:
|
|
246
|
+
return { note, code: CHANT_EXIT.done };
|
|
247
|
+
const signed = await signChecks(repo, at, wanted, signer);
|
|
248
|
+
const pushed = await recordChecks(repo, signed, { push: opts.push });
|
|
151
249
|
for (const s of signed) {
|
|
152
250
|
note.signed.push({ check: s.check, runner: s.runner, commit: s.commit, tree: s.tree });
|
|
153
251
|
console.error(`ci evidence: signed ${s.check} at ${s.commit.slice(0, 12)} as ${s.runner}`);
|
|
154
252
|
}
|
|
155
|
-
if (
|
|
253
|
+
if (opts.push && !pushed.pushed && pushed.pushWarning)
|
|
156
254
|
console.error(`ci evidence: the evidence is attached here, and the push did not land: ${pushed.pushWarning}`);
|
|
157
|
-
return
|
|
255
|
+
return { note, code: CHANT_EXIT.done };
|
|
256
|
+
}
|
|
257
|
+
/** A commit's full sha and tree, read with git. */
|
|
258
|
+
function commitTree(repo, rev) {
|
|
259
|
+
const read = (spec) => execFileSync("git", ["rev-parse", "--verify", spec], { cwd: repo, encoding: "utf-8", stdio: ["ignore", "pipe", "pipe"] }).trim();
|
|
260
|
+
return { commit: read(`${rev}^{commit}`), tree: read(`${rev}^{tree}`) };
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* `sign --open --job <job> --from-report <dir> -o <out>` (#4914): in a
|
|
264
|
+
* GitLab pipeline of the target branch, sign each open merge request's
|
|
265
|
+
* settled `job` from its artifact (../../workspace/trust/open-evidence.ts),
|
|
266
|
+
* against the policy at `--base` (the generated job passes the branch's
|
|
267
|
+
* commit). The branch is `--branch`, else the pipeline's own. Exits 0 once
|
|
268
|
+
* each merge request is signed or said, and 1 when the job's runner
|
|
269
|
+
* identity is not one the policy at base lists.
|
|
270
|
+
*/
|
|
271
|
+
async function signOpen(ctx, repo, base) {
|
|
272
|
+
const { args } = ctx;
|
|
273
|
+
if (!args.ciJob || !/^[A-Za-z0-9][A-Za-z0-9_.-]*$/.test(args.ciJob))
|
|
274
|
+
return usage("sign --open needs the job to sign for, by name: --job plan");
|
|
275
|
+
if (!args.fromReport)
|
|
276
|
+
return usage("sign --open needs the job's report directory as its artifact keeps it: --from-report .chant/pr");
|
|
277
|
+
if (!args.output)
|
|
278
|
+
return usage("sign --open needs where to keep each merge request's evidence.json: -o .chant/evidence/<job>");
|
|
279
|
+
if (args.checkId || args.at || args.planResult)
|
|
280
|
+
return usage("sign --open finds each merge request's head and its job's result itself, so it takes no --check-id, --at or --result");
|
|
281
|
+
const branch = args.branch ?? process.env.CI_COMMIT_BRANCH;
|
|
282
|
+
if (!branch)
|
|
283
|
+
return usage("sign --open signs for the merge requests into a branch: run it in a branch pipeline, or pass --branch <branch>");
|
|
284
|
+
const pem = args.key ? readFileSync(args.key, "utf-8") : process.env[CHECK_EVIDENCE_KEY_ENV];
|
|
285
|
+
const { forgeFromEnv } = await import("../../pr-forge.js");
|
|
286
|
+
const { signOpenReports } = await import("../../workspace/trust/open-evidence.js");
|
|
287
|
+
// The notes there are the ones to skip a head already signed by, and to add to.
|
|
288
|
+
spawnSync("git", ["fetch", "--quiet", "--no-tags", "origin", "+refs/notes/chant/evidence:refs/notes/chant/evidence"], { cwd: repo, encoding: "utf-8" });
|
|
289
|
+
let failed = false;
|
|
290
|
+
let done;
|
|
291
|
+
try {
|
|
292
|
+
done = await signOpenReports({
|
|
293
|
+
forge: forgeFromEnv("gitlab"),
|
|
294
|
+
branch,
|
|
295
|
+
job: args.ciJob,
|
|
296
|
+
artifactDir: args.fromReport,
|
|
297
|
+
out: args.output,
|
|
298
|
+
...(args.noForks ? { noForks: true } : {}),
|
|
299
|
+
fetchHead: (pr, head) => fetchMergeRequestHead(repo, pr, head),
|
|
300
|
+
sign: async (dir, head, result) => {
|
|
301
|
+
const r = await signChecksOf(repo, base, head, { fromReport: dir, result, ...(pem ? { pem } : {}), push: !args.noPush, skipCurrent: true });
|
|
302
|
+
if ("usage" in r)
|
|
303
|
+
throw new Error(r.usage);
|
|
304
|
+
if (r.code !== CHANT_EXIT.done)
|
|
305
|
+
failed = true;
|
|
306
|
+
return r.note;
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
catch (err) {
|
|
311
|
+
console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
|
|
312
|
+
return CHANT_EXIT.failed;
|
|
313
|
+
}
|
|
314
|
+
for (const w of done.warnings)
|
|
315
|
+
console.error(`ci evidence: ${w}`);
|
|
316
|
+
for (const d of done.done) {
|
|
317
|
+
if (d.skipped)
|
|
318
|
+
console.error(`ci evidence: !${d.pr}: ${d.skipped}`);
|
|
319
|
+
else
|
|
320
|
+
console.error(`ci evidence: !${d.pr} at ${d.head.slice(0, 12)}: signed ${d.note.signed.map((s) => s.check).join(", ") || "nothing"}`);
|
|
321
|
+
}
|
|
322
|
+
if (done.done.length === 0)
|
|
323
|
+
console.error(`ci evidence: no open merge request into ${branch} has a ${args.ciJob} job`);
|
|
324
|
+
if (args.json)
|
|
325
|
+
console.log(JSON.stringify(done.done, null, 2));
|
|
326
|
+
return failed ? CHANT_EXIT.failed : CHANT_EXIT.done;
|
|
327
|
+
}
|
|
328
|
+
/** Fetch merge request `pr`'s head (`refs/merge-requests/<iid>/head`, a fork's too), else the commit itself; true once it is here. */
|
|
329
|
+
function fetchMergeRequestHead(repo, pr, head) {
|
|
330
|
+
const here = () => spawnSync("git", ["cat-file", "-e", `${head}^{commit}`], { cwd: repo }).status === 0;
|
|
331
|
+
if (here())
|
|
332
|
+
return true;
|
|
333
|
+
spawnSync("git", ["fetch", "--quiet", "--no-tags", "origin", `refs/merge-requests/${pr}/head`], { cwd: repo, encoding: "utf-8" });
|
|
334
|
+
if (here())
|
|
335
|
+
return true;
|
|
336
|
+
spawnSync("git", ["fetch", "--quiet", "--no-tags", "origin", head], { cwd: repo, encoding: "utf-8" });
|
|
337
|
+
return here();
|
|
338
|
+
}
|
|
339
|
+
/** Whether `dir` holds a check job's report and no plan report (#4935). */
|
|
340
|
+
function isCheckReportDir(dir) {
|
|
341
|
+
return existsSync(join(dir, "check-hooks.json")) && !existsSync(join(dir, "pr-plan.json")) && !existsSync(join(dir, "pr-plan-note.json"));
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* The hooks to sign from a check job's report (#4935): each hook whose every
|
|
345
|
+
* run passed, with its runs as the claim, as the check runner signs them
|
|
346
|
+
* (../../components/check-steps.ts). The report is the check job's, which ran
|
|
347
|
+
* the change's code, so it is read as data: a hook with no name or outcome is
|
|
348
|
+
* left out. A job `result` other than success or failure signs none.
|
|
349
|
+
*/
|
|
350
|
+
async function checkReportChecks(dir, result) {
|
|
351
|
+
const { CHECK_HOOKS_REPORT_FILE, passedCheckHooks } = await import("../../components/check-hooks.js");
|
|
352
|
+
let doc;
|
|
353
|
+
try {
|
|
354
|
+
doc = JSON.parse(readFileSync(join(dir, CHECK_HOOKS_REPORT_FILE), "utf-8"));
|
|
355
|
+
}
|
|
356
|
+
catch (err) {
|
|
357
|
+
return { error: `--from-report ${dir}: ${CHECK_HOOKS_REPORT_FILE} does not read: ${err instanceof Error ? err.message : String(err)}` };
|
|
358
|
+
}
|
|
359
|
+
const hooks = doc && typeof doc === "object" && Array.isArray(doc.hooks) ? doc.hooks : undefined;
|
|
360
|
+
if (!hooks)
|
|
361
|
+
return { error: `--from-report ${dir}: ${CHECK_HOOKS_REPORT_FILE} lists no hooks` };
|
|
362
|
+
const runs = hooks.filter((h) => h && typeof h.name === "string" && h.name.length > 0 && h.name.length <= 200 && (h.outcome === "passed" || h.outcome === "failed" || h.outcome === "skipped"));
|
|
363
|
+
const passed = passedCheckHooks(runs);
|
|
364
|
+
if (result !== undefined && result !== "success" && result !== "failure") {
|
|
365
|
+
return { sign: [], skipped: passed.map((p) => ({ check: p.check, reason: `the check job's result is ${result}` })) };
|
|
366
|
+
}
|
|
367
|
+
const signed = new Set(passed.map((p) => p.check));
|
|
368
|
+
const skipped = [...new Set(runs.map((h) => h.name))].filter((n) => !signed.has(n)).map((check) => ({ check, reason: "the hook did not pass in the check job" }));
|
|
369
|
+
return { sign: passed.map((p) => ({ check: p.check, claim: JSON.stringify(p.runs) })), skipped };
|
|
158
370
|
}
|
|
159
371
|
async function verify(ctx, repo, base, at) {
|
|
160
372
|
const { args } = ctx;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-forge-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-forge-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci-forge-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-forge-check.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiF1E"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `chant ci forge-check [--env <env>] [--member <name>] [--forge <forge>]
|
|
3
|
-
* [--repo <owner/name>] [--branch <default>] [--require-clouds]
|
|
4
|
-
* (#4608): read the live forge, the clouds and
|
|
5
|
-
* pull-request pipelines `ci.identity.cloud` gives
|
|
6
|
-
* per expected setting.
|
|
3
|
+
* [--repo <owner/name>] [--branch <default>] [--require-clouds]
|
|
4
|
+
* [--ref-gate-status] [--json]` (#4608): read the live forge, the clouds and
|
|
5
|
+
* Pulumi Cloud against the pull-request pipelines `ci.identity.cloud` gives
|
|
6
|
+
* the workspace, one row per expected setting. With `--ref-gate-status`
|
|
7
|
+
* (#4913), for pipelines built with it, the default branch also requires
|
|
8
|
+
* the ref gate's status, named as the policy at `origin/<default>` (else
|
|
9
|
+
* `HEAD`) names it. Read-only. Exits chant's `failed` (1) on a
|
|
7
10
|
* mismatch, or with --require-clouds on a cloud left unchecked; `done` (0)
|
|
8
11
|
* otherwise. See ../../forge-check/index.ts.
|
|
9
12
|
*/
|
|
10
13
|
import { formatError } from "../format.js";
|
|
11
|
-
const USAGE = "chant ci forge-check [--env <env>] [--member <name>] [--forge github|gitlab|forgejo] [--repo <owner/name>] [--branch <default>] [--require-clouds] [--json]";
|
|
14
|
+
const USAGE = "chant ci forge-check [--env <env>] [--member <name>] [--forge github|gitlab|forgejo] [--repo <owner/name>] [--branch <default>] [--require-clouds] [--ref-gate-status] [--json]";
|
|
12
15
|
/** The environment chant's generated pull-request pipelines default to. */
|
|
13
16
|
const DEFAULT_ENV = "production";
|
|
14
17
|
export async function runCiForgeCheck(ctx) {
|
|
@@ -60,27 +63,41 @@ export async function runCiForgeCheck(ctx) {
|
|
|
60
63
|
});
|
|
61
64
|
const words = activeProductWords();
|
|
62
65
|
const host = target.host;
|
|
66
|
+
// #4913: with --ref-gate-status the default branch requires the ref gate's status too, named as the policy names it.
|
|
67
|
+
let gate = {};
|
|
68
|
+
const statusFor = args.refGateStatus ? (await import("../../ref-gate-rules.js")).refGateStatusFor : undefined;
|
|
63
69
|
const result = await forgeCheck({
|
|
64
70
|
target,
|
|
65
71
|
words,
|
|
66
72
|
...(args.requireClouds ? { requireClouds: true } : {}),
|
|
67
|
-
contract: (live) =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
contract: (live) => {
|
|
74
|
+
const defaultBranch = args.branch ?? live.defaultBranch ?? "main";
|
|
75
|
+
if (statusFor)
|
|
76
|
+
gate = statusFor(found?.dir ?? process.cwd(), defaultBranch);
|
|
77
|
+
const status = gate.status;
|
|
78
|
+
return pipelineContract({
|
|
79
|
+
forge: target.kind,
|
|
80
|
+
repository: {
|
|
81
|
+
host,
|
|
82
|
+
path: live.path ?? target.repo,
|
|
83
|
+
defaultBranch,
|
|
84
|
+
...(live.ownerId ? { ownerId: live.ownerId } : {}),
|
|
85
|
+
...(live.repoId ? { repoId: live.repoId } : {}),
|
|
86
|
+
},
|
|
87
|
+
pipelines,
|
|
88
|
+
words,
|
|
89
|
+
...(status ? { refGateStatus: status } : {}),
|
|
90
|
+
});
|
|
91
|
+
},
|
|
79
92
|
}, { fetch: globalThis.fetch, env: process.env });
|
|
93
|
+
if (gate.problem)
|
|
94
|
+
return fail(`--ref-gate-status: ${gate.problem}`);
|
|
80
95
|
if (args.json)
|
|
81
96
|
console.log(JSON.stringify(result, null, 2));
|
|
82
97
|
else
|
|
83
98
|
console.log(describeForgeCheck(result));
|
|
99
|
+
if (gate.note)
|
|
100
|
+
console.error(`ci forge-check: ${gate.note}`);
|
|
84
101
|
if (!decl)
|
|
85
102
|
console.error("ci forge-check: no ci.identity.cloud in the workspace declaration, so no trust was checked");
|
|
86
103
|
else if (pipelines.length === 0)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/generated-check.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB/E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant dev generated-check [<render>...] [--json]` (#4909): render the
|
|
3
|
+
* product's declared generated files (`chantGenerated` in its root
|
|
4
|
+
* package.json) into a directory under the OS temp directory, compare each
|
|
5
|
+
* with the committed file, and exit 1 naming every one that drifted. The
|
|
6
|
+
* directory is left in place and printed. Exit 2 when the product declares
|
|
7
|
+
* no `chantGenerated`.
|
|
8
|
+
*/
|
|
9
|
+
import { checkGenerated, readGeneratedCheckConfig } from "../../generated-check.js";
|
|
10
|
+
import { formatError } from "../format.js";
|
|
11
|
+
const USAGE = "chant dev generated-check [<render>...] [--json]";
|
|
12
|
+
export async function runDevGeneratedCheck(ctx) {
|
|
13
|
+
const productDir = process.cwd();
|
|
14
|
+
let config;
|
|
15
|
+
try {
|
|
16
|
+
config = readGeneratedCheckConfig(productDir);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
|
|
20
|
+
return 2;
|
|
21
|
+
}
|
|
22
|
+
if (!config) {
|
|
23
|
+
console.error(formatError({ message: "package.json here declares no chantGenerated", hint: USAGE }));
|
|
24
|
+
return 2;
|
|
25
|
+
}
|
|
26
|
+
const only = (ctx.args.positionals ?? []).slice(1);
|
|
27
|
+
const result = await checkGenerated(productDir, config, { only });
|
|
28
|
+
if (ctx.args.json) {
|
|
29
|
+
console.log(JSON.stringify(result, null, 2));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
for (const f of result.matched)
|
|
33
|
+
console.error(` generated-check: ${f} matches its render`);
|
|
34
|
+
for (const p of result.problems)
|
|
35
|
+
console.error(`generated-check: ${p}`);
|
|
36
|
+
console.error(`generated-check: the renders are in ${result.out}`);
|
|
37
|
+
if (result.ok)
|
|
38
|
+
console.error(`generated-check: ${result.matched.length} files match ${result.renders.length} renders`);
|
|
39
|
+
}
|
|
40
|
+
return result.ok ? 0 : 1;
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,OAAO,K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BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0E/E"}
|
|
@@ -807,6 +807,9 @@ async function runLifecycleDiffLive(args) {
|
|
|
807
807
|
if (args.json) {
|
|
808
808
|
const entry = (byLexicon[lexiconName] ?? (byLexicon[lexiconName] = {}));
|
|
809
809
|
entry.resources = diff;
|
|
810
|
+
// What a confirmed-absent entity is, when the lexicon says (#4896); left out for every other lexicon.
|
|
811
|
+
if (plugin.liveAbsentStatus)
|
|
812
|
+
entry.absent = plugin.liveAbsentStatus;
|
|
810
813
|
entry.observed = observedNow; // live state (#862) — status/attributes per resource
|
|
811
814
|
if (Object.keys(observed.unobserved).length > 0)
|
|
812
815
|
entry.unobserved = observed.unobserved;
|
|
@@ -13,4 +13,17 @@ export declare function runDevLocal(ctx: CommandContext): Promise<number>;
|
|
|
13
13
|
* in the current directory that declares one.
|
|
14
14
|
*/
|
|
15
15
|
export declare function runDevBundleCheck(ctx: CommandContext): Promise<number>;
|
|
16
|
+
/**
|
|
17
|
+
* `chant dev local-image [--with <package>]... [-- <docker build arguments>]`
|
|
18
|
+
* (#4909): build a product's image with the chant the product has installed.
|
|
19
|
+
* With no docker arguments it prints the chant version the image would
|
|
20
|
+
* install (the pin, or `local-<commit>`), for a label that rebuilds the image
|
|
21
|
+
* when it changes; `--json` prints the version, the mark and the arguments.
|
|
22
|
+
* With them it runs `docker build` with `--build-arg CHANT_VERSION=<version>`
|
|
23
|
+
* and, for a `chant dev local` build, `--build-context
|
|
24
|
+
* chant-local=<product>/.chant-local` first. `--with` names a package the
|
|
25
|
+
* image installs from the tarballs besides core. Exit 1 when the local build's
|
|
26
|
+
* tarballs are missing or docker fails, 2 for a usage error.
|
|
27
|
+
*/
|
|
28
|
+
export declare function runDevLocalImage(ctx: CommandContext): Promise<number>;
|
|
16
29
|
//# sourceMappingURL=local-chant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chant.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/local-chant.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"local-chant.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/local-chant.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAgClD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+BtE;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB3E"}
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
import { spawnSync } from "node:child_process";
|
|
8
8
|
import { join, resolve } from "node:path";
|
|
9
9
|
import { checkBundle, readBundleCheckConfig } from "../../bundle-check.js";
|
|
10
|
-
import { installLocalChant, LocalChantError, productManifests, resetLocalChant } from "../../local-chant.js";
|
|
10
|
+
import { installLocalChant, LocalChantError, localChantImage, productManifests, resetLocalChant } from "../../local-chant.js";
|
|
11
11
|
import { formatError } from "../format.js";
|
|
12
12
|
const LOCAL_USAGE = "chant dev local <chant-dir> [--with <package>]... [--build '<command>'] [--json] | chant dev local --reset [--build '<command>']";
|
|
13
13
|
const CHECK_USAGE = "chant dev bundle-check [<package-dir>] [--json]";
|
|
14
|
+
const IMAGE_USAGE = "chant dev local-image [--with <package>]... [--json] [-- <docker build arguments>...]";
|
|
14
15
|
/** The product packages that declare `chantBundleCheck`, as directories. */
|
|
15
16
|
function checkedPackages(productDir) {
|
|
16
17
|
return productManifests(productDir)
|
|
@@ -77,6 +78,7 @@ export async function runDevLocal(ctx) {
|
|
|
77
78
|
}
|
|
78
79
|
else if (installed) {
|
|
79
80
|
console.log(`chant commit: ${installed.mark.commit}`);
|
|
81
|
+
console.log(`chant version: ${installed.packed[0]?.version ?? "none"} (local build)`);
|
|
80
82
|
}
|
|
81
83
|
return ok ? 0 : 1;
|
|
82
84
|
}
|
|
@@ -107,3 +109,42 @@ export async function runDevBundleCheck(ctx) {
|
|
|
107
109
|
console.log(JSON.stringify(results, null, 2));
|
|
108
110
|
return ok ? 0 : 1;
|
|
109
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* `chant dev local-image [--with <package>]... [-- <docker build arguments>]`
|
|
114
|
+
* (#4909): build a product's image with the chant the product has installed.
|
|
115
|
+
* With no docker arguments it prints the chant version the image would
|
|
116
|
+
* install (the pin, or `local-<commit>`), for a label that rebuilds the image
|
|
117
|
+
* when it changes; `--json` prints the version, the mark and the arguments.
|
|
118
|
+
* With them it runs `docker build` with `--build-arg CHANT_VERSION=<version>`
|
|
119
|
+
* and, for a `chant dev local` build, `--build-context
|
|
120
|
+
* chant-local=<product>/.chant-local` first. `--with` names a package the
|
|
121
|
+
* image installs from the tarballs besides core. Exit 1 when the local build's
|
|
122
|
+
* tarballs are missing or docker fails, 2 for a usage error.
|
|
123
|
+
*/
|
|
124
|
+
export async function runDevLocalImage(ctx) {
|
|
125
|
+
const docker = (ctx.args.positionals ?? []).slice(1);
|
|
126
|
+
let image;
|
|
127
|
+
try {
|
|
128
|
+
image = localChantImage(process.cwd(), { with: ctx.args.withPackages });
|
|
129
|
+
}
|
|
130
|
+
catch (err) {
|
|
131
|
+
if (!(err instanceof LocalChantError))
|
|
132
|
+
throw err;
|
|
133
|
+
console.error(formatError({ message: err.message, hint: IMAGE_USAGE }));
|
|
134
|
+
return 1;
|
|
135
|
+
}
|
|
136
|
+
if (docker.length === 0) {
|
|
137
|
+
if (ctx.args.json)
|
|
138
|
+
console.log(JSON.stringify(image, null, 2));
|
|
139
|
+
else
|
|
140
|
+
console.log(image.version);
|
|
141
|
+
return 0;
|
|
142
|
+
}
|
|
143
|
+
console.error(`chant dev local-image: docker build with chant ${image.version}`);
|
|
144
|
+
const r = spawnSync("docker", ["build", ...image.args, ...docker], { cwd: process.cwd(), stdio: "inherit" });
|
|
145
|
+
if (r.error) {
|
|
146
|
+
console.error(formatError({ message: `docker build: ${r.error.message}` }));
|
|
147
|
+
return 1;
|
|
148
|
+
}
|
|
149
|
+
return r.status === 0 ? 0 : 1;
|
|
150
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAOH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAI7F,OAAO,EACL,UAAU,EAUV,KAAK,SAAS,EACf,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAA0C,KAAK,YAAY,EAAuB,MAAM,wBAAwB,CAAC;AAIxH,OAAO,EAYL,KAAK,aAAa,EAGlB,KAAK,cAAc,EAKpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAA+D,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAY3G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAqE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAClI,OAAO,EAA6D,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjI,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAiD,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC9H,OAAO,EAAqI,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