@intentius/chant 0.124.90 → 0.124.92

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.
Files changed (99) hide show
  1. package/dist/actor.d.ts +5 -3
  2. package/dist/actor.d.ts.map +1 -1
  3. package/dist/actor.js +7 -5
  4. package/dist/audit/core.d.ts.map +1 -1
  5. package/dist/audit/core.js +11 -1
  6. package/dist/ci-comment-commands.d.ts +11 -1
  7. package/dist/ci-comment-commands.d.ts.map +1 -1
  8. package/dist/ci-comment-commands.js +10 -3
  9. package/dist/ci-product.d.ts +27 -1
  10. package/dist/ci-product.d.ts.map +1 -1
  11. package/dist/ci-product.js +36 -10
  12. package/dist/cli/handlers/pr-comment.d.ts.map +1 -1
  13. package/dist/cli/handlers/pr-comment.js +17 -4
  14. package/dist/cli/handlers/pr.d.ts +2 -2
  15. package/dist/cli/handlers/pr.d.ts.map +1 -1
  16. package/dist/cli/handlers/pr.js +32 -10
  17. package/dist/cli/parse-args.d.ts.map +1 -1
  18. package/dist/cli/parse-args.js +13 -0
  19. package/dist/cli/registry.d.ts +4 -0
  20. package/dist/cli/registry.d.ts.map +1 -1
  21. package/dist/components/pr-checks.d.ts +11 -0
  22. package/dist/components/pr-checks.d.ts.map +1 -1
  23. package/dist/components/pr-checks.js +15 -5
  24. package/dist/components/pr-pipeline.d.ts +13 -4
  25. package/dist/components/pr-pipeline.d.ts.map +1 -1
  26. package/dist/components/pr-pipeline.js +23 -9
  27. package/dist/components/product-pipeline.d.ts +41 -7
  28. package/dist/components/product-pipeline.d.ts.map +1 -1
  29. package/dist/components/product-pipeline.js +63 -23
  30. package/dist/components/product-plan.d.ts +86 -1
  31. package/dist/components/product-plan.d.ts.map +1 -1
  32. package/dist/components/product-plan.js +141 -16
  33. package/dist/floor-table.data.d.ts.map +1 -1
  34. package/dist/floor-table.data.js +18 -9
  35. package/dist/lexicon-module.d.ts +2 -0
  36. package/dist/lexicon-module.d.ts.map +1 -1
  37. package/dist/lexicon-module.js +6 -2
  38. package/dist/lexicon.d.ts +42 -1
  39. package/dist/lexicon.d.ts.map +1 -1
  40. package/dist/op/before-merge-decide.d.ts +2 -0
  41. package/dist/op/before-merge-decide.d.ts.map +1 -1
  42. package/dist/op/op-waves-evidence-jobs.d.ts +3 -2
  43. package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -1
  44. package/dist/op/op-waves-evidence-jobs.js +4 -3
  45. package/dist/op/op-waves-follow-on.d.ts +2 -0
  46. package/dist/op/op-waves-follow-on.d.ts.map +1 -1
  47. package/dist/op/op-waves-follow-on.js +8 -2
  48. package/dist/op/op-waves-names.d.ts +122 -0
  49. package/dist/op/op-waves-names.d.ts.map +1 -0
  50. package/dist/op/op-waves-names.js +151 -0
  51. package/dist/planned-files.d.ts +16 -8
  52. package/dist/planned-files.d.ts.map +1 -1
  53. package/dist/planned-files.js +12 -8
  54. package/dist/pr-forge-job.d.ts +8 -0
  55. package/dist/pr-forge-job.d.ts.map +1 -1
  56. package/dist/pr-forge-job.js +13 -0
  57. package/dist/pr-plan-record.d.ts +3 -1
  58. package/dist/pr-plan-record.d.ts.map +1 -1
  59. package/dist/pr-plan-record.js +1 -1
  60. package/dist/pr-post.d.ts +15 -3
  61. package/dist/pr-post.d.ts.map +1 -1
  62. package/dist/pr-post.js +10 -6
  63. package/dist/release-floors.d.ts +7 -1
  64. package/dist/release-floors.d.ts.map +1 -1
  65. package/dist/release-floors.js +8 -2
  66. package/dist/wave-runtime.mjs +276 -276
  67. package/package.json +1 -1
  68. package/src/actor.test.ts +14 -1
  69. package/src/actor.ts +8 -6
  70. package/src/audit/core.ts +13 -1
  71. package/src/audit/first-load.test.ts +101 -0
  72. package/src/ci-comment-commands.test.ts +19 -5
  73. package/src/ci-comment-commands.ts +18 -3
  74. package/src/ci-product.ts +42 -10
  75. package/src/cli/handlers/pr-comment.ts +14 -4
  76. package/src/cli/handlers/pr.ts +27 -10
  77. package/src/cli/parse-args.ts +9 -0
  78. package/src/cli/registry.ts +4 -0
  79. package/src/components/pr-checks.ts +16 -5
  80. package/src/components/pr-pipeline.ts +24 -11
  81. package/src/components/product-job-names.test.ts +176 -0
  82. package/src/components/product-pipeline.ts +101 -31
  83. package/src/components/product-plan-names.test.ts +135 -0
  84. package/src/components/product-plan.ts +218 -18
  85. package/src/floor-table.data.ts +18 -9
  86. package/src/lexicon-module.ts +6 -2
  87. package/src/lexicon.ts +42 -1
  88. package/src/op/before-merge-decide.ts +2 -0
  89. package/src/op/op-waves-evidence-jobs.ts +4 -3
  90. package/src/op/op-waves-follow-on.ts +10 -2
  91. package/src/op/op-waves-names.test.ts +131 -0
  92. package/src/op/op-waves-names.ts +241 -0
  93. package/src/planned-files.test.ts +33 -0
  94. package/src/planned-files.ts +26 -10
  95. package/src/pr-forge-job.ts +13 -0
  96. package/src/pr-plan-record.ts +4 -2
  97. package/src/pr-post-head.test.ts +116 -0
  98. package/src/pr-post.ts +26 -9
  99. package/src/release-floors.ts +11 -2
