@intentius/chant 0.124.29 → 0.124.31
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/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +4 -1
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.js +27 -5
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +64 -0
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +99 -0
- package/dist/cli/registry.d.ts +35 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/pr-pipeline.d.ts +24 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +16 -0
- package/dist/components/pr-run.d.ts +20 -2
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/components/pr-run.js +26 -13
- package/dist/components/wave-plan.d.ts +11 -0
- package/dist/components/wave-plan.d.ts.map +1 -1
- package/dist/components/wave-plan.js +26 -0
- package/dist/lifecycle/release-ledger.d.ts +8 -3
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +2 -0
- package/dist/lifecycle/run-ledger.d.ts +1 -1
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +9 -0
- package/dist/op/activities/activity-contracts.d.ts +1 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.js +1 -0
- package/dist/op/activities/shell.d.ts +6 -0
- package/dist/op/activities/shell.d.ts.map +1 -1
- package/dist/op/activities/shell.js +1 -1
- package/dist/op/local-executor.d.ts +35 -1
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +31 -6
- package/dist/op/redact.d.ts +34 -0
- package/dist/op/redact.d.ts.map +1 -0
- package/dist/op/redact.js +94 -0
- package/dist/op/runtime.d.ts +27 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/runtime.js +20 -0
- package/dist/op/step-console.d.ts +2 -0
- package/dist/op/step-console.d.ts.map +1 -1
- package/dist/op/step-console.js +5 -2
- package/dist/pr-forge.d.ts +40 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +56 -6
- package/dist/pr-loop.d.ts +10 -0
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +7 -0
- package/dist/pr-report-url.d.ts +8 -0
- package/dist/pr-report-url.d.ts.map +1 -1
- package/dist/pr-report-url.js +47 -1
- package/dist/run-event-stream.d.ts +2 -2
- package/dist/run-event-stream.d.ts.map +1 -1
- package/dist/run-event-stream.js +2 -2
- package/dist/run-event.d.ts +15 -0
- package/dist/run-event.d.ts.map +1 -1
- package/dist/run-event.js +2 -0
- package/dist/wave-runtime.mjs +171 -171
- package/dist/workspace/ci-green-forge.d.ts +2 -0
- package/dist/workspace/ci-green-forge.d.ts.map +1 -1
- package/dist/workspace/ci-green.d.ts +2 -0
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +4 -2
- package/dist/workspace/ci-run-index.d.ts +96 -0
- package/dist/workspace/ci-run-index.d.ts.map +1 -0
- package/dist/workspace/ci-run-index.js +162 -0
- package/dist/workspace/ci-run-index.schema.json +50 -0
- package/dist/workspace/ci-run.d.ts +299 -0
- package/dist/workspace/ci-run.d.ts.map +1 -0
- package/dist/workspace/ci-run.js +691 -0
- package/dist/workspace/ci-runner-key.d.ts +120 -0
- package/dist/workspace/ci-runner-key.d.ts.map +1 -0
- package/dist/workspace/ci-runner-key.js +217 -0
- package/dist/workspace/ci-secrets.d.ts +65 -0
- package/dist/workspace/ci-secrets.d.ts.map +1 -0
- package/dist/workspace/ci-secrets.js +211 -0
- package/dist/workspace/ci-serve.d.ts +227 -0
- package/dist/workspace/ci-serve.d.ts.map +1 -0
- package/dist/workspace/ci-serve.js +468 -0
- package/dist/workspace/pr-report.schema.json +5 -0
- package/dist/workspace/reason-codes.d.ts +6 -2
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +7 -2
- package/dist/workspace/run-event.schema.json +14 -3
- package/dist/workspace/status-stewards.d.ts +2 -0
- package/dist/workspace/status-stewards.d.ts.map +1 -1
- package/dist/workspace/status-stewards.js +1 -0
- package/dist/workspace/status.schema.json +12 -1
- package/dist/workspace/trust/trust-write.d.ts +109 -0
- package/dist/workspace/trust/trust-write.d.ts.map +1 -0
- package/dist/workspace/trust/trust-write.js +320 -0
- package/dist/workspace/trust-write.schema.json +265 -0
- package/package.json +1 -1
- package/src/cli/handlers/build.test.ts +15 -0
- package/src/cli/handlers/build.ts +4 -1
- package/src/cli/handlers/fan-out.test.ts +82 -0
- package/src/cli/handlers/fan-out.ts +34 -5
- package/src/cli/handlers/pr.ts +5 -0
- package/src/cli/main.test.ts +1 -0
- package/src/cli/main.ts +64 -0
- package/src/cli/parse-args.ts +71 -0
- package/src/cli/registry.ts +35 -1
- package/src/components/pr-pipeline.ts +32 -0
- package/src/components/pr-run.test.ts +127 -0
- package/src/components/pr-run.ts +32 -12
- package/src/components/wave-plan.ts +30 -0
- package/src/lifecycle/release-ledger.ts +9 -3
- package/src/lifecycle/run-ledger.ts +7 -1
- package/src/op/activities/activity-contracts.ts +1 -0
- package/src/op/activities/shell.ts +7 -1
- package/src/op/local-executor.ts +58 -7
- package/src/op/redact.ts +93 -0
- package/src/op/runtime.ts +42 -0
- package/src/op/step-console.ts +7 -2
- package/src/pr-forge.test.ts +54 -0
- package/src/pr-forge.ts +92 -6
- package/src/pr-loop.test.ts +13 -1
- package/src/pr-loop.ts +16 -0
- package/src/pr-report-url.ts +53 -1
- package/src/run-event-stream.ts +4 -3
- package/src/run-event.ts +17 -0
- package/src/workspace/ci-green-forge.ts +2 -0
- package/src/workspace/ci-green.ts +6 -2
- package/src/workspace/ci-run-index.schema.json +50 -0
- package/src/workspace/ci-run-index.test.ts +353 -0
- package/src/workspace/ci-run-index.ts +192 -0
- package/src/workspace/ci-run.test.ts +716 -0
- package/src/workspace/ci-run.ts +833 -0
- package/src/workspace/ci-runner-key.test.ts +166 -0
- package/src/workspace/ci-runner-key.ts +250 -0
- package/src/workspace/ci-secrets.test.ts +106 -0
- package/src/workspace/ci-secrets.ts +213 -0
- package/src/workspace/ci-serve.test.ts +367 -0
- package/src/workspace/ci-serve.ts +574 -0
- package/src/workspace/pr-report.schema.json +5 -0
- package/src/workspace/reason-codes.test.ts +2 -0
- package/src/workspace/reason-codes.ts +7 -2
- package/src/workspace/run-event.schema.json +14 -3
- package/src/workspace/status-stewards.ts +3 -0
- package/src/workspace/status.schema.json +12 -1
- package/src/workspace/trust/trust-write.test.ts +179 -0
- package/src/workspace/trust/trust-write.ts +377 -0
- package/src/workspace/trust-write.schema.json +265 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA4LlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkJnE"}
|
|
@@ -10,7 +10,8 @@ import { resolvePromotionSource } from "../../components/promote-order.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* The `prLoop` generator option from `--pr-loop`'s flags (#3183): the gate
|
|
12
12
|
* and the branch, and with `--events-json` and `--report-url` (#4007) the
|
|
13
|
-
* flags the generated jobs pass to pr-plan and pr-apply.
|
|
13
|
+
* flags the generated jobs pass to pr-plan and pr-apply. `--pr-build` and
|
|
14
|
+
* `--pr-build-command` (#4088) add the build and lint steps before both.
|
|
14
15
|
*/
|
|
15
16
|
function prLoopOption(args) {
|
|
16
17
|
return {
|
|
@@ -18,6 +19,8 @@ function prLoopOption(args) {
|
|
|
18
19
|
...(args.branch ? { branch: args.branch } : {}),
|
|
19
20
|
...(args.eventsJson ? { events: true } : {}),
|
|
20
21
|
...(args.reportUrl ? { reportUrl: args.reportUrl } : {}),
|
|
22
|
+
...(args.prBuild ? { build: true } : {}),
|
|
23
|
+
...(args.prBuildCommand ? { buildCommand: args.prBuildCommand } : {}),
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAIH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAe7F,OAAO,EAAmB,KAAK,YAAY,EAAuB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAIH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAe7F,OAAO,EAAmB,KAAK,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAQnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IACJ,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA+ErE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmV9E"}
|
|
@@ -66,6 +66,8 @@ import { summaryLedgerPrefix, writeGatedRunSummary } from "../../op/gate-summary
|
|
|
66
66
|
import { approveCommand, gateIsSealed } from "../../op/gate.js";
|
|
67
67
|
import { getHeadCommit } from "../../lifecycle/git.js";
|
|
68
68
|
import { remainingFanOut } from "../../components/fan-out.js";
|
|
69
|
+
import { readDeployedOutputs } from "../../components/wave-plan.js";
|
|
70
|
+
import { deployContext } from "../../components/driver.js";
|
|
69
71
|
import { resolveCliBuildParams, parseParamFlags } from "../build-params-cli.js";
|
|
70
72
|
import { formatError, formatInfo, formatWarning } from "../format.js";
|
|
71
73
|
import { FAN_OUT_GATE_OP } from "../../op/gate-name.js";
|
|
@@ -324,6 +326,29 @@ export async function runComponentsFanOut(ctx) {
|
|
|
324
326
|
}
|
|
325
327
|
}
|
|
326
328
|
const registry = await fanOutRegistry(projectPath, config);
|
|
329
|
+
const env = args.env ?? "local";
|
|
330
|
+
// A completed component's recorded outputs win over a `--seed-outputs`
|
|
331
|
+
// entry for the same name, as a fresh apply's outputs merge over a seed in
|
|
332
|
+
// the driver: the record holds what this fan-out itself applied. A seed
|
|
333
|
+
// neither gives is read from the deployed estate (#4104), through its
|
|
334
|
+
// capability's `outputs`, as pr-plan reads a dependency outside the change.
|
|
335
|
+
// One that cannot be read leaves its dependents' references unresolved.
|
|
336
|
+
const componentOutputs = { ...seededOutputs, ...priorOutputs };
|
|
337
|
+
const seeds = (progress ? remainingFanOut(derived.plan, derived.components, progress) : derived.plan).seeds;
|
|
338
|
+
let deployedSeeds;
|
|
339
|
+
try {
|
|
340
|
+
deployedSeeds = await readDeployedOutputs(seeds, new Map(derived.components.map((c) => [c.name, c])), registry, (name) => deployContext({ env }, name), componentOutputs);
|
|
341
|
+
}
|
|
342
|
+
catch (err) {
|
|
343
|
+
console.error(formatError({
|
|
344
|
+
message: `could not read the deployed outputs of ${seeds.filter((s) => !(s in componentOutputs)).join(", ")}: ${err instanceof Error ? err.message : String(err)}`,
|
|
345
|
+
hint: "Nothing ran. --seed-outputs <file> gives a component's outputs instead of reading them.",
|
|
346
|
+
}));
|
|
347
|
+
return 1;
|
|
348
|
+
}
|
|
349
|
+
for (const [name, keys] of Object.entries(deployedSeeds)) {
|
|
350
|
+
console.error(formatInfo(`${name}: outputs read from the deployed estate (${keys.length > 0 ? keys.join(", ") : "none yet"})`));
|
|
351
|
+
}
|
|
327
352
|
// #3061: the commit this run deploys, for the workloads' vcs.ref.head.revision.
|
|
328
353
|
const revision = await getHeadCommit().catch(() => undefined);
|
|
329
354
|
// The record is rewritten as each component settles, not only once the run
|
|
@@ -357,12 +382,9 @@ export async function runComponentsFanOut(ctx) {
|
|
|
357
382
|
let result;
|
|
358
383
|
try {
|
|
359
384
|
result = await runFanOut(derived.plan, derived.components, registry, {
|
|
360
|
-
env
|
|
385
|
+
env,
|
|
361
386
|
releaseIdentity: () => (revision ? { revision } : {}),
|
|
362
|
-
|
|
363
|
-
// entry for the same name, as a fresh apply's outputs merge over a seed in
|
|
364
|
-
// the driver: the record holds what this fan-out itself applied.
|
|
365
|
-
componentOutputs: { ...seededOutputs, ...priorOutputs },
|
|
387
|
+
componentOutputs,
|
|
366
388
|
...(gate ? { gate } : {}),
|
|
367
389
|
...(waveGate ? { waveGate } : {}),
|
|
368
390
|
...(waveGate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AA8CH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,qDAAqD;AACrD,eAAO,MAAM,aAAa,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AA8CH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,qDAAqD;AACrD,eAAO,MAAM,aAAa,cAAc,CAAC;AA6RzC,mKAAmK;AACnK,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAGxE;AAwDD,yLAAyL;AACzL,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAGzE"}
|
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":";AAKA,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAKA,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AA6uCzC;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAsMvC,CAAC"}
|
package/dist/cli/main.js
CHANGED
|
@@ -236,6 +236,56 @@ CI:
|
|
|
236
236
|
chant/lifecycle that a runner key signed. Pushes the
|
|
237
237
|
tags. --key, or the PEM in CHANT_RUNNER_KEY, signs
|
|
238
238
|
each tag with a runner key.
|
|
239
|
+
ci run plan|apply --env <env> --base <sha> [--pr <n>] [--commit <sha>]
|
|
240
|
+
[--forge github|gitlab|forgejo] [--gate <name>] [--branch <name>]
|
|
241
|
+
[--events-json] [--report-url <url>] [--image <image>]
|
|
242
|
+
[--before-script <line>]... [--pr-build]
|
|
243
|
+
[--pr-build-command <line>] [--chant <command>]
|
|
244
|
+
[--pass-env <NAME>]... [--secrets <file>] [--key <runner key.pem>]
|
|
245
|
+
[-o <dir>]
|
|
246
|
+
[--no-status] [--status-url <url template>]
|
|
247
|
+
Run the pull-request pipeline's plan or apply job as
|
|
248
|
+
a pipeline Op in a fresh worktree of --commit (default
|
|
249
|
+
HEAD) with a clean environment. --base and --pr stand
|
|
250
|
+
in for the forge's event values. --pr-build runs
|
|
251
|
+
the job's build and lint lines first. Records the run as
|
|
252
|
+
pr-plan or pr-apply on chant/lifecycle, signed with
|
|
253
|
+
--key or CHANT_RUNNER_KEY, so ci tick from runs counts
|
|
254
|
+
it, and copies the report to -o (default .chant/pr). With a forge
|
|
255
|
+
token it sets a chant/pr-plan or chant/pr-apply commit
|
|
256
|
+
status (pending, then success or failure); --no-status
|
|
257
|
+
turns that off, and --status-url links it.
|
|
258
|
+
--secrets (or CHANT_CI_SECRETS) names a dotenv or
|
|
259
|
+
JSON file only its owner can read whose values the
|
|
260
|
+
job gets, and which are shown as *** in the events,
|
|
261
|
+
the record, the report and the output.
|
|
262
|
+
With --report-url it also adds the run to
|
|
263
|
+
<url>/runs/index.json, newest first, cut to the
|
|
264
|
+
newest --run-index-limit entries (default 200).
|
|
265
|
+
ci runs --report-url <url> [--json]
|
|
266
|
+
List the runs in the index at the report URL, newest
|
|
267
|
+
first.
|
|
268
|
+
ci serve --forge forgejo|github --repo <owner/repo> --env <env>
|
|
269
|
+
[--interval <s>] [--max-jobs <n>] [--state <dir>]
|
|
270
|
+
[--author <login>]... [--once] [--rerun-failed] [--unsigned]
|
|
271
|
+
[ci run's job flags]
|
|
272
|
+
Poll the forge for open pull requests and the target
|
|
273
|
+
branch's head, and run ci run plan for each new pull
|
|
274
|
+
request head and ci run apply for each new commit on
|
|
275
|
+
the branch. Dedupes on job and commit in a state file
|
|
276
|
+
under --state, takes a lease per apply group, keeps
|
|
277
|
+
each apply's resume record there, and runs at most
|
|
278
|
+
--max-jobs (default 1) jobs at once. --once runs one
|
|
279
|
+
poll and waits for its jobs. --rerun-failed runs a
|
|
280
|
+
failed apply or plan again. Refuses to start when its
|
|
281
|
+
runner key is not listed in .chant/trust.json at the
|
|
282
|
+
target's head, unless --unsigned
|
|
283
|
+
ci serve|run --setup-key [--trust [--principal <name>]] [--state <dir>] [--branch <name>]
|
|
284
|
+
Make the host's runner key (Ed25519, mode 0600) in the
|
|
285
|
+
state directory when there is none and print its public
|
|
286
|
+
key. --trust commits its runner entry on a branch of its
|
|
287
|
+
own and pushes it for review; the target branch is never
|
|
288
|
+
written
|
|
239
289
|
ci workflow [--workflow <name>]... [--output <file>] Write
|
|
240
290
|
[--chant <command>] [--install <command>]
|
|
241
291
|
[--token-secret <NAME> | --app-id-var <VAR> --app-key-secret <NAME>]
|
|
@@ -661,6 +711,13 @@ Workspace (level 1, #2524):
|
|
|
661
711
|
threshold of the old one. A commit an agent run made
|
|
662
712
|
is attested by the run's signed statement; with
|
|
663
713
|
attested-runs, only those commits must be
|
|
714
|
+
workspace trust runner add <principal> --key <ssh-ed25519 line or file> [--class runner|service] [--by <principal>] [--expect <digest>] [--dry-run]
|
|
715
|
+
workspace trust runner remove <principal> [--by <principal>] [--expect <digest>] [--dry-run]
|
|
716
|
+
List a runner's key under runners in .chant/trust.json,
|
|
717
|
+
granting a runner the runner role, or take both away,
|
|
718
|
+
editing the file in place. --expect refuses the write
|
|
719
|
+
when the file's digest has changed. Prints the
|
|
720
|
+
trust-write document and the new digest; never commits
|
|
664
721
|
workspace signers [--json] [rotate [--threshold <n>] | sign --key <file>]
|
|
665
722
|
Show the signer history at base, or propose the next
|
|
666
723
|
signer set and sign it with a current signer's key
|
|
@@ -1289,6 +1346,11 @@ export const commandRegistry = [
|
|
|
1289
1346
|
{ name: "ci list", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-green-cli.js")).runCiList(ctx) },
|
|
1290
1347
|
{ name: "ci tick", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-green-cli.js")).runCiTick(ctx) },
|
|
1291
1348
|
{ name: "ci workflow", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-green-cli.js")).runCiWorkflow(ctx) },
|
|
1349
|
+
// #4094: one pull-request job as a pipeline Op in a fresh checkout, the chant runner's first slice.
|
|
1350
|
+
{ name: "ci run", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-run.js")).runCiRun(ctx) },
|
|
1351
|
+
// #4098: the run index at the report URL.
|
|
1352
|
+
{ name: "ci runs", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-run-index.js")).runCiRuns(ctx) },
|
|
1353
|
+
{ name: "ci serve", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-serve.js")).runCiServe(ctx) },
|
|
1292
1354
|
// #4026: the release cut from a green commit (ws-104). Imported on first use.
|
|
1293
1355
|
{ name: "release cut", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseCut(ctx) },
|
|
1294
1356
|
// #4027: publish a cut release, to the targets #4047 declares.
|
|
@@ -1387,6 +1449,8 @@ export const commandRegistry = [
|
|
|
1387
1449
|
// #2548 — an agent session's member, write scope and spec, for a session that resumes.
|
|
1388
1450
|
{ name: "workspace agent", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/agent-cli.js")).runWorkspaceAgent(ctx) },
|
|
1389
1451
|
{ name: "workspace verify", handler: async (ctx) => (await import("../workspace/trust/verify-cli.js")).runWorkspaceVerify(ctx) },
|
|
1452
|
+
// #3510 — a runner entry of .chant/trust.json, written through chant so a box repo never edits it by hand (ws-074).
|
|
1453
|
+
{ name: "workspace trust", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/trust/trust-write.js")).runWorkspaceTrust(ctx) },
|
|
1390
1454
|
{ name: "workspace signers", handler: async (ctx) => (await import("../workspace/trust/signers-cli.js")).runWorkspaceSigners(ctx) },
|
|
1391
1455
|
{ name: "workspace evidence", handler: async (ctx) => (await import("../workspace/trust/evidence-cli.js")).runWorkspaceEvidence(ctx) },
|
|
1392
1456
|
// State subcommands
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsF7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA+zBpD"}
|
package/dist/cli/parse-args.js
CHANGED
|
@@ -40,6 +40,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
40
40
|
"--composites",
|
|
41
41
|
"--stacks",
|
|
42
42
|
"--components",
|
|
43
|
+
"--pr-build",
|
|
43
44
|
"--up",
|
|
44
45
|
"--down",
|
|
45
46
|
"--include-dependents",
|
|
@@ -62,6 +63,10 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
62
63
|
"--yes",
|
|
63
64
|
"--confirm-prod",
|
|
64
65
|
"--once",
|
|
66
|
+
"--rerun-failed",
|
|
67
|
+
"--setup-key",
|
|
68
|
+
"--trust",
|
|
69
|
+
"--unsigned",
|
|
65
70
|
"--expire",
|
|
66
71
|
"--check-live",
|
|
67
72
|
"--check-snapshot",
|
|
@@ -489,6 +494,16 @@ export function parseArgs(args) {
|
|
|
489
494
|
throw new Error("--report-url needs a URL: --report-url s3://<bucket>/<prefix> or file://<directory>");
|
|
490
495
|
result.reportUrl = url;
|
|
491
496
|
}
|
|
497
|
+
else if (arg === "--no-status") {
|
|
498
|
+
// `chant ci run|serve --no-status` (#4097): post no commit status for the job.
|
|
499
|
+
result.noStatus = true;
|
|
500
|
+
}
|
|
501
|
+
else if (arg === "--status-url") {
|
|
502
|
+
// `chant ci run|serve --status-url <template>` (#4097): the link a job's status carries, in place of an https --report-url.
|
|
503
|
+
result.statusUrl = args[++i];
|
|
504
|
+
if (!result.statusUrl || result.statusUrl.startsWith("-"))
|
|
505
|
+
throw new Error("--status-url needs a URL template: --status-url https://host/reports/{key}");
|
|
506
|
+
}
|
|
492
507
|
else if (arg === "--allow-unsigned") {
|
|
493
508
|
// `chant release publish --allow-unsigned` (#4049).
|
|
494
509
|
result.allowUnsigned = true;
|
|
@@ -500,6 +515,16 @@ export function parseArgs(args) {
|
|
|
500
515
|
else if (arg === "--pr-loop") {
|
|
501
516
|
result.prLoop = true;
|
|
502
517
|
}
|
|
518
|
+
else if (arg === "--pr-build") {
|
|
519
|
+
// `chant build --pr-loop --pr-build` (#4088), and `chant ci run --pr-build` (#4094).
|
|
520
|
+
result.prBuild = true;
|
|
521
|
+
}
|
|
522
|
+
else if (arg === "--pr-build-command") {
|
|
523
|
+
const line = args[++i];
|
|
524
|
+
if (line === undefined || line === "")
|
|
525
|
+
throw new Error("--pr-build-command needs a shell line: --pr-build-command '<line>'");
|
|
526
|
+
result.prBuildCommand = line;
|
|
527
|
+
}
|
|
503
528
|
else if (arg === "--before-script") {
|
|
504
529
|
const line = args[++i];
|
|
505
530
|
if (line === undefined || line === "")
|
|
@@ -678,6 +703,56 @@ export function parseArgs(args) {
|
|
|
678
703
|
if (!result.ciChant || result.ciChant.startsWith("-"))
|
|
679
704
|
throw new Error("--chant needs the command that runs chant, such as \"npx tsx packages/core/src/cli/main.ts\": --chant <command>");
|
|
680
705
|
}
|
|
706
|
+
else if (arg === "--commit") {
|
|
707
|
+
// `chant ci run plan|apply --commit <sha>` (#4094): the commit the job runs at.
|
|
708
|
+
result.commit = args[++i];
|
|
709
|
+
if (!result.commit || result.commit.startsWith("-"))
|
|
710
|
+
throw new Error("--commit needs the commit the job runs at: --commit <sha>");
|
|
711
|
+
}
|
|
712
|
+
else if (arg === "--pass-env") {
|
|
713
|
+
// `chant ci run --pass-env <NAME>`, repeatable (#4094): a variable of the runner's environment the job gets.
|
|
714
|
+
const name = args[++i];
|
|
715
|
+
if (!name || name.startsWith("-"))
|
|
716
|
+
throw new Error("--pass-env needs a variable's name, such as AWS_PROFILE: --pass-env <NAME>");
|
|
717
|
+
(result.passEnv ?? (result.passEnv = [])).push(name);
|
|
718
|
+
}
|
|
719
|
+
else if (arg === "--secrets") {
|
|
720
|
+
// `chant ci run|serve --secrets <file>` (#4096): the host's secrets file, readable only by its owner.
|
|
721
|
+
result.ciSecrets = args[++i];
|
|
722
|
+
if (!result.ciSecrets || result.ciSecrets.startsWith("-"))
|
|
723
|
+
throw new Error("--secrets needs the host's secrets file, a dotenv or JSON file only its owner can read: --secrets <file>");
|
|
724
|
+
}
|
|
725
|
+
else if (arg === "--repo") {
|
|
726
|
+
// `chant ci serve --repo <owner/repo>` (#4095): the repository whose pull requests and target branch it polls.
|
|
727
|
+
result.ciRepo = args[++i];
|
|
728
|
+
if (!result.ciRepo || !/^[^/\s-][^/\s]*\/[^/\s]+$/.test(result.ciRepo))
|
|
729
|
+
throw new Error("--repo needs the repository as owner/name: --repo <owner/repo>");
|
|
730
|
+
}
|
|
731
|
+
else if (arg === "--run-index-limit") {
|
|
732
|
+
// `chant ci run --run-index-limit <n>` (#4098): how many runs the index at the report URL keeps.
|
|
733
|
+
const n = Number(args[++i]);
|
|
734
|
+
if (!Number.isInteger(n) || n < 1)
|
|
735
|
+
throw new Error("--run-index-limit needs a whole number of runs, 1 or more: --run-index-limit <n>");
|
|
736
|
+
result.runIndexLimit = n;
|
|
737
|
+
}
|
|
738
|
+
else if (arg === "--max-jobs") {
|
|
739
|
+
// `chant ci serve --max-jobs <n>` (#4095): how many jobs run at once.
|
|
740
|
+
const n = Number(args[++i]);
|
|
741
|
+
if (!Number.isInteger(n) || n < 1)
|
|
742
|
+
throw new Error("--max-jobs needs a whole number of jobs, 1 or more: --max-jobs <n>");
|
|
743
|
+
result.maxJobs = n;
|
|
744
|
+
}
|
|
745
|
+
else if (arg === "--author") {
|
|
746
|
+
// `chant ci serve --author <login>`, repeatable (#4095): plan only pull requests these people opened.
|
|
747
|
+
const login = args[++i];
|
|
748
|
+
if (!login || login.startsWith("-"))
|
|
749
|
+
throw new Error("--author needs a forge login: --author <login>");
|
|
750
|
+
(result.ciAuthors ?? (result.ciAuthors = [])).push(login);
|
|
751
|
+
}
|
|
752
|
+
else if (arg === "--rerun-failed") {
|
|
753
|
+
// `chant ci serve --rerun-failed` (#4095): run again the failed apply at the target branch's head, and failed plans of open heads.
|
|
754
|
+
result.rerunFailed = true;
|
|
755
|
+
}
|
|
681
756
|
else if (arg === "--install") {
|
|
682
757
|
// `chant ci workflow --install <command>` (#3573): a step before the tick that installs what --chant runs.
|
|
683
758
|
result.ciInstall = args[++i];
|
|
@@ -713,6 +788,12 @@ export function parseArgs(args) {
|
|
|
713
788
|
if (!result.verdict || result.verdict.startsWith("-"))
|
|
714
789
|
throw new Error("--verdict needs agree, dissent or abstain");
|
|
715
790
|
}
|
|
791
|
+
else if (arg === "--class") {
|
|
792
|
+
// `chant workspace trust runner add <principal> --class runner|service` (#3510).
|
|
793
|
+
result.runnerClass = args[++i];
|
|
794
|
+
if (!result.runnerClass || result.runnerClass.startsWith("-"))
|
|
795
|
+
throw new Error("--class needs runner or service: --class <class>");
|
|
796
|
+
}
|
|
716
797
|
else if (arg === "--by") {
|
|
717
798
|
// `chant workspace records review <id> --by <principal>` (#2670): whoever the caller says.
|
|
718
799
|
result.by = args[++i];
|
|
@@ -952,6 +1033,24 @@ export function parseArgs(args) {
|
|
|
952
1033
|
else if (arg === "--once") {
|
|
953
1034
|
result.once = true;
|
|
954
1035
|
}
|
|
1036
|
+
else if (arg === "--setup-key") {
|
|
1037
|
+
// `chant ci serve|run --setup-key` (#4099): make the host's runner key and print its public half.
|
|
1038
|
+
result.setupKey = true;
|
|
1039
|
+
}
|
|
1040
|
+
else if (arg === "--trust") {
|
|
1041
|
+
// `chant ci serve|run --setup-key --trust` (#4099): list the key in .chant/trust.json on a branch.
|
|
1042
|
+
result.trustKey = true;
|
|
1043
|
+
}
|
|
1044
|
+
else if (arg === "--unsigned") {
|
|
1045
|
+
// `chant ci serve --unsigned` (#4099): serve without a runner key listed at the target's head.
|
|
1046
|
+
result.unsigned = true;
|
|
1047
|
+
}
|
|
1048
|
+
else if (arg === "--principal") {
|
|
1049
|
+
// `chant ci serve|run --setup-key --trust --principal <name>` (#4099): the runner's principal.
|
|
1050
|
+
result.ciPrincipal = args[++i];
|
|
1051
|
+
if (!result.ciPrincipal || result.ciPrincipal.startsWith("-"))
|
|
1052
|
+
throw new Error("--principal needs the runner's principal: --principal <name>");
|
|
1053
|
+
}
|
|
955
1054
|
else if (arg === "--work") {
|
|
956
1055
|
// `chant run <op> --work <id>` (#2748)
|
|
957
1056
|
const value = args[++i];
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -325,6 +325,10 @@ export interface ParsedArgs {
|
|
|
325
325
|
* merge bound to the approved digest.
|
|
326
326
|
*/
|
|
327
327
|
prLoop?: boolean;
|
|
328
|
+
/** `chant build --pr-loop --pr-build` (#4088) — build and lint before pr-plan and pr-apply. */
|
|
329
|
+
prBuild?: boolean;
|
|
330
|
+
/** `chant build --pr-loop --pr-build-command <line>` (#4088) — the build line to run in place of `chant build --env <env>`. */
|
|
331
|
+
prBuildCommand?: string;
|
|
328
332
|
/**
|
|
329
333
|
* `chant components fan-out --resume <file>` (#2420) — the attempt record
|
|
330
334
|
* this fan-out reads before it starts and writes when it finishes. Repeating
|
|
@@ -453,8 +457,28 @@ export interface ParsedArgs {
|
|
|
453
457
|
branch?: string;
|
|
454
458
|
/** `chant ci workflow --workflow <name>`, repeatable (#3573): a workflow whose completion triggers a tick, beside those the scan finds. */
|
|
455
459
|
ciWorkflows?: string[];
|
|
456
|
-
/** `chant ci
|
|
460
|
+
/** `chant ci run plan|apply --commit <sha>` (#4094): the commit the job runs at. Default `HEAD`. */
|
|
461
|
+
commit?: string;
|
|
462
|
+
/** `chant ci run --pass-env <NAME>`, repeatable (#4094): a variable of the runner's environment the job gets, beside the few it always gets. */
|
|
463
|
+
passEnv?: string[];
|
|
464
|
+
/** `chant ci run|serve --secrets <file>` (#4096): the host's secrets file. Default the file `CHANT_CI_SECRETS` names. */
|
|
465
|
+
ciSecrets?: string;
|
|
466
|
+
/** `chant ci workflow --chant <command>` (#3573): the command the tick step runs chant with, in place of the npx pin. Also `chant ci run --chant` (#4094): what runs chant in the job. */
|
|
457
467
|
ciChant?: string;
|
|
468
|
+
/** `chant ci run|serve --no-status` (#4097): post no commit status for the job. */
|
|
469
|
+
noStatus?: boolean;
|
|
470
|
+
/** `chant ci run|serve --status-url <template>` (#4097): the link a job's status carries. `{key}` is `<pr>/<commit>[/<member>]`, as `--report-url` keys it. */
|
|
471
|
+
statusUrl?: string;
|
|
472
|
+
/** `chant ci run --run-index-limit <n>` (#4098): how many runs the index at the report URL keeps. Default 200. */
|
|
473
|
+
runIndexLimit?: number;
|
|
474
|
+
/** `chant ci serve --repo <owner/repo>` (#4095): the repository it polls. */
|
|
475
|
+
ciRepo?: string;
|
|
476
|
+
/** `chant ci serve --max-jobs <n>` (#4095): how many jobs run at once. Default 1. */
|
|
477
|
+
maxJobs?: number;
|
|
478
|
+
/** `chant ci serve --author <login>`, repeatable (#4095): plan only pull requests these logins opened. */
|
|
479
|
+
ciAuthors?: string[];
|
|
480
|
+
/** `chant ci serve --rerun-failed` (#4095): run again the failed apply at the target's head and failed plans of open heads. */
|
|
481
|
+
rerunFailed?: boolean;
|
|
458
482
|
/** `chant ci workflow --install <command>` (#3573): a step before the tick that installs what `--chant` runs. */
|
|
459
483
|
ciInstall?: string;
|
|
460
484
|
/** `chant ci workflow --token-secret <NAME>` (#3573): the repository secret the tick's tag push authenticates with. */
|
|
@@ -473,6 +497,16 @@ export interface ParsedArgs {
|
|
|
473
497
|
* `records-write.ts`.
|
|
474
498
|
*/
|
|
475
499
|
by?: string;
|
|
500
|
+
/** `chant ci serve|run --setup-key` (#4099): make the host's runner key in the state directory and print its public half. */
|
|
501
|
+
setupKey?: boolean;
|
|
502
|
+
/** `chant ci serve|run --setup-key --trust` (#4099): list the runner key in .chant/trust.json on a branch pushed for review. */
|
|
503
|
+
trustKey?: boolean;
|
|
504
|
+
/** `chant ci serve --unsigned` (#4099): start without a runner key listed in .chant/trust.json at the target's head. */
|
|
505
|
+
unsigned?: boolean;
|
|
506
|
+
/** `chant ci serve|run --setup-key --trust --principal <name>` (#4099): the principal the runner key is listed for. */
|
|
507
|
+
ciPrincipal?: string;
|
|
508
|
+
/** `chant workspace trust runner add <principal> --class runner|service` (#3510): the runner entry's class. */
|
|
509
|
+
runnerClass?: string;
|
|
476
510
|
/**
|
|
477
511
|
* `chant workspace records review <id> --sign [<key file>]` (#2687): the key that seals the verdict, or true for git's user.signingkey.
|
|
478
512
|
* On `records new` and `records amend`, the key that seals the record's author (#2688).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AAC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
37
37
|
* the job's own environment brings the credentials an `s3://` URL needs.
|
|
38
38
|
*
|
|
39
|
+
* With `build` (#4088) both jobs run the project's build and `chant lint`
|
|
40
|
+
* before their command, and fail on an error. A `cfn-deploy` member's plan
|
|
41
|
+
* and apply read the built template, so a project with one needs it. The
|
|
42
|
+
* build is `chant build --env <env>`, or `buildCommand` when the templates
|
|
43
|
+
* come from several builds (`npm run build`).
|
|
44
|
+
*
|
|
39
45
|
* In a workspace member (#3465) both commands run in the member's directory
|
|
40
46
|
* and pass `--member <name>`, so the member's gate (`pr-<number>-<member>`),
|
|
41
47
|
* note and statuses stay apart from every other member's on the same pull
|
|
@@ -91,6 +97,20 @@ export interface PrLoopPipelineOptions {
|
|
|
91
97
|
* such as `$CHANT_REPORT_URL`.
|
|
92
98
|
*/
|
|
93
99
|
reportUrl?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Build and lint before `pr-plan` and before `pr-apply` (#4088): the build
|
|
102
|
+
* line, then `chant lint`, each failing the job on an error. A `cfn-deploy`
|
|
103
|
+
* member reads the built template, so a project with one sets this. The
|
|
104
|
+
* build line is `chant build --env <env>` unless `buildCommand` names
|
|
105
|
+
* another. Default false.
|
|
106
|
+
*/
|
|
107
|
+
build?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The shell line that builds the project in place of `chant build --env
|
|
110
|
+
* <env>`, for a project whose templates come from several builds, such as
|
|
111
|
+
* `npm run build`. Setting it turns `build` on.
|
|
112
|
+
*/
|
|
113
|
+
buildCommand?: string;
|
|
94
114
|
/**
|
|
95
115
|
* Which GitHub-shaped forge the workflow is for. Set by the forgejo
|
|
96
116
|
* generator, which reuses the github one; a caller never needs to.
|
|
@@ -111,7 +131,11 @@ export interface PrLoopJob {
|
|
|
111
131
|
env: Record<string, string>;
|
|
112
132
|
/** Shell lines to run before the command, to settle values the forge may leave unusable. */
|
|
113
133
|
setup?: string[];
|
|
134
|
+
/** With `build` (#4088): the build line and the lint line, run in this order before the command. */
|
|
135
|
+
build?: string[];
|
|
114
136
|
}
|
|
137
|
+
/** The lines `build` (#4088) runs before a job's command: the build, then the lint. Empty without the option. */
|
|
138
|
+
export declare function prLoopBuildLines(env: string, options?: PrLoopPipelineOptions): string[];
|
|
115
139
|
/**
|
|
116
140
|
* The two jobs for `forge`. `member` is the workspace member the pipeline is
|
|
117
141
|
* generated for; the commands then run in its directory, so `--output` is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/pr-pipeline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/pr-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,eAAe,mCAAmC,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,YAAW,CAAC;AAEtC,8CAA8C;AAC9C,eAAO,MAAM,aAAa,UAEzB,CAAC;AAEF,mHAAmH;AACnH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,yBAAqC,CAAC;AAErE,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oGAAoG;IACpG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B;AAED,8FAA8F;AAC9F,MAAM,WAAW,SAAS;IACxB,yBAAyB;IACzB,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,iHAAiH;AACjH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CAG3F;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAoC3H;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAU1D"}
|
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
* the change set and the events where a reader outside CI can fetch them;
|
|
37
37
|
* the job's own environment brings the credentials an `s3://` URL needs.
|
|
38
38
|
*
|
|
39
|
+
* With `build` (#4088) both jobs run the project's build and `chant lint`
|
|
40
|
+
* before their command, and fail on an error. A `cfn-deploy` member's plan
|
|
41
|
+
* and apply read the built template, so a project with one needs it. The
|
|
42
|
+
* build is `chant build --env <env>`, or `buildCommand` when the templates
|
|
43
|
+
* come from several builds (`npm run build`).
|
|
44
|
+
*
|
|
39
45
|
* In a workspace member (#3465) both commands run in the member's directory
|
|
40
46
|
* and pass `--member <name>`, so the member's gate (`pr-<number>-<member>`),
|
|
41
47
|
* note and statuses stay apart from every other member's on the same pull
|
|
@@ -73,6 +79,12 @@ export function prLoopSetup(image) {
|
|
|
73
79
|
* artifact carries them.
|
|
74
80
|
*/
|
|
75
81
|
export const PR_LOOP_EVENTS_DIR = `${PR_LOOP_REPORT_DIR}/run-events`;
|
|
82
|
+
/** The lines `build` (#4088) runs before a job's command: the build, then the lint. Empty without the option. */
|
|
83
|
+
export function prLoopBuildLines(env, options = {}) {
|
|
84
|
+
if (!options.build && !options.buildCommand)
|
|
85
|
+
return [];
|
|
86
|
+
return [options.buildCommand ?? `chant build --env ${env}`, "chant lint"];
|
|
87
|
+
}
|
|
76
88
|
/**
|
|
77
89
|
* The two jobs for `forge`. `member` is the workspace member the pipeline is
|
|
78
90
|
* generated for; the commands then run in its directory, so `--output` is
|
|
@@ -87,6 +99,8 @@ export function prLoopJobs(forge, env, options = {}, member) {
|
|
|
87
99
|
...(options.reportUrl ? ["--report-url", JSON.stringify(options.reportUrl)] : []),
|
|
88
100
|
];
|
|
89
101
|
const github = forge !== "gitlab";
|
|
102
|
+
const buildLines = prLoopBuildLines(env, options);
|
|
103
|
+
const build = buildLines.length > 0 ? { build: buildLines } : {};
|
|
90
104
|
const jobEnv = {
|
|
91
105
|
...(github ? { GITHUB_TOKEN: GITHUB_JOB_TOKEN } : {}),
|
|
92
106
|
...(options.events ? { CHANT_RUN_EVENTS_DIR: PR_LOOP_EVENTS_DIR } : {}),
|
|
@@ -98,6 +112,7 @@ export function prLoopJobs(forge, env, options = {}, member) {
|
|
|
98
112
|
env: github
|
|
99
113
|
? { BASE_SHA: "${{ github.event.pull_request.base.sha }}", PR_NUMBER: "${{ github.event.pull_request.number }}", ...jobEnv }
|
|
100
114
|
: { BASE_SHA: "$CI_MERGE_REQUEST_DIFF_BASE_SHA", PR_NUMBER: "$CI_MERGE_REQUEST_IID", ...jobEnv },
|
|
115
|
+
...build,
|
|
101
116
|
},
|
|
102
117
|
{
|
|
103
118
|
jobName: "apply",
|
|
@@ -108,6 +123,7 @@ export function prLoopJobs(forge, env, options = {}, member) {
|
|
|
108
123
|
].join(" "),
|
|
109
124
|
env: github ? { BASE_SHA: "${{ github.event.before }}", ...jobEnv } : { BASE_SHA: "$CI_COMMIT_BEFORE_SHA", ...jobEnv },
|
|
110
125
|
...(github ? {} : { setup: [gitlabBaseFallback(options.branch)] }),
|
|
126
|
+
...build,
|
|
111
127
|
},
|
|
112
128
|
];
|
|
113
129
|
}
|
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
* its dependents in one rollout is what gated waves are for (#3049): each
|
|
20
20
|
* wave is planned after the one before it applied.
|
|
21
21
|
*
|
|
22
|
+
* A dependency the change did not select is read the same way (#4104), so
|
|
23
|
+
* a change to one cluster plans it against the network it sits on. That is
|
|
24
|
+
* why `components` is every component in the project and not the selection.
|
|
25
|
+
* `--seed-outputs` wins over a read, and a dependency whose steps cannot say
|
|
26
|
+
* leaves its dependents' references unresolved. The apply stage's plan reads
|
|
27
|
+
* the same dependencies, so on the same estate it gets the digest the plan
|
|
28
|
+
* stage showed, and it applies against the outputs its plans read
|
|
29
|
+
* (`set.outputs`). A resume plans against the outputs the approved plans
|
|
30
|
+
* read, from the record (`planOutputs`), and reads nothing those cover.
|
|
31
|
+
*
|
|
22
32
|
* ## Finishing an apply that failed partway
|
|
23
33
|
*
|
|
24
34
|
* {@link resumePrSet} (#3464) is fan-out's resume (#2417, #3049) for a pull
|
|
@@ -43,7 +53,7 @@ import type { CapabilityRegistry } from "./capability.js";
|
|
|
43
53
|
import type { RunProgressEvent } from "./run-progress.js";
|
|
44
54
|
import type { RunEventSink } from "../run-event-stream.js";
|
|
45
55
|
export interface PrPlanSetOptions {
|
|
46
|
-
/** Every component in the project. */
|
|
56
|
+
/** Every component in the project, not the selection: a planned member's dependency outside it is read too (#4104). */
|
|
47
57
|
components: DriverComponent[];
|
|
48
58
|
/** The fan-out the change derives (`planFanOut`). Its `order` is what is planned. */
|
|
49
59
|
plan: FanOutPlan;
|
|
@@ -70,13 +80,21 @@ export interface PrPlanSet {
|
|
|
70
80
|
plans: Record<string, Record<string, unknown>>;
|
|
71
81
|
/** The outputs the plans read: the seeds, and each dependency's outputs as they stood. */
|
|
72
82
|
outputs: Record<string, Record<string, unknown>>;
|
|
83
|
+
/**
|
|
84
|
+
* Per dependency read from the deployed estate (#4104), the names of the
|
|
85
|
+
* outputs the read gave, sorted. The seeds are not here. Absent when
|
|
86
|
+
* nothing was read. The report's `deployedOutputs`.
|
|
87
|
+
*/
|
|
88
|
+
deployedOutputs?: Record<string, string[]>;
|
|
73
89
|
/** Whether any component failed to plan. */
|
|
74
90
|
failed: boolean;
|
|
75
91
|
}
|
|
76
92
|
/**
|
|
77
93
|
* Plan every component in `plan.order`, a wave at a time, each against the
|
|
78
94
|
* outputs its dependencies have now. Never throws for a component that fails
|
|
79
|
-
* to plan: it becomes a failed member, and `failed` is set.
|
|
95
|
+
* to plan: it becomes a failed member, and `failed` is set. Throws when a
|
|
96
|
+
* planned member's dependency is not among `components`, which means the
|
|
97
|
+
* caller passed the selection where the whole graph belongs.
|
|
80
98
|
*/
|
|
81
99
|
export declare function planPrSet(options: PrPlanSetOptions): Promise<PrPlanSet>;
|
|
82
100
|
/**
|