@intentius/chant 0.124.63 → 0.124.65
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/cli/handlers/approve.d.ts +8 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +27 -4
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +2 -1
- package/dist/cli/handlers/release.d.ts +6 -4
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +101 -16
- package/dist/cli/handlers/run.d.ts +30 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +108 -7
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +34 -7
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +19 -0
- package/dist/cli/registry.d.ts +10 -2
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/cli-support.d.ts +19 -1
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/cli-support.js +11 -3
- package/dist/components/component.d.ts +19 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/component.schema.json +17 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/release-run.d.ts +48 -0
- package/dist/components/release-run.d.ts.map +1 -0
- package/dist/components/release-run.js +166 -0
- package/dist/components/starter-plugin.d.ts +1 -0
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/components/starter-plugin.js +5 -1
- package/dist/components/unchanged-inputs.d.ts +81 -0
- package/dist/components/unchanged-inputs.d.ts.map +1 -0
- package/dist/components/unchanged-inputs.js +122 -0
- package/dist/components/verbs/index.d.ts +1 -0
- package/dist/components/verbs/index.d.ts.map +1 -1
- package/dist/components/verbs/index.js +1 -0
- package/dist/components/verbs/release-image.d.ts +36 -0
- package/dist/components/verbs/release-image.d.ts.map +1 -0
- package/dist/components/verbs/release-image.js +33 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/gate-statement.schema.json +4 -2
- package/dist/lifecycle/delivery-metrics.d.ts.map +1 -1
- package/dist/lifecycle/delivery-metrics.js +4 -2
- package/dist/lifecycle/gate-ledger.d.ts +11 -2
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.js +6 -0
- package/dist/lifecycle/gate-seal.d.ts +20 -4
- package/dist/lifecycle/gate-seal.d.ts.map +1 -1
- package/dist/lifecycle/gate-seal.js +18 -5
- package/dist/lifecycle/gate-statement.d.ts +27 -2
- package/dist/lifecycle/gate-statement.d.ts.map +1 -1
- package/dist/lifecycle/gate-statement.js +37 -2
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +6 -1
- package/dist/lifecycle/ledger-read.js +1 -1
- package/dist/lifecycle/plan-stale.d.ts.map +1 -1
- package/dist/lifecycle/plan-stale.js +1 -2
- package/dist/lifecycle/publish-declaration.d.ts +20 -0
- package/dist/lifecycle/publish-declaration.d.ts.map +1 -1
- package/dist/lifecycle/publish-declaration.js +24 -1
- package/dist/lifecycle/publish-forge.d.ts.map +1 -1
- package/dist/lifecycle/publish-forge.js +1 -2
- package/dist/lifecycle/publish-git-ssh.d.ts +82 -0
- package/dist/lifecycle/publish-git-ssh.d.ts.map +1 -0
- package/dist/lifecycle/publish-git-ssh.js +180 -0
- package/dist/lifecycle/publish-homebrew.d.ts +11 -0
- package/dist/lifecycle/publish-homebrew.d.ts.map +1 -1
- package/dist/lifecycle/publish-homebrew.js +96 -5
- package/dist/lifecycle/publish-marketplace.d.ts +36 -2
- package/dist/lifecycle/publish-marketplace.d.ts.map +1 -1
- package/dist/lifecycle/publish-marketplace.js +173 -30
- package/dist/lifecycle/publish-tauri.d.ts.map +1 -1
- package/dist/lifecycle/publish-tauri.js +1 -2
- package/dist/lifecycle/query.d.ts +2 -2
- package/dist/lifecycle/query.d.ts.map +1 -1
- package/dist/lifecycle/query.js +3 -3
- package/dist/lifecycle/release-cut.d.ts +82 -6
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +209 -20
- package/dist/lifecycle/release-ledger.d.ts +11 -0
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-publish.d.ts +13 -0
- package/dist/lifecycle/release-publish.d.ts.map +1 -1
- package/dist/lifecycle/release-publish.js +5 -0
- package/dist/lifecycle/release-revocation.d.ts +4 -3
- package/dist/lifecycle/release-revocation.d.ts.map +1 -1
- package/dist/lifecycle/release-revocation.js +5 -4
- package/dist/lifecycle/release-store.d.ts +49 -3
- package/dist/lifecycle/release-store.d.ts.map +1 -1
- package/dist/lifecycle/release-store.js +22 -3
- package/dist/op/gate.d.ts +1 -1
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +2 -1
- package/dist/op/op-waves-run.js +5 -3
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +26 -6
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/wave-runtime.mjs +284 -283
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +1 -2
- package/dist/workspace/ci-quarantine-report.d.ts.map +1 -1
- package/dist/workspace/ci-quarantine-report.js +1 -2
- package/dist/workspace/ci-quarantine.d.ts.map +1 -1
- package/dist/workspace/ci-quarantine.js +1 -2
- package/dist/workspace/delivery-metrics.schema.json +1 -1
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/intent.js +1 -2
- package/dist/workspace/release-candidates.d.ts +9 -1
- package/dist/workspace/release-candidates.d.ts.map +1 -1
- package/dist/workspace/release-candidates.js +16 -5
- package/dist/workspace/release-candidates.schema.json +7 -0
- package/dist/workspace/releases.schema.json +54 -2
- package/package.json +1 -1
- package/src/cli/handlers/approve-external-signature.test.ts +105 -3
- package/src/cli/handlers/approve.ts +34 -4
- package/src/cli/handlers/pr.ts +2 -1
- package/src/cli/handlers/release.ts +91 -16
- package/src/cli/handlers/run-unchanged.e2e.test.ts +112 -0
- package/src/cli/handlers/run.ts +117 -7
- package/src/cli/main.ts +34 -7
- package/src/cli/parse-args.ts +15 -0
- package/src/cli/registry.ts +10 -2
- package/src/components/cli-support.test.ts +53 -0
- package/src/components/cli-support.ts +26 -4
- package/src/components/component.schema.json +17 -0
- package/src/components/component.ts +20 -0
- package/src/components/index.ts +1 -0
- package/src/components/registry.test.ts +1 -1
- package/src/components/release-run.test.ts +127 -0
- package/src/components/release-run.ts +188 -0
- package/src/components/starter-plugin.ts +5 -0
- package/src/components/unchanged-inputs.test.ts +98 -0
- package/src/components/unchanged-inputs.ts +151 -0
- package/src/components/verbs/index.ts +1 -0
- package/src/components/verbs/release-image.ts +52 -0
- package/src/config.ts +8 -0
- package/src/gate-statement.schema.json +4 -2
- package/src/lifecycle/delivery-metrics.ts +4 -2
- package/src/lifecycle/gate-ledger.ts +17 -2
- package/src/lifecycle/gate-seal.ts +24 -6
- package/src/lifecycle/gate-statement.ts +40 -4
- package/src/lifecycle/git.test.ts +15 -0
- package/src/lifecycle/git.ts +5 -1
- package/src/lifecycle/ledger-read.ts +1 -1
- package/src/lifecycle/plan-stale.test.ts +3 -4
- package/src/lifecycle/plan-stale.ts +1 -2
- package/src/lifecycle/publish-declaration.ts +24 -1
- package/src/lifecycle/publish-forge.ts +1 -2
- package/src/lifecycle/publish-git-ssh.ts +202 -0
- package/src/lifecycle/publish-homebrew.test.ts +181 -2
- package/src/lifecycle/publish-homebrew.ts +101 -6
- package/src/lifecycle/publish-marketplace.test.ts +158 -6
- package/src/lifecycle/publish-marketplace.ts +192 -31
- package/src/lifecycle/publish-resume.test.ts +40 -0
- package/src/lifecycle/publish-tauri.ts +1 -2
- package/src/lifecycle/query.ts +3 -3
- package/src/lifecycle/release-cut-lane.test.ts +195 -0
- package/src/lifecycle/release-cut-override.test.ts +225 -0
- package/src/lifecycle/release-cut.test.ts +45 -0
- package/src/lifecycle/release-cut.ts +262 -21
- package/src/lifecycle/release-ledger.ts +11 -0
- package/src/lifecycle/release-publish.ts +18 -0
- package/src/lifecycle/release-revocation.ts +5 -4
- package/src/lifecycle/release-store.ts +73 -5
- package/src/op/gate.ts +2 -1
- package/src/op/op-waves-run.ts +4 -2
- package/src/pr-forge.ts +25 -6
- package/src/pr-requires.test.ts +9 -0
- package/src/release-floors.ts +1 -1
- package/src/workspace/ci-green.ts +1 -2
- package/src/workspace/ci-quarantine-report.test.ts +2 -3
- package/src/workspace/ci-quarantine-report.ts +1 -2
- package/src/workspace/ci-quarantine.test.ts +2 -3
- package/src/workspace/ci-quarantine.ts +1 -2
- package/src/workspace/delivery-metrics.schema.json +1 -1
- package/src/workspace/delivery-metrics.test.ts +8 -0
- package/src/workspace/intent.ts +1 -2
- package/src/workspace/release-candidates.schema.json +7 -0
- package/src/workspace/release-candidates.ts +19 -5
- package/src/workspace/releases.schema.json +54 -2
- package/src/workspace/trust/gate-seal.test.ts +44 -0
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
* component's own file, the member's `chant.config.ts` and the paths its
|
|
18
18
|
* build steps read.
|
|
19
19
|
*
|
|
20
|
+
* An image built elsewhere, as by a CI job that builds what the cut's machine
|
|
21
|
+
* can't, is handed to the cut by digest (#4694, `--image
|
|
22
|
+
* <component>=<repository>@sha256:<hex>`). The release records it with its
|
|
23
|
+
* reference in `ref`, and the cut builds nothing for that component: its
|
|
24
|
+
* archive steps, if it has any, don't run, and no earlier release's entry is
|
|
25
|
+
* carried. A deploy under the release runs that image
|
|
26
|
+
* (../components/release-run.ts).
|
|
27
|
+
*
|
|
20
28
|
* A project with no components (#4046) needs no special case here: its
|
|
21
29
|
* targets hold the files `chant build --env <env>` writes, each with
|
|
22
30
|
* `component: null`, and `artifactDigests` is empty.
|
|
@@ -31,6 +39,21 @@
|
|
|
31
39
|
* all the same, and readers report whether the signature verifies. With
|
|
32
40
|
* `ci.green.signedSince` declared, a green tag counts only with a valid
|
|
33
41
|
* statement (`../workspace/ci-green.ts`), so a hand-pushed tag cuts nothing.
|
|
42
|
+
*
|
|
43
|
+
* A lane (#4692): a cut given a lane `ci.green.lanes` declares checks that
|
|
44
|
+
* lane's tags, `ci/green-<lane>/<sha>` and `ci/revoked-<lane>/<sha>`, in place
|
|
45
|
+
* of `ci/green/<sha>` and `ci/revoked/<sha>`, and the cut line names the lane.
|
|
46
|
+
*
|
|
47
|
+
* An override (#4693): a commit with no green tag that counts is cut when the
|
|
48
|
+
* cut asks for it (`overrideGreen`) and a person's override of it stands on
|
|
49
|
+
* the override ledger, `_gates/policy-override.jsonl` (`../override-gate.ts`).
|
|
50
|
+
* The subject is `release-<sha12>`, the plan the commit, and the rule
|
|
51
|
+
* `ci-green` (or `ci-green-<lane>`). It counts when a person the overriders
|
|
52
|
+
* file at base lists wrote it with a reason, sealed under a `release` gate in
|
|
53
|
+
* `identity.gates`. The cut spends it and records it on the cut line. With no
|
|
54
|
+
* override that counts, a cut (not a dry run) records the request for one,
|
|
55
|
+
* which `chant approve policy-override` answers. A revoked commit is never
|
|
56
|
+
* cut, override or not.
|
|
34
57
|
*/
|
|
35
58
|
import { execFileSync } from "node:child_process";
|
|
36
59
|
import { realpathSync } from "node:fs";
|
|
@@ -40,14 +63,47 @@ import { getHeadCommit } from "./git.js";
|
|
|
40
63
|
import { resolveMemberLedger } from "./member-ledger.js";
|
|
41
64
|
import { resolveCiRun } from "./release-ledger.js";
|
|
42
65
|
import { appendCut, invalidLabel, labelsByDigest, makeRelease, persistRelease, readAllReleases, readCuts, readRelease, ReleaseLabelError, templateBytesDigest, } from "./release-store.js";
|
|
66
|
+
/** The first chant that cuts from a lane's green tag and writes `lane` on the cut line (#4692). */
|
|
67
|
+
export const RELEASE_CUT_LANE_FLOOR = "0.124.64";
|
|
68
|
+
/** The first chant that cuts a commit that is not green under an override and writes `override` on the cut line (#4693). */
|
|
69
|
+
export const RELEASE_CUT_OVERRIDE_FLOOR = "0.124.64";
|
|
70
|
+
/** The override gate's subject for a cut of `commit` (#4693): `release-<sha12>`. */
|
|
71
|
+
export function greenOverrideSubject(commit) {
|
|
72
|
+
return `release-${commit.slice(0, 12)}`;
|
|
73
|
+
}
|
|
74
|
+
/** The rule an override of a cut names (#4693): `ci-green`, or `ci-green-<lane>` for a lane's tag. */
|
|
75
|
+
export function greenOverrideRule(lane) {
|
|
76
|
+
return lane !== null ? `ci-green-${lane}` : "ci-green";
|
|
77
|
+
}
|
|
78
|
+
/** How long a recorded request for an override stands before a cut records a fresh one. */
|
|
79
|
+
const OVERRIDE_REQUEST_HOURS = 48;
|
|
43
80
|
export class ReleaseCutError extends Error {
|
|
44
|
-
constructor(code, message, fix
|
|
81
|
+
constructor(code, message, fix,
|
|
82
|
+
/** The cut recorded a request for an override on `chant/lifecycle` (#4693), which the caller pushes. */
|
|
83
|
+
recorded = false) {
|
|
45
84
|
super(message);
|
|
46
85
|
this.code = code;
|
|
47
86
|
this.fix = fix;
|
|
87
|
+
this.recorded = recorded;
|
|
48
88
|
this.name = "ReleaseCutError";
|
|
49
89
|
}
|
|
50
90
|
}
|
|
91
|
+
/** An image reference by digest: `<repository>@sha256:<64 hex>`, the repository without a tag. */
|
|
92
|
+
const IMAGE_BY_DIGEST = /^([a-z0-9]+(?:[._-][a-z0-9]+)*(?::[0-9]+)?(?:\/[a-z0-9]+(?:[._-]+[a-z0-9]+)*)*)@(sha256:[0-9a-f]{64})$/;
|
|
93
|
+
/**
|
|
94
|
+
* The release artifact for an image handed to the cut (#4694), or why the
|
|
95
|
+
* reference can't be one: it must name its repository and its digest, and no
|
|
96
|
+
* tag, since a tag can move after the cut.
|
|
97
|
+
*/
|
|
98
|
+
export function handedImage(component, ref) {
|
|
99
|
+
const m = IMAGE_BY_DIGEST.exec(ref);
|
|
100
|
+
if (!m) {
|
|
101
|
+
return {
|
|
102
|
+
error: `--image ${component}=${ref}: an image is handed to the cut by digest, as <repository>@sha256:<64 hex digits> with no tag, such as registry.fly.io/app@sha256:${"0".repeat(64)}`,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
return { component, kind: "image", path: "", digest: m[2], ref };
|
|
106
|
+
}
|
|
51
107
|
function git(top, args) {
|
|
52
108
|
return execFileSync("git", args, { cwd: top, encoding: "utf-8", stdio: ["ignore", "pipe", "pipe"] }).trim();
|
|
53
109
|
}
|
|
@@ -64,13 +120,13 @@ function tryGit(top, args) {
|
|
|
64
120
|
* and the tags on it that were ignored for want of a valid statement
|
|
65
121
|
* (#4031). The tags are judged by `green`, the declaration's `ci.green` at
|
|
66
122
|
* base, with the runner keys read at its branch's tip; with no `ci.green`,
|
|
67
|
-
* every tag counts.
|
|
123
|
+
* every tag counts. With `lane` (#4692), that lane's tags are read.
|
|
68
124
|
*/
|
|
69
|
-
export async function greenState(top, sha, green = null) {
|
|
125
|
+
export async function greenState(top, sha, green = null, lane) {
|
|
70
126
|
const { judgedCiTags } = await import("./release-revocation.js");
|
|
71
127
|
let tags;
|
|
72
128
|
try {
|
|
73
|
-
tags = await judgedCiTags(top, green);
|
|
129
|
+
tags = await judgedCiTags(top, green, lane);
|
|
74
130
|
}
|
|
75
131
|
catch (err) {
|
|
76
132
|
const { WorkspaceReadError } = await import("../workspace/declaration.js");
|
|
@@ -116,13 +172,96 @@ async function previousRelease(top, commit, cwd) {
|
|
|
116
172
|
.sort((a, b) => b.depth - a.depth || (b.at < a.at ? -1 : b.at > a.at ? 1 : 0));
|
|
117
173
|
return candidates[0]?.r;
|
|
118
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Decide the override of a cut of `commit`, which has no green tag that
|
|
177
|
+
* counts (#4693), as `decideOverride` decides any: against the overriders
|
|
178
|
+
* file and, when `sealed`, the signers at base. With none that counts and
|
|
179
|
+
* `record`, the request for one is appended unless one stands.
|
|
180
|
+
*/
|
|
181
|
+
async function greenOverride(req) {
|
|
182
|
+
const og = await import("../override-gate.js");
|
|
183
|
+
const { readOverrideLedger, recordOverrideDenial } = await import("./override-ledger.js");
|
|
184
|
+
const { resolveBase } = await import("../workspace/trust/provenance.js");
|
|
185
|
+
const subject = greenOverrideSubject(req.commit);
|
|
186
|
+
const rules = [greenOverrideRule(req.lane)];
|
|
187
|
+
const base = resolveBase(req.top).commit;
|
|
188
|
+
const overriders = base ? og.overridersAt(req.top, base) : null;
|
|
189
|
+
const signers = req.sealed && base ? (await import("../gate-decision.js")).gateSignersAt(req.top, base) : undefined;
|
|
190
|
+
const ledger = await readOverrideLedger({ cwd: req.cwd });
|
|
191
|
+
const verdict = og.decideOverride({
|
|
192
|
+
ledger,
|
|
193
|
+
applied: ledger.applied,
|
|
194
|
+
subject,
|
|
195
|
+
planDigest: req.commit,
|
|
196
|
+
rules,
|
|
197
|
+
overriders: overriders?.principals ?? [],
|
|
198
|
+
mode: req.sealed ? "sealed" : "ledger",
|
|
199
|
+
...(signers ? { signers } : {}),
|
|
200
|
+
now: req.now,
|
|
201
|
+
});
|
|
202
|
+
if (verdict.status === "overridden") {
|
|
203
|
+
const o = verdict.override;
|
|
204
|
+
return { override: { by: o.by, at: o.at, reason: o.reason, digest: o.digest, sealed: o.sealed } };
|
|
205
|
+
}
|
|
206
|
+
let recorded = false;
|
|
207
|
+
if (req.record && !verdict.standing) {
|
|
208
|
+
await recordOverrideDenial({
|
|
209
|
+
subject,
|
|
210
|
+
planDigest: req.commit,
|
|
211
|
+
rules,
|
|
212
|
+
timestamp: req.now,
|
|
213
|
+
expiresAt: new Date(Date.parse(req.now) + OVERRIDE_REQUEST_HOURS * 3600000).toISOString(),
|
|
214
|
+
description: `release cut of commit ${req.commit.slice(0, 12)}, which has no ${req.lane !== null ? `ci/green-${req.lane}` : "ci/green"} tag that counts`,
|
|
215
|
+
}, { cwd: req.cwd });
|
|
216
|
+
recorded = true;
|
|
217
|
+
}
|
|
218
|
+
const notes = [
|
|
219
|
+
...verdict.refusals.map((r) => `an override does not count: ${r}`),
|
|
220
|
+
...(verdict.status === "moved" ? [`${verdict.by} overrode another commit or rule (${verdict.was ?? "no digest"}), which counts for nothing here`] : []),
|
|
221
|
+
recorded
|
|
222
|
+
? `the request for an override of ${subject} is recorded on chant/lifecycle`
|
|
223
|
+
: verdict.standing
|
|
224
|
+
? `the request for an override of ${subject} has stood since ${verdict.standing.timestamp}`
|
|
225
|
+
: `a cut with --yes records the request for an override of ${subject}`,
|
|
226
|
+
];
|
|
227
|
+
const who = !overriders?.active
|
|
228
|
+
? `${og.OVERRIDERS_PATH} at base does not exist, so nobody may override it yet. Once it lists a person, they may`
|
|
229
|
+
: overriders.principals.length > 0
|
|
230
|
+
? `${overriders.principals.join(", ")} may`
|
|
231
|
+
: `${og.OVERRIDERS_PATH} at base lists nobody, so nobody may`;
|
|
232
|
+
return {
|
|
233
|
+
override: null,
|
|
234
|
+
why: notes.join("; "),
|
|
235
|
+
fix: `${who} override it with: ${og.overrideCommand(subject, rules, req.sealed)}, and then cut again with --override-green.`,
|
|
236
|
+
recorded,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* The lane `name` as the declaration at base declares it (#4692), or a
|
|
241
|
+
* `declaration-invalid` refusal when there is no `ci.green` or it declares
|
|
242
|
+
* no such lane.
|
|
243
|
+
*/
|
|
244
|
+
async function declaredLane(green, name) {
|
|
245
|
+
if (!green) {
|
|
246
|
+
throw new ReleaseCutError("declaration-invalid", `the cut asks for lane ${JSON.stringify(name)}, and chant.workspace.json at base declares no ci.green, so it has no lanes`);
|
|
247
|
+
}
|
|
248
|
+
const { laneOf, WorkspaceReadError } = await import("../workspace/declaration.js");
|
|
249
|
+
try {
|
|
250
|
+
return laneOf(green, name).name;
|
|
251
|
+
}
|
|
252
|
+
catch (err) {
|
|
253
|
+
if (err instanceof WorkspaceReadError)
|
|
254
|
+
throw new ReleaseCutError("declaration-invalid", err.message);
|
|
255
|
+
throw err;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
119
258
|
/**
|
|
120
259
|
* The checks and the compile a cut makes before it builds or writes: the
|
|
121
260
|
* commit is green and not revoked, the cut is signed when the release gate
|
|
122
261
|
* asks, the tree is clean, every environment compiles with the same build
|
|
123
262
|
* steps, and which artifacts are carried from an earlier release.
|
|
124
263
|
*/
|
|
125
|
-
async function prepare(req) {
|
|
264
|
+
async function prepare(req, record = false) {
|
|
126
265
|
const cwd = resolve(req.cwd);
|
|
127
266
|
const top = tryGit(cwd, ["rev-parse", "--show-toplevel"]);
|
|
128
267
|
if (!top)
|
|
@@ -132,17 +271,35 @@ async function prepare(req) {
|
|
|
132
271
|
const { scopeSource } = await import("../workspace/write-scope.js");
|
|
133
272
|
const { releaseRuleFrom } = await import("../workspace/identity.js");
|
|
134
273
|
const source = scopeSource(cwd);
|
|
135
|
-
const
|
|
274
|
+
const green = source.declaration?.ci?.green ?? null;
|
|
275
|
+
const lane = req.lane !== undefined ? await declaredLane(green, req.lane) : null;
|
|
276
|
+
const { state, ignored } = await greenState(top, commit, green, lane ?? undefined);
|
|
277
|
+
// Who may cut is the declaration's identity.gates.release, read at base.
|
|
278
|
+
const releaseRule = releaseRuleFrom(source);
|
|
279
|
+
let override = null;
|
|
136
280
|
if (state !== "green") {
|
|
137
281
|
const why = ignored.length > 0 ? `; ignored: ${ignored.map((t) => `${t.tag} (${t.status}): ${t.reason}`).join("; ")}` : "";
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
282
|
+
// #4692: a lane's tags are ci/green-<lane>/ and ci/revoked-<lane>/.
|
|
283
|
+
const greenTag = lane !== null ? `ci/green-${lane}` : "ci/green";
|
|
284
|
+
const revokedTag = lane !== null ? `ci/revoked-${lane}` : "ci/revoked";
|
|
285
|
+
const message = state === "revoked"
|
|
286
|
+
? `commit ${commit.slice(0, 12)} has a ${revokedTag} tag: it went red after it was green, so no release is cut from it`
|
|
287
|
+
: ignored.some((t) => t.tag.startsWith(`${greenTag}/`))
|
|
288
|
+
? `commit ${commit.slice(0, 12)} has no ${greenTag} tag that counts, so no release is cut from it${why}`
|
|
289
|
+
: `commit ${commit.slice(0, 12)} has no ${greenTag} tag, so no release is cut from it`;
|
|
290
|
+
const fix = `Check out a green commit (\`chant ci last-green${lane !== null ? ` --lane ${lane}` : ""}\` names the newest) after fetching the tags: git fetch origin --tags`;
|
|
291
|
+
if (state === "revoked") {
|
|
292
|
+
throw new ReleaseCutError("release-commit-revoked", req.overrideGreen ? `${message}, and an override does not cut a revoked commit` : message, fix);
|
|
293
|
+
}
|
|
294
|
+
if (!req.overrideGreen)
|
|
295
|
+
throw new ReleaseCutError("release-commit-not-green", message, fix);
|
|
296
|
+
// #4693: a person's override of this commit lets it through.
|
|
297
|
+
const now = (req.now ?? (() => new Date()))().toISOString();
|
|
298
|
+
const decided = await greenOverride({ top, cwd, commit, lane, sealed: releaseRule.requirement !== null, record, now });
|
|
299
|
+
if (decided.override === null)
|
|
300
|
+
throw new ReleaseCutError("release-commit-not-green", `${message}; ${decided.why}`, decided.fix, decided.recorded);
|
|
301
|
+
override = { green: false, tag: `${greenTag}/${commit}`, ...decided.override };
|
|
143
302
|
}
|
|
144
|
-
// Who may cut is the declaration's identity.gates.release, read at base.
|
|
145
|
-
const releaseRule = releaseRuleFrom(source);
|
|
146
303
|
if (releaseRule.requirement && req.sign === undefined) {
|
|
147
304
|
throw new ReleaseCutError("release-unsigned", `chant.workspace.json at base names a release gate in identity.gates${releaseRule.requirement.class !== null ? `, from the class ${releaseRule.requirement.class}` : ""}, and this cut is not signed`, `chant release cut <label> --actor <principal> --sign [<key file>], with a key ${releaseRule.rule.signers.signersPath} at base lists for that principal.`);
|
|
148
305
|
}
|
|
@@ -170,17 +327,31 @@ async function prepare(req) {
|
|
|
170
327
|
throw new ReleaseCutError("release-build-inputs-differ", `the build steps of ${differing.map((d) => `"${d.component}"`).join(", ")} differ between environments (${[...new Set(differing.flatMap((d) => d.envs))].join(", ")}), ` +
|
|
171
328
|
"so their artifacts can't be built once for every environment", "Make the build steps read no environment-specific value; pass the value to a deploy step instead.");
|
|
172
329
|
}
|
|
330
|
+
// #4694: an image handed to the cut is the component's, in place of a build.
|
|
331
|
+
const enabled = new Set(compiled.flatMap((t) => t.components));
|
|
332
|
+
const handedArtifacts = [];
|
|
333
|
+
for (const [component, ref] of Object.entries(req.images ?? {})) {
|
|
334
|
+
if (!enabled.has(component)) {
|
|
335
|
+
throw new ReleaseCutError("release-image-unknown-component", `--image names "${component}", which is not a component enabled in any environment of this member`, enabled.size > 0 ? `The components are: ${[...enabled].sort().join(", ")}` : undefined);
|
|
336
|
+
}
|
|
337
|
+
const artifact = handedImage(component, ref);
|
|
338
|
+
if ("error" in artifact)
|
|
339
|
+
throw new ReleaseCutError("release-image-invalid", artifact.error);
|
|
340
|
+
handedArtifacts.push(artifact);
|
|
341
|
+
}
|
|
342
|
+
const handedTo = new Set(handedArtifacts.map((a) => a.component));
|
|
173
343
|
// Which environment each component's artifacts are built in: the first one it is enabled in.
|
|
174
344
|
const firstEnv = new Map();
|
|
175
|
-
for (const t of compiled)
|
|
345
|
+
for (const t of compiled) {
|
|
176
346
|
for (const c of t.components)
|
|
177
|
-
if (!firstEnv.has(c) && (t.buildSteps[c]?.length ?? 0) > 0)
|
|
347
|
+
if (!firstEnv.has(c) && !handedTo.has(c) && (t.buildSteps[c]?.length ?? 0) > 0)
|
|
178
348
|
firstEnv.set(c, t);
|
|
349
|
+
}
|
|
179
350
|
// git names paths from its top with symlinks resolved (/private/var on macOS).
|
|
180
351
|
const realCwd = realpathSync(cwd);
|
|
181
352
|
const previous = firstEnv.size > 0 ? await previousRelease(top, commit, cwd) : undefined;
|
|
182
353
|
const reused = [];
|
|
183
|
-
const artifacts = [];
|
|
354
|
+
const artifacts = [...handedArtifacts];
|
|
184
355
|
const toBuild = new Map();
|
|
185
356
|
for (const [component, target] of firstEnv) {
|
|
186
357
|
const prior = previous?.artifactDigests.filter((a) => a.component === component) ?? [];
|
|
@@ -209,7 +380,10 @@ async function prepare(req) {
|
|
|
209
380
|
toBuild,
|
|
210
381
|
carried: artifacts,
|
|
211
382
|
reused,
|
|
383
|
+
handed: handedArtifacts.map((a) => ({ component: a.component, ref: a.ref, digest: a.digest })),
|
|
212
384
|
member: ledger.members.length > 0 ? ledger.members.join("/") : null,
|
|
385
|
+
lane,
|
|
386
|
+
override,
|
|
213
387
|
};
|
|
214
388
|
}
|
|
215
389
|
/**
|
|
@@ -300,8 +474,11 @@ export async function planRelease(req) {
|
|
|
300
474
|
targets: targets.map((t) => ({ env: t.env, params: t.params, templates: t.templates.map(({ component, path }) => ({ component, path })), ...(t.trees ? { trees: t.trees } : {}) })),
|
|
301
475
|
build,
|
|
302
476
|
reused: p.reused,
|
|
477
|
+
handed: p.handed,
|
|
303
478
|
publishSteps: [...steps.values()],
|
|
304
479
|
signatureRequired: p.releaseRule.requirement !== null,
|
|
480
|
+
lane: p.lane,
|
|
481
|
+
override: p.override,
|
|
305
482
|
};
|
|
306
483
|
}
|
|
307
484
|
/**
|
|
@@ -310,15 +487,17 @@ export async function planRelease(req) {
|
|
|
310
487
|
* push. Throws {@link ReleaseCutError} before anything is written when the
|
|
311
488
|
* commit isn't green, the tree is dirty, or an environment can't be compiled
|
|
312
489
|
* to the same artifacts, and `ReleaseLabelError` (./release-store.ts) when the
|
|
313
|
-
* label is taken or the release already carries another one.
|
|
490
|
+
* label is taken or the release already carries another one. The one write
|
|
491
|
+
* before a refusal is the request for an override (#4693), when the cut asks
|
|
492
|
+
* for one and none stands; the error's `recorded` says so.
|
|
314
493
|
*
|
|
315
494
|
* The cut line names its run (#4027): the CI run's id and origin in CI, and
|
|
316
495
|
* outside CI an id minted from the cut's time, `local-<epoch ms>`, with the
|
|
317
496
|
* origin `{ forge: "local" }`.
|
|
318
497
|
*/
|
|
319
498
|
export async function cutRelease(req) {
|
|
320
|
-
const p = await prepare(req);
|
|
321
|
-
const { cwd, commit, compiled, releaseRule, reused } = p;
|
|
499
|
+
const p = await prepare(req, true);
|
|
500
|
+
const { cwd, commit, compiled, releaseRule, reused, handed } = p;
|
|
322
501
|
const artifacts = [...p.carried];
|
|
323
502
|
for (const env of p.envs) {
|
|
324
503
|
const names = p.toBuild.get(env);
|
|
@@ -358,16 +537,25 @@ export async function cutRelease(req) {
|
|
|
358
537
|
}
|
|
359
538
|
const stored = await persistRelease(release, templates, { cwd });
|
|
360
539
|
const ci = resolveCiRun(req.env ?? process.env);
|
|
540
|
+
const runId = ci?.runId ?? `local-${Date.parse(timestamp)}`;
|
|
541
|
+
// #4693: the override is spent before the cut line names it, so it lets one cut through.
|
|
542
|
+
if (p.override) {
|
|
543
|
+
const { appliedOverride } = await import("../override-gate.js");
|
|
544
|
+
const { recordOverridesApplied } = await import("./override-ledger.js");
|
|
545
|
+
await recordOverridesApplied([appliedOverride({ subject: greenOverrideSubject(commit), digest: p.override.digest, at: p.override.at, by: p.override.by }, { timestamp, runId, commit })], { cwd });
|
|
546
|
+
}
|
|
361
547
|
const outcome = await appendCut({
|
|
362
548
|
releaseDigest: release.releaseDigest,
|
|
363
549
|
label: req.label,
|
|
364
550
|
actor: req.actor,
|
|
365
551
|
timestamp,
|
|
366
|
-
runId
|
|
552
|
+
runId,
|
|
367
553
|
runOrigin: ci?.runOrigin ?? { forge: "local" },
|
|
368
554
|
signature,
|
|
369
555
|
...(req.composed ? { composed: req.composed } : {}),
|
|
370
556
|
...(req.channel ? { channel: req.channel } : {}),
|
|
557
|
+
...(p.lane !== null ? { lane: p.lane } : {}),
|
|
558
|
+
...(p.override ? { override: p.override } : {}),
|
|
371
559
|
}, { cwd });
|
|
372
560
|
return {
|
|
373
561
|
release,
|
|
@@ -375,5 +563,6 @@ export async function cutRelease(req) {
|
|
|
375
563
|
label: outcome.appended ? outcome.cut.label : outcome.label,
|
|
376
564
|
stored: stored.written,
|
|
377
565
|
reused,
|
|
566
|
+
handed,
|
|
378
567
|
};
|
|
379
568
|
}
|
|
@@ -226,6 +226,17 @@ export interface ReleaseRecord {
|
|
|
226
226
|
* partway. Absent on every other record.
|
|
227
227
|
*/
|
|
228
228
|
redeploys?: ReleaseRef;
|
|
229
|
+
/**
|
|
230
|
+
* Optional: set when a release skipped this component (#4695) because the
|
|
231
|
+
* inputs it declares were the same as in the release the environment ran
|
|
232
|
+
* it from. Names that environment's record, whose `digest`, `gitSha`,
|
|
233
|
+
* `manifestDigest`, `digestKind` and `inputDigest` this record repeats:
|
|
234
|
+
* nothing was deployed, and the environment still runs that deploy, now
|
|
235
|
+
* under this record's `releaseDigest`. Written from chant
|
|
236
|
+
* `UNCHANGED_INPUTS_FLOOR` (../components/unchanged-inputs.ts); absent on
|
|
237
|
+
* every deploy.
|
|
238
|
+
*/
|
|
239
|
+
unchangedSince?: ReleaseRef;
|
|
229
240
|
/**
|
|
230
241
|
* Optional: the release this deploy came from (#4026, ws-104), the
|
|
231
242
|
* `releaseDigest` of `_releases/<releaseDigest>.json`. Written by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-ledger.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAwG,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAElJ,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC9I,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;;;;OASG;IACH,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;IACtD,gHAAgH;IAChH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,GAAG,CAA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AC,OAAO,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CASvF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE,CAE1F"}
|
|
@@ -67,6 +67,8 @@ export interface PublishItem {
|
|
|
67
67
|
digest?: string;
|
|
68
68
|
/** True when the destination already held it, so nothing was uploaded. */
|
|
69
69
|
present?: boolean;
|
|
70
|
+
/** True when the destination refused it and the target turns a refusal into a warning (a marketplace's `onRefusal: "warn"`, #4698), so it was not published. */
|
|
71
|
+
refused?: boolean;
|
|
70
72
|
/** Set on a file attached to what the target publishes (#4049): an SBOM or the release's provenance statement. */
|
|
71
73
|
attachment?: "sbom" | "provenance";
|
|
72
74
|
/** The SBOM file an npm package carries at its root (#4049). */
|
|
@@ -101,6 +103,13 @@ export interface PublishedTarget {
|
|
|
101
103
|
destination: string;
|
|
102
104
|
/** Each thing published, in order. */
|
|
103
105
|
items: PublishItem[];
|
|
106
|
+
/**
|
|
107
|
+
* Set when the destination refused the reveal and the target declares that
|
|
108
|
+
* a warning (#4698): why, with the items `refused`. The publish goes on, and
|
|
109
|
+
* the target is not recorded as revealed, so the same publish run again
|
|
110
|
+
* reveals it again.
|
|
111
|
+
*/
|
|
112
|
+
warning?: string;
|
|
104
113
|
}
|
|
105
114
|
/** Injected into the targets, so tests drive them with fakes. */
|
|
106
115
|
export interface PublishDeps {
|
|
@@ -110,6 +119,10 @@ export interface PublishDeps {
|
|
|
110
119
|
npm?: string;
|
|
111
120
|
/** The vsce executable the VS Code Marketplace target runs (#4676). Default: `vsce` on `PATH`. */
|
|
112
121
|
vsce?: string;
|
|
122
|
+
/** The git executable the homebrew target runs to push over SSH (#4699). Default: `git` on `PATH`. */
|
|
123
|
+
git?: string;
|
|
124
|
+
/** The ssh executable git runs for it (#4699). Default: `ssh` on `PATH`. */
|
|
125
|
+
ssh?: string;
|
|
113
126
|
/** How a target waits between polls of a registry (#4244). Default: a timer. */
|
|
114
127
|
sleep?: (ms: number) => Promise<void>;
|
|
115
128
|
/** The clock a target's wait reads (#4244). Default: `Date.now`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-publish.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,IAAI,EAAE,OAAO,CAAC;IACd,sDAAsD;IACtD,EAAE,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAAC;IAC/B,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,eAAe,CAYtF;AAED,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kHAAkH;IAClH,UAAU,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACnC,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,6GAA6G;AAC7G,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,G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GAAG,SAAS,EACd,IAAI,EAAE,OAAO,GAAG,QAAQ,EACxB,MAAM,EAAE,MAAM,EAAE,EAChB,QAAQ,EAAE,MAAM,EAAE,EAI5B;CACF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,GAAG,EAAE,cAAc,CAAC;IACpB,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0DAA0D;IAC1D,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB,GAAG,OAAO,CAAC,UAAU,CAAC,CAsFtB"}
|
|
@@ -341,6 +341,11 @@ export async function runPublish(req) {
|
|
|
341
341
|
return fail(err, target, "reveal", stagedNames, revealedNames);
|
|
342
342
|
}
|
|
343
343
|
published.push(p);
|
|
344
|
+
if (p.warning) {
|
|
345
|
+
// Refused, and the target makes that a warning (#4698): not recorded, so a run of the same publish tries it again.
|
|
346
|
+
say(` warning: ${target.name}: ${p.warning}`);
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
344
349
|
revealedNames.push(target.name);
|
|
345
350
|
await write(target, "revealed", p.items, {});
|
|
346
351
|
}
|
|
@@ -36,10 +36,11 @@ export declare const RELEASE_REVOKED_CODE = "release-revoked";
|
|
|
36
36
|
/**
|
|
37
37
|
* The ci tags at `top`, judged against `green` at base: the green branch's
|
|
38
38
|
* tip on `origin`, else the local branch, else `HEAD`. With no `ci.green`
|
|
39
|
-
* every tag counts.
|
|
40
|
-
* `ci
|
|
39
|
+
* every tag counts. With `lane` (#4692), that lane's tags, `ci/green-<lane>/`
|
|
40
|
+
* and `ci/revoked-<lane>/`. Throws `WorkspaceReadError` (`declaration-invalid`)
|
|
41
|
+
* when `ci.green.signedSince` names no commit here.
|
|
41
42
|
*/
|
|
42
|
-
export declare function judgedCiTags(top: string, green: CiGreen | null): Promise<CiTags>;
|
|
43
|
+
export declare function judgedCiTags(top: string, green: CiGreen | null, lane?: string): Promise<CiTags>;
|
|
43
44
|
/**
|
|
44
45
|
* Every revoked commit in the repository holding `cwd`, keyed by its full
|
|
45
46
|
* sha, with the declaration's `ci.green` read at base as `release cut` reads
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-revocation.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-revocation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEpE,2GAA2G;AAC3G,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAUtD
|
|
1
|
+
{"version":3,"file":"release-revocation.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-revocation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEpE,2GAA2G;AAC3G,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAUtD;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EA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AAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAO7J"}
|
|
@@ -38,17 +38,18 @@ function tryGit(top, args) {
|
|
|
38
38
|
/**
|
|
39
39
|
* The ci tags at `top`, judged against `green` at base: the green branch's
|
|
40
40
|
* tip on `origin`, else the local branch, else `HEAD`. With no `ci.green`
|
|
41
|
-
* every tag counts.
|
|
42
|
-
* `ci
|
|
41
|
+
* every tag counts. With `lane` (#4692), that lane's tags, `ci/green-<lane>/`
|
|
42
|
+
* and `ci/revoked-<lane>/`. Throws `WorkspaceReadError` (`declaration-invalid`)
|
|
43
|
+
* when `ci.green.signedSince` names no commit here.
|
|
43
44
|
*/
|
|
44
|
-
export async function judgedCiTags(top, green) {
|
|
45
|
+
export async function judgedCiTags(top, green, lane) {
|
|
45
46
|
const { readCiTags } = await import("../workspace/ci-green.js");
|
|
46
47
|
const base = green
|
|
47
48
|
? (tryGit(top, ["rev-parse", "--verify", "--quiet", `refs/remotes/origin/${green.branch}^{commit}`]) ??
|
|
48
49
|
tryGit(top, ["rev-parse", "--verify", "--quiet", `refs/heads/${green.branch}^{commit}`]) ??
|
|
49
50
|
tryGit(top, ["rev-parse", "HEAD"]))
|
|
50
51
|
: null;
|
|
51
|
-
return readCiTags(top, green, base);
|
|
52
|
+
return readCiTags(top, green, base, lane);
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* Every revoked commit in the repository holding `cwd`, keyed by its full
|
|
@@ -49,14 +49,28 @@ export declare const CUTS_FILE = "cuts.jsonl";
|
|
|
49
49
|
export declare const TEMPLATES_SUBDIR = "templates";
|
|
50
50
|
/** The `kind` a release digest is computed under, so it can never equal a plan digest of another kind. */
|
|
51
51
|
export declare const RELEASE_DIGEST_KIND = "release";
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* An artifact built once from the release's commit: an `image` or `asset`
|
|
54
|
+
* archive entry the cut built, or an image built elsewhere and handed to the
|
|
55
|
+
* cut by digest (#4694, `chant release cut --image`).
|
|
56
|
+
*/
|
|
53
57
|
export interface ReleaseArtifact {
|
|
54
58
|
component: string;
|
|
55
59
|
kind: "image" | "asset";
|
|
56
|
-
/** The archive path the build step wrote. */
|
|
60
|
+
/** The archive path the build step wrote. Empty for an image handed to the cut, which no build step wrote. */
|
|
57
61
|
path: string;
|
|
58
62
|
digest: string;
|
|
63
|
+
/**
|
|
64
|
+
* For an image handed to the cut (#4694): where it is, as
|
|
65
|
+
* `<repository>@<digest>`, the reference a deploy under the release runs.
|
|
66
|
+
* Absent on an artifact the cut built. In the release digest when present,
|
|
67
|
+
* so a release that records one is read by chant {@link RELEASE_IMAGE_REF_FLOOR}
|
|
68
|
+
* and newer.
|
|
69
|
+
*/
|
|
70
|
+
ref?: string;
|
|
59
71
|
}
|
|
72
|
+
/** The first chant that writes and reads an artifact's `ref` (#4694). */
|
|
73
|
+
export declare const RELEASE_IMAGE_REF_FLOOR = "0.124.65";
|
|
60
74
|
/** One template of a target: a file a component's deploy reads, compiled for the target's environment. */
|
|
61
75
|
export interface ReleaseTemplate {
|
|
62
76
|
/** The component whose deploy reads it, or null for a project with no components. */
|
|
@@ -141,10 +155,42 @@ export interface ReleaseCut {
|
|
|
141
155
|
* image tag a publish moves in place of `latest`. Absent for `latest`.
|
|
142
156
|
*/
|
|
143
157
|
channel?: string;
|
|
158
|
+
/**
|
|
159
|
+
* The green lane the cut checked (#4692): the commit carried
|
|
160
|
+
* `ci/green-<lane>/<sha>` and no `ci/revoked-<lane>/<sha>`, in place of
|
|
161
|
+
* `ci/green/<sha>`. Absent on a cut that checked the full green tag.
|
|
162
|
+
*/
|
|
163
|
+
lane?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The commit was not green, and a person's override let the cut through
|
|
166
|
+
* (#4693). Absent on a cut of a green commit.
|
|
167
|
+
*/
|
|
168
|
+
override?: ReleaseCutOverride;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The override a cut of a commit that was not green ran under (#4693): an
|
|
172
|
+
* override on `_gates/policy-override.jsonl`, written by a person the
|
|
173
|
+
* overriders file at base lists, which the cut spent.
|
|
174
|
+
*/
|
|
175
|
+
export interface ReleaseCutOverride {
|
|
176
|
+
/** Always false: the commit had no green tag that counts. */
|
|
177
|
+
green: false;
|
|
178
|
+
/** The tag it lacked, `ci/green/<sha>` or `ci/green-<lane>/<sha>`. */
|
|
179
|
+
tag: string;
|
|
180
|
+
/** Who wrote the override. */
|
|
181
|
+
by: string;
|
|
182
|
+
/** When they wrote it. */
|
|
183
|
+
at: string;
|
|
184
|
+
/** Why, in their words. */
|
|
185
|
+
reason: string;
|
|
186
|
+
/** The override digest, binding the subject, the commit and the rule. */
|
|
187
|
+
digest: string;
|
|
188
|
+
/** Whether the override was sealed, as a release gate in identity.gates requires. */
|
|
189
|
+
sealed: boolean;
|
|
144
190
|
}
|
|
145
191
|
/** The parts of a release a digest is computed from. */
|
|
146
192
|
export type ReleaseSubject = Pick<Release, "member" | "commit" | "artifactDigests" | "targets">;
|
|
147
|
-
/** The same release with every list in the order ws-104 sets: artifacts by component then path, targets by env, templates by component then path, params by name. */
|
|
193
|
+
/** The same release with every list in the order ws-104 sets: artifacts by component then path (a handed image's `ref` kept), targets by env, templates by component then path, params by name. */
|
|
148
194
|
export declare function normalizeRelease<T extends ReleaseSubject>(release: T): T;
|
|
149
195
|
/** The hash input of ws-104 question 3: a param's `source` is left out. */
|
|
150
196
|
export declare function releaseHashInput(release: ReleaseSubject): unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-store.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAKH,OAAO,EASL,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"release-store.d.ts","sourceRoot":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