@@ -1 +1 @@
1
- {"version":3,"file":"planned-files.d.ts","sourceRoot":"","sources":["../src/planned-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAKH,wBAAwB;AACxB,MAAM,WAAW,WAAW;IAC1B,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IACxD,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAWD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAM,GAAG,WAAW,CAKpH;AAED,+FAA+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AAM,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"}
@@ -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
- * Plan `content` at `path`: `created` when there is no file, `unchanged`
40
- * when the file holds the content (and, with `mode`, has that mode),
41
- * `updated` otherwise. Writes nothing.
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 = readFileSync(path, "utf-8") === content && (extra.mode === undefined || modeOf(path) === extra.mode);
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";
@@ -17,6 +17,14 @@
17
17
  import { forgeFromEnv, type ForgeKind, type PrForge } from "./pr-forge.js";
18
18
  /** The pull request's head from a GitHub-style `pull_request` run's event payload, or undefined for any other run. */
19
19
  export declare function pullRequestEventHead(env: Record<string, string | undefined>): string | undefined;
20
+ /**
21
+ * The commit a GitHub `pull_request` run's plan job checked out for `head`
22
+ * when it is not `head` (#5020): the run's merge preview, `GITHUB_SHA`, when
23
+ * `head` is the event's pull request head. The note job names the head, and
24
+ * takes a report for the merge preview as the head's. Undefined on any other
25
+ * run, on Forgejo (whose run is of the head) and on GitLab.
26
+ */
27
+ export declare function plannedForHead(head: string, env?: Record<string, string | undefined>): string | undefined;
20
28
  /** {@link forgeFromEnv}, whose statuses for the run's merge preview go on the pull request's head (#4964). */
21
29
  export declare function forgeFromJobEnv(kind: ForgeKind, env?: Record<string, string | undefined>, fetchImpl?: Parameters<typeof forgeFromEnv>[2]): PrForge;
22
30
  //# sourceMappingURL=pr-forge-job.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pr-forge-job.d.ts","sourceRoot":"","sources":["../src/pr-forge-job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAExE,sHAAsH;AACtH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAShG;AAED,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAY/J"}
1
+ {"version":3,"file":"pr-forge-job.d.ts","sourceRoot":"","sources":["../src/pr-forge-job.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAExE,sHAAsH;AACtH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAShG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GAAG,MAAM,GAAG,SAAS,CAItH;AAED,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAY/J"}
@@ -29,6 +29,19 @@ export function pullRequestEventHead(env) {
29
29
  return undefined;
30
30
  }
31
31
  }
32
+ /**
33
+ * The commit a GitHub `pull_request` run's plan job checked out for `head`
34
+ * when it is not `head` (#5020): the run's merge preview, `GITHUB_SHA`, when
35
+ * `head` is the event's pull request head. The note job names the head, and
36
+ * takes a report for the merge preview as the head's. Undefined on any other
37
+ * run, on Forgejo (whose run is of the head) and on GitLab.
38
+ */
39
+ export function plannedForHead(head, env = process.env) {
40
+ const merge = env.GITHUB_SHA;
41
+ if (!merge || merge === head || !/^[0-9a-f]{40,64}$/.test(merge))
42
+ return undefined;
43
+ return pullRequestEventHead(env) === head ? merge : undefined;
44
+ }
32
45
  /** {@link forgeFromEnv}, whose statuses for the run's merge preview go on the pull request's head (#4964). */
33
46
  export function forgeFromJobEnv(kind, env = process.env, fetchImpl) {
34
47
  const forge = forgeFromEnv(kind, env, fetchImpl);
@@ -26,8 +26,10 @@ export declare const PLAN_RUN_OP = "pr-plan";
26
26
  export interface PlanRunExpect {
27
27
  /** The pipeline's environment, `--env`. */
28
28
  env: string;
29
- /** The commit the plan job checked out, `--head`. */
29
+ /** The pull request's head, `--head`. */
30
30
  head: string;
31
+ /** The commit the plan job checked out when it is not `head` (#5020): a GitHub `pull_request` run's merge preview. */
32
+ planned?: string;
31
33
  /** The target, `--member`. */
32
34
  target?: string;
33
35
  /** The plan job's result as the forge says it (`needs.<job>.result`, GitLab's job status). */
@@ -1 +1 @@
1
- {"version":3,"file":"pr-plan-record.d.ts","sourceRoot":"","sources":["../src/pr-plan-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AASD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA6CpI"}
1
+ {"version":3,"file":"pr-plan-record.d.ts","sourceRoot":"","sources":["../src/pr-plan-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AASD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA6CpI"}
@@ -54,7 +54,7 @@ export function readPlanRunRecord(dir, expect) {
54
54
  const labels = r.labels && typeof r.labels === "object" && !Array.isArray(r.labels) ? r.labels : {};
55
55
  if ((labels.Target ?? undefined) !== expect.target)
56
56
  return { refused: `the run record is for target ${JSON.stringify(labels.Target ?? null)}, not ${JSON.stringify(expect.target ?? null)}` };
57
- if (r.gitSha !== undefined && r.gitSha !== expect.head)
57
+ if (r.gitSha !== undefined && r.gitSha !== expect.head && r.gitSha !== expect.planned)
58
58
  return { refused: `the run record is for commit ${JSON.stringify(r.gitSha)}, not ${expect.head}` };
59
59
  if (!SHA.test(expect.head))
60
60
  return { refused: `the head ${JSON.stringify(expect.head)} is not a full commit` };
package/dist/pr-post.d.ts CHANGED
@@ -44,10 +44,18 @@ export interface PlanPostInput {
44
44
  dir: string;
45
45
  /** The pull request, from the forge's event. */
46
46
  pr: number;
47
- /** The commit the plan job checked out, from the forge's event. */
47
+ /** The pull request's head, from the forge's event: the commit the statuses go on. */
48
48
  head: string;
49
+ /**
50
+ * The commit the plan job checked out when it is not `head` (#5020): a
51
+ * GitHub `pull_request` run's merge preview (`GITHUB_SHA`). A report, plan
52
+ * note or run record for it counts as the head's.
53
+ */
54
+ planned?: string;
49
55
  env: string;
50
56
  member?: string;
57
+ /** The plan status's context (#5003, a product plan's `statusContext`), in place of {@link prStatusContext}'s. */
58
+ context?: string;
51
59
  /** The plan job's own result (`needs.plan.result`). `failure` fails the status. */
52
60
  result?: string;
53
61
  /**
@@ -130,7 +138,7 @@ export interface PlanPostResult {
130
138
  * a plan report for the same pull request, head, environment and member.
131
139
  * Returns the report, or why it is not used.
132
140
  */
133
- export declare function readPlanReport(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "env" | "member">): {
141
+ export declare function readPlanReport(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "planned" | "env" | "member">): {
134
142
  report: PrReport;
135
143
  } | {
136
144
  refused: string;
@@ -167,7 +175,7 @@ export declare function postPlanReport(input: PlanPostInput): Promise<PlanPostRe
167
175
  * Read a product's plan note hand-off under `dir` (#4799) and check it is the
168
176
  * one the caller ran, as {@link readPlanReport} checks a report.
169
177
  */
170
- export declare function readPlanNoteHandoff(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "env" | "member">): {
178
+ export declare function readPlanNoteHandoff(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "planned" | "env" | "member">): {
171
179
  handoff: PrPlanNoteHandoff | PrPlanBodyHandoff;
172
180
  } | {
173
181
  refused: string;
@@ -207,6 +215,8 @@ export interface OpenPlanPostInput {
207
215
  artifactDir: string;
208
216
  env: string;
209
217
  member?: string;
218
+ /** The plan status's context (#5003), in place of {@link prStatusContext}'s. */
219
+ context?: string;
210
220
  overdue?: () => Promise<PrOverdue[]>;
211
221
  /** The description check, as {@link PlanPostInput.description}. */
212
222
  description?: (report: PrReport) => Promise<void>;
@@ -259,6 +269,8 @@ export interface StaleMarkInput {
259
269
  tip: string;
260
270
  env: string;
261
271
  member?: string;
272
+ /** The plan status's context (#5003), which goes back to pending, in place of {@link prStatusContext}'s. */
273
+ context?: string;
262
274
  /** The pipeline answers the plan comment (`--preview-comment`), so the stale line names it. */
263
275
  previewComment?: boolean;
264
276
  words?: CiProductWords;
@@ -1 +1 @@
1
- {"version":3,"file":"pr-post.d.ts","sourceRoot":"","sources":["../src/pr-post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,OAAO,EAA+C,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEvG,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAkD,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAmP,KAAK,iBAAiB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D,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
@@ -43,6 +43,8 @@ import { isPlanNote, PLAN_BODY_LIMIT, PLAN_SUBJECT_LIMIT, planNoteMarker, planSu
43
43
  /** The plan report's file under the report directory. */
44
44
  export const PR_PLAN_REPORT_FILE = "pr-plan.json";
45
45
  const SHA = /^[0-9a-f]{40}$/;
46
+ /** Whether `sha` is the head a caller posts for, or the merge preview its plan job checked out for it (#5020). */
47
+ const isPlannedHead = (sha, input) => sha === input.head || (input.planned !== undefined && sha === input.planned);
46
48
  /**
47
49
  * Read the plan report under `dir` and check it is the one the caller ran:
48
50
  * a plan report for the same pull request, head, environment and member.
@@ -66,7 +68,7 @@ export function readPlanReport(input) {
66
68
  return { refused: `the report is not a plan report (stage ${JSON.stringify(r.stage)})` };
67
69
  if (r.pr !== input.pr)
68
70
  return { refused: `the report is for pull request ${JSON.stringify(r.pr)}, not ${input.pr}` };
69
- if (typeof r.head !== "string" || !SHA.test(r.head) || r.head !== input.head)
71
+ if (typeof r.head !== "string" || !SHA.test(r.head) || !isPlannedHead(r.head, input))
70
72
  return { refused: `the report is for head ${JSON.stringify(r.head)}, not ${input.head}` };
71
73
  if (r.env !== input.env)
72
74
  return { refused: `the report is for environment ${JSON.stringify(r.env)}, not ${input.env}` };
@@ -207,7 +209,7 @@ export async function postPlanReport(input) {
207
209
  if (!existsSync(join(input.dir, PR_PLAN_REPORT_FILE)) && existsSync(join(input.dir, PR_PLAN_NOTE_FILE)))
208
210
  return postPlanNoteHandoff(input);
209
211
  const warnings = [];
210
- const context = prStatusContext("plan", input.member);
212
+ const context = input.context ?? prStatusContext("plan", input.member);
211
213
  const read = readPlanReport(input);
212
214
  const failedJob = input.result === "failure" || input.result === "cancelled";
213
215
  let state;
@@ -278,6 +280,7 @@ async function keepRunRecord(input, warnings) {
278
280
  const read = readPlanRunRecord(input.dir, {
279
281
  env: input.env,
280
282
  head: input.head,
283
+ ...(input.planned ? { planned: input.planned } : {}),
281
284
  ...(input.member ? { target: input.member } : {}),
282
285
  ...(input.result ? { result: input.result } : {}),
283
286
  ...(input.recordRun.origin ? { origin: input.recordRun.origin } : {}),
@@ -358,7 +361,7 @@ export function readPlanNoteHandoff(input) {
358
361
  return { refused: `the plan note follows contract ${JSON.stringify(r.contract)}, and this chant reads ${PR_PLAN_NOTE_CONTRACT}` };
359
362
  if (r.pr !== input.pr)
360
363
  return { refused: `the plan note is for pull request ${JSON.stringify(r.pr)}, not ${input.pr}` };
361
- if (typeof r.head !== "string" || !SHA.test(r.head) || r.head !== input.head)
364
+ if (typeof r.head !== "string" || !SHA.test(r.head) || !isPlannedHead(r.head, input))
362
365
  return { refused: `the plan note is for head ${JSON.stringify(r.head)}, not ${input.head}` };
363
366
  if (r.env !== input.env)
364
367
  return { refused: `the plan note is for environment ${JSON.stringify(r.env)}, not ${input.env}` };
@@ -457,7 +460,7 @@ export function planNoteHandoffNote(handoff, forge, marker, noteWords, baseTip)
457
460
  /** {@link postPlanReport} for a product's plan note hand-off (#4799). */
458
461
  async function postPlanNoteHandoff(input) {
459
462
  const warnings = [];
460
- const context = prStatusContext("plan", input.member);
463
+ const context = input.context ?? prStatusContext("plan", input.member);
461
464
  const read = readPlanNoteHandoff(input);
462
465
  const failedJob = input.result === "failure" || input.result === "cancelled";
463
466
  let state;
@@ -537,7 +540,7 @@ export async function postOpenPlanReports(input) {
537
540
  if (!forge.mergeRequestJobs || !forge.jobArtifact || !forge.statusUrl) {
538
541
  throw new Error(`pr-post --open reads the plan jobs of open merge requests, which ${forge.kind} cannot say; it is for GitLab`);
539
542
  }
540
- const context = prStatusContext("plan", input.member);
543
+ const context = input.context ?? prStatusContext("plan", input.member);
541
544
  const warnings = [];
542
545
  let overdue;
543
546
  const overdueOnce = input.overdue ? () => (overdue ?? (overdue = input.overdue())) : undefined;
@@ -578,6 +581,7 @@ export async function postOpenPlanReports(input) {
578
581
  head: job.head,
579
582
  env: input.env,
580
583
  ...(input.member ? { member: input.member } : {}),
584
+ ...(input.context ? { context: input.context } : {}),
581
585
  result: settled,
582
586
  ...(overdueOnce ? { overdue: overdueOnce } : {}),
583
587
  ...(input.description ? { description: input.description } : {}),
@@ -615,7 +619,7 @@ export async function markStaleNotes(input) {
615
619
  throw new Error(`marking notes stale lists the open pull requests into ${input.branch}, which this ${forge.kind} client cannot`);
616
620
  const words = input.words ?? activeProductWords();
617
621
  const marker = prNoteMarker(input.env, input.member);
618
- const context = prStatusContext("plan", input.member, words);
622
+ const context = input.context ?? prStatusContext("plan", input.member, words);
619
623
  const comment = input.previewComment ? commentLine(words, "plan") : undefined;
620
624
  const verb = words.verbs.plan[0];
621
625
  const again = comment ? `comment \`${comment}\` to ${verb} again` : `push a commit to ${verb} again`;
@@ -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.90";
22
+ export declare const NEXT_RELEASE = "0.124.92";
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). */
@@ -150,10 +150,14 @@ export declare const CHECK_JOB_ARTIFACTS_FLOOR = "0.124.90";
150
150
  export declare const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
151
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). */
152
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";
153
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). */
154
156
  export declare const CI_BASE_REF_FLOOR = "0.124.89";
155
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). */
156
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";
157
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). */
158
162
  export declare const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
159
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). */
@@ -164,4 +168,6 @@ export declare const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
164
168
  export declare const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
165
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). */
166
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";
167
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,aAAa,CAAC;AAExD,4RAA4R;AAC5R,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,sVAAsV;AACtV,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC,8KAA8K;AAC9K,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,kQAAk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AAwU;AACxU,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,6XAA6X;AAC7X,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,wTAAwT;AACxT,eAAO,MAAM,gCAAgC,aAAa,CAAC;AAE3D,geAAge;AAChe,eAAO,MAAM,6BAA6B,aAAa,CAAC"}
@@ -19,7 +19,7 @@
19
19
  * this constant to the next patch (#4501). The check fails while a floor
20
20
  * still names this constant after its version shipped.
21
21
  */
22
- export const NEXT_RELEASE = "0.124.90";
22
+ export const NEXT_RELEASE = "0.124.92";
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). */
@@ -145,15 +145,19 @@ 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
146
  export const PRODUCT_CHECK_JOBS_FLOOR = "0.124.89";
147
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 = NEXT_RELEASE;
148
+ export const CHECK_JOB_ARTIFACTS_FLOOR = "0.124.90";
149
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). */
150
150
  export const GITLAB_WAVE_KEY_SCOPE_FLOOR = "0.124.89";
151
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). */
152
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 = "0.124.91";
153
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). */
154
156
  export const CI_BASE_REF_FLOOR = "0.124.89";
155
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). */
156
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 = "0.124.91";
157
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). */
158
162
  export const FORGE_CHECK_OWN_JOBS_FLOOR = "0.124.89";
159
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). */
@@ -164,3 +168,5 @@ export const TARGET_SIGNED_CHECKS_FLOOR = "0.124.89";
164
168
  export const RUNTIME_WAVES_SPEC_FLOOR = "0.124.89";
165
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). */
166
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 = "0.124.91";