@intentius/chant 0.124.46 → 0.124.48
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/__golden__/wave-loop/op-by-apply-after-fails.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-hold.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-ignored.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-pass.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-skip.json +10 -0
- package/dist/__golden__/wave-loop/op-cost-member-clash.json +6 -0
- package/dist/__golden__/wave-loop/op-cost-member.json +13 -0
- package/dist/__golden__/wave-loop/op-denied-source.json +16 -0
- package/dist/__golden__/wave-loop/op-denied.json +16 -0
- package/dist/__golden__/wave-loop/op-discover-rest-short.json +6 -0
- package/dist/__golden__/wave-loop/op-discover-rest-stops.json +13 -0
- package/dist/__golden__/wave-loop/op-discover-rest.json +26 -0
- package/dist/__golden__/wave-loop/op-discover-wide.json +26 -0
- package/dist/__golden__/wave-loop/op-held-on-again.json +16 -0
- package/dist/__golden__/wave-loop/op-held-on-before-apply.json +16 -0
- package/dist/__golden__/wave-loop/op-held-on.json +16 -0
- package/dist/__golden__/wave-loop/op-hooks-apply-fails.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-after-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-before-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-before-plan.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-held.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-hold-before-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-pass.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-refused-at-base.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-share.json +33 -0
- package/dist/__golden__/wave-loop/op-outcome-held.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan-approved.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan-forever.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-stood-down.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-unreadable.json +10 -0
- package/dist/__golden__/wave-loop/op-overridden.json +16 -0
- package/dist/__golden__/wave-loop/op-per-run.json +20 -0
- package/dist/__golden__/wave-loop/op-point.json +13 -0
- package/dist/__golden__/wave-loop/op-pr-review.json +10 -0
- package/dist/__golden__/wave-loop/op-sealed.json +10 -0
- package/dist/__golden__/wave-loop/op-spend-change-only.json +10 -0
- package/dist/__golden__/wave-loop/op-spend.json +10 -0
- package/dist/__golden__/wave-loop/op-wave-commands.json +55 -0
- package/dist/__golden__/wave-loop/op-wide-refused.json +26 -0
- package/dist/__golden__/wave-loop/op-wide-waiting.json +29 -0
- package/dist/__golden__/wave-loop/op-wide.json +39 -0
- package/dist/action-pins.d.ts +61 -0
- package/dist/action-pins.d.ts.map +1 -0
- package/dist/action-pins.js +77 -0
- package/dist/cli/commands/carve.d.ts +3 -0
- package/dist/cli/commands/carve.d.ts.map +1 -1
- package/dist/cli/commands/carve.js +36 -7
- package/dist/cli/commands/import-report.d.ts +26 -0
- package/dist/cli/commands/import-report.d.ts.map +1 -0
- package/dist/cli/commands/import-report.js +65 -0
- package/dist/cli/commands/import.d.ts +11 -1
- package/dist/cli/commands/import.d.ts.map +1 -1
- package/dist/cli/commands/import.js +22 -3
- package/dist/cli/commands/migrate.d.ts +13 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +134 -10
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +21 -2
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +6 -1
- package/dist/cli/handlers/ledger.d.ts +3 -0
- package/dist/cli/handlers/ledger.d.ts.map +1 -0
- package/dist/cli/handlers/ledger.js +55 -0
- package/dist/cli/handlers/migrate.d.ts.map +1 -1
- package/dist/cli/handlers/migrate.js +18 -11
- package/dist/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/handlers/misc.js +12 -1
- package/dist/cli/handlers/pr-env.js +2 -2
- package/dist/cli/handlers/pr.d.ts +15 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +143 -39
- package/dist/cli/handlers/query.d.ts +7 -2
- package/dist/cli/handlers/query.d.ts.map +1 -1
- package/dist/cli/handlers/query.js +16 -4
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +6 -3
- package/dist/cli/handlers/search.d.ts +2 -4
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/handlers/search.js +13 -39
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +65 -14
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +36 -2
- package/dist/cli/registry.d.ts +14 -4
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/builders.d.ts +5 -1
- package/dist/components/builders.d.ts.map +1 -1
- package/dist/components/builders.js +5 -0
- package/dist/components/capability-plugin-loader.d.ts.map +1 -1
- package/dist/components/capability-plugin-loader.js +16 -1
- package/dist/components/capability-plugin.d.ts +14 -0
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/pr-hooks.d.ts +21 -1
- package/dist/components/pr-hooks.d.ts.map +1 -1
- package/dist/components/pr-hooks.js +72 -4
- package/dist/components/pr-pipeline.d.ts +45 -10
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +47 -14
- package/dist/components/pr-policy.d.ts +36 -0
- package/dist/components/pr-policy.d.ts.map +1 -1
- package/dist/components/pr-policy.js +36 -0
- package/dist/components/starter-plugin.d.ts +1 -0
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/components/starter-plugin.js +5 -1
- package/dist/components/verbs/index.d.ts +2 -0
- package/dist/components/verbs/index.d.ts.map +1 -1
- package/dist/components/verbs/index.js +2 -0
- package/dist/components/verbs/publish-artifact.d.ts +65 -0
- package/dist/components/verbs/publish-artifact.d.ts.map +1 -0
- package/dist/components/verbs/publish-artifact.js +74 -0
- package/dist/components/verbs/publish-image.d.ts +129 -0
- package/dist/components/verbs/publish-image.d.ts.map +1 -0
- package/dist/components/verbs/publish-image.js +145 -0
- package/dist/config-environments.d.ts +20 -0
- package/dist/config-environments.d.ts.map +1 -1
- package/dist/config-environments.js +12 -0
- package/dist/config.d.ts +9 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -2
- package/dist/gate-decision.d.ts +11 -2
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +15 -3
- package/dist/graph-ir.d.ts +25 -0
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-walk.d.ts +66 -0
- package/dist/graph-walk.d.ts.map +1 -0
- package/dist/graph-walk.js +70 -0
- package/dist/import/parser.d.ts +19 -0
- package/dist/import/parser.d.ts.map +1 -1
- package/dist/lexicon.d.ts +71 -6
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +11 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +2 -5
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/ledger-read.d.ts +65 -0
- package/dist/lifecycle/ledger-read.d.ts.map +1 -0
- package/dist/lifecycle/ledger-read.js +160 -0
- package/dist/lifecycle/release-workstation.d.ts +7 -0
- package/dist/lifecycle/release-workstation.d.ts.map +1 -1
- package/dist/lifecycle/release-workstation.js +25 -0
- package/dist/lifecycle/run-ledger.d.ts +4 -3
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +1 -0
- package/dist/lint/discover.js +3 -1
- package/dist/lint/post-synth.d.ts +127 -1
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/lint/post-synth.js +84 -2
- package/dist/lint/rules/op/index.d.ts +1 -0
- package/dist/lint/rules/op/index.d.ts.map +1 -1
- package/dist/lint/rules/op/index.js +2 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.d.ts +32 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.d.ts.map +1 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.js +63 -0
- package/dist/op/activities/activity-contracts.d.ts +5 -2
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.js +5 -2
- package/dist/op/activities/index.d.ts +2 -2
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/index.js +1 -1
- package/dist/op/activities/review-agent.d.ts +90 -4
- package/dist/op/activities/review-agent.d.ts.map +1 -1
- package/dist/op/activities/review-agent.js +217 -19
- package/dist/op/activities/work-evidence.d.ts +8 -1
- package/dist/op/activities/work-evidence.d.ts.map +1 -1
- package/dist/op/activities/work-evidence.js +1 -0
- package/dist/op/builders.d.ts +9 -5
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/builders.js +9 -5
- package/dist/op/composites/apply-op.d.ts +29 -2
- package/dist/op/composites/apply-op.d.ts.map +1 -1
- package/dist/op/composites/apply-op.js +20 -1
- package/dist/op/gate-approval.d.ts +11 -5
- package/dist/op/gate-approval.d.ts.map +1 -1
- package/dist/op/gate-approval.js +11 -6
- package/dist/op/gate-quorum.d.ts +100 -3
- package/dist/op/gate-quorum.d.ts.map +1 -1
- package/dist/op/gate-quorum.js +108 -6
- package/dist/op/gate-review.d.ts +9 -0
- package/dist/op/gate-review.d.ts.map +1 -1
- package/dist/op/gate-review.js +13 -0
- package/dist/op/gate.d.ts +44 -3
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +25 -4
- package/dist/op/index.d.ts +3 -3
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -1
- package/dist/op/local-executor.d.ts +38 -3
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +48 -6
- package/dist/op/op-waves-run.d.ts +26 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +259 -13
- package/dist/op/op-waves.d.ts +72 -5
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +110 -15
- package/dist/op/runtime.d.ts +11 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/schedule-overdue.d.ts +16 -0
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +36 -0
- package/dist/op/stage-hooks.d.ts +9 -2
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +7 -5
- package/dist/op/workspace-run-env.d.ts +22 -0
- package/dist/op/workspace-run-env.d.ts.map +1 -0
- package/dist/op/workspace-run-env.js +21 -0
- package/dist/pr-forge.d.ts +24 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +47 -0
- package/dist/pr-post.d.ts +42 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +67 -1
- package/dist/read-filter.d.ts +65 -0
- package/dist/read-filter.d.ts.map +1 -0
- package/dist/read-filter.js +179 -0
- package/dist/run-event.d.ts +1 -1
- package/dist/run-event.d.ts.map +1 -1
- package/dist/terraform/carve.d.ts +24 -3
- package/dist/terraform/carve.d.ts.map +1 -1
- package/dist/terraform/carve.js +32 -14
- package/dist/terraform/cuts.d.ts +97 -0
- package/dist/terraform/cuts.d.ts.map +1 -0
- package/dist/terraform/cuts.js +138 -0
- package/dist/terraform/folds.d.ts +26 -0
- package/dist/terraform/folds.d.ts.map +1 -0
- package/dist/terraform/folds.js +38 -0
- package/dist/terraform/graph.d.ts.map +1 -1
- package/dist/terraform/graph.js +10 -0
- package/dist/terraform/reach.d.ts +140 -0
- package/dist/terraform/reach.d.ts.map +1 -0
- package/dist/terraform/reach.js +170 -0
- package/dist/terraform/score.d.ts +14 -0
- package/dist/terraform/score.d.ts.map +1 -1
- package/dist/terraform/score.js +14 -31
- package/dist/terraform/state.d.ts.map +1 -1
- package/dist/terraform/state.js +4 -2
- package/dist/terraform/types.d.ts +8 -0
- package/dist/terraform/types.d.ts.map +1 -1
- package/dist/wave-blocked.d.ts +10 -1
- package/dist/wave-blocked.d.ts.map +1 -1
- package/dist/wave-blocked.js +31 -3
- package/dist/wave-runtime.mjs +263 -254
- package/dist/workspace/check.schema.json +11 -2
- package/dist/workspace/checks/ci-branch.d.ts +44 -0
- package/dist/workspace/checks/ci-branch.d.ts.map +1 -0
- package/dist/workspace/checks/ci-branch.js +133 -0
- package/dist/workspace/checks/links.d.ts +3 -0
- package/dist/workspace/checks/links.d.ts.map +1 -1
- package/dist/workspace/checks/links.js +12 -1
- package/dist/workspace/checks/org.d.ts +48 -0
- package/dist/workspace/checks/org.d.ts.map +1 -0
- package/dist/workspace/checks/org.js +156 -0
- package/dist/workspace/checks.d.ts +11 -1
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/checks.js +59 -7
- package/dist/workspace/ci-branches.d.ts +16 -0
- package/dist/workspace/ci-branches.d.ts.map +1 -1
- package/dist/workspace/ci-branches.js +27 -0
- package/dist/workspace/ci-green-cli.js +7 -7
- package/dist/workspace/ci-green-workflow.d.ts +1 -1
- package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
- package/dist/workspace/ci-green-workflow.js +13 -8
- package/dist/workspace/ci-green.d.ts +14 -0
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +44 -11
- package/dist/workspace/ci-run.d.ts +9 -1
- package/dist/workspace/ci-run.d.ts.map +1 -1
- package/dist/workspace/ci-run.js +67 -6
- package/dist/workspace/ci-serve.d.ts +9 -0
- package/dist/workspace/ci-serve.d.ts.map +1 -1
- package/dist/workspace/ci-serve.js +114 -76
- package/dist/workspace/compose-graph.d.ts +14 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +4 -1
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/composites.js +5 -2
- package/dist/workspace/composites.schema.json +22 -0
- package/dist/workspace/conformance/__writer_fixture__/work/work.schema.json +105 -1
- package/dist/workspace/cross-root-lint.d.ts +56 -0
- package/dist/workspace/cross-root-lint.d.ts.map +1 -0
- package/dist/workspace/cross-root-lint.js +111 -0
- package/dist/workspace/dbt-models-reader.d.ts +44 -0
- package/dist/workspace/dbt-models-reader.d.ts.map +1 -0
- package/dist/workspace/dbt-models-reader.js +356 -0
- package/dist/workspace/dbt-project-common.d.ts +40 -0
- package/dist/workspace/dbt-project-common.d.ts.map +1 -0
- package/dist/workspace/dbt-project-common.js +106 -0
- package/dist/workspace/dbt-project-reader.d.ts +4 -3
- package/dist/workspace/dbt-project-reader.d.ts.map +1 -1
- package/dist/workspace/dbt-project-reader.js +14 -108
- package/dist/workspace/decision-rank.d.ts +26 -0
- package/dist/workspace/decision-rank.d.ts.map +1 -0
- package/dist/workspace/decision-rank.js +16 -0
- package/dist/workspace/declaration.d.ts +43 -2
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +45 -11
- package/dist/workspace/declaration.schema.json +133 -24
- package/dist/workspace/environments.d.ts +26 -2
- package/dist/workspace/environments.d.ts.map +1 -1
- package/dist/workspace/environments.js +26 -2
- package/dist/workspace/flyway-dir.d.ts +39 -0
- package/dist/workspace/flyway-dir.d.ts.map +1 -0
- package/dist/workspace/flyway-dir.js +104 -0
- package/dist/workspace/flyway-layout.d.ts +96 -0
- package/dist/workspace/flyway-layout.d.ts.map +1 -0
- package/dist/workspace/flyway-layout.js +308 -0
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/graph-cli.js +26 -8
- package/dist/workspace/graph.schema.json +34 -0
- package/dist/workspace/intent.d.ts +2 -3
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/intent.js +5 -9
- package/dist/workspace/kind-link-readers.d.ts +59 -2
- package/dist/workspace/kind-link-readers.d.ts.map +1 -1
- package/dist/workspace/kind-link-readers.js +17 -1
- package/dist/workspace/kinds.d.ts +66 -2
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/kinds.js +98 -4
- package/dist/workspace/ledger.schema.json +158 -0
- package/dist/workspace/lexicon-outputs.d.ts +20 -1
- package/dist/workspace/lexicon-outputs.d.ts.map +1 -1
- package/dist/workspace/lexicon-outputs.js +102 -10
- package/dist/workspace/lineage-check.d.ts +3 -0
- package/dist/workspace/lineage-check.d.ts.map +1 -1
- package/dist/workspace/lineage-check.js +23 -4
- package/dist/workspace/links.d.ts +8 -1
- package/dist/workspace/links.d.ts.map +1 -1
- package/dist/workspace/links.js +25 -1
- package/dist/workspace/ls.d.ts +8 -0
- package/dist/workspace/ls.d.ts.map +1 -1
- package/dist/workspace/ls.js +7 -1
- package/dist/workspace/ls.schema.json +7 -0
- package/dist/workspace/member-commands.d.ts.map +1 -1
- package/dist/workspace/member-commands.js +54 -5
- package/dist/workspace/migrate-links.d.ts +45 -0
- package/dist/workspace/migrate-links.d.ts.map +1 -0
- package/dist/workspace/migrate-links.js +100 -0
- package/dist/workspace/migration-dirs.d.ts +74 -0
- package/dist/workspace/migration-dirs.d.ts.map +1 -0
- package/dist/workspace/migration-dirs.js +254 -0
- package/dist/workspace/reason-codes.d.ts +8 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +11 -0
- package/dist/workspace/records-cli.d.ts +11 -0
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-cli.js +57 -5
- package/dist/workspace/records.schema.json +5 -0
- package/dist/workspace/release-candidates.d.ts +2 -0
- package/dist/workspace/release-candidates.d.ts.map +1 -1
- package/dist/workspace/release-candidates.js +5 -2
- package/dist/workspace/release-train.d.ts +53 -0
- package/dist/workspace/release-train.d.ts.map +1 -0
- package/dist/workspace/release-train.js +134 -0
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +4 -3
- package/dist/workspace/repo-ref.d.ts +45 -0
- package/dist/workspace/repo-ref.d.ts.map +1 -0
- package/dist/workspace/repo-ref.js +114 -0
- package/dist/workspace/run-event.schema.json +2 -2
- package/dist/workspace/runs-cli.d.ts +9 -0
- package/dist/workspace/runs-cli.d.ts.map +1 -1
- package/dist/workspace/runs-cli.js +48 -3
- package/dist/workspace/runs.schema.json +7 -0
- package/dist/workspace/search-contract.d.ts +1 -1
- package/dist/workspace/search-contract.d.ts.map +1 -1
- package/dist/workspace/status-decisions.d.ts +37 -0
- package/dist/workspace/status-decisions.d.ts.map +1 -0
- package/dist/workspace/status-decisions.js +147 -0
- package/dist/workspace/status-gates.d.ts +9 -0
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +4 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/status.js +14 -2
- package/dist/workspace/status.schema.json +6 -0
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-cli.js +5 -3
- package/dist/workspace/work-evidence-ops.d.ts +83 -0
- package/dist/workspace/work-evidence-ops.d.ts.map +1 -0
- package/dist/workspace/work-evidence-ops.js +169 -0
- package/dist/workspace/work-evidence.d.ts +12 -2
- package/dist/workspace/work-evidence.d.ts.map +1 -1
- package/dist/workspace/work-evidence.js +21 -3
- package/dist/workspace/work-evidence.schema.json +49 -2
- package/dist/workspace/workspace-gates.d.ts +110 -0
- package/dist/workspace/workspace-gates.d.ts.map +1 -0
- package/dist/workspace/workspace-gates.js +140 -0
- package/dist/workspace/workspace-kinds.schema.json +58 -3
- package/dist/workspace/workspace-ledger.d.ts +76 -0
- package/dist/workspace/workspace-ledger.d.ts.map +1 -0
- package/dist/workspace/workspace-ledger.js +91 -0
- package/dist/workspace/workspace-run.d.ts +112 -0
- package/dist/workspace/workspace-run.d.ts.map +1 -0
- package/dist/workspace/workspace-run.js +432 -0
- package/package.json +1 -1
- package/src/__golden__/wave-loop/op-by-apply-after-fails.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-hold.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-ignored.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-pass.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-skip.json +10 -0
- package/src/__golden__/wave-loop/op-cost-member-clash.json +6 -0
- package/src/__golden__/wave-loop/op-cost-member.json +13 -0
- package/src/__golden__/wave-loop/op-denied-source.json +16 -0
- package/src/__golden__/wave-loop/op-denied.json +16 -0
- package/src/__golden__/wave-loop/op-discover-rest-short.json +6 -0
- package/src/__golden__/wave-loop/op-discover-rest-stops.json +13 -0
- package/src/__golden__/wave-loop/op-discover-rest.json +26 -0
- package/src/__golden__/wave-loop/op-discover-wide.json +26 -0
- package/src/__golden__/wave-loop/op-held-on-again.json +16 -0
- package/src/__golden__/wave-loop/op-held-on-before-apply.json +16 -0
- package/src/__golden__/wave-loop/op-held-on.json +16 -0
- package/src/__golden__/wave-loop/op-hooks-apply-fails.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-after-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-before-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-before-plan.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-held.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-hold-before-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-pass.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-refused-at-base.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-share.json +33 -0
- package/src/__golden__/wave-loop/op-outcome-held.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan-approved.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan-forever.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-stood-down.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-unreadable.json +10 -0
- package/src/__golden__/wave-loop/op-overridden.json +16 -0
- package/src/__golden__/wave-loop/op-per-run.json +20 -0
- package/src/__golden__/wave-loop/op-point.json +13 -0
- package/src/__golden__/wave-loop/op-pr-review.json +10 -0
- package/src/__golden__/wave-loop/op-sealed.json +10 -0
- package/src/__golden__/wave-loop/op-spend-change-only.json +10 -0
- package/src/__golden__/wave-loop/op-spend.json +10 -0
- package/src/__golden__/wave-loop/op-wave-commands.json +55 -0
- package/src/__golden__/wave-loop/op-wide-refused.json +26 -0
- package/src/__golden__/wave-loop/op-wide-waiting.json +29 -0
- package/src/__golden__/wave-loop/op-wide.json +39 -0
- package/src/action-pins.test.ts +78 -0
- package/src/action-pins.ts +92 -0
- package/src/cli/commands/carve-score-once.test.ts +99 -0
- package/src/cli/commands/carve.ts +37 -6
- package/src/cli/commands/check-lexicon.test.ts +2 -2
- package/src/cli/commands/import-report.ts +71 -0
- package/src/cli/commands/import.ts +33 -3
- package/src/cli/commands/migrate-dialect.test.ts +145 -0
- package/src/cli/commands/migrate.ts +132 -11
- package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +4 -4
- package/src/cli/handlers/approve.ts +23 -2
- package/src/cli/handlers/build.ts +7 -1
- package/src/cli/handlers/ledger.ts +54 -0
- package/src/cli/handlers/migrate.ts +21 -12
- package/src/cli/handlers/misc.ts +10 -1
- package/src/cli/handlers/pr-env.ts +2 -2
- package/src/cli/handlers/pr.ts +138 -36
- package/src/cli/handlers/query.ts +16 -4
- package/src/cli/handlers/release.ts +6 -3
- package/src/cli/handlers/search.ts +13 -34
- package/src/cli/main.test.ts +15 -0
- package/src/cli/main.ts +65 -14
- package/src/cli/parse-args.ts +27 -2
- package/src/cli/registry.ts +14 -4
- package/src/components/builders.ts +8 -0
- package/src/components/capability-plugin-loader.ts +13 -1
- package/src/components/capability-plugin.ts +16 -0
- package/src/components/pr-hooks.test.ts +73 -5
- package/src/components/pr-hooks.ts +95 -5
- package/src/components/pr-pipeline.ts +64 -16
- package/src/components/pr-policy.test.ts +64 -1
- package/src/components/pr-policy.ts +53 -0
- package/src/components/registry.test.ts +1 -1
- package/src/components/starter-plugin.ts +6 -0
- package/src/components/verbs/index.ts +2 -0
- package/src/components/verbs/publish-artifact.test.ts +60 -0
- package/src/components/verbs/publish-artifact.ts +122 -0
- package/src/components/verbs/publish-image.test.ts +101 -0
- package/src/components/verbs/publish-image.ts +265 -0
- package/src/config-environments.ts +28 -1
- package/src/config.ts +8 -1
- package/src/gate-decision-bundle.test.ts +1 -0
- package/src/gate-decision-identity.test.ts +9 -0
- package/src/gate-decision.ts +26 -3
- package/src/graph-ir.ts +27 -0
- package/src/graph-walk.test.ts +44 -0
- package/src/graph-walk.ts +102 -0
- package/src/import/parser.ts +20 -0
- package/src/lexicon.ts +74 -6
- package/src/lifecycle/gate-ledger.ts +8 -0
- package/src/lifecycle/git.ts +2 -2
- package/src/lifecycle/ledger-read.test.ts +107 -0
- package/src/lifecycle/ledger-read.ts +195 -0
- package/src/lifecycle/release-workstation.ts +24 -0
- package/src/lifecycle/run-ledger.ts +5 -2
- package/src/lint/cross-root.test.ts +122 -0
- package/src/lint/discover.ts +3 -1
- package/src/lint/post-synth.ts +212 -2
- package/src/lint/rules/op/index.ts +2 -0
- package/src/lint/rules/op/ops019-workspace-op-target.ts +89 -0
- package/src/op/activities/activity-contracts.ts +5 -2
- package/src/op/activities/index.ts +2 -2
- package/src/op/activities/review-agent.test.ts +221 -4
- package/src/op/activities/review-agent.ts +265 -22
- package/src/op/activities/work-evidence.ts +9 -1
- package/src/op/builders.ts +9 -5
- package/src/op/composites/apply-op.test.ts +108 -0
- package/src/op/composites/apply-op.ts +37 -2
- package/src/op/gate-approval.test.ts +6 -1
- package/src/op/gate-approval.ts +12 -6
- package/src/op/gate-quorum-at-base.test.ts +211 -0
- package/src/op/gate-quorum.ts +156 -8
- package/src/op/gate-review.ts +14 -0
- package/src/op/gate.ts +67 -8
- package/src/op/index.ts +3 -2
- package/src/op/local-executor.ts +69 -9
- package/src/op/op-waves-depends-on.test.ts +81 -0
- package/src/op/op-waves-hook-targets.test.ts +4 -2
- package/src/op/op-waves-quorum-product.test.ts +158 -0
- package/src/op/op-waves-run.ts +288 -14
- package/src/op/op-waves.ts +143 -14
- package/src/op/runtime.ts +8 -0
- package/src/op/schedule-overdue.ts +33 -0
- package/src/op/stage-hooks.ts +13 -5
- package/src/op/workspace-run-env.ts +29 -0
- package/src/pr-forge-bundle.test.ts +2 -2
- package/src/pr-forge.test.ts +47 -0
- package/src/pr-forge.ts +68 -0
- package/src/pr-post-open.e2e.test.ts +36 -0
- package/src/pr-post.test.ts +102 -3
- package/src/pr-post.ts +89 -1
- package/src/read-filter.test.ts +54 -0
- package/src/read-filter.ts +193 -0
- package/src/run-event.ts +1 -1
- package/src/stage-hooks-bundle.test.ts +1 -0
- package/src/terraform/carve.ts +52 -15
- package/src/terraform/cuts.test.ts +173 -0
- package/src/terraform/cuts.ts +188 -0
- package/src/terraform/folds.ts +44 -0
- package/src/terraform/graph.ts +9 -0
- package/src/terraform/radius.test.ts +90 -0
- package/src/terraform/reach.test.ts +146 -0
- package/src/terraform/reach.ts +247 -0
- package/src/terraform/score.ts +27 -29
- package/src/terraform/state.ts +3 -1
- package/src/terraform/types.ts +8 -0
- package/src/wave-blocked.ts +28 -3
- package/src/wave-loop-golden.test.ts +4 -3
- package/src/workspace/behold-kinds.test.ts +1 -1
- package/src/workspace/check-contract.test.ts +7 -6
- package/src/workspace/check.schema.json +11 -2
- package/src/workspace/checks/ci-branch.test.ts +128 -0
- package/src/workspace/checks/ci-branch.ts +141 -0
- package/src/workspace/checks/links.ts +12 -1
- package/src/workspace/checks/org.ts +169 -0
- package/src/workspace/checks.ts +64 -7
- package/src/workspace/ci-branches.ts +31 -0
- package/src/workspace/ci-green-branches.test.ts +153 -0
- package/src/workspace/ci-green-cli.ts +7 -7
- package/src/workspace/ci-green-workflow.test.ts +4 -3
- package/src/workspace/ci-green-workflow.ts +13 -9
- package/src/workspace/ci-green.ts +49 -12
- package/src/workspace/ci-run.test.ts +72 -1
- package/src/workspace/ci-run.ts +68 -8
- package/src/workspace/ci-serve.test.ts +95 -0
- package/src/workspace/ci-serve.ts +106 -65
- package/src/workspace/component-environments.test.ts +25 -2
- package/src/workspace/compose-graph.ts +9 -2
- package/src/workspace/composites.schema.json +22 -0
- package/src/workspace/composites.test.ts +39 -8
- package/src/workspace/composites.ts +6 -2
- package/src/workspace/conformance/__writer_fixture__/work/work.schema.json +105 -1
- package/src/workspace/cross-root-lint.test.ts +90 -0
- package/src/workspace/cross-root-lint.ts +126 -0
- package/src/workspace/dbt-kind.test.ts +3 -2
- package/src/workspace/dbt-models-reader.ts +362 -0
- package/src/workspace/dbt-models.test.ts +248 -0
- package/src/workspace/dbt-project-common.ts +113 -0
- package/src/workspace/dbt-project-reader.ts +29 -112
- package/src/workspace/decision-rank.ts +40 -0
- package/src/workspace/declaration.schema.json +133 -24
- package/src/workspace/declaration.ts +84 -15
- package/src/workspace/environments.ts +40 -4
- package/src/workspace/flyway-dir.ts +113 -0
- package/src/workspace/flyway-layout.ts +337 -0
- package/src/workspace/graph-cli.ts +25 -10
- package/src/workspace/graph-contract.test.ts +4 -2
- package/src/workspace/graph.schema.json +34 -0
- package/src/workspace/identity.test.ts +14 -2
- package/src/workspace/intent.ts +6 -14
- package/src/workspace/kind-link-readers.ts +68 -3
- package/src/workspace/kinds.test.ts +12 -7
- package/src/workspace/kinds.ts +132 -7
- package/src/workspace/ledger.schema.json +158 -0
- package/src/workspace/lexicon-outputs.ts +132 -13
- package/src/workspace/lineage-check.ts +30 -7
- package/src/workspace/links.ts +24 -1
- package/src/workspace/ls-contract.test.ts +1 -1
- package/src/workspace/ls.schema.json +7 -0
- package/src/workspace/ls.ts +10 -1
- package/src/workspace/member-commands.ts +60 -2
- package/src/workspace/member-file-schema.test.ts +124 -0
- package/src/workspace/migrate-links.test.ts +99 -0
- package/src/workspace/migrate-links.ts +108 -0
- package/src/workspace/migration-dirs.test.ts +272 -0
- package/src/workspace/migration-dirs.ts +267 -0
- package/src/workspace/org-scope.test.ts +238 -0
- package/src/workspace/reason-codes.test.ts +6 -1
- package/src/workspace/reason-codes.ts +11 -0
- package/src/workspace/records-cli.ts +58 -5
- package/src/workspace/records.schema.json +5 -0
- package/src/workspace/release-candidates.ts +7 -2
- package/src/workspace/release-train.ts +157 -0
- package/src/workspace/release-workflow.ts +4 -3
- package/src/workspace/repo-ref.ts +113 -0
- package/src/workspace/run-event.schema.json +2 -2
- package/src/workspace/runs-cli.ts +48 -4
- package/src/workspace/runs.schema.json +7 -0
- package/src/workspace/status-contract.test.ts +46 -1
- package/src/workspace/status-decisions.test.ts +100 -0
- package/src/workspace/status-decisions.ts +151 -0
- package/src/workspace/status-gates.ts +9 -0
- package/src/workspace/status.schema.json +6 -0
- package/src/workspace/status.ts +17 -3
- package/src/workspace/where-filters.test.ts +39 -0
- package/src/workspace/work-cli.ts +5 -3
- package/src/workspace/work-evidence-ops.test.ts +176 -0
- package/src/workspace/work-evidence-ops.ts +189 -0
- package/src/workspace/work-evidence.schema.json +49 -2
- package/src/workspace/work-evidence.ts +22 -3
- package/src/workspace/workspace-gates.ts +200 -0
- package/src/workspace/workspace-kinds.schema.json +58 -3
- package/src/workspace/workspace-ledger.ts +130 -0
- package/src/workspace/workspace-run.test.ts +322 -0
- package/src/workspace/workspace-run.ts +461 -0
package/dist/workspace/checks.js
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
*
|
|
22
22
|
* | Ids | Checks |
|
|
23
23
|
* |---|---|
|
|
24
|
-
* | WSP001 to
|
|
24
|
+
* | WSP001 to WSP012 | the declaration and member kinds (this file), and a member's file against its kind's schema (#3672) |
|
|
25
|
+
* | WSP013 to WSP016 | org scope: repo members and the org workspace, checked against the forge's list with `--forge-repos` (#3168) |
|
|
25
26
|
* | WSP071, WSP072 | member ledgers |
|
|
26
27
|
* | WSP081 to WSP083 | recorded pipelines |
|
|
27
28
|
* | WSP091 to WSP099 | member links (#2539, #2558), and those a kind's reader finds in a member's files (#3932) |
|
|
@@ -38,13 +39,14 @@
|
|
|
38
39
|
* | WSP141, WSP142 | member links resolved against a live read, with `--live` (#2549) |
|
|
39
40
|
* | WSP131 to WSP133 | diagram artifacts: source and render exist, a recorded source hash still matches (#2764) |
|
|
40
41
|
* | WSP151 | what a member under `ci.workflow` still lacks (#4168 step 6) |
|
|
42
|
+
* | WSP152 | a member's generated pipeline targets the branch `ci.branches` routes it to (#4325) |
|
|
41
43
|
* | WSP161 to WSP165 | the security groups the declaration opts into: what each still lacks (#4168 step 7) |
|
|
42
44
|
*/
|
|
43
45
|
import { realpathSync } from "node:fs";
|
|
44
46
|
import { relative, sep } from "node:path";
|
|
45
47
|
import { readDeclaration, resolveGroups, WorkspaceReadError } from "./declaration.js";
|
|
46
48
|
import { parseJsonText, pointerToken } from "./jsonc.js";
|
|
47
|
-
import { loadKindRegistry, probeKind, resolveKind, resolveMemberFields } from "./kinds.js";
|
|
49
|
+
import { checkMemberFile, loadKindRegistry, probeKind, REPO_KIND, resolveKind, resolveMemberFields } from "./kinds.js";
|
|
48
50
|
import { coreClassRegistry, loadClassRegistry, unknownScopeClasses } from "./principal-classes.js";
|
|
49
51
|
import { gitTop, workingTree } from "./tree.js";
|
|
50
52
|
import { LINK_CHECKS, linkTable } from "./checks/links.js";
|
|
@@ -57,9 +59,11 @@ import { BOX_CHECKS } from "./checks/boxes.js";
|
|
|
57
59
|
import { DIAGRAM_CHECKS } from "./checks/diagrams.js";
|
|
58
60
|
import { SECURITY_CHECKS } from "./checks/security.js";
|
|
59
61
|
import { CI_WORKFLOW_CHECKS } from "./checks/ci-workflow.js";
|
|
62
|
+
import { CI_BRANCH_CHECKS } from "./checks/ci-branch.js";
|
|
63
|
+
import { ORG_CHECKS } from "./checks/org.js";
|
|
60
64
|
import { loadDeclaredKinds } from "./declared-kinds.js";
|
|
61
65
|
import { resolveBoxIntents } from "./box-intent.js";
|
|
62
|
-
import { gatherLexiconOutputs } from "./lexicon-outputs.js";
|
|
66
|
+
import { gatherLexiconLinks, gatherLexiconOutputs } from "./lexicon-outputs.js";
|
|
63
67
|
const HELP = "https://intentius.io/chant/cli/workspace-check/#declaration-checks";
|
|
64
68
|
const memberDir = (dir) => (dir === "." ? "" : dir);
|
|
65
69
|
function entryFinding(check, entry, field, message) {
|
|
@@ -71,9 +75,9 @@ function entryFinding(check, entry, field, message) {
|
|
|
71
75
|
pointer: field ? `${entry.pointer}/${field}` : entry.pointer,
|
|
72
76
|
};
|
|
73
77
|
}
|
|
74
|
-
/** The dir exists and the kind is known: the members every probe check reads. */
|
|
78
|
+
/** The dir exists and the kind is known: the members every probe check reads. A repo member has no directory here (#3168). */
|
|
75
79
|
function readableMembers(ctx) {
|
|
76
|
-
return ctx.declaration.members.filter((m) => ctx.tree.stat(memberDir(m.dir)) === "dir" && ctx.kinds.get(m.kind) !== undefined);
|
|
80
|
+
return ctx.declaration.members.filter((m) => m.kind !== REPO_KIND && ctx.tree.stat(memberDir(m.dir)) === "dir" && ctx.kinds.get(m.kind) !== undefined);
|
|
77
81
|
}
|
|
78
82
|
/** The first id of the read failure, used by {@link runDeclarationChecks} when the declaration can't be read. */
|
|
79
83
|
export const UNREADABLE_CHECK_ID = "WSP001";
|
|
@@ -136,7 +140,7 @@ export const WORKSPACE_CHECKS = [
|
|
|
136
140
|
configurable: true,
|
|
137
141
|
check(ctx) {
|
|
138
142
|
return ctx.declaration.members
|
|
139
|
-
.filter((m) => ctx.tree.stat(memberDir(m.dir)) !== "dir")
|
|
143
|
+
.filter((m) => m.kind !== REPO_KIND && ctx.tree.stat(memberDir(m.dir)) !== "dir")
|
|
140
144
|
.map((m) => entryFinding(this, m, "dir", `member ${m.name}'s directory ${m.dir} does not exist${ctx.tree.label}`));
|
|
141
145
|
},
|
|
142
146
|
},
|
|
@@ -258,6 +262,45 @@ export const WORKSPACE_CHECKS = [
|
|
|
258
262
|
return out;
|
|
259
263
|
},
|
|
260
264
|
},
|
|
265
|
+
{
|
|
266
|
+
id: "WSP012",
|
|
267
|
+
name: "member-file-invalid",
|
|
268
|
+
description: "Every member of a kind that names a member file has that file, and it passes the kind's JSON Schema (#3672).",
|
|
269
|
+
severity: "error",
|
|
270
|
+
configurable: true,
|
|
271
|
+
check(ctx) {
|
|
272
|
+
const out = [];
|
|
273
|
+
for (const m of readableMembers(ctx)) {
|
|
274
|
+
const kind = ctx.kinds.get(m.kind);
|
|
275
|
+
const mf = kind.memberFile;
|
|
276
|
+
if (!mf)
|
|
277
|
+
continue;
|
|
278
|
+
const file = memberDir(m.dir) === "" ? mf.path : `${memberDir(m.dir)}/${mf.path}`;
|
|
279
|
+
if (!mf.validate) {
|
|
280
|
+
out.push(entryFinding(this, m, "kind", `member ${m.name}'s ${mf.path} can't be checked: kind ${m.kind}'s schema ${mf.schema} did not load (see WSP002)`));
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
if (ctx.tree.stat(file) !== "file") {
|
|
284
|
+
out.push(entryFinding(this, m, "dir", `member ${m.name} (${m.dir}) has no ${mf.path}, which kind ${m.kind} requires${ctx.tree.label}`));
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
let text;
|
|
288
|
+
try {
|
|
289
|
+
text = ctx.tree.read(file);
|
|
290
|
+
}
|
|
291
|
+
catch (err) {
|
|
292
|
+
out.push(entryFinding(this, m, "dir", `member ${m.name}'s ${mf.path} can't be read: ${err.message}`));
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
for (const p of checkMemberFile(mf, mf.path, text)) {
|
|
296
|
+
out.push({ ...entryFinding(this, m, null, `member ${m.name}'s ${mf.path} fails kind ${m.kind}'s schema ${mf.schema}: ${p.message}`), treeFile: file, line: 1, column: 1 });
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return out;
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
// Org scope (#3168), WSP013 to WSP016.
|
|
303
|
+
...ORG_CHECKS,
|
|
261
304
|
// Member ledgers (#2538).
|
|
262
305
|
...LEDGER_CHECKS,
|
|
263
306
|
// Recorded pipelines (#2542).
|
|
@@ -276,6 +319,8 @@ export const WORKSPACE_CHECKS = [
|
|
|
276
319
|
...LIVE_CHECKS,
|
|
277
320
|
// What a member under ci.workflow still lacks (#4168 step 6), WSP151.
|
|
278
321
|
...CI_WORKFLOW_CHECKS,
|
|
322
|
+
// A member's pipeline targets the branch ci.branches routes it to (#4325), WSP152.
|
|
323
|
+
...CI_BRANCH_CHECKS,
|
|
279
324
|
// The security groups the declaration opts into (#4168 step 7), WSP161 to WSP165.
|
|
280
325
|
...SECURITY_CHECKS,
|
|
281
326
|
];
|
|
@@ -399,11 +444,18 @@ export async function runDeclarationChecks(root, display = (f) => f, options = {
|
|
|
399
444
|
// A box's intent is read from the working tree's records, so not under --at (#2850).
|
|
400
445
|
const boxIntents = declaredKinds && !options.tree ? await resolveBoxIntents(declaration, root, declaredKinds) : undefined;
|
|
401
446
|
// A linked member's lexicons name its tables and columns as outputs (#3931); reading them folds its source, never runs it.
|
|
402
|
-
|
|
447
|
+
// A member's lexicons may also read other members' outputs from its declarations (#4397); their targets are read too.
|
|
448
|
+
const outputsTree = options.tree ? workingTree(root) : tree;
|
|
449
|
+
const lexiconLinks = options.gather === false ? undefined : await gatherLexiconLinks(root, declaration, outputsTree, groups, registry, { atRevision: options.tree !== undefined });
|
|
450
|
+
const lexiconOutputs = options.gather === false
|
|
451
|
+
? undefined
|
|
452
|
+
: await gatherLexiconOutputs(root, declaration, outputsTree, groups, registry, { atRevision: options.tree !== undefined, ...(lexiconLinks ? { lexiconLinks } : {}) });
|
|
403
453
|
const facts = {
|
|
404
454
|
...(lexiconOutputs && lexiconOutputs.size > 0 ? { lexiconOutputs } : {}),
|
|
455
|
+
...(lexiconLinks && lexiconLinks.size > 0 ? { lexiconLinks } : {}),
|
|
405
456
|
...gathered,
|
|
406
457
|
...(options.records ? { records: options.records } : {}),
|
|
458
|
+
...(options.forgeRepos ? { forgeRepos: options.forgeRepos } : {}),
|
|
407
459
|
...(declaredKinds ? { declaredKinds } : {}),
|
|
408
460
|
...(boxIntents ? { boxIntents } : {}),
|
|
409
461
|
...(options.live && !options.tree ? { live: await gatherLiveLinkFacts(root, declaration, registry, options.live.env, options.live.onStderr) } : {}),
|
|
@@ -27,6 +27,22 @@ export declare function routeConflicts(branches: MemberGlobs | undefined, member
|
|
|
27
27
|
member: string;
|
|
28
28
|
branches: string[];
|
|
29
29
|
}>;
|
|
30
|
+
/**
|
|
31
|
+
* The branches `chant ci serve` polls (#4325), and the ones among them a job
|
|
32
|
+
* is told with `--branch`.
|
|
33
|
+
*
|
|
34
|
+
* - A routed member polls its route alone. A `named` branch that differs
|
|
35
|
+
* from the route is refused, as `chant build --pr-loop` refuses it.
|
|
36
|
+
* - An unrouted member polls `fallback`, which may not be a routed branch.
|
|
37
|
+
* - Where no member is in play (the workspace root), `fallback` and then each
|
|
38
|
+
* routed branch, so every branch a member applies from is watched.
|
|
39
|
+
*
|
|
40
|
+
* `fallback` is the branch `--branch` names, else the default branch.
|
|
41
|
+
*/
|
|
42
|
+
export declare function servedBranches(branches: MemberGlobs | undefined, member: string | undefined, fallback: string, named: boolean): {
|
|
43
|
+
served: string[];
|
|
44
|
+
routed: string[];
|
|
45
|
+
};
|
|
30
46
|
/**
|
|
31
47
|
* Whether a push to `pushed` applies `member`, with a line that says why.
|
|
32
48
|
* A routed member applies only from its branch. Any other member applies
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-branches.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-branches.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,iDAAiD;AACjD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAItE,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnF;AAED,oFAAoF;AACpF,wBAAg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members.map((member) => ({ member, branches: keysMatching(branches, member) })).filter((c) => c.branches.length > 1);
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The branches `chant ci serve` polls (#4325), and the ones among them a job
|
|
36
|
+
* is told with `--branch`.
|
|
37
|
+
*
|
|
38
|
+
* - A routed member polls its route alone. A `named` branch that differs
|
|
39
|
+
* from the route is refused, as `chant build --pr-loop` refuses it.
|
|
40
|
+
* - An unrouted member polls `fallback`, which may not be a routed branch.
|
|
41
|
+
* - Where no member is in play (the workspace root), `fallback` and then each
|
|
42
|
+
* routed branch, so every branch a member applies from is watched.
|
|
43
|
+
*
|
|
44
|
+
* `fallback` is the branch `--branch` names, else the default branch.
|
|
45
|
+
*/
|
|
46
|
+
export function servedBranches(branches, member, fallback, named) {
|
|
47
|
+
const keys = Object.keys(branches ?? {});
|
|
48
|
+
if (member === undefined)
|
|
49
|
+
return { served: [fallback, ...keys.filter((k) => k !== fallback)], routed: keys };
|
|
50
|
+
const own = routedBranch(branches, member);
|
|
51
|
+
if (own !== null) {
|
|
52
|
+
if (named && fallback !== own)
|
|
53
|
+
throw new Error(`--branch ${fallback}: ci.branches routes member ${member} to ${own}, so ci serve polls ${own}`);
|
|
54
|
+
return { served: [own], routed: [own] };
|
|
55
|
+
}
|
|
56
|
+
if (keys.includes(fallback)) {
|
|
57
|
+
throw new Error(`--branch ${fallback}: ci.branches applies only the members its globs match from ${fallback}, and member ${member} is not one`);
|
|
58
|
+
}
|
|
59
|
+
return { served: [fallback], routed: [] };
|
|
60
|
+
}
|
|
34
61
|
/**
|
|
35
62
|
* Whether a push to `pushed` applies `member`, with a line that says why.
|
|
36
63
|
* A routed member applies only from its branch. Any other member applies
|
|
@@ -30,10 +30,10 @@ import { findWorkspaceRoot } from "../project-root.js";
|
|
|
30
30
|
import { ciList, ciTick, CiGreenError, formatList, formatTick, lastGreen, RUNNER_KEY_ENV } from "./ci-green.js";
|
|
31
31
|
import { ciForgeFromEnv } from "./ci-green-forge.js";
|
|
32
32
|
import { ACTIONS_NAME, buildTriggerEdits, CI_GREEN_WORKFLOW_FILE, ciGreenHeader, readWorkflowSources, renderCiGreenWorkflow, workflowsHolding, writeWorkflowFile } from "./ci-green-workflow.js";
|
|
33
|
-
import { readDeclaration, readerVersion, WorkspaceReadError } from "./declaration.js";
|
|
33
|
+
import { greenBranches, readDeclaration, readerVersion, WorkspaceReadError } from "./declaration.js";
|
|
34
34
|
import { recordGeneratedFiles, resolveMemberContext, shellArg } from "./member-pipeline.js";
|
|
35
35
|
import { gitTop, workingTree } from "./tree.js";
|
|
36
|
-
const USAGE = "chant ci last-green [--json] [--from <rev>] | ci list [--json] [--limit <n>] [--since <rev>] [--forge github] [--source checks|runs] | ci tick [--dry-run] [--forge github] [--source checks|runs] [--key <runner key.pem>] | " +
|
|
36
|
+
const USAGE = "chant ci last-green [--json] [--from <rev>] [--branch <branch>] | ci list [--json] [--branch <branch>] [--limit <n>] [--since <rev>] [--forge github] [--source checks|runs] | ci tick [--dry-run] [--forge github] [--source checks|runs] [--key <runner key.pem>] | " +
|
|
37
37
|
"ci workflow [--workflow <name>]... [--output <file>] [--chant <command>] [--install <command>] [--token-secret <NAME> | --app-id-var <VAR> --app-key-secret <NAME>] [--runner-key-secret <NAME>]";
|
|
38
38
|
export { RUNNER_KEY_ENV };
|
|
39
39
|
/** `--source`, checked (#4044): `checks` or `runs`, or undefined to follow `ci.green.source`. */
|
|
@@ -51,7 +51,7 @@ function warnIgnored(ignored) {
|
|
|
51
51
|
console.error(`warning: ignored ${t.tag} (${t.status}): ${t.reason}`);
|
|
52
52
|
}
|
|
53
53
|
export async function runCiLastGreen(ctx) {
|
|
54
|
-
const doc = lastGreen({ cwd: process.cwd(), ...(ctx.args.migrateFrom !== undefined ? { from: ctx.args.migrateFrom } : {}) });
|
|
54
|
+
const doc = lastGreen({ cwd: process.cwd(), ...(ctx.args.branch !== undefined ? { branch: ctx.args.branch } : {}), ...(ctx.args.migrateFrom !== undefined ? { from: ctx.args.migrateFrom } : {}) });
|
|
55
55
|
if (ctx.args.json) {
|
|
56
56
|
console.log(JSON.stringify(doc, null, 2));
|
|
57
57
|
return "error" in doc ? 1 : 0;
|
|
@@ -76,7 +76,7 @@ export async function runCiList(ctx) {
|
|
|
76
76
|
// Only an explicit --forge reaches the network; without it the list reads local refs and tags.
|
|
77
77
|
const forge = ctx.args.forge !== undefined ? ciForgeFromEnv(ctx.args.forge) : undefined;
|
|
78
78
|
const source = sourceOf(ctx.args);
|
|
79
|
-
const doc = await ciList({ cwd: process.cwd(), limit, since: ctx.args.since, forge, ...(source ? { source } : {}) });
|
|
79
|
+
const doc = await ciList({ cwd: process.cwd(), ...(ctx.args.branch !== undefined ? { branch: ctx.args.branch } : {}), limit, since: ctx.args.since, forge, ...(source ? { source } : {}) });
|
|
80
80
|
if (ctx.args.json) {
|
|
81
81
|
console.log(JSON.stringify(doc, null, 2));
|
|
82
82
|
return "error" in doc ? 1 : 0;
|
|
@@ -192,14 +192,14 @@ export async function runCiWorkflow(ctx) {
|
|
|
192
192
|
const written = writeWorkflowFile(target, ciGreenHeader(command, member ? "member" : "root") + yaml);
|
|
193
193
|
if (member)
|
|
194
194
|
recordGeneratedFiles(member.memberRoot, [{ path: fromRepo, command }]);
|
|
195
|
-
console.log(`Wrote ${written}: ticks when ${workflows.join(", ")} complete${workflows.length === 1 ? "s" : ""} on ${green.
|
|
195
|
+
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.`);
|
|
196
196
|
for (const e of edits) {
|
|
197
197
|
if (!e.changed)
|
|
198
198
|
continue;
|
|
199
199
|
const path = writeWorkflowFile(join(repoRoot, e.path), e.text);
|
|
200
200
|
console.log(e.build === "newest"
|
|
201
|
-
? `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} the newest commit on ${green.
|
|
202
|
-
: `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} every commit on ${green.
|
|
201
|
+
? `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.`
|
|
202
|
+
: `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.`);
|
|
203
203
|
}
|
|
204
204
|
return 0;
|
|
205
205
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
* the command runs in records it in its generated-file record, so `WSP081`
|
|
45
45
|
* allows one declarer.
|
|
46
46
|
*/
|
|
47
|
-
import type
|
|
47
|
+
import { type CiBuild, type CiGreen } from "./declaration.js";
|
|
48
48
|
/** Where the workflow goes, relative to the repository root. */
|
|
49
49
|
export declare const CI_GREEN_WORKFLOW_FILE = ".github/workflows/chant-ci-green.yml";
|
|
50
50
|
export declare const CI_GREEN_WORKFLOW_NAME = "chant-ci-green";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-green-workflow.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;
|
|
1
|
+
{"version":3,"file":"ci-green-workflow.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAOH,OAAO,EAAiB,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAK1E,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,yCAAyC,CAAC;AAC7E,eAAO,MAAM,sBAAsB,mBAAmB,CA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AG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,CAe1G;AAED,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAE/E;AAED,kGAAkG;AAClG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAItE"}
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
48
48
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
49
49
|
import { GENERATED_MARKER } from "../discovery/files.js";
|
|
50
|
+
import { ACTION_PINS, tagComments, usesRef } from "../action-pins.js";
|
|
50
51
|
import { emitYAMLEntry, parseYAMLDocument } from "../yaml.js";
|
|
52
|
+
import { greenBranches } from "./declaration.js";
|
|
51
53
|
import { matchesCheckRun } from "./ci-green.js";
|
|
52
54
|
import { githubSecretOrJobToken } from "../ci-jobs.js";
|
|
53
55
|
import { COMPOSE_BRANCH_PREFIX } from "../lifecycle/compose-refs.js";
|
|
@@ -165,7 +167,7 @@ export function renderCiGreenWorkflow(input) {
|
|
|
165
167
|
? [
|
|
166
168
|
" - name: Mint a GitHub App token that may push tags to commits that change workflows",
|
|
167
169
|
" id: app-token",
|
|
168
|
-
|
|
170
|
+
` uses: ${usesRef(ACTION_PINS.createGithubAppToken2)}`,
|
|
169
171
|
" with:",
|
|
170
172
|
` app-id: \${{ vars.${push.appIdVar} }}`,
|
|
171
173
|
` private-key: \${{ secrets.${push.appKeySecret} }}`,
|
|
@@ -184,7 +186,7 @@ export function renderCiGreenWorkflow(input) {
|
|
|
184
186
|
" types:",
|
|
185
187
|
" - completed",
|
|
186
188
|
" branches:",
|
|
187
|
-
` - ${q(
|
|
189
|
+
...greenBranches(green).map((b) => ` - ${q(b)}`),
|
|
188
190
|
// #4169: a build the tick asked for runs at a ci/build/<sha> tag, and its completion ticks too.
|
|
189
191
|
...(newestPhases(green) ? [` - ${q("ci/build/**")}`] : []),
|
|
190
192
|
// #4220: a composed commit's phases run on its chant/compose/<name> branch, and their completion ticks too.
|
|
@@ -210,12 +212,12 @@ export function renderCiGreenWorkflow(input) {
|
|
|
210
212
|
" timeout-minutes: 15",
|
|
211
213
|
" steps:",
|
|
212
214
|
...mint,
|
|
213
|
-
|
|
215
|
+
` - uses: ${usesRef(ACTION_PINS.checkout6)}`,
|
|
214
216
|
" with:",
|
|
215
217
|
` ref: ${q(green.branch)}`,
|
|
216
218
|
" fetch-depth: 0",
|
|
217
219
|
...token,
|
|
218
|
-
|
|
220
|
+
` - uses: ${usesRef(ACTION_PINS.setupNode6)}`,
|
|
219
221
|
" with:",
|
|
220
222
|
" node-version: \"24\"",
|
|
221
223
|
...cache,
|
|
@@ -229,7 +231,7 @@ export function renderCiGreenWorkflow(input) {
|
|
|
229
231
|
...(input.runnerKeySecret ? [` CHANT_RUNNER_KEY: \${{ secrets.${input.runnerKeySecret} }}`] : []),
|
|
230
232
|
` run: ${tick}`,
|
|
231
233
|
];
|
|
232
|
-
return lines.join("\n") + "\n";
|
|
234
|
+
return tagComments(lines.join("\n") + "\n");
|
|
233
235
|
}
|
|
234
236
|
/** Whether any phase sets `build` (#4169): then the tick may re-run jobs and start workflows. */
|
|
235
237
|
export const declaresBuild = (green) => green.phases.some((p) => p.build !== undefined);
|
|
@@ -294,7 +296,7 @@ export function buildTriggerEdits(green, sources, options = {}) {
|
|
|
294
296
|
delete on.schedule;
|
|
295
297
|
const push = isObject(on.push) ? { ...on.push } : {};
|
|
296
298
|
const branches = Array.isArray(push.branches) ? push.branches.filter((b) => typeof b === "string") : [];
|
|
297
|
-
const withBranch = branches
|
|
299
|
+
const withBranch = [...branches, ...greenBranches(green).filter((b) => !branches.includes(b))];
|
|
298
300
|
push.branches = compose && !withBranch.includes(COMPOSE_BRANCHES) ? [...withBranch, COMPOSE_BRANCHES] : withBranch;
|
|
299
301
|
const { push: _push, workflow_dispatch: dispatch, ...rest } = on;
|
|
300
302
|
text = writeTopLevel(text, "on", { push, workflow_dispatch: dispatch ?? {}, ...rest });
|
|
@@ -315,8 +317,11 @@ export function buildTriggerEdits(green, sources, options = {}) {
|
|
|
315
317
|
if (next !== on)
|
|
316
318
|
text = writeTopLevel(text, "on", next);
|
|
317
319
|
// #4220: a compose branch's commits each get a verdict, so its runs are keyed by commit, as the trunk branch's are.
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
+
// #4325: each branch ci.green judges is keyed by commit.
|
|
321
|
+
const heads = greenBranches(green).map((b) => `github.ref == 'refs/heads/${b}'`);
|
|
322
|
+
const several = heads.length > 1;
|
|
323
|
+
const keyed = compose ? `(${[...heads, `startsWith(github.ref, 'refs/heads/${COMPOSE_BRANCH_PREFIX}')`].join(" || ")})` : several ? `(${heads.join(" || ")})` : `github.ref == '${main}'`;
|
|
324
|
+
const unkeyed = compose || several ? `!${keyed}` : `github.ref != '${main}'`;
|
|
320
325
|
// Written as lines: the emitter would quote the expression, and GitHub reads it the same either way.
|
|
321
326
|
text = writeTopLevel(text, "concurrency", [
|
|
322
327
|
"concurrency:",
|
|
@@ -258,8 +258,17 @@ export declare function readGreen(cwd: string): {
|
|
|
258
258
|
file: string;
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* `green` judging `branch` (#4325): `ci.green` names several branches when
|
|
263
|
+
* `ci.branches` routes members to branches of their own, and each is judged
|
|
264
|
+
* as the single branch always was. Without `branch` the first is judged.
|
|
265
|
+
* Refuses a branch `ci.green` does not name.
|
|
266
|
+
*/
|
|
267
|
+
export declare function greenOn(green: CiGreen, branch: string | undefined): CiGreen;
|
|
261
268
|
export interface TickRequest {
|
|
262
269
|
cwd: string;
|
|
270
|
+
/** Judge this one branch of `ci.green.branch` (#4325). Without it a tick judges every branch the declaration names. */
|
|
271
|
+
branch?: string;
|
|
263
272
|
/**
|
|
264
273
|
* Where check runs come from. A function is called only when the source
|
|
265
274
|
* is `checks`, so a tick from runs needs no forge token. Required for
|
|
@@ -289,6 +298,8 @@ export interface ComposedBranchTick {
|
|
|
289
298
|
}
|
|
290
299
|
export interface TickResult {
|
|
291
300
|
branch: string;
|
|
301
|
+
/** The other branches `ci.green` names (#4325), each judged as this one is. Their tags are in `made`. Absent for a one-branch declaration. */
|
|
302
|
+
routed?: TickResult[];
|
|
292
303
|
window: string;
|
|
293
304
|
/** The ref the commits were read from. */
|
|
294
305
|
ref: string;
|
|
@@ -448,6 +459,7 @@ export declare function lastGreen(req: {
|
|
|
448
459
|
cwd: string;
|
|
449
460
|
remote?: string;
|
|
450
461
|
from?: string;
|
|
462
|
+
branch?: string;
|
|
451
463
|
}): LastGreenDocument;
|
|
452
464
|
export declare const CI_LIST_CONTRACT_VERSION = 1;
|
|
453
465
|
export declare const CI_LIST_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/ci-list/v1/ci-list.schema.json";
|
|
@@ -562,6 +574,8 @@ export type RevokedTagView = NonNullable<CiListCommit["revoked"]>;
|
|
|
562
574
|
export declare function revokedTagView(sha: string, r: CountedCiTag): RevokedTagView;
|
|
563
575
|
export interface ListRequest {
|
|
564
576
|
cwd: string;
|
|
577
|
+
/** List this branch of `ci.green.branch` (#4325). The first when absent. */
|
|
578
|
+
branch?: string;
|
|
565
579
|
remote?: string;
|
|
566
580
|
/** Keep only the newest n commits. */
|
|
567
581
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-green.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAA6C,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5F,OAAO,EAA6E,KAAK,OAAO,EA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OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AAED;;;;;GAKG;AACH,wBAAsB,MAAM,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAgEtE;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,CAAC,EAAE,eAAe,GAAG,MAAM,CAGzD;AAED,4DAA4D;AAC5D,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,MAAM,CAWnF"}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
*/
|
|
55
55
|
import { judgeCommits, mergeCommits, readWorkIndex } from "./commit-links.js";
|
|
56
56
|
import { execFileSync } from "node:child_process";
|
|
57
|
-
import { readDeclaration, readerVersion, WORKSPACE_ERROR_CODES, WorkspaceReadError } from "./declaration.js";
|
|
57
|
+
import { greenBranches, readDeclaration, readerVersion, WORKSPACE_ERROR_CODES, WorkspaceReadError } from "./declaration.js";
|
|
58
58
|
import { readRunLedger } from "../lifecycle/run-ledger.js";
|
|
59
59
|
import { fetchLifecycleStatus, listFilesInDir, listLedgerTrees, pushLifecycleStatus, writeLedgerFiles } from "../lifecycle/git.js";
|
|
60
60
|
import { ledgerRecordingOff } from "../lifecycle/no-record.js";
|
|
@@ -357,6 +357,21 @@ export function readGreen(cwd) {
|
|
|
357
357
|
throw new WorkspaceReadError("not-a-git-repository", "the ci tags are git tags, and this directory is not in a git repository");
|
|
358
358
|
return { green, top, workspace: { name: declaration.name, root: located.root, file: declaration.file } };
|
|
359
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* `green` judging `branch` (#4325): `ci.green` names several branches when
|
|
362
|
+
* `ci.branches` routes members to branches of their own, and each is judged
|
|
363
|
+
* as the single branch always was. Without `branch` the first is judged.
|
|
364
|
+
* Refuses a branch `ci.green` does not name.
|
|
365
|
+
*/
|
|
366
|
+
export function greenOn(green, branch) {
|
|
367
|
+
const { branches: _all, ...rest } = green;
|
|
368
|
+
if (branch === undefined || branch === green.branch)
|
|
369
|
+
return rest;
|
|
370
|
+
if (!greenBranches(green).includes(branch)) {
|
|
371
|
+
throw new CiGreenError("ci-branch-unknown", `ci.green judges ${greenBranches(green).join(", ")}, not ${branch}; add it to ci.green.branch to give it a green verdict`);
|
|
372
|
+
}
|
|
373
|
+
return { ...rest, branch };
|
|
374
|
+
}
|
|
360
375
|
/**
|
|
361
376
|
* The signer a runner key makes (#4031): the principal `.chant/trust.json`
|
|
362
377
|
* at `base` lists the key for, who must hold the `runner` role. Throws when
|
|
@@ -391,7 +406,17 @@ export function ciTagSigner(top, base, pem, what = "the tags it signed") {
|
|
|
391
406
|
export async function ciTick(req) {
|
|
392
407
|
const read = readGreen(req.cwd);
|
|
393
408
|
const top = read.top;
|
|
394
|
-
const
|
|
409
|
+
const names = greenBranches(read.green);
|
|
410
|
+
if (req.branch === undefined && names.length > 1) {
|
|
411
|
+
const first = await ciTick({ ...req, branch: names[0] });
|
|
412
|
+
const routed = [];
|
|
413
|
+
for (const b of names.slice(1))
|
|
414
|
+
routed.push(await ciTick({ ...req, branch: b }));
|
|
415
|
+
return { ...first, routed, made: [...first.made, ...routed.flatMap((r) => r.made)] };
|
|
416
|
+
}
|
|
417
|
+
const green = { ...greenOn(read.green, req.branch), source: req.source ?? read.green.source };
|
|
418
|
+
// Compose branches are walked from trunk, so only the first branch's tick walks them.
|
|
419
|
+
const walksCompose = green.branch === read.green.branch;
|
|
395
420
|
const forge = green.source === "checks" ? (typeof req.forge === "function" ? req.forge() : req.forge) : undefined;
|
|
396
421
|
if (green.source === "checks" && !forge)
|
|
397
422
|
throw new Error("ci.green.source is checks, so the tick reads check runs and needs a forge");
|
|
@@ -463,7 +488,7 @@ export async function ciTick(req) {
|
|
|
463
488
|
c.work = links.get(c.sha);
|
|
464
489
|
// Compose branches (#4168 4.3): each composed commit within the window is judged as trunk's are, and its tags name its branch.
|
|
465
490
|
const composed = [];
|
|
466
|
-
for (const b of remoteComposeBranches(top, remote)) {
|
|
491
|
+
for (const b of walksCompose ? remoteComposeBranches(top, remote) : []) {
|
|
467
492
|
const own = git(top, ["log", "--first-parent", `--max-age=${cutoff}`, "--format=%H %ct", b.ref, `^${tracking}`])
|
|
468
493
|
.split("\n")
|
|
469
494
|
.filter(Boolean)
|
|
@@ -685,21 +710,23 @@ async function writeRecords(input) {
|
|
|
685
710
|
*/
|
|
686
711
|
export async function requestBuild(req) {
|
|
687
712
|
const read = readGreen(req.cwd);
|
|
688
|
-
const {
|
|
713
|
+
const { top } = read;
|
|
714
|
+
const green = greenOn(read.green, undefined);
|
|
715
|
+
const names = greenBranches(read.green);
|
|
689
716
|
const remote = req.remote ?? "origin";
|
|
690
|
-
const
|
|
717
|
+
const trackingOf = (b) => `refs/remotes/${remote}/${b}`;
|
|
691
718
|
try {
|
|
692
|
-
git(top, ["fetch", "--quiet", "--no-tags", remote, `+refs/heads/${
|
|
719
|
+
git(top, ["fetch", "--quiet", "--no-tags", remote, ...names.map((b) => `+refs/heads/${b}:${trackingOf(b)}`), `+refs/tags/${CI_BUILD_TAG_PREFIX}*:refs/tags/${CI_BUILD_TAG_PREFIX}*`]);
|
|
693
720
|
}
|
|
694
721
|
catch (err) {
|
|
695
|
-
throw new Error(`could not fetch ${
|
|
722
|
+
throw new Error(`could not fetch ${names.join(", ")} and the build requests from ${remote}: ${stderrOf(err)}`);
|
|
696
723
|
}
|
|
697
724
|
if (req.at.startsWith("-") || tryGit(top, ["rev-parse", "--verify", "--quiet", `${req.at}^{commit}`]) === null)
|
|
698
725
|
throw new WorkspaceReadError("revision-unknown", `--at ${req.at} names no commit in this repository`);
|
|
699
726
|
const sha = git(top, ["rev-parse", `${req.at}^{commit}`]);
|
|
700
|
-
const onBranch =
|
|
727
|
+
const onBranch = names.some((b) => tryGit(top, ["rev-list", "--first-parent", trackingOf(b)])?.split("\n").includes(sha));
|
|
701
728
|
if (!onBranch)
|
|
702
|
-
throw new Error(`${sha.slice(0, 12)} is not a first-parent commit of ${remote}/${
|
|
729
|
+
throw new Error(`${sha.slice(0, 12)} is not a first-parent commit of ${names.map((b) => `${remote}/${b}`).join(" or ")}, and only those are judged green`);
|
|
703
730
|
const existing = readBuildRequests(top).get(sha);
|
|
704
731
|
const request = existing ?? requestedBuild(green, sha, green.require, req.now ?? new Date());
|
|
705
732
|
const warnings = [];
|
|
@@ -881,6 +908,8 @@ export function whyWorkUnknown(work) {
|
|
|
881
908
|
}
|
|
882
909
|
/** The text `chant ci tick` prints. */
|
|
883
910
|
export function formatTick(r, dryRun = false) {
|
|
911
|
+
if (r.routed)
|
|
912
|
+
return [formatTick({ ...r, routed: undefined }, dryRun), ...r.routed.map((b) => formatTick(b, dryRun))].join("\n");
|
|
884
913
|
const lines = [`${r.branch}, commits within ${r.window}${r.source === "runs" ? ", judged from chant runs" : ""}: ${r.commits.length}`];
|
|
885
914
|
for (const c of r.commits) {
|
|
886
915
|
const short = c.sha.slice(0, 12);
|
|
@@ -960,7 +989,9 @@ export const LAST_GREEN_NEWER = 50;
|
|
|
960
989
|
export function lastGreen(req) {
|
|
961
990
|
const head = { $schema: CI_LAST_GREEN_SCHEMA_ID, contract: CI_LAST_GREEN_CONTRACT_VERSION, chant: readerVersion() };
|
|
962
991
|
try {
|
|
963
|
-
const
|
|
992
|
+
const read = readGreen(req.cwd);
|
|
993
|
+
const { top, workspace } = read;
|
|
994
|
+
const green = greenOn(read.green, req.branch);
|
|
964
995
|
const branchRef = branchRefOf(top, green, req.remote);
|
|
965
996
|
let ref = branchRef;
|
|
966
997
|
if (req.from !== undefined) {
|
|
@@ -1046,7 +1077,9 @@ function recordedPhase(green, phase) {
|
|
|
1046
1077
|
export async function ciList(req) {
|
|
1047
1078
|
const head = { $schema: CI_LIST_SCHEMA_ID, contract: CI_LIST_CONTRACT_VERSION, chant: readerVersion() };
|
|
1048
1079
|
try {
|
|
1049
|
-
const
|
|
1080
|
+
const read = readGreen(req.cwd);
|
|
1081
|
+
const { top, workspace } = read;
|
|
1082
|
+
const green = greenOn(read.green, req.branch);
|
|
1050
1083
|
const ref = branchRefOf(top, green, req.remote);
|
|
1051
1084
|
const logArgs = ["log", "--first-parent", "--format=%H %ct"];
|
|
1052
1085
|
let cutoff = 0;
|
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
* report with its own token (`postPlanReport`, ../pr-post.ts). In place, a
|
|
54
54
|
* generated job holds no token and its `plan-note` job posts; a job that
|
|
55
55
|
* still holds one was generated before #4295, and the runner posts for it
|
|
56
|
-
* with a warning to regenerate.
|
|
56
|
+
* with a warning to regenerate. Either way the note's overdue check (#4289)
|
|
57
|
+
* reads the scheduled Ops from a fresh checkout of `--base`, as the
|
|
58
|
+
* plan-note job reads them at the target branch's commit (#4328).
|
|
57
59
|
*
|
|
58
60
|
* Signing is opt-in (#4156). With no runner key the record is unsigned, and
|
|
59
61
|
* a reader counts it with no signer. A key `.chant/trust.json` does not list
|
|
@@ -404,6 +406,12 @@ export declare function ciJobPlace(cwd: string, top: string): {
|
|
|
404
406
|
* before anything runs when the request can't be run.
|
|
405
407
|
*/
|
|
406
408
|
export declare function ciRun(req: CiRunRequest): Promise<CiRunResult>;
|
|
409
|
+
/**
|
|
410
|
+
* The `node_modules` directory the running chant is installed in, or
|
|
411
|
+
* undefined when it runs from a source checkout, where chant's own packages
|
|
412
|
+
* resolve without one (../ts-loader.ts).
|
|
413
|
+
*/
|
|
414
|
+
export declare function chantNodeModules(from?: string): string | undefined;
|
|
407
415
|
/**
|
|
408
416
|
* The steps' environment (#4275). A job the chant runner ran gets its run's id
|
|
409
417
|
* and origin, so a release record written inside it names the run the run
|