@intentius/chant 0.124.88 → 0.124.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actor.d.ts +36 -1
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +39 -1
- package/dist/chant-install.d.ts.map +1 -1
- package/dist/chant-install.js +1 -2
- package/dist/ci-base.d.ts +30 -0
- package/dist/ci-base.d.ts.map +1 -0
- package/dist/ci-base.js +33 -0
- package/dist/ci-comment-commands.d.ts +177 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +325 -0
- package/dist/ci-comment-replies.d.ts +40 -0
- package/dist/ci-comment-replies.d.ts.map +1 -0
- package/dist/ci-comment-replies.js +59 -0
- package/dist/ci-evidence-from-job.d.ts +25 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -1
- package/dist/ci-evidence-from-job.js +43 -2
- package/dist/ci-evidence-jobs.d.ts +30 -1
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +46 -3
- package/dist/ci-image.d.ts +21 -4
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +62 -10
- package/dist/ci-note-commands.d.ts +63 -3
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +69 -35
- package/dist/ci-product-words.d.ts +42 -0
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +25 -0
- package/dist/ci-product.d.ts +31 -0
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +34 -4
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +29 -2
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +2 -1
- package/dist/cli/handlers/ci-check.d.ts +1 -1
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +17 -7
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +33 -7
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +3 -1
- package/dist/cli/handlers/generated-check.d.ts +8 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -1
- package/dist/cli/handlers/generated-check.js +31 -1
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +121 -4
- package/dist/cli/handlers/pr-comment.d.ts +21 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +112 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +6 -3
- package/dist/cli/handlers/pr.d.ts +23 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +55 -9
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +2 -1
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +11 -2
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +28 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +2 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +24 -2
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +16 -0
- package/dist/cli/registry.d.ts +11 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -1
- package/dist/components/pr-checks.d.ts +70 -6
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +74 -13
- package/dist/components/pr-pipeline.d.ts +16 -12
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +3 -11
- package/dist/components/product-pipeline.d.ts +42 -1
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +64 -12
- package/dist/components/product-plan.d.ts +190 -5
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +220 -39
- package/dist/drift-record.d.ts +7 -0
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +19 -0
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +54 -31
- package/dist/forge-check/contract.d.ts +11 -1
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +4 -1
- package/dist/forge-check/index.d.ts +2 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +2 -0
- package/dist/gate-resume-run.d.ts +9 -1
- package/dist/gate-resume-run.d.ts.map +1 -1
- package/dist/gate-resume-run.js +26 -3
- package/dist/generated-check.d.ts +18 -4
- package/dist/generated-check.d.ts.map +1 -1
- package/dist/generated-check.js +37 -5
- package/dist/image-pins.d.ts +26 -0
- package/dist/image-pins.d.ts.map +1 -0
- package/dist/image-pins.js +19 -0
- package/dist/lexicon.d.ts +11 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +11 -0
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +30 -3
- package/dist/lifecycle/publish-npm.d.ts +11 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +27 -1
- package/dist/lifecycle/reach-locks.d.ts +131 -0
- package/dist/lifecycle/reach-locks.d.ts.map +1 -0
- package/dist/lifecycle/reach-locks.js +118 -0
- package/dist/lifecycle/release-cut.d.ts +3 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +15 -0
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +1 -2
- package/dist/notify-product.d.ts +12 -3
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +10 -6
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +2 -1
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +2 -1
- package/dist/op/index.d.ts +2 -0
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-evidence-jobs.d.ts +6 -1
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +9 -3
- package/dist/op/op-waves-render-spec.d.ts +100 -0
- package/dist/op/op-waves-render-spec.d.ts.map +1 -0
- package/dist/op/op-waves-render-spec.js +162 -0
- package/dist/op/op-waves-run.d.ts +2 -0
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +2 -1
- package/dist/op/op-waves.d.ts +4 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +4 -1
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +59 -3
- package/dist/op/wave-stop.d.ts +64 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +127 -0
- package/dist/planned-files.d.ts +76 -0
- package/dist/planned-files.d.ts.map +1 -0
- package/dist/planned-files.js +108 -0
- package/dist/pr-forge-job.d.ts +22 -0
- package/dist/pr-forge-job.d.ts.map +1 -0
- package/dist/pr-forge-job.js +46 -0
- package/dist/pr-loop.d.ts +3 -6
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +4 -81
- package/dist/pr-plan-note.d.ts +97 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +94 -1
- package/dist/pr-post.d.ts +28 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +145 -13
- package/dist/pr-status.d.ts +16 -0
- package/dist/pr-status.d.ts.map +1 -0
- package/dist/pr-status.js +90 -0
- package/dist/ref-gate-init.d.ts +16 -2
- package/dist/ref-gate-init.d.ts.map +1 -1
- package/dist/ref-gate-init.js +24 -13
- package/dist/release-floors.d.ts +37 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +61 -25
- package/dist/render-module.d.ts +15 -0
- package/dist/render-module.d.ts.map +1 -0
- package/dist/render-module.js +73 -0
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +1 -2
- package/dist/wave-runtime.mjs +304 -301
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +3 -2
- package/dist/workspace/release-train.d.ts.map +1 -1
- package/dist/workspace/release-train.js +2 -1
- package/dist/workspace/release-workflow.d.ts +4 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +10 -7
- package/dist/workspace/trust/check-evidence-report.d.ts +7 -2
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +15 -8
- package/dist/workspace/trust/ref-gate-cli.d.ts +10 -1
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +30 -10
- package/dist/workspace/workspace-run.d.ts.map +1 -1
- package/dist/workspace/workspace-run.js +2 -1
- package/package.json +1 -1
- package/src/actor.test.ts +68 -2
- package/src/actor.ts +61 -1
- package/src/chant-install.test.ts +2 -3
- package/src/chant-install.ts +1 -2
- package/src/ci-base.test.ts +41 -0
- package/src/ci-base.ts +43 -0
- package/src/ci-comment-commands.test.ts +376 -0
- package/src/ci-comment-commands.ts +389 -0
- package/src/ci-comment-replies.ts +78 -0
- package/src/ci-commit.test.ts +2 -3
- package/src/ci-evidence-from-job.test.ts +18 -0
- package/src/ci-evidence-from-job.ts +58 -2
- package/src/ci-evidence-jobs.ts +50 -5
- package/src/ci-image.test.ts +130 -9
- package/src/ci-image.ts +85 -12
- package/src/ci-note-commands.ts +104 -41
- package/src/ci-product-words.ts +59 -0
- package/src/ci-product.ts +40 -4
- package/src/cli/commands/build.test.ts +41 -0
- package/src/cli/commands/build.ts +27 -2
- package/src/cli/handlers/approve.ts +2 -1
- package/src/cli/handlers/ci-check.ts +19 -7
- package/src/cli/handlers/ci-evidence.ts +29 -8
- package/src/cli/handlers/components.ts +3 -1
- package/src/cli/handlers/generated-check.ts +31 -1
- package/src/cli/handlers/lock-reach.test.ts +103 -0
- package/src/cli/handlers/lock.ts +100 -4
- package/src/cli/handlers/pr-comment.ts +104 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +50 -10
- package/src/cli/handlers/promote.ts +2 -1
- package/src/cli/handlers/release.e2e.test.ts +35 -0
- package/src/cli/handlers/release.ts +14 -2
- package/src/cli/handlers/run-wave.ts +28 -2
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +24 -2
- package/src/cli/parse-args.ts +12 -0
- package/src/cli/registry.ts +11 -0
- package/src/components/auto-release.ts +2 -1
- package/src/components/pr-checks.ts +112 -17
- package/src/components/pr-pipeline.ts +17 -15
- package/src/components/product-pipeline.ts +93 -11
- package/src/components/product-plan.test.ts +40 -2
- package/src/components/product-plan.ts +331 -45
- package/src/drift-record.test.ts +20 -0
- package/src/drift-record.ts +16 -0
- package/src/floor-table.data.ts +54 -31
- package/src/forge-check/contract.ts +12 -1
- package/src/forge-check/forge-check.test.ts +17 -0
- package/src/forge-check/index.ts +2 -0
- package/src/gate-resume-run.ts +27 -3
- package/src/generated-check.e2e.test.ts +21 -1
- package/src/generated-check.test.ts +66 -0
- package/src/generated-check.ts +51 -10
- package/src/image-pins.ts +31 -0
- package/src/lexicon.ts +11 -0
- package/src/lifecycle/git.test.ts +48 -0
- package/src/lifecycle/git.ts +27 -4
- package/src/lifecycle/publish-npm.ts +31 -1
- package/src/lifecycle/reach-locks.test.ts +87 -0
- package/src/lifecycle/reach-locks.ts +169 -0
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images.test.ts +56 -0
- package/src/lifecycle/release-images.ts +1 -2
- package/src/notify-product.ts +19 -8
- package/src/op/activities/source-release.ts +2 -1
- package/src/op/activities/source-rollback.ts +2 -1
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/index.ts +10 -0
- package/src/op/op-waves-evidence-jobs.ts +10 -4
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +160 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +2 -1
- package/src/op/op-waves.ts +5 -2
- package/src/op/schedule-overdue.test.ts +43 -0
- package/src/op/schedule-overdue.ts +57 -3
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +137 -0
- package/src/planned-files.test.ts +80 -0
- package/src/planned-files.ts +134 -0
- package/src/pr-forge-job.test.ts +53 -0
- package/src/pr-forge-job.ts +46 -0
- package/src/pr-loop-narrowed.test.ts +2 -1
- package/src/pr-loop-words.test.ts +2 -1
- package/src/pr-loop.test.ts +1 -2
- package/src/pr-loop.ts +4 -80
- package/src/pr-plan-note.ts +155 -3
- package/src/pr-post-replan.test.ts +144 -0
- package/src/pr-post-subject.test.ts +230 -0
- package/src/pr-post.test.ts +2 -1
- package/src/pr-post.ts +150 -15
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +30 -11
- package/src/release-floors.ts +78 -25
- package/src/render-module.ts +73 -0
- package/src/state-migration-record.test.ts +2 -3
- package/src/state-migration.ts +1 -2
- package/src/workspace/ci-green-cli.ts +3 -2
- package/src/workspace/ci-green-workflow.test.ts +32 -1
- package/src/workspace/release-train.ts +2 -1
- package/src/workspace/release-workflow.test.ts +36 -5
- package/src/workspace/release-workflow.ts +10 -7
- package/src/workspace/trust/check-evidence-report.ts +15 -8
- package/src/workspace/trust/check-evidence.test.ts +5 -0
- package/src/workspace/trust/ref-gate-cli.ts +30 -8
- package/src/workspace/trust/ref-gate-pieces.test.ts +46 -1
- package/src/workspace/trust/ref-gate.test.ts +10 -0
- package/src/workspace/workspace-run.ts +2 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pull-request loop's commit status (#3183): its description and its
|
|
3
|
+
* state, from the report `chant components pr-plan` and `pr-apply` write.
|
|
4
|
+
*
|
|
5
|
+
* They lived in `./pr-loop.ts` until #4966 moved them here, so the bundle
|
|
6
|
+
* a product builds from `pr-loop.ts` and `pr-forge.ts` (the report, the note
|
|
7
|
+
* and the forge clients, `pr-loop-bundle.test.ts`) keeps room under its
|
|
8
|
+
* ceiling. chant's own handlers post the status; no product reads these.
|
|
9
|
+
*/
|
|
10
|
+
import { activeProductWords } from "./ci-product-words.js";
|
|
11
|
+
import { memberHoleReasons } from "./pr-loop.js";
|
|
12
|
+
/** A commit status's description, at most 140 characters (GitHub's limit). */
|
|
13
|
+
export function prStatusDescription(report, words = activeProductWords()) {
|
|
14
|
+
const n = report.members.length;
|
|
15
|
+
const many = (k) => `${k} ${words.noun[k === 1 ? 0 : 1]}`;
|
|
16
|
+
const sum = report.members.reduce((acc, m) => ({ change: acc.change + m.counts.create + m.counts.update + m.counts.replace, destroy: acc.destroy + m.counts.delete + m.counts.replace }), { change: 0, destroy: 0 });
|
|
17
|
+
const digest = report.digest ? `; plan ${report.digest.replace(/^(?:jcs1-)?sha256:/, "").slice(0, 12)}` : "";
|
|
18
|
+
let text;
|
|
19
|
+
switch (report.status) {
|
|
20
|
+
case "nothing":
|
|
21
|
+
text = "nothing to plan";
|
|
22
|
+
break;
|
|
23
|
+
case "planned": {
|
|
24
|
+
const unknown = report.members.filter((m) => memberHoleReasons(report, m.member).length > 0).length;
|
|
25
|
+
// #4626: a narrowed plan says so in its status.
|
|
26
|
+
const narrowed = Object.values(report.narrowed ?? {}).filter((a) => a.length > 0).length;
|
|
27
|
+
text = `${many(n)}${narrowed > 0 ? ` (${narrowed} narrowed with --target)` : ""}: ${sum.change} to change, ${sum.destroy} to destroy or replace${unknown > 0 ? `, ${unknown} with holes` : ""}${digest}`;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
case "plan-failed":
|
|
31
|
+
text = `a ${words.noun[0]} failed to ${words.verbs.plan[0]}${digest}`;
|
|
32
|
+
break;
|
|
33
|
+
case "recorded":
|
|
34
|
+
text = `recorded ${many(n)}: ${report.approval.status === "approved" ? "the approved plan" : report.approval.status === "changed" ? "the plan differs from the approved one" : "no approval for this plan"}${digest}`;
|
|
35
|
+
break;
|
|
36
|
+
case "applied":
|
|
37
|
+
text = `${words.verbs.apply[1]} ${many(n)}${digest}`;
|
|
38
|
+
break;
|
|
39
|
+
case "wave-applied": {
|
|
40
|
+
const last = (report.waves ?? []).filter((w) => w.status === "applied").at(-1);
|
|
41
|
+
text = `applied wave ${last?.wave ?? "?"} of ${report.selection.waves.length}${last ? ` under ${last.approval === "pull-request" ? "the pull request's approval" : `${last.gate}`}` : ""}`;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
case "failed":
|
|
45
|
+
text = `apply failed for ${report.members.filter((m) => m.status === "failed").map((m) => m.member).join(", ")}`;
|
|
46
|
+
break;
|
|
47
|
+
case "waiting":
|
|
48
|
+
text = `waiting: ${report.members.filter((m) => m.status === "waiting").map((m) => m.member).join(", ")} planned again after an upstream applied, not approved yet`;
|
|
49
|
+
break;
|
|
50
|
+
case "refused": {
|
|
51
|
+
const waiting = report.waves?.find((w) => w.status === "waiting");
|
|
52
|
+
if (waiting && (report.refusal === "wave-not-approved" || report.refusal === "wave-plan-changed")) {
|
|
53
|
+
text = `wave ${waiting.wave} waits at ${waiting.gate}: ${report.refusal === "wave-plan-changed" ? "its plan changed after its approval" : "its plan moved, approve it"}`;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
if (report.refusal === "earlier-wave") {
|
|
57
|
+
text = "refused: an earlier wave has not applied";
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
if (report.refusal === "requires-unmet" || report.refusal === "before-merge-off") {
|
|
61
|
+
const unmet = (report.beforeMerge?.requires ?? []).filter((r) => !r.passed).map((r) => r.name);
|
|
62
|
+
text = report.refusal === "before-merge-off" ? "refused: this workspace does not apply before merge" : `refused: ${unmet.join(", ") || "a require"} unmet for an apply before merge`;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
if (report.refusal === "policy-denied" || report.refusal === "policy-error") {
|
|
66
|
+
text = report.refusal === "policy-denied" ? `refused: the policy denied the plan (${(report.policy?.rules ?? []).join(", ")})` : "refused: the policy could not be checked";
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
text = `refused: ${report.refusal === "plan-changed" ? "the plan changed after review" : report.refusal === "not-a-reviewer" ? "the approver has not approved the pull request" : report.refusal === "author-approved" ? "the approver wrote the change" : report.refusal === "no-pull-request" ? "no pull request merged this commit" : report.refusal === "locked" ? "another pull request holds a target lock" : "the plan is not approved"}`;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return text.length > 140 ? text.slice(0, 137) + "..." : text;
|
|
74
|
+
}
|
|
75
|
+
/** The commit status state for a report: success, failure, or pending while it waits on approval. */
|
|
76
|
+
export function prStatusState(report) {
|
|
77
|
+
// #4168 decision 1: a merge whose plan differs from the approved one is recorded, and its status fails.
|
|
78
|
+
if (report.status === "recorded")
|
|
79
|
+
return report.approval.status === "changed" ? "failure" : "success";
|
|
80
|
+
// #4294: a plan the policy denied, with no override, or one it could not check, fails at the plan stage as it would at the apply.
|
|
81
|
+
if (report.status === "planned" && report.policy && (report.policy.result === "error" || (report.policy.result === "denied" && !report.policy.override)))
|
|
82
|
+
return "failure";
|
|
83
|
+
if (report.status === "planned" || report.status === "applied" || report.status === "wave-applied" || report.status === "nothing")
|
|
84
|
+
return "success";
|
|
85
|
+
if (report.status === "refused" && (report.refusal === "not-approved" || report.refusal === "wave-not-approved"))
|
|
86
|
+
return "pending";
|
|
87
|
+
if (report.status === "waiting")
|
|
88
|
+
return "pending";
|
|
89
|
+
return "failure";
|
|
90
|
+
}
|
package/dist/ref-gate-init.d.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* {@link refGateInitPlan} plans, and writes nothing, so a product folds the
|
|
7
7
|
* files into its own plan and keeps its dry run:
|
|
8
8
|
*
|
|
9
|
-
* - `.chant/trust.json` with a `refs` rule for the branch (#4867)
|
|
9
|
+
* - `.chant/trust.json` with a `refs` rule for the branch (#4867), whose
|
|
10
|
+
* `plan` and `policy` are each target's with `targets` (#4978): created
|
|
10
11
|
* with `"schema": 1` when there is none, the rule added in place when the
|
|
11
12
|
* file has no rule for the branch, left as it is when it has one or does
|
|
12
13
|
* not parse.
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
*
|
|
22
23
|
* {@link writeRefGateInit} writes the planned files, the hook executable.
|
|
23
24
|
*/
|
|
24
|
-
export { REF_GATE_PIECES_FLOOR } from "./release-floors.js";
|
|
25
|
+
export { REF_GATE_PIECES_FLOOR, TARGET_SIGNED_CHECKS_FLOOR } from "./release-floors.js";
|
|
25
26
|
/** One check the rule requires evidence for, as `refs[].checks[]` holds it. */
|
|
26
27
|
export interface RefGateInitCheck {
|
|
27
28
|
check: string;
|
|
@@ -35,6 +36,13 @@ export interface RefGateInitOptions {
|
|
|
35
36
|
branch?: string;
|
|
36
37
|
/** The checks an update of the branch needs current evidence for. At least one. */
|
|
37
38
|
checks: readonly RefGateInitCheck[];
|
|
39
|
+
/**
|
|
40
|
+
* The product plan's targets (#4978), as `productPlan.targets` names them.
|
|
41
|
+
* A target's note job signs `plan:<target>` and `policy:<target>`, so with
|
|
42
|
+
* targets a check named `plan` or `policy` stands for each target's, with
|
|
43
|
+
* the same action and command, in the order the targets are given.
|
|
44
|
+
*/
|
|
45
|
+
targets?: readonly string[];
|
|
38
46
|
/** The commit status the gate's status job sets. Default `chant/ref-gate`, which the rule then leaves out. */
|
|
39
47
|
status?: string;
|
|
40
48
|
/** Write the `pre-push` hook in this checkout. Default true. */
|
|
@@ -65,6 +73,12 @@ export interface RefGateInitPlan {
|
|
|
65
73
|
export declare class RefGateInitError extends Error {
|
|
66
74
|
constructor(message: string);
|
|
67
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* The rule's checks (#4978): with `targets`, `plan` and `policy` become each
|
|
78
|
+
* target's `plan:<target>` and `policy:<target>` (`targetEvidenceCheck`),
|
|
79
|
+
* which is what a product plan with targets signs.
|
|
80
|
+
*/
|
|
81
|
+
export declare function refGateInitChecks(checks: readonly RefGateInitCheck[], targets?: readonly string[]): RefGateInitCheck[];
|
|
68
82
|
/**
|
|
69
83
|
* Plan the ref gate's init pieces for the checkout `repo` (#4913). Writes
|
|
70
84
|
* nothing. Throws a {@link RefGateInitError} for options no rule can hold,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-gate-init.d.ts","sourceRoot":"","sources":["../src/ref-gate-init.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ref-gate-init.d.ts","sourceRoot":"","sources":["../src/ref-gate-init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAaH,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAErF,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,8GAA8G;IAC9G,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sJAAsJ;IACtJ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC9B,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,wEAAwE;IACxE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAYD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAGtH;AAWD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,eAAe,CAuEvF;AAED,gHAAgH;AAChH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GAAG,IAAI,CAG3E"}
|
package/dist/ref-gate-init.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* {@link refGateInitPlan} plans, and writes nothing, so a product folds the
|
|
7
7
|
* files into its own plan and keeps its dry run:
|
|
8
8
|
*
|
|
9
|
-
* - `.chant/trust.json` with a `refs` rule for the branch (#4867)
|
|
9
|
+
* - `.chant/trust.json` with a `refs` rule for the branch (#4867), whose
|
|
10
|
+
* `plan` and `policy` are each target's with `targets` (#4978): created
|
|
10
11
|
* with `"schema": 1` when there is none, the rule added in place when the
|
|
11
12
|
* file has no rule for the branch, left as it is when it has one or does
|
|
12
13
|
* not parse.
|
|
@@ -22,14 +23,16 @@
|
|
|
22
23
|
* {@link writeRefGateInit} writes the planned files, the hook executable.
|
|
23
24
|
*/
|
|
24
25
|
import { spawnSync } from "node:child_process";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
26
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
27
|
+
import { isAbsolute, join } from "node:path";
|
|
28
|
+
import { writePlannedFiles } from "./planned-files.js";
|
|
29
|
+
import { EVIDENCE_MEMBER_NAME, targetEvidenceCheck } from "./ci-evidence-jobs.js";
|
|
27
30
|
import { appendElement, setProperty } from "./workspace/json-edit.js";
|
|
28
31
|
import { parseJsonText } from "./workspace/jsonc.js";
|
|
29
32
|
import { REF_CHECK_NAME, TRUST_CONFIG_PATH, trustConfigSchema } from "./workspace/trust/policy.js";
|
|
30
33
|
import { refPatternRegExp, REF_GATE_STATUS } from "./workspace/trust/ref-gate.js";
|
|
31
34
|
import { REF_GATE_HOOK_MARK, refGateHook } from "./workspace/trust/ref-gate-cli.js";
|
|
32
|
-
export { REF_GATE_PIECES_FLOOR } from "./release-floors.js";
|
|
35
|
+
export { REF_GATE_PIECES_FLOOR, TARGET_SIGNED_CHECKS_FLOOR } from "./release-floors.js";
|
|
33
36
|
export class RefGateInitError extends Error {
|
|
34
37
|
constructor(message) {
|
|
35
38
|
super(message);
|
|
@@ -44,11 +47,21 @@ function planned(path, content, extra = {}) {
|
|
|
44
47
|
const before = existsSync(path) ? readFileSync(path, "utf-8") : undefined;
|
|
45
48
|
return { path, status: before === undefined ? "created" : before === content ? "unchanged" : "updated", content, ...extra };
|
|
46
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* The rule's checks (#4978): with `targets`, `plan` and `policy` become each
|
|
52
|
+
* target's `plan:<target>` and `policy:<target>` (`targetEvidenceCheck`),
|
|
53
|
+
* which is what a product plan with targets signs.
|
|
54
|
+
*/
|
|
55
|
+
export function refGateInitChecks(checks, targets) {
|
|
56
|
+
if (!targets || targets.length === 0)
|
|
57
|
+
return [...checks];
|
|
58
|
+
return checks.flatMap((c) => (c.check === "plan" || c.check === "policy" ? targets.map((t) => ({ ...c, check: targetEvidenceCheck(c.check, t) })) : [c]));
|
|
59
|
+
}
|
|
47
60
|
/** The `refs` rule for `ref`, with `action` and `status` only where they differ from the defaults. */
|
|
48
61
|
function ruleFor(ref, opts) {
|
|
49
62
|
return {
|
|
50
63
|
ref,
|
|
51
|
-
checks: opts.checks.map((c) => ({ check: c.check, ...(c.action === "warn" ? { action: "warn" } : {}), command: c.command })),
|
|
64
|
+
checks: refGateInitChecks(opts.checks, opts.targets).map((c) => ({ check: c.check, ...(c.action === "warn" ? { action: "warn" } : {}), command: c.command })),
|
|
52
65
|
...(opts.status && opts.status !== REF_GATE_STATUS ? { status: opts.status } : {}),
|
|
53
66
|
};
|
|
54
67
|
}
|
|
@@ -64,6 +77,10 @@ export function refGateInitPlan(repo, opts) {
|
|
|
64
77
|
throw new RefGateInitError(`the branch is one branch name, such as main, not ${JSON.stringify(branch)}`);
|
|
65
78
|
if (opts.checks.length === 0)
|
|
66
79
|
throw new RefGateInitError("the ref gate's rule needs at least one check");
|
|
80
|
+
for (const t of opts.targets ?? []) {
|
|
81
|
+
if (!EVIDENCE_MEMBER_NAME.test(t))
|
|
82
|
+
throw new RefGateInitError(`${JSON.stringify(t)} is not a product plan target's name: letters, digits, - and _`);
|
|
83
|
+
}
|
|
67
84
|
for (const c of opts.checks) {
|
|
68
85
|
if (!REF_CHECK_NAME.test(c.check))
|
|
69
86
|
throw new RefGateInitError(`${JSON.stringify(c.check)} is not a check name: letters, digits, . _ : -`);
|
|
@@ -133,12 +150,6 @@ export function refGateInitPlan(repo, opts) {
|
|
|
133
150
|
}
|
|
134
151
|
/** Write the files of a plan, each directory made and the hook executable. An unchanged file is not touched. */
|
|
135
152
|
export function writeRefGateInit(plan) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
continue;
|
|
139
|
-
mkdirSync(dirname(f.path), { recursive: true });
|
|
140
|
-
writeFileSync(f.path, f.content);
|
|
141
|
-
if (f.mode !== undefined)
|
|
142
|
-
chmodSync(f.path, f.mode);
|
|
143
|
-
}
|
|
153
|
+
// #4966: chant's one planned-file writer.
|
|
154
|
+
writePlannedFiles(plan.files);
|
|
144
155
|
}
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export declare const NEXT_RELEASE = "0.124.
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.89";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export declare const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
@@ -32,6 +32,8 @@ export declare const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = "0.124.86";
|
|
|
32
32
|
export declare const TERRAFORM_ENGINE_TIMINGS_FLOOR = "0.124.88";
|
|
33
33
|
/** The first chant whose terraform lexicon finds live roots and estates (`live-roots`), places a Terragrunt unit (`terragruntUnitPlace`), reads a state migration's history and revert from its finished lines (`migration-history`), and runs the binary without the forge's tokens (`tokenlessBinaryExec`, `engineEnv`) (#4910). */
|
|
34
34
|
export declare const TERRAFORM_ROOT_HELPERS_FLOOR = "0.124.88";
|
|
35
|
+
/** The first chant whose terraform lexicon has one runner of the engine for a product (`engineRunner` in `engine-runner`: a hooked `exec`, `execSync`, `terragrunt` and the tokenless `script`), traces each engine command (`commandTrace`, `commandTraceEnv`), sends each Terragrunt unit's plan through `planTerragruntWave({ onCommand })`, and resolves a live root's record store (`liveRecordStore`, `writtenRecordStore`, `rootBackendAttrs` in `live-roots`) (#4954). */
|
|
36
|
+
export declare const TERRAFORM_ENGINE_RUNNER_FLOOR = "0.124.89";
|
|
35
37
|
/** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
|
|
36
38
|
export declare const PRODUCT_HELPERS_FLOOR = "0.124.86";
|
|
37
39
|
/** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
|
|
@@ -126,4 +128,38 @@ export declare const CHECK_SUMMARY_FLOOR = "0.124.88";
|
|
|
126
128
|
export declare const REF_GATE_STATUS_JOB_FLOOR = "0.124.88";
|
|
127
129
|
/** The first chant with `@intentius/chant/ref-gate-rules` (`refGateRulesAt`), `require` in `checkPrRequires`, `refGateStatus` in `pipelineContract` and `ci forge-check --ref-gate-status`, `@intentius/chant/ref-gate-init` (`refGateInitPlan`, `writeRefGateInit`), and a pre-receive refusal that prints the command recording the override request (#4913). */
|
|
128
130
|
export declare const REF_GATE_PIECES_FLOOR = "0.124.88";
|
|
131
|
+
/** The first chant whose `chant release cut --yes` pushes `chant/lifecycle` again when the remote refuses it, and exits non-zero untagged (`release-record-not-pushed`) when the release record never lands, so the release workflow does not push the tag (#4965). */
|
|
132
|
+
export declare const RELEASE_CUT_RECORD_FLOOR = "0.124.89";
|
|
133
|
+
/** The first chant whose release cut refuses, before it records or tags, a release whose npm publish target would carry an image archive (`publish-npm-carries-image`), and whose GitLab release workflow runs the binfmt image by digest from `IMAGE_PINS` (#4941). */
|
|
134
|
+
export declare const RELEASE_CUT_CARRIES_IMAGE_FLOOR = "0.124.89";
|
|
135
|
+
/** The first chant whose `ciToolFetchScript` and `ciToolInstallLine` take `download: "node"`, a fetch and unzip with node for an image with no curl or unzip, whose `CI_TOOL_SHA256` records just 1.36.0 and act 0.2.89 and checks them against their releases' checksums files, and whose overdue check deepens a shallow checkout before it dates a pipeline file (#4952). */
|
|
136
|
+
export declare const CI_TOOL_NODE_DOWNLOAD_FLOOR = "0.124.89";
|
|
137
|
+
/** The first chant whose `chant build -o <dir>/` writes a build's additional files (a docker project's Dockerfiles) into the directory with no primary file, whose `chantGenerated` renders take a `module` and its `export` (a `{ path: text }` object or a function returning one) and `chant dev render <module> <export>` writes them in place, and whose `chant ci workflow` and `chant release workflow` write into `chant dev generated-check`'s render tree with no `--output` (#4950). */
|
|
138
|
+
export declare const RENDER_KINDS_FLOOR = "0.124.89";
|
|
139
|
+
/** The first chant whose sql lexicon's `chant lifecycle diff --live` addresses a table's columns by name (`columns[#country].default.expr`), compares a ClickHouse table's column order as `columnOrder`, and reports a column the server has and the declaration does not as pending, and whose `lexiconDriftRecords` counts a deep read's pending changes (that column, a ClickHouse or Postgres privilege granted by hand) as drift (#4944). */
|
|
140
|
+
export declare const SQL_LIVE_COLUMNS_FLOOR = "0.124.89";
|
|
141
|
+
/** The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944). */
|
|
142
|
+
export declare const DRIFT_NOTIFY_STACKS_FLOOR = "0.124.89";
|
|
143
|
+
/** The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964). */
|
|
144
|
+
export declare const MEMBER_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
145
|
+
/** The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964). */
|
|
146
|
+
export declare const PRODUCT_CHECK_JOBS_FLOOR = "0.124.89";
|
|
147
|
+
/** The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964). */
|
|
148
|
+
export declare const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
|
|
149
|
+
/** The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966). */
|
|
150
|
+
export declare const ACTOR_ORDER_FLOOR = "0.124.89";
|
|
151
|
+
/** The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966). */
|
|
152
|
+
export declare const CI_BASE_REF_FLOOR = "0.124.89";
|
|
153
|
+
/** The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966). */
|
|
154
|
+
export declare const PLANNED_FILES_FLOOR = "0.124.89";
|
|
155
|
+
/** The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966). */
|
|
156
|
+
export declare const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
|
|
157
|
+
/** The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966). */
|
|
158
|
+
export declare const BEFORE_MERGE_REF_GATE_FLOOR = "0.124.89";
|
|
159
|
+
/** The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978). */
|
|
160
|
+
export declare const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
161
|
+
/** The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982). */
|
|
162
|
+
export declare const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
|
|
163
|
+
/** The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978). */
|
|
164
|
+
export declare const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
|
|
129
165
|
//# sourceMappingURL=release-floors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,+SAA+S;AAC/S,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,qMAAqM;AACrM,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,8KAA8K;AAC9K,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,0LAA0L;AAC1L,eAAO,MAAM,kCAAkC,aAAa,CAAC;AAE7D,6SAA6S;AAC7S,eAAO,MAAM,8BAA8B,
|
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mSAAmS;AACnS,eAAO,MAAM,mBAAmB,aAAe,CAAC;AAEhD,6OAA6O;AAC7O,eAAO,MAAM,0BAA0B,aAAe,CAAC;AAEvD,yNAAyN;AACzN,eAAO,MAAM,2BAA2B,aAAe,CAAC;AAExD,wUAAwU;AACxU,eAAO,MAAM,0BAA0B,aAAe,CAAC;AAEvD,6XAA6X;AAC7X,eAAO,MAAM,wBAAwB,aAAe,CAAC;AAErD,wTAAwT;AACxT,eAAO,MAAM,gCAAgC,aAAe,CAAC"}
|
package/dist/release-floors.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export const NEXT_RELEASE = "0.124.
|
|
22
|
+
export const NEXT_RELEASE = "0.124.89";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
@@ -29,9 +29,11 @@ export const OVERDUE_PIPELINE_FILES_FLOOR = "0.124.86";
|
|
|
29
29
|
/** The first chant whose `terraformApplyCapabilityWith` takes `onCommand`, a hook around each engine command `terraform-apply` runs for a root, its reads' upstreams included (#4865). */
|
|
30
30
|
export const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = "0.124.86";
|
|
31
31
|
/** The first chant whose terraform lexicon times each root's engine commands and reads its spans and lock waits (`@intentius/chant-lexicon-terraform/engine-timings`, `engineTimings()` as `terraformApplyCapabilityWith`'s `onCommand`), and runs a composed group's commands through that hook (#4887). */
|
|
32
|
-
export const TERRAFORM_ENGINE_TIMINGS_FLOOR =
|
|
32
|
+
export const TERRAFORM_ENGINE_TIMINGS_FLOOR = "0.124.88";
|
|
33
33
|
/** The first chant whose terraform lexicon finds live roots and estates (`live-roots`), places a Terragrunt unit (`terragruntUnitPlace`), reads a state migration's history and revert from its finished lines (`migration-history`), and runs the binary without the forge's tokens (`tokenlessBinaryExec`, `engineEnv`) (#4910). */
|
|
34
|
-
export const TERRAFORM_ROOT_HELPERS_FLOOR =
|
|
34
|
+
export const TERRAFORM_ROOT_HELPERS_FLOOR = "0.124.88";
|
|
35
|
+
/** The first chant whose terraform lexicon has one runner of the engine for a product (`engineRunner` in `engine-runner`: a hooked `exec`, `execSync`, `terragrunt` and the tokenless `script`), traces each engine command (`commandTrace`, `commandTraceEnv`), sends each Terragrunt unit's plan through `planTerragruntWave({ onCommand })`, and resolves a live root's record store (`liveRecordStore`, `writtenRecordStore`, `rootBackendAttrs` in `live-roots`) (#4954). */
|
|
36
|
+
export const TERRAFORM_ENGINE_RUNNER_FLOOR = NEXT_RELEASE;
|
|
35
37
|
/** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
|
|
36
38
|
export const PRODUCT_HELPERS_FLOOR = "0.124.86";
|
|
37
39
|
/** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
|
|
@@ -83,46 +85,80 @@ export const LOCAL_EVIDENCE_FLOOR = "0.124.86";
|
|
|
83
85
|
/** The first chant that signs runner statements keyless from the CI job's OIDC identity and verifies them against `keyless` in `.chant/trust.json`, with `evidence.identity: "oidc"` in the generators (#4869). */
|
|
84
86
|
export const KEYLESS_EVIDENCE_FLOOR = "0.124.87";
|
|
85
87
|
/** The first chant whose waves generators run each wave's policy as a step of its own (`chant run wave --policy-only`; on GitLab a `<wave job>-policy` job) and sign its checks in a `<wave job>-evidence` job with `chant ci evidence sign --from-job`, from the forge's record of the wave job's steps, so a wave that trades cloud credentials signs keyless with `evidence.identity: "oidc"` instead of being refused (#4926). */
|
|
86
|
-
export const WAVE_EVIDENCE_JOB_FLOOR =
|
|
88
|
+
export const WAVE_EVIDENCE_JOB_FLOOR = "0.124.88";
|
|
87
89
|
/** The first chant whose cloud login leaves the region to the job unless the spec names one, takes `sameStep` to export into the step that runs it, accepts an AWS spec with no role (the token file alone), and whose trade sets `CHANT_CLOUD_TRADED` so a login's targets file is told from a trade's (#4930). */
|
|
88
|
-
export const CLOUD_LOGIN_SAME_STEP_FLOOR =
|
|
90
|
+
export const CLOUD_LOGIN_SAME_STEP_FLOOR = "0.124.88";
|
|
89
91
|
/** The first chant whose `chant release workflow` sets up QEMU in the cut and publish jobs for the platforms `release.images` builds that the runner can't (`docker/setup-qemu-action` at its pin on GitHub and Forgejo, a `tonistiigi/binfmt` run line on GitLab), and whose `release.images` command entries take `platforms` (#4876). */
|
|
90
|
-
export const RELEASE_WORKFLOW_QEMU_FLOOR =
|
|
92
|
+
export const RELEASE_WORKFLOW_QEMU_FLOOR = "0.124.88";
|
|
91
93
|
/** The first chant whose npm publish target refuses at plan time a package that would carry an image archive the release records (`publish-npm-carries-image`), naming the file and the `files` entry that leaves it out (#4934). */
|
|
92
|
-
export const NPM_CARRIES_IMAGE_FLOOR =
|
|
94
|
+
export const NPM_CARRIES_IMAGE_FLOOR = "0.124.88";
|
|
93
95
|
/** The first chant with `driftRunFingerprint` in `@intentius/chant/drift-issue` and `lexiconDriftRecords` in `@intentius/chant/drift-record`, whose `chant lifecycle diff --live --json` writes a lexicon's `absent`, and whose sql lexicon reports a declared object the server lacks as `missing` instead of `pending` (#4896). */
|
|
94
|
-
export const LIVE_DRIFT_RECORDS_FLOOR =
|
|
96
|
+
export const LIVE_DRIFT_RECORDS_FLOOR = "0.124.88";
|
|
95
97
|
/** The first chant whose `chant sql types --path` prints where `sql-types.d.ts` is by the source-dir rule, the path `sqlTypesPath` answers (#4897). */
|
|
96
|
-
export const SQL_TYPES_PATH_FLOOR =
|
|
98
|
+
export const SQL_TYPES_PATH_FLOOR = "0.124.88";
|
|
97
99
|
/** The first chant whose forge target carries its web `origin` (`forgeTargetWith`) and whose `@intentius/chant/forge-flags` has `jobForgeTarget`, a job's target or undefined where the job cannot reach the forge, so a product keeps no target type of its own (#4888). */
|
|
98
|
-
export const FORGE_TARGET_ORIGIN_FLOOR =
|
|
100
|
+
export const FORGE_TARGET_ORIGIN_FLOOR = "0.124.88";
|
|
99
101
|
/** The first chant with `actorFromEnv` (`@intentius/chant/actor`), `forgeTargetLiveRuns` and `forgeLiveRunsOf` in `@intentius/chant/state-unlock`, and a pulumi lexicon whose stack ops take the product's `approveCommand`, with `pulumiStackLockToCancel` and `pulumiMoveDestStack`, a move naming its own `--dest` from both sides' `project` (#4911). */
|
|
100
|
-
export const STACK_OPS_PRODUCT_HELPERS_FLOOR =
|
|
102
|
+
export const STACK_OPS_PRODUCT_HELPERS_FLOOR = "0.124.88";
|
|
101
103
|
/** The first chant with `@intentius/chant/forge-remote` (`forgeOfRemote`, `forgeOfCheckout`, `forgeKindOfHost`), the forge and repository a checkout's origin remote names, and a pulumi `gatedStackCancel` that reads the forge's runs from it on a laptop (#4920). */
|
|
102
|
-
export const FORGE_REMOTE_FLOOR =
|
|
104
|
+
export const FORGE_REMOTE_FLOOR = "0.124.88";
|
|
103
105
|
/** The first chant with `chant dev generated-check` (`chantGenerated` in a product's root package.json, `@intentius/chant/generated-check`) and `chant dev local-image` (`localChantImage` in `@intentius/chant/local-chant`): a drift check of a product's committed generated files, and an image build with the product's chant, local or pinned, without the product's own scripts (#4909). */
|
|
104
|
-
export const GENERATED_CHECK_FLOOR =
|
|
106
|
+
export const GENERATED_CHECK_FLOOR = "0.124.88";
|
|
105
107
|
/** The first chant whose `chant dev local` keeps the product's peer dependencies installed and packs the checkout at its `NEXT_RELEASE`, and whose root build of a project with no `sourceDir` leaves its top-level `migrations/` out, with the sql lexicon opening no `.sql` file under a `migrations` directory (#4921). */
|
|
106
|
-
export const LOCAL_CHANT_NEXT_RELEASE_FLOOR =
|
|
108
|
+
export const LOCAL_CHANT_NEXT_RELEASE_FLOOR = "0.124.88";
|
|
107
109
|
/** The first chant whose `chantExternalPlugin` keeps external only the chant packages it is given, by default the ones in the package's `dependencies`, so a product that bundles its lexicons uses it as is (#4922). */
|
|
108
|
-
export const CHANT_EXTERNAL_PACKAGES_FLOOR =
|
|
110
|
+
export const CHANT_EXTERNAL_PACKAGES_FLOOR = "0.124.88";
|
|
109
111
|
/** The first chant whose `ciToolInstallLine` takes `sudo` and `binDir` and a root under a shell variable, for a job that is not root, whose `CI_TOOL_SHA256` records terraform 1.14.9, terragrunt 1.2.0 and the AWS CLI 2.37.9, and whose Pulumi lexicon's `ciFetchScript` and `PINNED_SHA256` are ci-image's (#4908). */
|
|
110
|
-
export const CI_IMAGE_NON_ROOT_FLOOR =
|
|
112
|
+
export const CI_IMAGE_NON_ROOT_FLOOR = "0.124.88";
|
|
111
113
|
/** The first chant whose `productImageStages` stages type as the docker lexicon's `DockerfileStage[]` under `exactOptionalPropertyTypes`, so `new Dockerfile({ stages: productImageStages(spec) })` compiles (#4932). */
|
|
112
|
-
export const CI_IMAGE_DOCKER_STAGES_FLOOR =
|
|
114
|
+
export const CI_IMAGE_DOCKER_STAGES_FLOOR = "0.124.88";
|
|
113
115
|
/** The first chant whose setup steps (`OpSetupStep`: an Op waves spec's wave and job group `setup`, a scheduled Op's `setup`, `release.workflow.setup`) take a `name`, rendered as the step's name on GitHub and Forgejo (#4932). */
|
|
114
|
-
export const OP_SETUP_STEP_NAME_FLOOR =
|
|
116
|
+
export const OP_SETUP_STEP_NAME_FLOOR = "0.124.88";
|
|
115
117
|
/** The first chant whose cloud login takes `restart` (log in, then start the step's script again without the token request variables, and empty the token files when the step exits), sets `CHANT_CLOUD_TOKEN_FILES` for `LOGIN_CLEAR_TOKENS`, takes a full token URL as GCP's `stsEndpoint`, and whose GitLab trade evaluates its exports without writing a file (#4912). */
|
|
116
|
-
export const CLOUD_LOGIN_RESTART_FLOOR =
|
|
118
|
+
export const CLOUD_LOGIN_RESTART_FLOOR = "0.124.88";
|
|
117
119
|
/** The first chant whose `chant build --pr-loop` takes `evidence` (`--evidence-runner-key-secret`, `--evidence-identity oidc`, `--evidence-audience`) and signs the plan job's `plan` and `policy` checks in its note job on GitHub, GitLab and Forgejo (#4935). */
|
|
118
|
-
export const PR_LOOP_EVIDENCE_FLOOR =
|
|
120
|
+
export const PR_LOOP_EVIDENCE_FLOOR = "0.124.88";
|
|
119
121
|
/** The first chant whose pull request pipelines take `checkJob` (`--check-job`): a check job that runs `chant ci check` on the pull request's commit with no token or runner identity, and with `evidence` a `check-evidence` job that signs each passed hook from its report with `chant ci evidence sign --from-report .chant/check` (#4935). */
|
|
120
|
-
export const CHECK_JOB_FLOOR =
|
|
122
|
+
export const CHECK_JOB_FLOOR = "0.124.88";
|
|
121
123
|
/** The first chant whose GitLab pipelines sign evidence in the target branch's plan notes pipeline, in jobs that name the `chant-evidence` environment, with `chant ci evidence sign --open`, and whose `pr-post --open --evidence-dir` ends each merge request's note with the checks line; no job of a merge request pipeline holds the runner key (#4914). */
|
|
122
|
-
export const GITLAB_OPEN_EVIDENCE_FLOOR =
|
|
124
|
+
export const GITLAB_OPEN_EVIDENCE_FLOOR = "0.124.88";
|
|
123
125
|
/** The first chant whose `chant ci check` takes `--summary <file>` and whose `checkReportSummary` renders the check report's markdown section, so a product's check step runs chant's check stage and keeps the section in its own report (#4914). */
|
|
124
|
-
export const CHECK_SUMMARY_FLOOR =
|
|
126
|
+
export const CHECK_SUMMARY_FLOOR = "0.124.88";
|
|
125
127
|
/** The first chant whose pull request pipelines take `refGateStatus` (`--ref-gate-status`): a `ref-gate` job that runs `chant workspace ref-gate status` for the pull request's commit, and on GitLab `ref-gate status --open` for every open merge request (#4935). */
|
|
126
|
-
export const REF_GATE_STATUS_JOB_FLOOR =
|
|
128
|
+
export const REF_GATE_STATUS_JOB_FLOOR = "0.124.88";
|
|
127
129
|
/** The first chant with `@intentius/chant/ref-gate-rules` (`refGateRulesAt`), `require` in `checkPrRequires`, `refGateStatus` in `pipelineContract` and `ci forge-check --ref-gate-status`, `@intentius/chant/ref-gate-init` (`refGateInitPlan`, `writeRefGateInit`), and a pre-receive refusal that prints the command recording the override request (#4913). */
|
|
128
|
-
export const REF_GATE_PIECES_FLOOR =
|
|
130
|
+
export const REF_GATE_PIECES_FLOOR = "0.124.88";
|
|
131
|
+
/** The first chant whose `chant release cut --yes` pushes `chant/lifecycle` again when the remote refuses it, and exits non-zero untagged (`release-record-not-pushed`) when the release record never lands, so the release workflow does not push the tag (#4965). */
|
|
132
|
+
export const RELEASE_CUT_RECORD_FLOOR = NEXT_RELEASE;
|
|
133
|
+
/** The first chant whose release cut refuses, before it records or tags, a release whose npm publish target would carry an image archive (`publish-npm-carries-image`), and whose GitLab release workflow runs the binfmt image by digest from `IMAGE_PINS` (#4941). */
|
|
134
|
+
export const RELEASE_CUT_CARRIES_IMAGE_FLOOR = NEXT_RELEASE;
|
|
135
|
+
/** The first chant whose `ciToolFetchScript` and `ciToolInstallLine` take `download: "node"`, a fetch and unzip with node for an image with no curl or unzip, whose `CI_TOOL_SHA256` records just 1.36.0 and act 0.2.89 and checks them against their releases' checksums files, and whose overdue check deepens a shallow checkout before it dates a pipeline file (#4952). */
|
|
136
|
+
export const CI_TOOL_NODE_DOWNLOAD_FLOOR = NEXT_RELEASE;
|
|
137
|
+
/** The first chant whose `chant build -o <dir>/` writes a build's additional files (a docker project's Dockerfiles) into the directory with no primary file, whose `chantGenerated` renders take a `module` and its `export` (a `{ path: text }` object or a function returning one) and `chant dev render <module> <export>` writes them in place, and whose `chant ci workflow` and `chant release workflow` write into `chant dev generated-check`'s render tree with no `--output` (#4950). */
|
|
138
|
+
export const RENDER_KINDS_FLOOR = NEXT_RELEASE;
|
|
139
|
+
/** The first chant whose sql lexicon's `chant lifecycle diff --live` addresses a table's columns by name (`columns[#country].default.expr`), compares a ClickHouse table's column order as `columnOrder`, and reports a column the server has and the declaration does not as pending, and whose `lexiconDriftRecords` counts a deep read's pending changes (that column, a ClickHouse or Postgres privilege granted by hand) as drift (#4944). */
|
|
140
|
+
export const SQL_LIVE_COLUMNS_FLOOR = NEXT_RELEASE;
|
|
141
|
+
/** The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944). */
|
|
142
|
+
export const DRIFT_NOTIFY_STACKS_FLOOR = NEXT_RELEASE;
|
|
143
|
+
/** The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964). */
|
|
144
|
+
export const MEMBER_SIGNED_CHECKS_FLOOR = NEXT_RELEASE;
|
|
145
|
+
/** The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964). */
|
|
146
|
+
export const PRODUCT_CHECK_JOBS_FLOOR = NEXT_RELEASE;
|
|
147
|
+
/** The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964). */
|
|
148
|
+
export const GITLAB_WAVE_KEY_SCOPE_FLOOR = NEXT_RELEASE;
|
|
149
|
+
/** The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966). */
|
|
150
|
+
export const ACTOR_ORDER_FLOOR = NEXT_RELEASE;
|
|
151
|
+
/** The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966). */
|
|
152
|
+
export const CI_BASE_REF_FLOOR = NEXT_RELEASE;
|
|
153
|
+
/** The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966). */
|
|
154
|
+
export const PLANNED_FILES_FLOOR = NEXT_RELEASE;
|
|
155
|
+
/** The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966). */
|
|
156
|
+
export const FORGE_CHECK_OWN_JOBS_FLOOR = NEXT_RELEASE;
|
|
157
|
+
/** The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966). */
|
|
158
|
+
export const BEFORE_MERGE_REF_GATE_FLOOR = NEXT_RELEASE;
|
|
159
|
+
/** The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978). */
|
|
160
|
+
export const TARGET_SIGNED_CHECKS_FLOOR = NEXT_RELEASE;
|
|
161
|
+
/** The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982). */
|
|
162
|
+
export const RUNTIME_WAVES_SPEC_FLOOR = NEXT_RELEASE;
|
|
163
|
+
/** The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978). */
|
|
164
|
+
export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = NEXT_RELEASE;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Files by their path below the output root. */
|
|
2
|
+
export type RenderedFiles = Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Import `modulePath` (resolved from `cwd`) and return the files its export
|
|
5
|
+
* `exportName` renders. Throws, naming the module and export, when the export
|
|
6
|
+
* is missing, is not files, or names a path outside the root.
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderModuleFiles(modulePath: string, exportName: string, cwd?: string): Promise<RenderedFiles>;
|
|
9
|
+
/**
|
|
10
|
+
* Write each file below `root`, creating its directories. `place` maps the
|
|
11
|
+
* absolute path before the write (`renderPathOf`, under a check). Returns
|
|
12
|
+
* the paths written, in the export's order.
|
|
13
|
+
*/
|
|
14
|
+
export declare function writeRenderedFiles(root: string, files: RenderedFiles, place?: (path: string) => string): string[];
|
|
15
|
+
//# sourceMappingURL=render-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-module.d.ts","sourceRoot":"","sources":["../src/render-module.ts"],"names":[],"mappings":"AA0BA,iDAAiD;AACjD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAQnD;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,SAAgB,GAAG,OAAO,CAAC,aAAa,CAAC,CAgB3H;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAiB,GAAG,MAAM,EAAE,CAS3H"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #4950: render a module's file-text export.
|
|
3
|
+
*
|
|
4
|
+
* A product keeps some generated files as the text a TypeScript function
|
|
5
|
+
* returns: plywood's `dockerfiles()` in `src/images.ts` gives each image's
|
|
6
|
+
* Dockerfile by its path from the repository root, and a schema or a set of
|
|
7
|
+
* dashboards can be the same. plywood bundled each such module with esbuild
|
|
8
|
+
* (`build-images.mjs`, `build-schema.mjs`) only to call that export and write
|
|
9
|
+
* the files. Here chant imports the module itself, with the TypeScript loader
|
|
10
|
+
* and chant's own modules served as the running CLI, calls the export, and
|
|
11
|
+
* writes each file below an output root:
|
|
12
|
+
*
|
|
13
|
+
* - `chant dev render <module> <export> [--output <root>]` writes them in
|
|
14
|
+
* place (the root is the working directory unless `--output` names one);
|
|
15
|
+
* under `chant dev generated-check` they go to the render tree.
|
|
16
|
+
* - a `chantGenerated` render of the module kind (`{ "module", "export" }`)
|
|
17
|
+
* renders them into the check's render tree and compares them.
|
|
18
|
+
*
|
|
19
|
+
* The export is a `{ path: text }` object, or a function, async or not, that
|
|
20
|
+
* returns one when called with no arguments. Each path is relative, with `/`
|
|
21
|
+
* between segments and no `..`.
|
|
22
|
+
*/
|
|
23
|
+
import { mkdirSync, writeFileSync } from "node:fs";
|
|
24
|
+
import { dirname, join, resolve } from "node:path";
|
|
25
|
+
import { importModule } from "./discovery/import.js";
|
|
26
|
+
/** Whether `path` is one an export may name: relative, `/`-separated, with no `.` or `..` segment. */
|
|
27
|
+
function isRenderedPath(path) {
|
|
28
|
+
if (!path || path.startsWith("/") || path.includes("\\") || /^[A-Za-z]:/.test(path))
|
|
29
|
+
return false;
|
|
30
|
+
return path.split("/").every((s) => s !== "" && s !== "." && s !== "..");
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Import `modulePath` (resolved from `cwd`) and return the files its export
|
|
34
|
+
* `exportName` renders. Throws, naming the module and export, when the export
|
|
35
|
+
* is missing, is not files, or names a path outside the root.
|
|
36
|
+
*/
|
|
37
|
+
export async function renderModuleFiles(modulePath, exportName, cwd = process.cwd()) {
|
|
38
|
+
const at = resolve(cwd, modulePath);
|
|
39
|
+
const where = `${modulePath} export ${exportName}`;
|
|
40
|
+
const mod = await importModule(at);
|
|
41
|
+
if (!(exportName in mod))
|
|
42
|
+
throw new Error(`${modulePath} has no export named ${exportName}`);
|
|
43
|
+
const exported = mod[exportName];
|
|
44
|
+
const value = typeof exported === "function" ? await exported() : exported;
|
|
45
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
46
|
+
throw new Error(`${where} must be, or return, an object of file paths to their text`);
|
|
47
|
+
const files = {};
|
|
48
|
+
for (const [path, text] of Object.entries(value)) {
|
|
49
|
+
if (!isRenderedPath(path))
|
|
50
|
+
throw new Error(`${where} names ${JSON.stringify(path)}, which is not a relative path inside the output root`);
|
|
51
|
+
if (typeof text !== "string")
|
|
52
|
+
throw new Error(`${where} gives ${path} a ${text === null ? "null" : typeof text}, not its text`);
|
|
53
|
+
files[path] = text;
|
|
54
|
+
}
|
|
55
|
+
if (Object.keys(files).length === 0)
|
|
56
|
+
throw new Error(`${where} renders no files`);
|
|
57
|
+
return files;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Write each file below `root`, creating its directories. `place` maps the
|
|
61
|
+
* absolute path before the write (`renderPathOf`, under a check). Returns
|
|
62
|
+
* the paths written, in the export's order.
|
|
63
|
+
*/
|
|
64
|
+
export function writeRenderedFiles(root, files, place = (p) => p) {
|
|
65
|
+
const written = [];
|
|
66
|
+
for (const [path, text] of Object.entries(files)) {
|
|
67
|
+
const target = place(join(root, path));
|
|
68
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
69
|
+
writeFileSync(target, text);
|
|
70
|
+
written.push(target);
|
|
71
|
+
}
|
|
72
|
+
return written;
|
|
73
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-migration.d.ts","sourceRoot":"","sources":["../src/state-migration.ts"],"names":[],"mappings":"AA8CA,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"state-migration.d.ts","sourceRoot":"","sources":["../src/state-migration.ts"],"names":[],"mappings":"AA8CA,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,ySAAyS;AACzS,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,qKAAqK;AACrK,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,+JAA+J;AAC/J,eAAO,MAAM,gCAAgC,QAAY,CAAC;AAE1D,wJAAwJ;AACxJ,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAED,yHAAyH;AACzH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,mDAAmD;AACnD,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IACzB,+DAA+D;IAC/D,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,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,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAanH;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAYpD;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAiBtG;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA6BjI;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAkDlG"}
|
package/dist/state-migration.js
CHANGED
|
@@ -47,13 +47,12 @@ import { CHANT_EXIT } from "./exit-codes.js";
|
|
|
47
47
|
import { chantGatedLedger, gatedOp } from "./lifecycle/gated-op.js";
|
|
48
48
|
import { gatedRequestAttachmentPath } from "./lifecycle/gated-request-digest.js";
|
|
49
49
|
import { samePlanDigest } from "./lifecycle/plan-digest.js";
|
|
50
|
-
import { NEXT_RELEASE } from "./release-floors.js";
|
|
51
50
|
/** The first chant with the engine-neutral state migration (#4762). */
|
|
52
51
|
export const STATE_MIGRATION_FLOOR = "0.124.77";
|
|
53
52
|
/** The first chant whose migration binds a root's `source` (an engine's `source` read under the locks) and answers `approval-moved`, and whose terraform lexicon plans backend moves (`planTerraformMigration`'s `backends`) and choudoufu estate migrations (`planEstateMigration`) onto it (#4806). */
|
|
54
53
|
export const STATE_MIGRATION_SOURCE_FLOOR = "0.124.86";
|
|
55
54
|
/** The first chant whose `runStateMigration` takes a product's `record`, which the request's attachment binds beside the roots and `chant approve` shows (#4928). */
|
|
56
|
-
export const STATE_MIGRATION_RECORD_FLOOR =
|
|
55
|
+
export const STATE_MIGRATION_RECORD_FLOOR = "0.124.88";
|
|
57
56
|
/** The most a product's migration `record` may take, as canonical JSON in UTF-8 (#4928): a record names moves, retags and stamps, never a state's contents. */
|
|
58
57
|
export const STATE_MIGRATION_RECORD_MAX_BYTES = 64 * 1024;
|
|
59
58
|
/** A product's migration `record` that cannot be bound: not JSON, or over {@link STATE_MIGRATION_RECORD_MAX_BYTES}. Thrown before anything is asked. */
|