@intentius/chant 0.124.89 → 0.124.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actor.d.ts +5 -3
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +7 -5
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/core.js +11 -1
- package/dist/ci-comment-commands.d.ts +18 -2
- package/dist/ci-comment-commands.d.ts.map +1 -1
- package/dist/ci-comment-commands.js +30 -2
- package/dist/ci-job-guard.d.ts +42 -45
- package/dist/ci-job-guard.d.ts.map +1 -1
- package/dist/ci-job-guard.js +206 -3
- package/dist/ci-note-commands.d.ts +41 -1
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +64 -5
- package/dist/ci-product.d.ts +50 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +52 -6
- package/dist/cli/handlers/pr-comment.d.ts +13 -1
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
- package/dist/cli/handlers/pr-comment.js +90 -1
- package/dist/cli/handlers/pr-notes.d.ts.map +1 -1
- package/dist/cli/handlers/pr-notes.js +23 -1
- package/dist/cli/handlers/pr.d.ts +2 -2
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +41 -20
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +154 -4
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +17 -0
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +28 -0
- package/dist/cli/registry.d.ts +12 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/pr-checks.d.ts +39 -1
- package/dist/components/pr-checks.d.ts.map +1 -1
- package/dist/components/pr-checks.js +45 -2
- package/dist/components/pr-pipeline.d.ts +11 -3
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +20 -7
- package/dist/components/product-pipeline.d.ts +54 -2
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +63 -6
- package/dist/components/product-plan.d.ts +92 -2
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +172 -22
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +37 -23
- package/dist/lexicon-module.d.ts +2 -0
- package/dist/lexicon-module.d.ts.map +1 -1
- package/dist/lexicon-module.js +6 -2
- package/dist/lexicon.d.ts +82 -4
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-applied.d.ts +9 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -1
- package/dist/op/apply-status.d.ts +84 -0
- package/dist/op/apply-status.d.ts.map +1 -0
- package/dist/op/apply-status.js +106 -0
- package/dist/op/before-merge-decide.d.ts +102 -0
- package/dist/op/before-merge-decide.d.ts.map +1 -0
- package/dist/op/before-merge-decide.js +142 -0
- package/dist/op/before-merge-done.d.ts +56 -0
- package/dist/op/before-merge-done.d.ts.map +1 -0
- package/dist/op/before-merge-done.js +69 -0
- package/dist/op/before-merge-store.d.ts +20 -0
- package/dist/op/before-merge-store.d.ts.map +1 -0
- package/dist/op/before-merge-store.js +48 -0
- package/dist/op/before-merge.d.ts +150 -0
- package/dist/op/before-merge.d.ts.map +1 -0
- package/dist/op/before-merge.js +207 -0
- package/dist/op/follow-on-run.d.ts +117 -0
- package/dist/op/follow-on-run.d.ts.map +1 -0
- package/dist/op/follow-on-run.js +154 -0
- package/dist/op/follow-on-store.d.ts +17 -0
- package/dist/op/follow-on-store.d.ts.map +1 -0
- package/dist/op/follow-on-store.js +54 -0
- package/dist/op/gate.d.ts +6 -0
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +10 -1
- package/dist/op/index.d.ts +3 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-after-plan.d.ts +13 -0
- package/dist/op/op-waves-after-plan.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.d.ts +4 -1
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
- package/dist/op/op-waves-evidence-jobs.js +10 -2
- package/dist/op/op-waves-follow-on.d.ts +162 -0
- package/dist/op/op-waves-follow-on.d.ts.map +1 -0
- package/dist/op/op-waves-follow-on.js +355 -0
- package/dist/op/op-waves-run.d.ts +146 -6
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +871 -99
- package/dist/op/op-waves-split.d.ts +122 -0
- package/dist/op/op-waves-split.d.ts.map +1 -0
- package/dist/op/op-waves-split.js +166 -0
- package/dist/op/op-waves.d.ts +20 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +15 -1
- package/dist/op/schedule-overdue.d.ts +15 -1
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +18 -2
- package/dist/op/stage-hooks.d.ts +36 -1
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +17 -3
- package/dist/op/wave-stop.d.ts +4 -1
- package/dist/op/wave-stop.d.ts.map +1 -1
- package/dist/op/wave-stop.js +4 -2
- package/dist/planned-files.d.ts +16 -8
- package/dist/planned-files.d.ts.map +1 -1
- package/dist/planned-files.js +12 -8
- package/dist/pr-post.d.ts +6 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +7 -5
- package/dist/release-floors.d.ts +9 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +27 -19
- package/dist/wave-blocked.d.ts +7 -1
- package/dist/wave-blocked.d.ts.map +1 -1
- package/dist/wave-blocked.js +7 -2
- package/dist/wave-runtime.mjs +364 -351
- package/package.json +1 -1
- package/src/actor.test.ts +14 -1
- package/src/actor.ts +8 -6
- package/src/audit/core.ts +13 -1
- package/src/audit/first-load.test.ts +101 -0
- package/src/ci-comment-commands.test.ts +63 -0
- package/src/ci-comment-commands.ts +43 -4
- package/src/ci-image.test.ts +1 -2
- package/src/ci-job-guard.before-merge.test.ts +148 -0
- package/src/ci-job-guard.follow-on-record.test.ts +137 -0
- package/src/ci-job-guard.follow-on.test.ts +144 -0
- package/src/ci-job-guard.ts +221 -3
- package/src/ci-note-commands.test.ts +76 -1
- package/src/ci-note-commands.ts +96 -7
- package/src/ci-product.ts +65 -6
- package/src/cli/handlers/pr-comment.ts +85 -2
- package/src/cli/handlers/pr-notes.ts +30 -6
- package/src/cli/handlers/pr.ts +34 -17
- package/src/cli/handlers/run-wave.ts +144 -4
- package/src/cli/main.ts +17 -0
- package/src/cli/parse-args.ts +20 -0
- package/src/cli/registry.ts +12 -1
- package/src/components/pr-checks.ts +66 -2
- package/src/components/pr-pipeline.ts +21 -9
- package/src/components/product-pipeline.apply-status.test.ts +50 -0
- package/src/components/product-pipeline.ts +117 -9
- package/src/components/product-plan-names.test.ts +135 -0
- package/src/components/product-plan.test.ts +23 -5
- package/src/components/product-plan.ts +248 -25
- package/src/floor-table.data.ts +37 -23
- package/src/lexicon-module.ts +6 -2
- package/src/lexicon.ts +78 -1
- package/src/lifecycle/gate-applied.ts +7 -0
- package/src/op/apply-status.test.ts +83 -0
- package/src/op/apply-status.ts +132 -0
- package/src/op/before-merge-decide.ts +190 -0
- package/src/op/before-merge-done.ts +99 -0
- package/src/op/before-merge-store.ts +44 -0
- package/src/op/before-merge.test.ts +201 -0
- package/src/op/before-merge.ts +266 -0
- package/src/op/follow-on-run.ts +206 -0
- package/src/op/follow-on-store.ts +54 -0
- package/src/op/gate.ts +16 -1
- package/src/op/index.ts +5 -0
- package/src/op/op-waves-after-plan.ts +13 -0
- package/src/op/op-waves-evidence-jobs.ts +11 -3
- package/src/op/op-waves-follow-on-record.test.ts +152 -0
- package/src/op/op-waves-follow-on.test.ts +247 -0
- package/src/op/op-waves-follow-on.ts +385 -0
- package/src/op/op-waves-render-spec.test.ts +1 -2
- package/src/op/op-waves-run.ts +971 -93
- package/src/op/op-waves-split-product.test.ts +288 -0
- package/src/op/op-waves-split-step.test.ts +298 -0
- package/src/op/op-waves-split.test.ts +196 -0
- package/src/op/op-waves-split.ts +189 -0
- package/src/op/op-waves.ts +28 -3
- package/src/op/schedule-overdue.test.ts +29 -1
- package/src/op/schedule-overdue.ts +27 -3
- package/src/op/stage-hooks.ts +52 -4
- package/src/op/wave-stop.ts +5 -3
- package/src/planned-files.test.ts +33 -0
- package/src/planned-files.ts +26 -10
- package/src/pr-post.ts +13 -5
- package/src/release-floors.ts +31 -19
- package/src/wave-blocked.ts +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-hooks.d.ts","sourceRoot":"","sources":["../../src/op/stage-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAEhF,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC9B,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,yDAAyD;IACzD,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,YACnC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EACjG,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CACvF,CAAC;AAEX,4HAA4H;AAC5H,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,MAAM,EAAE,MAAM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zC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,uCAAuC;AACvC,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,iGAAiG;IACjG,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAC9B;AAED,2EAA2E;AAC3E,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACnF,uCAAuC;IACvC,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAaD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAG,aAAa,CAG1I;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC,CAGnK"}
|
package/dist/op/stage-hooks.js
CHANGED
|
@@ -157,7 +157,7 @@ function* hookListSteps(at, moment, hooks, runs, runsPath, extraEnv) {
|
|
|
157
157
|
for (const call of calls) {
|
|
158
158
|
const label = `${moment} hook ${name}${call.target ? ` (${call.target})` : ""}`;
|
|
159
159
|
rmSync(join(cwd, holdPath), { force: true });
|
|
160
|
-
const code = yield { label, argv: call.argv, cwd, env: call.env };
|
|
160
|
+
const code = yield { label, name, moment, ...(call.target ? { target: call.target } : {}), argv: call.argv, cwd, env: call.env };
|
|
161
161
|
const base = { moment, name, ...(call.target ? { target: call.target } : {}), exit: code };
|
|
162
162
|
if (code === 0) {
|
|
163
163
|
out.outcomes.push({ ...base, outcome: "passed" });
|
|
@@ -183,6 +183,13 @@ function* hookListSteps(at, moment, hooks, runs, runsPath, extraEnv) {
|
|
|
183
183
|
}
|
|
184
184
|
return out;
|
|
185
185
|
}
|
|
186
|
+
/** The in-process hook a product serves under `name` (#4994), or undefined: an own property that is a function. */
|
|
187
|
+
export function inProcessHookOf(hooks, name) {
|
|
188
|
+
if (!hooks || !Object.prototype.hasOwnProperty.call(hooks, name))
|
|
189
|
+
return undefined;
|
|
190
|
+
const fn = hooks[name];
|
|
191
|
+
return typeof fn === "function" ? fn : undefined;
|
|
192
|
+
}
|
|
186
193
|
/** The exit code a call that did not start counts as, after its error is logged. */
|
|
187
194
|
function didNotRun(call, err, log) {
|
|
188
195
|
log(`${call.label} did not run: ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -209,7 +216,11 @@ export function runHookList(at, moment, hooks, runs, runsPath, extraEnv = {}) {
|
|
|
209
216
|
}
|
|
210
217
|
return step.value;
|
|
211
218
|
}
|
|
212
|
-
/**
|
|
219
|
+
/**
|
|
220
|
+
* {@link runHookList} with an exec that returns a promise (#4334). A hook
|
|
221
|
+
* whose name `at.inProcess` holds is called in this process in place of its
|
|
222
|
+
* command (#4994).
|
|
223
|
+
*/
|
|
213
224
|
export async function runHookListAsync(at, moment, hooks, runs, runsPath, extraEnv = {}) {
|
|
214
225
|
const steps = hookListSteps(at, moment, hooks, runs, runsPath, extraEnv);
|
|
215
226
|
let step = steps.next();
|
|
@@ -217,7 +228,10 @@ export async function runHookListAsync(at, moment, hooks, runs, runsPath, extraE
|
|
|
217
228
|
const call = step.value;
|
|
218
229
|
let code;
|
|
219
230
|
try {
|
|
220
|
-
|
|
231
|
+
const own = inProcessHookOf(at.inProcess, call.name);
|
|
232
|
+
code = own
|
|
233
|
+
? await own({ name: call.name, moment: call.moment, ...(call.target ? { target: call.target } : {}), argv: call.argv, cwd: call.cwd, env: call.env })
|
|
234
|
+
: await at.exec(call.argv, call.cwd, call.env);
|
|
221
235
|
}
|
|
222
236
|
catch (err) {
|
|
223
237
|
code = didNotRun(call, err, at.log);
|
package/dist/op/wave-stop.d.ts
CHANGED
|
@@ -45,10 +45,13 @@ export declare function waveStopAt(op: string, sha: string, opts?: {
|
|
|
45
45
|
* What a wave job of op `op` says when wave `k` waits behind a comment's
|
|
46
46
|
* stop at the job's checkout (`git rev-parse HEAD`). Undefined when it runs:
|
|
47
47
|
* no stop, no commit to read, or a branch that cannot be read, so a stop
|
|
48
|
-
* never fails a wave that would have run.
|
|
48
|
+
* never fails a wave that would have run. `sha` (#4987) names the commit
|
|
49
|
+
* in place of the checkout's: a split wave's gate job runs at the default
|
|
50
|
+
* branch and reads the stop of the decided head.
|
|
49
51
|
*/
|
|
50
52
|
export declare function waveStopLine(op: string, k: number, opts?: {
|
|
51
53
|
cwd?: string;
|
|
54
|
+
sha?: string;
|
|
52
55
|
}): Promise<string | undefined>;
|
|
53
56
|
/**
|
|
54
57
|
* Set op `op`'s stop at commit `sha`, or clear it (`stop` null), and push
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wave-stop.d.ts","sourceRoot":"","sources":["../../src/op/wave-stop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,uDAAuD;AACvD,eAAO,MAAM,cAAc,WAAW,CAAC;AAEvC,8CAA8C;AAC9C,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,iCAAiC;AACjC,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,iEAAiE;AACjE,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC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KD,uGAAuG;AACvG,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,aAAa,CAiBjE;AAED,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAG3D;AAED,2CAA2C;AAC3C,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED,sJAAsJ;AACtJ,wBAAsB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAMpH;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiBhI;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,CAoB7J"}
|
package/dist/op/wave-stop.js
CHANGED
|
@@ -68,12 +68,14 @@ export async function waveStopAt(op, sha, opts = {}) {
|
|
|
68
68
|
* What a wave job of op `op` says when wave `k` waits behind a comment's
|
|
69
69
|
* stop at the job's checkout (`git rev-parse HEAD`). Undefined when it runs:
|
|
70
70
|
* no stop, no commit to read, or a branch that cannot be read, so a stop
|
|
71
|
-
* never fails a wave that would have run.
|
|
71
|
+
* never fails a wave that would have run. `sha` (#4987) names the commit
|
|
72
|
+
* in place of the checkout's: a split wave's gate job runs at the default
|
|
73
|
+
* branch and reads the stop of the decided head.
|
|
72
74
|
*/
|
|
73
75
|
export async function waveStopLine(op, k, opts = {}) {
|
|
74
76
|
let sha;
|
|
75
77
|
try {
|
|
76
|
-
sha = await getHeadCommit(opts);
|
|
78
|
+
sha = opts.sha ?? (await getHeadCommit(opts));
|
|
77
79
|
}
|
|
78
80
|
catch {
|
|
79
81
|
return undefined;
|
package/dist/planned-files.d.ts
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* - {@link planFile} plans one file against what is on disk, its mode
|
|
14
14
|
* included, and writes nothing, so a dry run prints the plan as it is.
|
|
15
|
+
* Its content is text, or bytes for a file such as terragucci's
|
|
16
|
+
* `registry edge` bundles, compared byte for byte (#5006).
|
|
15
17
|
* - {@link planRemoval} plans the removal of a file an earlier run wrote.
|
|
16
18
|
* - {@link writePlannedFiles} writes the plan: each directory made, each
|
|
17
19
|
* file's mode set, each removed file unlinked, an unchanged one left as
|
|
@@ -24,14 +26,16 @@
|
|
|
24
26
|
*
|
|
25
27
|
* This module imports only Node's own modules.
|
|
26
28
|
*/
|
|
27
|
-
/**
|
|
28
|
-
export
|
|
29
|
+
/** What a planned file holds: text, or bytes such as a bundle or a zip, written as they are (#5006). A `Buffer` is a `Uint8Array`. */
|
|
30
|
+
export type PlannedContent = string | Uint8Array;
|
|
31
|
+
/** One planned file. Its content is text unless the plan was made with bytes (#5006). */
|
|
32
|
+
export interface PlannedFile<C extends PlannedContent = string> {
|
|
29
33
|
/** Where it is written. Absolute, or relative to the process's directory. */
|
|
30
34
|
path: string;
|
|
31
35
|
/** `removed`: a file an earlier run wrote that this one no longer asks for. */
|
|
32
36
|
status: "created" | "updated" | "unchanged" | "removed";
|
|
33
|
-
/** The text to write; empty for a removal. */
|
|
34
|
-
content:
|
|
37
|
+
/** The text or bytes to write; empty text for a removal. */
|
|
38
|
+
content: C;
|
|
35
39
|
/** The permission bits to set, such as `0o755` for a script. Unset, a new file gets the process's default and an existing one keeps its own. */
|
|
36
40
|
mode?: number;
|
|
37
41
|
/** In the git directory or otherwise never committed, such as a hook. */
|
|
@@ -40,17 +44,21 @@ export interface PlannedFile {
|
|
|
40
44
|
/**
|
|
41
45
|
* Plan `content` at `path`: `created` when there is no file, `unchanged`
|
|
42
46
|
* when the file holds the content (and, with `mode`, has that mode),
|
|
43
|
-
* `updated` otherwise. Writes nothing.
|
|
47
|
+
* `updated` otherwise. Writes nothing. Content given as bytes is compared
|
|
48
|
+
* with the file byte for byte, and the plan carries the bytes (#5006).
|
|
44
49
|
*/
|
|
45
50
|
export declare function planFile(path: string, content: string, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile;
|
|
51
|
+
export declare function planFile(path: string, content: Uint8Array, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile<Uint8Array>;
|
|
52
|
+
export declare function planFile(path: string, content: PlannedContent, extra?: Pick<PlannedFile, "mode" | "local">): PlannedFile<PlannedContent>;
|
|
46
53
|
/** Plan the removal of the file at `path`; undefined when there is nothing there to remove. */
|
|
47
54
|
export declare function planRemoval(path: string): PlannedFile | undefined;
|
|
48
55
|
/**
|
|
49
56
|
* Write a plan: each created or updated file written, its directory made
|
|
50
57
|
* and its mode set; each removed file unlinked; an unchanged file not
|
|
51
|
-
* touched. A removed file that is already gone is not an error.
|
|
58
|
+
* touched. A removed file that is already gone is not an error. Bytes
|
|
59
|
+
* are written as they are (#5006).
|
|
52
60
|
*/
|
|
53
|
-
export declare function writePlannedFiles(files: readonly Pick<PlannedFile
|
|
61
|
+
export declare function writePlannedFiles(files: readonly Pick<PlannedFile<PlannedContent>, "path" | "status" | "content" | "mode">[]): void;
|
|
54
62
|
export interface StaleGeneratedOptions {
|
|
55
63
|
/** The directory the paths are relative to: a product's checkout. */
|
|
56
64
|
root: string;
|
|
@@ -72,5 +80,5 @@ export interface StaleGeneratedOptions {
|
|
|
72
80
|
* person's own and never listed.
|
|
73
81
|
*/
|
|
74
82
|
export declare function staleGeneratedFiles(options: StaleGeneratedOptions): string[];
|
|
75
|
-
export { PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
83
|
+
export { PLANNED_BYTES_FLOOR, PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
76
84
|
//# sourceMappingURL=planned-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planned-files.d.ts","sourceRoot":"","sources":["../src/planned-files.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"planned-files.d.ts","sourceRoot":"","sources":["../src/planned-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAKH,sIAAsI;AACtI,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,yFAAyF;AACzF,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,MAAM;IAC5D,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IACxD,4DAA4D;IAC5D,OAAO,EAAE,CAAC,CAAC;IACX,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAiBD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC;AAClH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAClI,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAQ1I,+FAA+F;AAC/F,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,CAWnI;AAED,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,gGAAgG;IAChG,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,yFAAyF;IACzF,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6GAA6G;IAC7G,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAC7C,mFAAmF;IACnF,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,EAAE,CAsB5E;AAED,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/planned-files.js
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* - {@link planFile} plans one file against what is on disk, its mode
|
|
14
14
|
* included, and writes nothing, so a dry run prints the plan as it is.
|
|
15
|
+
* Its content is text, or bytes for a file such as terragucci's
|
|
16
|
+
* `registry edge` bundles, compared byte for byte (#5006).
|
|
15
17
|
* - {@link planRemoval} plans the removal of a file an earlier run wrote.
|
|
16
18
|
* - {@link writePlannedFiles} writes the plan: each directory made, each
|
|
17
19
|
* file's mode set, each removed file unlinked, an unchanged one left as
|
|
@@ -35,16 +37,17 @@ function modeOf(path) {
|
|
|
35
37
|
return undefined;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
/** Whether the file at `path` holds `content`: text compared as UTF-8 text, bytes compared byte for byte (#5006). */
|
|
41
|
+
function holds(path, content) {
|
|
42
|
+
if (typeof content === "string")
|
|
43
|
+
return readFileSync(path, "utf-8") === content;
|
|
44
|
+
return Buffer.from(content.buffer, content.byteOffset, content.byteLength).equals(readFileSync(path));
|
|
45
|
+
}
|
|
43
46
|
export function planFile(path, content, extra = {}) {
|
|
44
47
|
const own = { ...(extra.mode !== undefined ? { mode: extra.mode } : {}), ...(extra.local ? { local: true } : {}) };
|
|
45
48
|
if (!existsSync(path))
|
|
46
49
|
return { path, status: "created", content, ...own };
|
|
47
|
-
const same =
|
|
50
|
+
const same = holds(path, content) && (extra.mode === undefined || modeOf(path) === extra.mode);
|
|
48
51
|
return { path, status: same ? "unchanged" : "updated", content, ...own };
|
|
49
52
|
}
|
|
50
53
|
/** Plan the removal of the file at `path`; undefined when there is nothing there to remove. */
|
|
@@ -54,7 +57,8 @@ export function planRemoval(path) {
|
|
|
54
57
|
/**
|
|
55
58
|
* Write a plan: each created or updated file written, its directory made
|
|
56
59
|
* and its mode set; each removed file unlinked; an unchanged file not
|
|
57
|
-
* touched. A removed file that is already gone is not an error.
|
|
60
|
+
* touched. A removed file that is already gone is not an error. Bytes
|
|
61
|
+
* are written as they are (#5006).
|
|
58
62
|
*/
|
|
59
63
|
export function writePlannedFiles(files) {
|
|
60
64
|
for (const f of files) {
|
|
@@ -105,4 +109,4 @@ export function staleGeneratedFiles(options) {
|
|
|
105
109
|
}
|
|
106
110
|
return out;
|
|
107
111
|
}
|
|
108
|
-
export { PLANNED_FILES_FLOOR } from "./release-floors.js";
|
|
112
|
+
export { PLANNED_BYTES_FLOOR, PLANNED_FILES_FLOOR } from "./release-floors.js";
|
package/dist/pr-post.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface PlanPostInput {
|
|
|
48
48
|
head: string;
|
|
49
49
|
env: string;
|
|
50
50
|
member?: string;
|
|
51
|
+
/** The plan status's context (#5003, a product plan's `statusContext`), in place of {@link prStatusContext}'s. */
|
|
52
|
+
context?: string;
|
|
51
53
|
/** The plan job's own result (`needs.plan.result`). `failure` fails the status. */
|
|
52
54
|
result?: string;
|
|
53
55
|
/**
|
|
@@ -207,6 +209,8 @@ export interface OpenPlanPostInput {
|
|
|
207
209
|
artifactDir: string;
|
|
208
210
|
env: string;
|
|
209
211
|
member?: string;
|
|
212
|
+
/** The plan status's context (#5003), in place of {@link prStatusContext}'s. */
|
|
213
|
+
context?: string;
|
|
210
214
|
overdue?: () => Promise<PrOverdue[]>;
|
|
211
215
|
/** The description check, as {@link PlanPostInput.description}. */
|
|
212
216
|
description?: (report: PrReport) => Promise<void>;
|
|
@@ -259,6 +263,8 @@ export interface StaleMarkInput {
|
|
|
259
263
|
tip: string;
|
|
260
264
|
env: string;
|
|
261
265
|
member?: string;
|
|
266
|
+
/** The plan status's context (#5003), which goes back to pending, in place of {@link prStatusContext}'s. */
|
|
267
|
+
context?: string;
|
|
262
268
|
/** The pipeline answers the plan comment (`--preview-comment`), so the stale line names it. */
|
|
263
269
|
previewComment?: boolean;
|
|
264
270
|
words?: CiProductWords;
|
package/dist/pr-post.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-post.d.ts","sourceRoot":"","sources":["../src/pr-post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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AI,EAAE,MAAM,CAAC;IACb,0GAA0G;IAC1G,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA4D1H;AAED,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,KAAK,EAAE,OAAO,CAAC;IACf,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,4DAA4D;AAC5D,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAiD/G"}
|
package/dist/pr-post.js
CHANGED
|
@@ -109,7 +109,8 @@ function productLineOf(name, marker) {
|
|
|
109
109
|
/** The one plain word a re-plan was narrowed to (#4963), or undefined. */
|
|
110
110
|
function narrowedTo(input) {
|
|
111
111
|
const a = input.notAffected?.trim();
|
|
112
|
-
|
|
112
|
+
// #4984: a word that starts with `-` is a flag, never the argument a re-plan was narrowed to.
|
|
113
|
+
return a && /^[A-Za-z0-9_.\/@+=,:][A-Za-z0-9_.\/@+=,:-]*$/.test(a) ? a : undefined;
|
|
113
114
|
}
|
|
114
115
|
/**
|
|
115
116
|
* The reply for a re-plan narrowed to an argument the change does not
|
|
@@ -206,7 +207,7 @@ export async function postPlanReport(input) {
|
|
|
206
207
|
if (!existsSync(join(input.dir, PR_PLAN_REPORT_FILE)) && existsSync(join(input.dir, PR_PLAN_NOTE_FILE)))
|
|
207
208
|
return postPlanNoteHandoff(input);
|
|
208
209
|
const warnings = [];
|
|
209
|
-
const context = prStatusContext("plan", input.member);
|
|
210
|
+
const context = input.context ?? prStatusContext("plan", input.member);
|
|
210
211
|
const read = readPlanReport(input);
|
|
211
212
|
const failedJob = input.result === "failure" || input.result === "cancelled";
|
|
212
213
|
let state;
|
|
@@ -456,7 +457,7 @@ export function planNoteHandoffNote(handoff, forge, marker, noteWords, baseTip)
|
|
|
456
457
|
/** {@link postPlanReport} for a product's plan note hand-off (#4799). */
|
|
457
458
|
async function postPlanNoteHandoff(input) {
|
|
458
459
|
const warnings = [];
|
|
459
|
-
const context = prStatusContext("plan", input.member);
|
|
460
|
+
const context = input.context ?? prStatusContext("plan", input.member);
|
|
460
461
|
const read = readPlanNoteHandoff(input);
|
|
461
462
|
const failedJob = input.result === "failure" || input.result === "cancelled";
|
|
462
463
|
let state;
|
|
@@ -536,7 +537,7 @@ export async function postOpenPlanReports(input) {
|
|
|
536
537
|
if (!forge.mergeRequestJobs || !forge.jobArtifact || !forge.statusUrl) {
|
|
537
538
|
throw new Error(`pr-post --open reads the plan jobs of open merge requests, which ${forge.kind} cannot say; it is for GitLab`);
|
|
538
539
|
}
|
|
539
|
-
const context = prStatusContext("plan", input.member);
|
|
540
|
+
const context = input.context ?? prStatusContext("plan", input.member);
|
|
540
541
|
const warnings = [];
|
|
541
542
|
let overdue;
|
|
542
543
|
const overdueOnce = input.overdue ? () => (overdue ?? (overdue = input.overdue())) : undefined;
|
|
@@ -577,6 +578,7 @@ export async function postOpenPlanReports(input) {
|
|
|
577
578
|
head: job.head,
|
|
578
579
|
env: input.env,
|
|
579
580
|
...(input.member ? { member: input.member } : {}),
|
|
581
|
+
...(input.context ? { context: input.context } : {}),
|
|
580
582
|
result: settled,
|
|
581
583
|
...(overdueOnce ? { overdue: overdueOnce } : {}),
|
|
582
584
|
...(input.description ? { description: input.description } : {}),
|
|
@@ -614,7 +616,7 @@ export async function markStaleNotes(input) {
|
|
|
614
616
|
throw new Error(`marking notes stale lists the open pull requests into ${input.branch}, which this ${forge.kind} client cannot`);
|
|
615
617
|
const words = input.words ?? activeProductWords();
|
|
616
618
|
const marker = prNoteMarker(input.env, input.member);
|
|
617
|
-
const context = prStatusContext("plan", input.member, words);
|
|
619
|
+
const context = input.context ?? prStatusContext("plan", input.member, words);
|
|
618
620
|
const comment = input.previewComment ? commentLine(words, "plan") : undefined;
|
|
619
621
|
const verb = words.verbs.plan[0];
|
|
620
622
|
const again = comment ? `comment \`${comment}\` to ${verb} again` : `push a commit to ${verb} again`;
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export declare const NEXT_RELEASE = "0.124.
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.91";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export declare const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
@@ -144,14 +144,20 @@ export declare const DRIFT_NOTIFY_STACKS_FLOOR = "0.124.89";
|
|
|
144
144
|
export declare const MEMBER_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
145
145
|
/** The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964). */
|
|
146
146
|
export declare const PRODUCT_CHECK_JOBS_FLOOR = "0.124.89";
|
|
147
|
+
/** The first chant whose `checkJob` takes `artifacts: { paths, reports }` (`PrCheckArtifacts`), which GitLab's check job keeps beside its report as `artifacts:paths` and `artifacts:reports`, such as a lint hook's `codequality` report (#4988). */
|
|
148
|
+
export declare const CHECK_JOB_ARTIFACTS_FLOOR = "0.124.90";
|
|
147
149
|
/** The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964). */
|
|
148
150
|
export declare const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
|
|
149
151
|
/** The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966). */
|
|
150
152
|
export declare const ACTOR_ORDER_FLOOR = "0.124.89";
|
|
153
|
+
/** The first chant whose `actorOf({ env, repo })` runs `git config` in `repo` with the `env` it is given rather than the process's, so a job's `GIT_CONFIG_GLOBAL` or `HOME` picks the `user.name` it reads (#5005). */
|
|
154
|
+
export declare const ACTOR_GIT_ENV_FLOOR = "0.124.91";
|
|
151
155
|
/** The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966). */
|
|
152
156
|
export declare const CI_BASE_REF_FLOOR = "0.124.89";
|
|
153
157
|
/** The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966). */
|
|
154
158
|
export declare const PLANNED_FILES_FLOOR = "0.124.89";
|
|
159
|
+
/** The first chant whose `planFile` in `@intentius/chant/planned-files` takes bytes (`Uint8Array` or `Buffer`) as well as text: `writePlannedFiles` writes them unchanged and the plan compares them with the file byte for byte (#5006). */
|
|
160
|
+
export declare const PLANNED_BYTES_FLOOR = "0.124.91";
|
|
155
161
|
/** The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966). */
|
|
156
162
|
export declare const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
|
|
157
163
|
/** The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966). */
|
|
@@ -162,4 +168,6 @@ export declare const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
|
162
168
|
export declare const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
|
|
163
169
|
/** The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978). */
|
|
164
170
|
export declare const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
|
|
171
|
+
/** The first chant whose terraform lexicon's engine runs carry what a product's own command tracing read: `runBinary` and the engine runner's `exec` and `execSync` answer stderr apart (`Ran.stderr`) and a spawn failure's message (`Ran.error`), a hook's `after` gets a binary that could not be started as a null code with `error`, `commandTrace` ends that span with the message, and `composeCommandHooks` runs a product's own hook and `commandTrace` as one `onCommand` (#5007). */
|
|
172
|
+
export declare const TERRAFORM_COMMAND_TRACE_FLOOR = "0.124.91";
|
|
165
173
|
//# sourceMappingURL=release-floors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,+SAA+S;AAC/S,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,qMAAqM;AACrM,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,8KAA8K;AAC9K,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,0LAA0L;AAC1L,eAAO,MAAM,kCAAkC,aAAa,CAAC;AAE7D,6SAA6S;AAC7S,eAAO,MAAM,8BAA8B,aAAa,CAAC;AAEzD,sUAAsU;AACtU,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,kdAAkd;AACld,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,+SAA+S;AAC/S,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,qMAAqM;AACrM,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,8KAA8K;AAC9K,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,0LAA0L;AAC1L,eAAO,MAAM,kCAAkC,aAAa,CAAC;AAE7D,6SAA6S;AAC7S,eAAO,MAAM,8BAA8B,aAAa,CAAC;AAEzD,sUAAsU;AACtU,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,kdAAkd;AACld,eAAO,MAAM,6BAA6B,aAAa,CAAC;AAExD,4RAA4R;AAC5R,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,sVAAsV;AACtV,eAAO,MAAM,cAAc,aAAa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
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export const NEXT_RELEASE = "0.124.
|
|
22
|
+
export const NEXT_RELEASE = "0.124.91";
|
|
23
23
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
24
|
export const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
25
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
@@ -33,7 +33,7 @@ export const TERRAFORM_ENGINE_TIMINGS_FLOOR = "0.124.88";
|
|
|
33
33
|
/** The first chant whose terraform lexicon finds live roots and estates (`live-roots`), places a Terragrunt unit (`terragruntUnitPlace`), reads a state migration's history and revert from its finished lines (`migration-history`), and runs the binary without the forge's tokens (`tokenlessBinaryExec`, `engineEnv`) (#4910). */
|
|
34
34
|
export const TERRAFORM_ROOT_HELPERS_FLOOR = "0.124.88";
|
|
35
35
|
/** The first chant whose terraform lexicon has one runner of the engine for a product (`engineRunner` in `engine-runner`: a hooked `exec`, `execSync`, `terragrunt` and the tokenless `script`), traces each engine command (`commandTrace`, `commandTraceEnv`), sends each Terragrunt unit's plan through `planTerragruntWave({ onCommand })`, and resolves a live root's record store (`liveRecordStore`, `writtenRecordStore`, `rootBackendAttrs` in `live-roots`) (#4954). */
|
|
36
|
-
export const TERRAFORM_ENGINE_RUNNER_FLOOR =
|
|
36
|
+
export const TERRAFORM_ENGINE_RUNNER_FLOOR = "0.124.89";
|
|
37
37
|
/** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
|
|
38
38
|
export const PRODUCT_HELPERS_FLOOR = "0.124.86";
|
|
39
39
|
/** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
|
|
@@ -129,36 +129,44 @@ export const REF_GATE_STATUS_JOB_FLOOR = "0.124.88";
|
|
|
129
129
|
/** The first chant with `@intentius/chant/ref-gate-rules` (`refGateRulesAt`), `require` in `checkPrRequires`, `refGateStatus` in `pipelineContract` and `ci forge-check --ref-gate-status`, `@intentius/chant/ref-gate-init` (`refGateInitPlan`, `writeRefGateInit`), and a pre-receive refusal that prints the command recording the override request (#4913). */
|
|
130
130
|
export const REF_GATE_PIECES_FLOOR = "0.124.88";
|
|
131
131
|
/** The first chant whose `chant release cut --yes` pushes `chant/lifecycle` again when the remote refuses it, and exits non-zero untagged (`release-record-not-pushed`) when the release record never lands, so the release workflow does not push the tag (#4965). */
|
|
132
|
-
export const RELEASE_CUT_RECORD_FLOOR =
|
|
132
|
+
export const RELEASE_CUT_RECORD_FLOOR = "0.124.89";
|
|
133
133
|
/** The first chant whose release cut refuses, before it records or tags, a release whose npm publish target would carry an image archive (`publish-npm-carries-image`), and whose GitLab release workflow runs the binfmt image by digest from `IMAGE_PINS` (#4941). */
|
|
134
|
-
export const RELEASE_CUT_CARRIES_IMAGE_FLOOR =
|
|
134
|
+
export const RELEASE_CUT_CARRIES_IMAGE_FLOOR = "0.124.89";
|
|
135
135
|
/** The first chant whose `ciToolFetchScript` and `ciToolInstallLine` take `download: "node"`, a fetch and unzip with node for an image with no curl or unzip, whose `CI_TOOL_SHA256` records just 1.36.0 and act 0.2.89 and checks them against their releases' checksums files, and whose overdue check deepens a shallow checkout before it dates a pipeline file (#4952). */
|
|
136
|
-
export const CI_TOOL_NODE_DOWNLOAD_FLOOR =
|
|
136
|
+
export const CI_TOOL_NODE_DOWNLOAD_FLOOR = "0.124.89";
|
|
137
137
|
/** The first chant whose `chant build -o <dir>/` writes a build's additional files (a docker project's Dockerfiles) into the directory with no primary file, whose `chantGenerated` renders take a `module` and its `export` (a `{ path: text }` object or a function returning one) and `chant dev render <module> <export>` writes them in place, and whose `chant ci workflow` and `chant release workflow` write into `chant dev generated-check`'s render tree with no `--output` (#4950). */
|
|
138
|
-
export const RENDER_KINDS_FLOOR =
|
|
138
|
+
export const RENDER_KINDS_FLOOR = "0.124.89";
|
|
139
139
|
/** The first chant whose sql lexicon's `chant lifecycle diff --live` addresses a table's columns by name (`columns[#country].default.expr`), compares a ClickHouse table's column order as `columnOrder`, and reports a column the server has and the declaration does not as pending, and whose `lexiconDriftRecords` counts a deep read's pending changes (that column, a ClickHouse or Postgres privilege granted by hand) as drift (#4944). */
|
|
140
|
-
export const SQL_LIVE_COLUMNS_FLOOR =
|
|
140
|
+
export const SQL_LIVE_COLUMNS_FLOOR = "0.124.89";
|
|
141
141
|
/** The first chant whose `driftNotifyFields` takes `stacks`, each member's drift records, and from them names the drifted members and computes the run's fingerprint (#4944). */
|
|
142
|
-
export const DRIFT_NOTIFY_STACKS_FLOOR =
|
|
142
|
+
export const DRIFT_NOTIFY_STACKS_FLOOR = "0.124.89";
|
|
143
143
|
/** The first chant whose workspace member's pull request pipeline takes `evidence`, `checkJob` and `refGateStatus` (`chant build --pr-loop` in a member), signing the member's plan job as `plan:<member>` and `policy:<member>` (`ci evidence sign --member`, `memberEvidenceCheck`) and running the check job in the member's directory (#4964). */
|
|
144
|
-
export const MEMBER_SIGNED_CHECKS_FLOOR =
|
|
144
|
+
export const MEMBER_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
145
145
|
/** The first chant whose `checkJob` takes `{ services, env, before, dir, args }` (`PrCheckJobOptions`: service containers, the check step's variables and lines, the report directory, the arguments after `--base`) and whose github, forgejo and gitlab lexicons render the check, check evidence and ref gate jobs for a product's own workflow (`productCheckJobs`, `forgejoProductCheckJobs`, `gitlabProductCheckJobs`) (#4964). */
|
|
146
|
-
export const PRODUCT_CHECK_JOBS_FLOOR =
|
|
146
|
+
export const PRODUCT_CHECK_JOBS_FLOOR = "0.124.89";
|
|
147
|
+
/** The first chant whose `checkJob` takes `artifacts: { paths, reports }` (`PrCheckArtifacts`), which GitLab's check job keeps beside its report as `artifacts:paths` and `artifacts:reports`, such as a lint hook's `codequality` report (#4988). */
|
|
148
|
+
export const CHECK_JOB_ARTIFACTS_FLOOR = "0.124.90";
|
|
147
149
|
/** The first chant whose GitLab Op waves pipeline with a runner key hands it to no wave job: each deciding wave's `<wave job>-evidence` job names the `chant-evidence` environment and signs `plan:<wave>` from the wave job (#4964). */
|
|
148
|
-
export const GITLAB_WAVE_KEY_SCOPE_FLOOR =
|
|
150
|
+
export const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
|
|
149
151
|
/** The first chant with `actorOf` and `actorOrder` in `@intentius/chant/actor`: the actor fallback with `GITHUB_TRIGGERING_ACTOR` ahead of the forge's actor and git's `user.name` before the login, each place switched on or off by the caller (#4966). */
|
|
150
|
-
export const ACTOR_ORDER_FLOOR =
|
|
152
|
+
export const ACTOR_ORDER_FLOOR = "0.124.89";
|
|
153
|
+
/** The first chant whose `actorOf({ env, repo })` runs `git config` in `repo` with the `env` it is given rather than the process's, so a job's `GIT_CONFIG_GLOBAL` or `HOME` picks the `user.name` it reads (#5005). */
|
|
154
|
+
export const ACTOR_GIT_ENV_FLOOR = NEXT_RELEASE;
|
|
151
155
|
/** The first chant with `@intentius/chant/ci-base` (`ciBaseRef`), the base a CI job measures a change from (the pull request's target branch, else the default branch for a push to another branch), and whose `chant ci check` defaults `--base` to it (#4966). */
|
|
152
|
-
export const CI_BASE_REF_FLOOR =
|
|
156
|
+
export const CI_BASE_REF_FLOOR = "0.124.89";
|
|
153
157
|
/** The first chant with `@intentius/chant/planned-files` (`planFile`, `planRemoval`, `writePlannedFiles`, `staleGeneratedFiles`): an init's planned files with their modes, written or removed in one call, and the generated files a product no longer renders, found by their header (#4966). */
|
|
154
|
-
export const PLANNED_FILES_FLOOR =
|
|
158
|
+
export const PLANNED_FILES_FLOOR = "0.124.89";
|
|
159
|
+
/** The first chant whose `planFile` in `@intentius/chant/planned-files` takes bytes (`Uint8Array` or `Buffer`) as well as text: `writePlannedFiles` writes them unchanged and the plan compares them with the file byte for byte (#5006). */
|
|
160
|
+
export const PLANNED_BYTES_FLOOR = NEXT_RELEASE;
|
|
155
161
|
/** The first chant whose `pipelineContract` takes `jobs`, the jobs a product builds from its own config, beside or in place of `pipelines`, so a product's forge check gets the required statuses and `refGateStatus` from chant (#4966). */
|
|
156
|
-
export const FORGE_CHECK_OWN_JOBS_FLOOR =
|
|
162
|
+
export const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
|
|
157
163
|
/** The first chant whose `chant components pr-apply --before-merge` waits for the ref gate's status: the status the policy at base sets for the target branch is passed as `require` to the `checks` require (#4966). */
|
|
158
|
-
export const BEFORE_MERGE_REF_GATE_FLOOR =
|
|
164
|
+
export const BEFORE_MERGE_REF_GATE_FLOOR = "0.124.89";
|
|
159
165
|
/** The first chant whose product plan with `targets` and `evidence` signs each target's plan job as `plan:<target>` and `policy:<target>` (`ci evidence sign --member <target>`, `targetEvidenceCheck`, `productPlanEvidenceChecks`), and whose `refGateInitPlan` takes `targets` and names those checks in the `refs` rule (#4978). */
|
|
160
|
-
export const TARGET_SIGNED_CHECKS_FLOOR =
|
|
166
|
+
export const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
|
|
161
167
|
/** The first chant whose Op waves generators take `renderSpec` (the wave jobs run `chant run wave --render-spec`, and `CHANT_WAVES_SPEC_COMMAND` names the product command that prints the spec at the commit in `CHANT_WAVES_SPEC_AT`), so a product whose spec is built from its config at base renders its wave jobs, policy step, evidence job and cloud trade through chant (#4982). */
|
|
162
|
-
export const RUNTIME_WAVES_SPEC_FLOOR =
|
|
168
|
+
export const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
|
|
163
169
|
/** The first chant whose `chant run resume` (`resumeGateRun`) on GitLab retries a wave job's `<wave job>-evidence` with the wave job when the evidence job already ran, and whose `ci evidence sign --from-job` waits for a job it reads to finish, so a resumed wave's evidence job signs from the new try (#4978). */
|
|
164
|
-
export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR =
|
|
170
|
+
export const GITLAB_WAVE_EVIDENCE_RETRY_FLOOR = "0.124.89";
|
|
171
|
+
/** The first chant whose terraform lexicon's engine runs carry what a product's own command tracing read: `runBinary` and the engine runner's `exec` and `execSync` answer stderr apart (`Ran.stderr`) and a spawn failure's message (`Ran.error`), a hook's `after` gets a binary that could not be started as a null code with `error`, `commandTrace` ends that span with the message, and `composeCommandHooks` runs a product's own hook and `commandTrace` as one `onCommand` (#5007). */
|
|
172
|
+
export const TERRAFORM_COMMAND_TRACE_FLOOR = NEXT_RELEASE;
|
package/dist/wave-blocked.d.ts
CHANGED
|
@@ -52,15 +52,21 @@ export declare function blockedWords(blocked: ReadonlyMap<string, string>): stri
|
|
|
52
52
|
* are any, and undefined when every member applied or had nothing to apply.
|
|
53
53
|
*/
|
|
54
54
|
export declare function runSummary(outcomes: Iterable<WaveMemberOutcome>): string | undefined;
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The outcome file of a wave's job, or of one group or share of it. With
|
|
57
|
+
* `apply` (#4987), a split wave's own applying job's: `-apply`, so it is
|
|
58
|
+
* never the gate job's file of the same wave, which that job reads.
|
|
59
|
+
*/
|
|
56
60
|
export declare function waveOutcomeFileName(wave: number, part?: {
|
|
57
61
|
group?: string;
|
|
58
62
|
share?: number;
|
|
63
|
+
apply?: boolean;
|
|
59
64
|
}): string;
|
|
60
65
|
/** Write a wave job's outcome file in `dir`, members sorted by name. Returns its path. */
|
|
61
66
|
export declare function writeWaveOutcomeFile(dir: string, wave: number, part: {
|
|
62
67
|
group?: string;
|
|
63
68
|
share?: number;
|
|
69
|
+
apply?: boolean;
|
|
64
70
|
}, members: Record<string, WaveMemberOutcome>, at?: string, holdsAll?: boolean): string;
|
|
65
71
|
/**
|
|
66
72
|
* The outcome of each member of the waves before `wave`, as their jobs wrote
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wave-blocked.d.ts","sourceRoot":"","sources":["../src/wave-blocked.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAElI,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,gBAAgB,CAAC;IACzB,gGAAgG;IAChG,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,oBAAoB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC3C,qEAAqE;IACrE,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAID,uFAAuF;AACvF,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAE7E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,EAChD,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAChD,QAAQ,CAAC,EAAE,MAAM,GAChB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBrB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,K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,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CAKxH;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,EACzD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC1C,EAAE,SAA2B,EAC7B,QAAQ,UAAQ,GACf,MAAM,CAWR;AA6BD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAwB/F;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CActG"}
|
package/dist/wave-blocked.js
CHANGED
|
@@ -155,11 +155,16 @@ export function runSummary(outcomes) {
|
|
|
155
155
|
parts.push(`${counts.get("unchanged")} unchanged`);
|
|
156
156
|
return parts.join(", ");
|
|
157
157
|
}
|
|
158
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* The outcome file of a wave's job, or of one group or share of it. With
|
|
160
|
+
* `apply` (#4987), a split wave's own applying job's: `-apply`, so it is
|
|
161
|
+
* never the gate job's file of the same wave, which that job reads.
|
|
162
|
+
*/
|
|
159
163
|
export function waveOutcomeFileName(wave, part = {}) {
|
|
160
164
|
const group = part.group !== undefined ? `-group-${part.group.replace(/[^A-Za-z0-9._-]/g, "_")}` : "";
|
|
161
165
|
const share = part.share !== undefined ? `-share-${part.share}` : "";
|
|
162
|
-
|
|
166
|
+
const apply = part.apply === true && !group && !share ? "-apply" : "";
|
|
167
|
+
return `outcome-wave-${wave}${group}${share}${apply}.json`;
|
|
163
168
|
}
|
|
164
169
|
/** Write a wave job's outcome file in `dir`, members sorted by name. Returns its path. */
|
|
165
170
|
export function writeWaveOutcomeFile(dir, wave, part, members, at = new Date().toISOString(), holdsAll = false) {
|