@intentius/chant 0.124.70 → 0.124.72
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/ci-agent.d.ts +12 -1
- package/dist/ci-agent.d.ts.map +1 -1
- package/dist/ci-agent.js +13 -8
- package/dist/ci-commit.d.ts +326 -0
- package/dist/ci-commit.d.ts.map +1 -0
- package/dist/ci-commit.js +725 -0
- package/dist/ci-estate/delivery.d.ts +75 -2
- package/dist/ci-estate/delivery.d.ts.map +1 -1
- package/dist/ci-estate/delivery.js +129 -0
- package/dist/ci-estate.d.ts +3 -1
- package/dist/ci-estate.d.ts.map +1 -1
- package/dist/ci-estate.js +4 -1
- package/dist/ci-product-words.d.ts +6 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +3 -1
- package/dist/ci-product.d.ts +1 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +1 -1
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +7 -2
- package/dist/cli/handlers/commit.d.ts +26 -0
- package/dist/cli/handlers/commit.d.ts.map +1 -0
- package/dist/cli/handlers/commit.js +145 -0
- package/dist/cli/handlers/notify-relay.d.ts.map +1 -1
- package/dist/cli/handlers/notify-relay.js +22 -2
- package/dist/cli/handlers/pr.d.ts +6 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +16 -7
- package/dist/cli/handlers/release.d.ts +9 -0
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +114 -5
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +17 -0
- package/dist/components/product-pipeline.d.ts +33 -0
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +34 -1
- package/dist/components/release-compile.d.ts +2 -0
- package/dist/components/release-compile.d.ts.map +1 -1
- package/dist/components/release-compile.js +8 -4
- package/dist/config.d.ts +60 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -0
- package/dist/lexicon.d.ts +54 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lexicon.js +28 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +4 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts.map +1 -1
- package/dist/lifecycle/__fixtures__/publish-fakes.js +6 -2
- package/dist/lifecycle/gated-request.d.ts +3 -1
- package/dist/lifecycle/gated-request.d.ts.map +1 -1
- package/dist/lifecycle/gated-request.js +5 -2
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +57 -0
- package/dist/lifecycle/publish-declaration.d.ts +16 -0
- package/dist/lifecycle/publish-declaration.d.ts.map +1 -1
- package/dist/lifecycle/publish-declaration.js +35 -3
- package/dist/lifecycle/publish-forge.d.ts +12 -0
- package/dist/lifecycle/publish-forge.d.ts.map +1 -1
- package/dist/lifecycle/publish-forge.js +102 -19
- package/dist/lifecycle/publish-npm.d.ts +15 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +28 -1
- package/dist/lifecycle/publish-oci.d.ts +2 -0
- package/dist/lifecycle/publish-oci.d.ts.map +1 -1
- package/dist/lifecycle/publish-oci.js +10 -0
- package/dist/lifecycle/release-cut.d.ts +7 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +8 -1
- package/dist/lifecycle/release-images.d.ts +87 -0
- package/dist/lifecycle/release-images.d.ts.map +1 -0
- package/dist/lifecycle/release-images.js +138 -0
- package/dist/lifecycle/release-publish.d.ts +2 -0
- package/dist/lifecycle/release-publish.d.ts.map +1 -1
- package/dist/notify-relay.d.ts +41 -1
- package/dist/notify-relay.d.ts.map +1 -1
- package/dist/notify-relay.js +40 -0
- package/dist/notify.d.ts +16 -3
- package/dist/notify.d.ts.map +1 -1
- package/dist/notify.js +16 -10
- package/dist/op/activities/review-agent.d.ts.map +1 -1
- package/dist/op/activities/review-agent.js +4 -2
- package/dist/op/gate.d.ts +5 -1
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +7 -2
- package/dist/op/op-waves-notify.d.ts +1 -1
- package/dist/op/op-waves-notify.d.ts.map +1 -1
- package/dist/op/op-waves-notify.js +2 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +12 -8
- package/dist/op/op-waves.d.ts +9 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +11 -0
- package/dist/pr-forge-base.d.ts +18 -0
- package/dist/pr-forge-base.d.ts.map +1 -0
- package/dist/pr-forge-base.js +29 -0
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/wave-runtime.mjs +315 -315
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +1 -2
- package/dist/workspace/release-workflow.d.ts +47 -0
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +258 -14
- package/package.json +1 -1
- package/src/ci-agent.ts +13 -8
- package/src/ci-commit.test.ts +415 -0
- package/src/ci-commit.ts +901 -0
- package/src/ci-estate/__fixtures__/terragucci-dora.json +1305 -0
- package/src/ci-estate/delivery.ts +186 -2
- package/src/ci-estate/records-delivery.test.ts +55 -0
- package/src/ci-estate.ts +10 -0
- package/src/ci-product-words.ts +6 -2
- package/src/ci-product.ts +1 -0
- package/src/cli/handlers/approve.ts +6 -2
- package/src/cli/handlers/commit.ts +155 -0
- package/src/cli/handlers/notify-relay.ts +21 -2
- package/src/cli/handlers/operator.test.ts +2 -0
- package/src/cli/handlers/pr-wave-approve-lines.test.ts +32 -0
- package/src/cli/handlers/pr.ts +17 -7
- package/src/cli/handlers/release.ts +110 -5
- package/src/cli/main.ts +17 -0
- package/src/components/product-pipeline.test.ts +28 -1
- package/src/components/product-pipeline.ts +54 -1
- package/src/components/release-compile.ts +9 -3
- package/src/config.ts +31 -0
- package/src/lexicon.ts +72 -0
- package/src/lifecycle/__fixtures__/publish-fakes.ts +11 -5
- package/src/lifecycle/gated-request-spend.test.ts +115 -0
- package/src/lifecycle/gated-request.ts +5 -2
- package/src/lifecycle/git.ts +53 -0
- package/src/lifecycle/ledger-two-clones.test.ts +132 -0
- package/src/lifecycle/publish-declaration.ts +35 -3
- package/src/lifecycle/publish-forge-notes.test.ts +193 -0
- package/src/lifecycle/publish-forge.ts +100 -22
- package/src/lifecycle/publish-npm.ts +31 -2
- package/src/lifecycle/publish-oci.ts +10 -0
- package/src/lifecycle/publish-targets.test.ts +2 -1
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images.test.ts +242 -0
- package/src/lifecycle/release-images.ts +174 -0
- package/src/lifecycle/release-publish.ts +2 -0
- package/src/notify-relay.test.ts +55 -1
- package/src/notify-relay.ts +49 -1
- package/src/notify.ts +25 -12
- package/src/op/activities/review-agent.test.ts +20 -1
- package/src/op/activities/review-agent.ts +5 -2
- package/src/op/gate.ts +7 -2
- package/src/op/op-waves-approve-target.test.ts +108 -0
- package/src/op/op-waves-notify.ts +2 -2
- package/src/op/op-waves-run.ts +12 -7
- package/src/op/op-waves.ts +12 -0
- package/src/pr-forge-base.test.ts +37 -0
- package/src/pr-forge-base.ts +36 -0
- package/src/release-floors.ts +1 -1
- package/src/workspace/__fixtures__/release-workflow/forgejo-plain-member.yml +26 -0
- package/src/workspace/__fixtures__/release-workflow/forgejo-plain.yml +23 -0
- package/src/workspace/__fixtures__/release-workflow/forgejo-secure-member.yml +27 -0
- package/src/workspace/__fixtures__/release-workflow/forgejo-secure.yml +24 -0
- package/src/workspace/__fixtures__/release-workflow/github-plain-member.yml +26 -0
- package/src/workspace/__fixtures__/release-workflow/github-plain.yml +23 -0
- package/src/workspace/__fixtures__/release-workflow/github-secure-member.yml +27 -0
- package/src/workspace/__fixtures__/release-workflow/github-secure.yml +24 -0
- package/src/workspace/__fixtures__/release-workflow/gitlab-plain-member.yml +13 -0
- package/src/workspace/__fixtures__/release-workflow/gitlab-plain.yml +12 -0
- package/src/workspace/__fixtures__/release-workflow/gitlab-secure-member.yml +14 -0
- package/src/workspace/__fixtures__/release-workflow/gitlab-secure.yml +13 -0
- package/src/workspace/ci-green.ts +1 -2
- package/src/workspace/release-workflow.test.ts +199 -0
- package/src/workspace/release-workflow.ts +356 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify-relay.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/notify-relay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notify-relay.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/notify-relay.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAuE,KAAK,SAAS,EAAqB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEhK,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG;IAAE,QAAQ,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAkBxI;AAYD,kEAAkE;AAClE,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAyE3E;AAED,+DAA+D;AAC/D,wBAAsB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAa1E"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
*
|
|
16
16
|
* Each click fetches `chant/lifecycle`, reads the signers file at base, and
|
|
17
17
|
* records through `recordGateApproval`, one click at a time, so two clicks
|
|
18
|
-
* never race on the ledger.
|
|
18
|
+
* never race on the ledger. A gate that asks a decision point gets its
|
|
19
|
+
* question answered through `answerPoint` instead (#4611).
|
|
19
20
|
*/
|
|
20
21
|
import { activeProductWords } from "../../ci-product-words.js";
|
|
21
22
|
import { CHANT_EXIT } from "../../exit-codes.js";
|
|
@@ -79,10 +80,29 @@ export function checkoutRelayDeps(cwd, principal) {
|
|
|
79
80
|
if (!digestAsked)
|
|
80
81
|
continue;
|
|
81
82
|
const fact = latestPendingGate((await readGateLedger(p.op, { cwd })).pending.filter((f) => f.environment === p.environment), p.gate);
|
|
82
|
-
|
|
83
|
+
const q = fact?.answer;
|
|
84
|
+
out.push({
|
|
85
|
+
op: p.op,
|
|
86
|
+
gate: p.gate,
|
|
87
|
+
digest: digestAsked,
|
|
88
|
+
...(p.environment !== undefined ? { environment: p.environment } : {}),
|
|
89
|
+
...(fact?.request ? { request: fact.request } : {}),
|
|
90
|
+
...(q ? { question: { point: q.point, id: q.id, ...(q.pass ? { pass: q.pass } : {}) } } : {}),
|
|
91
|
+
});
|
|
83
92
|
}
|
|
84
93
|
return out;
|
|
85
94
|
}),
|
|
95
|
+
answer: (input) => one(async () => {
|
|
96
|
+
const { answerPoint } = await import("../../workspace/decide.js");
|
|
97
|
+
const doc = await answerPoint({ cwd, id: input.id, answer: input.answer, by: [input.by], relayedBy: input.relayedBy });
|
|
98
|
+
if ("error" in doc)
|
|
99
|
+
return { ok: false, error: `${doc.error.code}: ${doc.error.message}` };
|
|
100
|
+
if (doc.question.state !== "answered")
|
|
101
|
+
return { ok: false, error: `the question is ${doc.question.state}: ${input.by}'s answer does not settle it on its own` };
|
|
102
|
+
const { pushLifecycleRebasing } = await import("../../lifecycle/git.js");
|
|
103
|
+
await pushLifecycleRebasing({ cwd }).catch(() => undefined);
|
|
104
|
+
return { ok: true };
|
|
105
|
+
}),
|
|
86
106
|
approve: (input) => one(async () => {
|
|
87
107
|
const { recordGateApproval } = await import("./approve.js");
|
|
88
108
|
// chant approve prints why it refused; the relay sends that line to the thread.
|
|
@@ -174,6 +174,12 @@ export declare function runComponentsPrPlan(ctx: CommandContext): Promise<number
|
|
|
174
174
|
export declare function runComponentsPrApply(ctx: CommandContext): Promise<number>;
|
|
175
175
|
/** chant components pr-record --base <ref> [--pr <n>] [--env <env>] [--gate <name>] [--forge <kind>] [--output <dir>] [--json] [--events-json] [--report-url <url>] */
|
|
176
176
|
export declare function runComponentsPrRecord(ctx: CommandContext): Promise<number>;
|
|
177
|
+
/** A waiting wave's or round's approve lines (#4574): one per component when the product's template names `{target}`, as the note names them (#4601). */
|
|
178
|
+
export declare function waveApproveLines(op: string, env: string, w: {
|
|
179
|
+
gate: string;
|
|
180
|
+
digest: string;
|
|
181
|
+
components: readonly string[];
|
|
182
|
+
}): string;
|
|
177
183
|
/**
|
|
178
184
|
* `chant components plan-wave --runs <file> --plans <file> --base <ref>
|
|
179
185
|
* --env <env> [--member <m>] [--wave-outputs <file>]` (#4588): the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAOH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAI7F,OAAO,EACL,UAAU,EAUV,KAAK,SAAS,EACf,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAA0C,KAAK,YAAY,EAAuB,MAAM,wBAAwB,CAAC;AAIxH,OAAO,EAYL,KAAK,aAAa,EAGlB,KAAK,cAAc,EAKpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAA+D,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAY3G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAqE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAClI,OAAO,EAA6D,KAA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AAI,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAErH;AAkOD,mKAAmK;AACnK,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAGxE;AAqJD,8NAA8N;AAC9N,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBzE;AAkfD,uKAAuK;AACvK,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAG1E;AAgVD,yJAAyJ;AACzJ,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAGpI;AA+oBD;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMhF;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjF;AA6LD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsC9E"}
|
package/dist/cli/handlers/pr.js
CHANGED
|
@@ -1274,7 +1274,7 @@ async function prApply(ctx, stage, beforeMerge) {
|
|
|
1274
1274
|
members: applied.members,
|
|
1275
1275
|
...(resumed ? { resumed: resumed.completed } : {}),
|
|
1276
1276
|
...(applied.rounds ? { rounds: applied.rounds } : {}),
|
|
1277
|
-
...(applied.held ? { message: applied.held } : applied.leaseFailed ? { message: applied.leaseFailed } : applied.status === "waiting" ? { message: waitingMessage(op, applied.rounds) } : {}),
|
|
1277
|
+
...(applied.held ? { message: applied.held } : applied.leaseFailed ? { message: applied.leaseFailed } : applied.status === "waiting" ? { message: waitingMessage(op, p.env, applied.rounds) } : {}),
|
|
1278
1278
|
});
|
|
1279
1279
|
// A component that stopped at a gate of its own leaves the apply waiting on
|
|
1280
1280
|
// a person. A step that refused its plan because the target moved since
|
|
@@ -1675,11 +1675,13 @@ async function decideApplyGate(p, at) {
|
|
|
1675
1675
|
console.error(formatInfo(`the merged changes' approvals do not cover the plan at ${green.commit.slice(0, 12)}: ${uncovered.join("; ")}`));
|
|
1676
1676
|
}
|
|
1677
1677
|
const digest = set.doc.digest;
|
|
1678
|
+
// #4574: the members fill a product's {target}, one line each, as the note names them (#4601).
|
|
1679
|
+
const approve = prApproveCommands({ op, gate: p.gate, digest, env: p.env, ...(p.member ? { member: p.member } : {}), members: set.members }).join("; ");
|
|
1678
1680
|
const check = await emitGateStep(events?.emit, { op, gate: p.gate }, () => decidePrGate(gitGateLedgerPort(), { op, gate: p.gate, digest, description: `${changeLabel(pr, green)}: ${p.plan.order.join(", ")}` }), (unapproved) => {
|
|
1679
1681
|
const a = approvalOf(unapproved);
|
|
1680
1682
|
return a.status === "changed"
|
|
1681
1683
|
? describePlanChanged({ op, gate: p.gate, digest, approval: a })
|
|
1682
|
-
: `No approval stands for this plan. Approve it: ${
|
|
1684
|
+
: `No approval stands for this plan. Approve it: ${approve}`;
|
|
1683
1685
|
});
|
|
1684
1686
|
const approval = approvalOf(check);
|
|
1685
1687
|
if (check.satisfied)
|
|
@@ -1691,7 +1693,7 @@ async function decideApplyGate(p, at) {
|
|
|
1691
1693
|
approval,
|
|
1692
1694
|
satisfied: false,
|
|
1693
1695
|
refusal: "not-approved",
|
|
1694
|
-
message: `No approval stands for this plan, so nothing was applied.${why} Approve it: ${
|
|
1696
|
+
message: `No approval stands for this plan, so nothing was applied.${why} Approve it: ${approve}; then run the apply again.`,
|
|
1695
1697
|
};
|
|
1696
1698
|
}
|
|
1697
1699
|
/**
|
|
@@ -1826,14 +1828,19 @@ function reviewCheck(args, p, pr, authorsOnly = false) {
|
|
|
1826
1828
|
return undefined;
|
|
1827
1829
|
};
|
|
1828
1830
|
}
|
|
1831
|
+
/** A waiting wave's or round's approve lines (#4574): one per component when the product's template names `{target}`, as the note names them (#4601). */
|
|
1832
|
+
export function waveApproveLines(op, env, w) {
|
|
1833
|
+
const targets = activeProductWords().approve.includes("{target}") ? (w.components.length > 0 ? w.components : [env]) : [undefined];
|
|
1834
|
+
return targets.map((target) => prApproveCommand({ op, gate: w.gate, digest: w.digest, ...(target !== undefined ? { target } : {}) })).join("; ");
|
|
1835
|
+
}
|
|
1829
1836
|
/** What a `waiting` apply prints (#3999): the round's gate and digest to approve, and how to carry on. */
|
|
1830
|
-
function waitingMessage(op, rounds) {
|
|
1837
|
+
function waitingMessage(op, env, rounds) {
|
|
1831
1838
|
const last = rounds?.at(-1);
|
|
1832
1839
|
if (!last)
|
|
1833
1840
|
return "Some members were held back after an upstream applied.";
|
|
1834
1841
|
return (`${last.components.join(", ")} ${last.components.length === 1 ? "was" : "were"} planned again after an upstream applied, ` +
|
|
1835
1842
|
`and no approval stands for that plan (${last.digest}), so ${last.components.length === 1 ? "it" : "they"} did not apply. ` +
|
|
1836
|
-
`Approve it: ${
|
|
1843
|
+
`Approve it: ${waveApproveLines(op, env, last)}; then run the apply again with the same --resume record.`);
|
|
1837
1844
|
}
|
|
1838
1845
|
/** What a component's settle says in the job log. */
|
|
1839
1846
|
function settleWords(body) {
|
|
@@ -2295,7 +2302,8 @@ async function prApplyWaves(ctx, p, at) {
|
|
|
2295
2302
|
// #4003: the wave's new plan beside the report, for whoever approves its gate.
|
|
2296
2303
|
if (ran.changeSet)
|
|
2297
2304
|
writeWaveChangeSet(ctx, k, ran.changeSet, upload);
|
|
2298
|
-
|
|
2305
|
+
// #4574: the wave's components fill a product's {target}, as the note names them (#4601).
|
|
2306
|
+
const approveLine = waveApproveLines(op, p.env, entry);
|
|
2299
2307
|
const message = ran.exitCode === CHANT_EXIT.moved
|
|
2300
2308
|
? `Wave ${k}'s plan changed after its approval, so nothing in it was applied.${entry.approved ? ` approved: ${entry.approved}; planned now: ${entry.digest}.` : ""} Read the new plan, and if it is right, approve it: ${approveLine}; then run the wave's apply again.`
|
|
2301
2309
|
: `Wave ${k} was planned after the waves before it applied, and the pull request's approved plan does not cover it${entry.moved?.length ? `: ${entry.moved.join("; ")}` : ""}. ` +
|
|
@@ -2652,7 +2660,8 @@ async function runComponentWave(p, at) {
|
|
|
2652
2660
|
// A wave that waits at its own gate is the stream's gate step there, as before op waves (#4003).
|
|
2653
2661
|
if (d && !byPullRequest && (exitCode === CHANT_EXIT.waiting || exitCode === CHANT_EXIT.moved)) {
|
|
2654
2662
|
const waiting = { satisfied: false, pending: { op: at.op }, ...(d.mismatch ? { mismatch: d.mismatch } : {}) };
|
|
2655
|
-
|
|
2663
|
+
const approve = waveApproveLines(at.op, p.env, { gate: d.gate, digest: d.digest, components: at.runs });
|
|
2664
|
+
await emitGateStep(at.events?.emit, { op: at.op, gate: d.gate }, async () => waiting, () => d.mismatch ? `wave ${at.k}'s plan changed after its approval. Approve the plan now: ${approve}` : `wave ${at.k}'s plan is not the one the pull request approved. Approve it: ${approve}`);
|
|
2656
2665
|
}
|
|
2657
2666
|
const read = readWaveOutputs(at.outputsFile);
|
|
2658
2667
|
let changeSet;
|
|
@@ -52,6 +52,15 @@ export declare function nextCommands(req: {
|
|
|
52
52
|
}): string[];
|
|
53
53
|
/** The command line that ran, without `--json`, with `--yes` added: what a dry run says to run next. */
|
|
54
54
|
export declare function sameWithYes(argv: readonly string[]): string;
|
|
55
|
+
/**
|
|
56
|
+
* `release images <label|digest> [-o <file>] [--json]` (#4657): build the
|
|
57
|
+
* images the release recorded again, from the release's commit checked out
|
|
58
|
+
* here, refuse an archive whose digest is not the recorded one, and write the
|
|
59
|
+
* recorded digests to the file the package build reads through
|
|
60
|
+
* `CHANT_RELEASE_DIGESTS` (default `.chant/release-digests.json`). The
|
|
61
|
+
* publish job runs it before the build that packs the package.
|
|
62
|
+
*/
|
|
63
|
+
export declare function runReleaseImages(ctx: CommandContext): Promise<number>;
|
|
55
64
|
/**
|
|
56
65
|
* `release cut [<label>]` (#4026, #4027). A dry run unless `--yes`: it
|
|
57
66
|
* refuses a dirty tree, a commit that is not on trunk and pushed, and one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyBlD,0HAA0H;AAC1H,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uFAAuF;IACvF,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,EAAE,CASX;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAG3D;AA8BD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+C3E;AAiBD;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsTxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6G5E;AASD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwC3E;AAYD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkD/E;AAED,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmCzE;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC3E;AAED,gHAAgH;AAChH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5E;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsD5E"}
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
*/
|
|
43
43
|
import { execFileSync } from "node:child_process";
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
45
|
-
import {
|
|
45
|
+
import { tmpdir } from "node:os";
|
|
46
|
+
import { join, relative, resolve } from "node:path";
|
|
46
47
|
import { formatBold, formatError, formatSuccess, formatWarning } from "../format.js";
|
|
47
48
|
import { parseParamFlags } from "../build-params-cli.js";
|
|
48
|
-
const USAGE = "chant release cut [<label>] [--at <sha>] [--yes] [--build <command>] [--param <k=v>] [--image <component>=<repository>@sha256:<hex>] [--params-file <file>] [--src <dir>] [-o <file>] [--lexicon <name>] [--actor <name>] [--sign [<key file>]] [--channel <tag>] [--lane <name>] [--override-green] [--json] | release publish <label|digest> [--yes] [--allow-unsigned] [--require-provenance] [--json] | release verify <label|digest> [--json] | release candidates [--env <env>] [--lane <name>] [--forge-issues] [--json] | release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json] | release list [--json] | release export <label|digest> --env <env> [-o <dir>] [--json]";
|
|
49
|
+
const USAGE = "chant release cut [<label>] [--at <sha>] [--yes] [--build <command>] [--param <k=v>] [--image <component>=<repository>@sha256:<hex>] [--params-file <file>] [--src <dir>] [-o <file>] [--lexicon <name>] [--actor <name>] [--sign [<key file>]] [--channel <tag>] [--lane <name>] [--override-green] [--json] | release publish <label|digest> [--yes] [--allow-unsigned] [--require-provenance] [--json] | release verify <label|digest> [--json] | release images <label|digest> [-o <file>] [--json] | release candidates [--env <env>] [--lane <name>] [--forge-issues] [--json] | release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json] | release list [--json] | release export <label|digest> --env <env> [-o <dir>] [--json]";
|
|
49
50
|
/** The build inputs `release cut` and `release compile` share. */
|
|
50
51
|
function compileInputs(ctx, params, projectDir = resolve("."), releaseLabel) {
|
|
51
52
|
const { args } = ctx;
|
|
@@ -96,6 +97,77 @@ async function laneOf(ctx, cwd) {
|
|
|
96
97
|
return undefined;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
100
|
+
/** The member's `release.images` (#4657), or none when the config declares none. */
|
|
101
|
+
async function releaseImagesOf(cwd) {
|
|
102
|
+
const { loadChantConfig } = await import("../../config.js");
|
|
103
|
+
return (await loadChantConfig(cwd)).config.release?.images ?? [];
|
|
104
|
+
}
|
|
105
|
+
/** A commit's time in seconds, the `SOURCE_DATE_EPOCH` a release's image builds run with (#4657). */
|
|
106
|
+
function commitTime(cwd, commit) {
|
|
107
|
+
return Number(execFileSync("git", ["show", "-s", "--format=%ct", commit], { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim());
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* `release images <label|digest> [-o <file>] [--json]` (#4657): build the
|
|
111
|
+
* images the release recorded again, from the release's commit checked out
|
|
112
|
+
* here, refuse an archive whose digest is not the recorded one, and write the
|
|
113
|
+
* recorded digests to the file the package build reads through
|
|
114
|
+
* `CHANT_RELEASE_DIGESTS` (default `.chant/release-digests.json`). The
|
|
115
|
+
* publish job runs it before the build that packs the package.
|
|
116
|
+
*/
|
|
117
|
+
export async function runReleaseImages(ctx) {
|
|
118
|
+
const { args } = ctx;
|
|
119
|
+
const ref = args.extraPositional;
|
|
120
|
+
const fail = (code, message, fix) => {
|
|
121
|
+
if (args.json)
|
|
122
|
+
console.log(JSON.stringify({ ref: ref ?? null, error: { code, message, ...(fix ? { fix } : {}) } }, null, 2));
|
|
123
|
+
else
|
|
124
|
+
console.error(formatError({ message: `${message} [${code}]`, ...(fix ? { hint: fix } : {}) }));
|
|
125
|
+
return 1;
|
|
126
|
+
};
|
|
127
|
+
if (!ref)
|
|
128
|
+
return fail("release-not-named", "release images needs a release, by label or digest", USAGE);
|
|
129
|
+
const cwd = resolve(".");
|
|
130
|
+
const { resolveRelease } = await import("../../lifecycle/release-store.js");
|
|
131
|
+
const { buildReleaseImages, releaseImageDigests, writeReleaseDigests, ReleaseImageError, RELEASE_DIGESTS_ENV } = await import("../../lifecycle/release-images.js");
|
|
132
|
+
const { ociArchiveDigest } = await import("../../lifecycle/publish-oci.js");
|
|
133
|
+
const { getHeadCommit } = await import("../../lifecycle/git.js");
|
|
134
|
+
const found = await resolveRelease(ref, { cwd });
|
|
135
|
+
if (!found)
|
|
136
|
+
return fail("release-not-found", `no release is labelled or digested "${ref}" in this member`, "Fetch chant/lifecycle (git fetch origin chant/lifecycle:chant/lifecycle), then list them with: chant release list");
|
|
137
|
+
const { release, label } = found;
|
|
138
|
+
const head = await getHeadCommit({ cwd });
|
|
139
|
+
if (head !== release.commit)
|
|
140
|
+
return fail("release-images-wrong-commit", `the release was cut from ${release.commit.slice(0, 12)}, and this checkout is at ${head.slice(0, 12)}, so its images would not be the release's`, `Check out the release's commit: git checkout ${release.commit}`);
|
|
141
|
+
const declared = await releaseImagesOf(cwd);
|
|
142
|
+
const recorded = releaseImageDigests(release, declared.map((d) => d.name));
|
|
143
|
+
const missing = declared.filter((d) => recorded[d.name] === undefined).map((d) => d.name);
|
|
144
|
+
if (missing.length > 0)
|
|
145
|
+
return fail("release-image-not-recorded", `release.images names ${missing.join(", ")}, which release ${release.releaseDigest} does not record`, "Cut a new release, so its cut builds every image the config declares.");
|
|
146
|
+
let built;
|
|
147
|
+
try {
|
|
148
|
+
built = buildReleaseImages({ images: declared, cwd, sourceDateEpoch: commitTime(cwd, release.commit), label, archiveDigest: ociArchiveDigest });
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
if (err instanceof ReleaseImageError)
|
|
152
|
+
return fail(err.code, err.message, err.fix);
|
|
153
|
+
throw err;
|
|
154
|
+
}
|
|
155
|
+
const differ = built.filter((a) => recorded[a.component] !== a.digest);
|
|
156
|
+
if (differ.length > 0) {
|
|
157
|
+
return fail("release-image-digest-mismatch", differ.map((a) => `image "${a.component}" built to ${a.digest}, and the release records ${recorded[a.component]}`).join("; "), "An image build must write the same archive from the same commit: set SOURCE_DATE_EPOCH-aware timestamps (rewrite-timestamp=true), and remove logs and caches from its layers.");
|
|
158
|
+
}
|
|
159
|
+
const file = resolve(cwd, args.output ?? ".chant/release-digests.json");
|
|
160
|
+
writeReleaseDigests(file, recorded);
|
|
161
|
+
if (args.json)
|
|
162
|
+
console.log(JSON.stringify({ releaseDigest: release.releaseDigest, label, digests: recorded, file }, null, 2));
|
|
163
|
+
else {
|
|
164
|
+
for (const [name, digest] of Object.entries(recorded))
|
|
165
|
+
console.error(` ${name} ${digest}`);
|
|
166
|
+
console.error(formatSuccess(`Built ${built.length} image(s) to the digests release ${label ?? release.releaseDigest} records, and wrote them to ${relative(cwd, file) || file}`));
|
|
167
|
+
console.log(`${RELEASE_DIGESTS_ENV}=${file}`);
|
|
168
|
+
}
|
|
169
|
+
return 0;
|
|
170
|
+
}
|
|
99
171
|
function describeActorSource(source) {
|
|
100
172
|
switch (source) {
|
|
101
173
|
case "flag":
|
|
@@ -255,7 +327,26 @@ export async function runReleaseCut(ctx) {
|
|
|
255
327
|
if (args.at !== undefined && top && commit)
|
|
256
328
|
checkout = at.checkoutCommit(top, cwd, commit);
|
|
257
329
|
const cutCwd = checkout?.memberDir ?? cwd;
|
|
258
|
-
|
|
330
|
+
// #4657: the images release.images declares are built first, and their digests handed to the build command.
|
|
331
|
+
const declaredImages = await releaseImagesOf(cutCwd);
|
|
332
|
+
const digestsFile = declaredImages.length > 0 ? join(tmpdir(), `chant-release-digests-${process.pid}.json`) : undefined;
|
|
333
|
+
const compiler = spawnTargetCompiler({ ...compileInputs(ctx, params, cutCwd, label), ...(digestsFile ? { releaseDigests: digestsFile } : {}) });
|
|
334
|
+
const buildImages = digestsFile
|
|
335
|
+
? async (at) => {
|
|
336
|
+
const { buildReleaseImages, writeReleaseDigests, ReleaseImageError } = await import("../../lifecycle/release-images.js");
|
|
337
|
+
const { ociArchiveDigest } = await import("../../lifecycle/publish-oci.js");
|
|
338
|
+
try {
|
|
339
|
+
const built = buildReleaseImages({ images: declaredImages, cwd: cutCwd, sourceDateEpoch: commitTime(cutCwd, at), label, archiveDigest: ociArchiveDigest });
|
|
340
|
+
writeReleaseDigests(digestsFile, Object.fromEntries(built.map((a) => [a.component, a.digest])));
|
|
341
|
+
return built;
|
|
342
|
+
}
|
|
343
|
+
catch (err) {
|
|
344
|
+
const code = err instanceof ReleaseImageError ? err.code : err.code;
|
|
345
|
+
const fix = err instanceof ReleaseImageError ? err.fix : undefined;
|
|
346
|
+
throw new ReleaseCutError(code === "release-image-name-taken" ? "release-image-name-taken" : "release-image-build-failed", `no release was cut: ${err.message}`, fix);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
: undefined;
|
|
259
350
|
// #4692: the lane is the commit's own config's under --at.
|
|
260
351
|
const lane = await laneOf(ctx, cutCwd);
|
|
261
352
|
const request = {
|
|
@@ -269,6 +360,7 @@ export async function runReleaseCut(ctx) {
|
|
|
269
360
|
...(lane !== undefined ? { lane } : {}),
|
|
270
361
|
...(args.overrideGreen ? { overrideGreen: true } : {}),
|
|
271
362
|
...(Object.keys(images).length > 0 ? { images } : {}),
|
|
363
|
+
...(buildImages ? { buildImages } : {}),
|
|
272
364
|
};
|
|
273
365
|
if (dryRun) {
|
|
274
366
|
const plan = await planRelease(request);
|
|
@@ -576,6 +668,8 @@ export async function runReleasePublish(ctx) {
|
|
|
576
668
|
/** One item a target publishes, for a line: what, where, and the SBOM or attachment it is (#4049). */
|
|
577
669
|
function describeItem(i) {
|
|
578
670
|
const what = i.attachment === "sbom" ? `${i.name} (SBOM)` : i.attachment === "provenance" ? `${i.name} (provenance)` : i.name;
|
|
671
|
+
if (i.notes !== undefined)
|
|
672
|
+
return `${i.name} to ${i.destination}:\n${i.notes.trimEnd().split("\n").map((l) => ` ${l}`.trimEnd()).join("\n")}`;
|
|
579
673
|
return `${what} to ${i.destination}${i.sbom ? `, carrying ${i.sbom}` : ""}`;
|
|
580
674
|
}
|
|
581
675
|
/**
|
|
@@ -600,7 +694,13 @@ export async function runReleaseVerify(ctx) {
|
|
|
600
694
|
console.error(formatError({ message: `${result.error.message} [${result.error.code}]`, ...(result.error.fix ? { hint: result.error.fix } : {}) }));
|
|
601
695
|
return 1;
|
|
602
696
|
}
|
|
603
|
-
|
|
697
|
+
let code = verificationCode(result);
|
|
698
|
+
// #4657: a package built here that pins an image digest the release does not record fails the check.
|
|
699
|
+
const pins = code ? null : await unknownPackagePins(resolve("."), result.releaseDigest);
|
|
700
|
+
if (pins) {
|
|
701
|
+
code = "release-pin-unknown";
|
|
702
|
+
result.reason = pins;
|
|
703
|
+
}
|
|
604
704
|
if (args.json) {
|
|
605
705
|
console.log(JSON.stringify({ ...result, ...(code ? { error: { code, message: result.reason } } : {}) }, null, 2));
|
|
606
706
|
return code ? 1 : 0;
|
|
@@ -612,13 +712,22 @@ export async function runReleaseVerify(ctx) {
|
|
|
612
712
|
if (code) {
|
|
613
713
|
console.error(formatError({
|
|
614
714
|
message: `${name} does not verify: ${result.reason} [${code}]`,
|
|
615
|
-
hint: code === "release-digest-mismatch" ? "Do not publish or deploy it; cut the release again." : `Cut it again signed with a key ${result.signers.path} lists: chant release cut ${result.label ?? "<label>"} --sign --yes`,
|
|
715
|
+
hint: code === "release-digest-mismatch" ? "Do not publish or deploy it; cut the release again." : code === "release-pin-unknown" ? "Build the package from the digests the release records: chant release images <label>, then the build with CHANT_RELEASE_DIGESTS set." : `Cut it again signed with a key ${result.signers.path} lists: chant release cut ${result.label ?? "<label>"} --sign --yes`,
|
|
616
716
|
}));
|
|
617
717
|
return 1;
|
|
618
718
|
}
|
|
619
719
|
console.error(formatSuccess(`Verified ${name}: ${result.reason}`));
|
|
620
720
|
return 0;
|
|
621
721
|
}
|
|
722
|
+
/** The first package built here that pins an image digest release `digest` does not record (#4657), said in a sentence, or null. */
|
|
723
|
+
async function unknownPackagePins(cwd, digest) {
|
|
724
|
+
const { loadChantConfig } = await import("../../config.js");
|
|
725
|
+
const { readRelease } = await import("../../lifecycle/release-store.js");
|
|
726
|
+
const { packagePinProblem } = await import("../../lifecycle/release-images.js");
|
|
727
|
+
const targets = (await loadChantConfig(cwd).catch(() => null))?.config.release?.publish ?? [];
|
|
728
|
+
const release = await readRelease(digest, { cwd });
|
|
729
|
+
return release ? packagePinProblem(cwd, release, targets) : null;
|
|
730
|
+
}
|
|
622
731
|
/**
|
|
623
732
|
* `release candidates [--env <env>] [--forge-issues] [--json]` (#4168 4.2):
|
|
624
733
|
* the green commits of trunk a release can be cut from, newest first, each
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AA+rDzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,qBAAqB,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,2BAA2B,EAAE,eAAe,CAAA;CAAO,GAC7K,OAAO,CAAC,MAAM,CAAC,CAuCjB;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAwQvC,CAAC"}
|
package/dist/cli/main.js
CHANGED
|
@@ -513,6 +513,11 @@ Releases:
|
|
|
513
513
|
release verify <label|digest> [--json]
|
|
514
514
|
Check, offline, that the release was signed by a key
|
|
515
515
|
.chant/allowed_signers lists at the release's commit.
|
|
516
|
+
release images <label|digest> [-o <file>] [--json]
|
|
517
|
+
Build the images release.images declares again from
|
|
518
|
+
the release's commit, refuse one whose digest is not
|
|
519
|
+
the recorded one, and write the recorded digests to
|
|
520
|
+
the file CHANT_RELEASE_DIGESTS names for the build.
|
|
516
521
|
release workflow [--forge github|gitlab|forgejo] [--install <command>]
|
|
517
522
|
[--build <command>] [--chant <command>] [--output <file>]
|
|
518
523
|
Write the publish workflow, run on a release/** tag.
|
|
@@ -1295,6 +1300,13 @@ Component release ledger + status:
|
|
|
1295
1300
|
runs the model command with no forge token, land
|
|
1296
1301
|
pushes the change, opens or updates the pull
|
|
1297
1302
|
request and records the run (--forge <kind>)
|
|
1303
|
+
commit prepare|run|land The commit jobs (#4722) the Op generator writes for
|
|
1304
|
+
a spec's commit: prepare decides from the comment or
|
|
1305
|
+
the failed check, the ledger's run count and the
|
|
1306
|
+
head's approvals, run runs the product's command
|
|
1307
|
+
with no forge token, land pushes the change to the
|
|
1308
|
+
pull request's branch and records the run
|
|
1309
|
+
(--forge <kind>)
|
|
1298
1310
|
components pr-env An environment per open pull request (#4298): up
|
|
1299
1311
|
--base <ref> --pr <n> applies the change to pr-<n>,
|
|
1300
1312
|
derived from ci.prEnvironment.template, once an
|
|
@@ -1857,6 +1869,8 @@ export const commandRegistry = [
|
|
|
1857
1869
|
{ name: "release publish", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleasePublish(ctx) },
|
|
1858
1870
|
// #4049: check a release's signature offline.
|
|
1859
1871
|
{ name: "release verify", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseVerify(ctx) },
|
|
1872
|
+
// #4657: build a release's images again in its publish job, checked against the digests it records.
|
|
1873
|
+
{ name: "release images", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseImages(ctx) },
|
|
1860
1874
|
{ name: "release workflow", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/release-workflow.js")).runReleaseWorkflow(ctx) },
|
|
1861
1875
|
// #4168 4.3: mode (b), chosen changes composed onto a base on chant/compose/<name>.
|
|
1862
1876
|
{ name: "release compose", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseCompose(ctx) },
|
|
@@ -2012,6 +2026,9 @@ export const commandRegistry = [
|
|
|
2012
2026
|
{ name: "agent prepare", handler: async (ctx) => (await import("./handlers/agent.js")).runAgentCommandLine(ctx) },
|
|
2013
2027
|
{ name: "agent run", handler: async (ctx) => (await import("./handlers/agent.js")).runAgentCommandLine(ctx) },
|
|
2014
2028
|
{ name: "agent land", handler: async (ctx) => (await import("./handlers/agent.js")).runAgentCommandLine(ctx) },
|
|
2029
|
+
{ name: "commit prepare", handler: async (ctx) => (await import("./handlers/commit.js")).runCommitCommandLine(ctx) },
|
|
2030
|
+
{ name: "commit run", handler: async (ctx) => (await import("./handlers/commit.js")).runCommitCommandLine(ctx) },
|
|
2031
|
+
{ name: "commit land", handler: async (ctx) => (await import("./handlers/commit.js")).runCommitCommandLine(ctx) },
|
|
2015
2032
|
{ name: "components pr-env", requiresPlugins: true, handler: async (ctx) => (await import("./handlers/pr-env.js")).runComponentsPrEnv(ctx) },
|
|
2016
2033
|
{ name: "components status", requiresPlugins: true, handler: runComponentsStatus },
|
|
2017
2034
|
{ name: "components release", handler: runComponentsReleaseRecord },
|
|
@@ -29,6 +29,7 @@ import type { DriverComponent } from "./driver.js";
|
|
|
29
29
|
import type { ScheduledOpSpec } from "../lexicon.js";
|
|
30
30
|
import type { CiRunner } from "../ci-jobs.js";
|
|
31
31
|
import { type OpAgentSpec } from "../ci-agent.js";
|
|
32
|
+
import { type OpCommitSpec } from "../ci-commit.js";
|
|
32
33
|
import type { CiResponses } from "../ci-respond.js";
|
|
33
34
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
34
35
|
export declare const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
@@ -55,6 +56,15 @@ export interface ProductPipelineOptions extends Omit<PrLoopPipelineOptions, "wor
|
|
|
55
56
|
* scheduled Ops.
|
|
56
57
|
*/
|
|
57
58
|
agent?: boolean | ProductAgentOptions;
|
|
59
|
+
/**
|
|
60
|
+
* The product's commit jobs (#4722) that answer a comment: each one's
|
|
61
|
+
* `word` maps onto `commit` in the words, and `/<product> <word>` runs its
|
|
62
|
+
* command on the pull request's head and pushes the change. The pipeline
|
|
63
|
+
* returns each one's Op spec, which the product writes and generates as
|
|
64
|
+
* it does the agent's. A commit job after a check rides on the check's own
|
|
65
|
+
* Op spec instead ({@link productCheckCommit}).
|
|
66
|
+
*/
|
|
67
|
+
commits?: ProductCommitOptions[];
|
|
58
68
|
/**
|
|
59
69
|
* The product answers its `action` command (#4654) from a workflow of its
|
|
60
70
|
* own, such as terragucci's action workflow: `true` counts the command as
|
|
@@ -164,6 +174,12 @@ export interface ProductPipelineJobs {
|
|
|
164
174
|
name: string;
|
|
165
175
|
spec: ScheduledOpSpec;
|
|
166
176
|
};
|
|
177
|
+
/** The comment commit jobs (#4722), with `commits`: each one's comment, `/<product> <word>`, and the Op spec whose generated workflow runs it. */
|
|
178
|
+
commits?: Array<{
|
|
179
|
+
comment: string;
|
|
180
|
+
name: string;
|
|
181
|
+
spec: ScheduledOpSpec;
|
|
182
|
+
}>;
|
|
167
183
|
/**
|
|
168
184
|
* The action job (#4654), with `actionJob`: the comment and the dispatch
|
|
169
185
|
* inputs it answers, and the product's action verb it runs. The GitHub and
|
|
@@ -180,6 +196,23 @@ export interface ProductAgentOptions extends Omit<OpAgentSpec, "on" | "comment"
|
|
|
180
196
|
/** Where its jobs run. */
|
|
181
197
|
runner?: CiRunner;
|
|
182
198
|
}
|
|
199
|
+
/** A comment commit job as a product passes it (#4722): {@link OpCommitSpec} without the trigger, with the word it answers. */
|
|
200
|
+
export interface ProductCommitOptions extends Omit<OpCommitSpec, "on" | "comment" | "findings" | "gitlabCheck"> {
|
|
201
|
+
/** The word after `/<product>`, which the words map onto `commit`: `fmt` for `/terragucci fmt`. */
|
|
202
|
+
word: string;
|
|
203
|
+
/** The job's name: its workflow, its jobs and its runs on the ledger. Default `<product>-<word>`. */
|
|
204
|
+
name?: string;
|
|
205
|
+
runner?: CiRunner;
|
|
206
|
+
}
|
|
207
|
+
/** A comment commit job's Op spec (#4722). The settings are checked here, so a product finds a bad one when it generates. */
|
|
208
|
+
export declare function productCommitSpec(wordsIn: CiProductWordsInput | CiProductWords, options: ProductCommitOptions): ScheduledOpSpec;
|
|
209
|
+
/**
|
|
210
|
+
* The `commit` of a check's Op spec (#4722): after the check's run exits
|
|
211
|
+
* with one of `findings` on a pull request, the command runs on the head
|
|
212
|
+
* and its change is pushed to the pull request's branch. The check's spec
|
|
213
|
+
* needs a `pull_request` trigger.
|
|
214
|
+
*/
|
|
215
|
+
export declare function productCheckCommit(wordsIn: CiProductWordsInput | CiProductWords, op: string, options: Omit<OpCommitSpec, "on" | "comment">): OpCommitSpec;
|
|
183
216
|
/** The agent's Op spec for `/<product> agent <ask>` (#4616). The settings are checked here, so a product finds a bad one when it generates. */
|
|
184
217
|
export declare function productAgentSpec(wordsIn: CiProductWordsInput | CiProductWords, comment: string, options?: ProductAgentOptions): ScheduledOpSpec;
|
|
185
218
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/product-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAgE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChI,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA4H,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACxQ,OAAO,KAAK,EAAE,eAAe,EAA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OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,GAAG,kBAAkB,CAaxF;AAED,uFAAuF;AACvF,MAAM,WAAW,yBAAyB;IACxC,4HAA4H;IAC5H,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yHAAyH;IACzH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gHAAgH;IAChH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAC;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,SAAS,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,WAAW,CAAC,EAAE,EAClE,OAAO,EAAE,mBAAmB,GAAG,cAAc,EAC7C,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,yBAA8B,GACtC,WAAW,CAuBb;AAED,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1E"}
|
|
@@ -26,12 +26,36 @@ import { controlNoteCheckout } from "../control/dispatch.js";
|
|
|
26
26
|
import { assertProductWords, CHANT_WORDS, commentLine, } from "../ci-product-words.js";
|
|
27
27
|
import { prActionJob, prCommentLockJobs, prCommentPreviewJob, prLoopJobs, prLoopPostJob, prLoopRunner, prStaleJob, withProductBin } from "./pr-pipeline.js";
|
|
28
28
|
import { resolveAgentSpec } from "../ci-agent.js";
|
|
29
|
+
import { resolveCommitSpec } from "../ci-commit.js";
|
|
29
30
|
/** Where the generator writes a product's waves spec, which chant reads at base (#4550). */
|
|
30
31
|
export const PRODUCT_WAVES_SPEC_DIR = ".chant/op-waves";
|
|
31
32
|
/** The waves spec file of op `name`: `.chant/op-waves/<name>.spec.json`. */
|
|
32
33
|
export function productWavesSpecFile(name) {
|
|
33
34
|
return `${PRODUCT_WAVES_SPEC_DIR}/${name}.spec.json`;
|
|
34
35
|
}
|
|
36
|
+
/** A comment commit job's Op spec (#4722). The settings are checked here, so a product finds a bad one when it generates. */
|
|
37
|
+
export function productCommitSpec(wordsIn, options) {
|
|
38
|
+
const words = assertProductWords(wordsIn);
|
|
39
|
+
const { word, name: given, runner, ...settings } = options;
|
|
40
|
+
if (words.commands[word] !== "commit")
|
|
41
|
+
throw new Error(`the commit job's word ${JSON.stringify(word)} is not a command the words map onto commit`);
|
|
42
|
+
const name = given ?? `${words.product}-${word}`;
|
|
43
|
+
const commit = { on: "comment", comment: `/${words.product} ${word}`, ...settings };
|
|
44
|
+
resolveCommitSpec(name, commit, words.product);
|
|
45
|
+
return { name, trigger: { kind: "pull_request" }, commit, ...(runner !== undefined ? { runner } : {}) };
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The `commit` of a check's Op spec (#4722): after the check's run exits
|
|
49
|
+
* with one of `findings` on a pull request, the command runs on the head
|
|
50
|
+
* and its change is pushed to the pull request's branch. The check's spec
|
|
51
|
+
* needs a `pull_request` trigger.
|
|
52
|
+
*/
|
|
53
|
+
export function productCheckCommit(wordsIn, op, options) {
|
|
54
|
+
const words = assertProductWords(wordsIn);
|
|
55
|
+
const commit = { on: "check", ...options };
|
|
56
|
+
resolveCommitSpec(op, commit, words.product);
|
|
57
|
+
return commit;
|
|
58
|
+
}
|
|
35
59
|
/** The agent's Op spec for `/<product> agent <ask>` (#4616). The settings are checked here, so a product finds a bad one when it generates. */
|
|
36
60
|
export function productAgentSpec(wordsIn, comment, options = {}) {
|
|
37
61
|
const words = assertProductWords(wordsIn);
|
|
@@ -83,6 +107,8 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
83
107
|
jobs.push("lock", "unlock");
|
|
84
108
|
if (options.agent)
|
|
85
109
|
jobs.push("agent");
|
|
110
|
+
if (options.commits?.length)
|
|
111
|
+
jobs.push("commit");
|
|
86
112
|
// #4654: the action command, answered by the product's own workflow (`actions`) or by the pipeline's action job.
|
|
87
113
|
if (options.actions || options.actionJob)
|
|
88
114
|
jobs.push("action");
|
|
@@ -91,7 +117,7 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
91
117
|
const built = options.waves || options.componentWaves ? "on-merge" : options.applyBeforeMerge ? "before-merge" : "release";
|
|
92
118
|
const applyMode = options.words.applyMode === "before-merge" && options.applyBeforeMerge ? "before-merge" : built;
|
|
93
119
|
const words = assertProductWords({ ...options.words, applyMode }, { jobs });
|
|
94
|
-
const { waves: given, wavesSpecFile, member, agent: _agent, actions: _actions, componentWaves, ...loop } = options;
|
|
120
|
+
const { waves: given, wavesSpecFile, member, agent: _agent, commits: _commits, actions: _actions, componentWaves, ...loop } = options;
|
|
95
121
|
const { respond } = options;
|
|
96
122
|
// #4629: the pull request loop puts the responses on the apply and note jobs, as `chant build --pr-loop --respond` does.
|
|
97
123
|
const prLoop = { ...loop, words, gate: options.gate ?? words.prGate };
|
|
@@ -133,6 +159,13 @@ export function productPipelineJobs(forge, env, options) {
|
|
|
133
159
|
const spec = productAgentSpec(words, agentComment, options.agent === true ? {} : options.agent);
|
|
134
160
|
out.agent = { comment: agentComment, name: spec.name, spec };
|
|
135
161
|
}
|
|
162
|
+
// #4722: each comment commit job answers its own word from a workflow of its own.
|
|
163
|
+
if (options.commits?.length) {
|
|
164
|
+
out.commits = options.commits.map((c) => {
|
|
165
|
+
const spec = productCommitSpec(words, c);
|
|
166
|
+
return { comment: spec.commit.comment, name: spec.name, spec };
|
|
167
|
+
});
|
|
168
|
+
}
|
|
136
169
|
// #4588: without a spec of the product's own, the component graph's waves on op waves.
|
|
137
170
|
const op = words.op ?? componentWaves?.waveGate ?? words.prGate;
|
|
138
171
|
const spec = given ?? (componentWaves
|
|
@@ -152,6 +152,8 @@ export interface CompileInputs {
|
|
|
152
152
|
* reads the variable. Unset for a cut with no label.
|
|
153
153
|
*/
|
|
154
154
|
releaseLabel?: string;
|
|
155
|
+
/** The digests file of the images the cut built (#4657), passed to the build command as `CHANT_RELEASE_DIGESTS`. */
|
|
156
|
+
releaseDigests?: string;
|
|
155
157
|
}
|
|
156
158
|
/** The variable a cut's label reaches the build through (#4168). */
|
|
157
159
|
export declare const RELEASE_LABEL_ENV = "CHANT_RELEASE_LABEL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-compile.d.ts","sourceRoot":"","sources":["../../src/components/release-compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAMH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAO9D,OAAO,EAAwC,KAAK,eAAe,EAAqC,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1I,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE5F,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"release-compile.d.ts","sourceRoot":"","sources":["../../src/components/release-compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAMH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAO9D,OAAO,EAAwC,KAAK,eAAe,EAAqC,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1I,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE5F,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGhF,mFAAmF;AACnF,OAAO,EAAE,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