@intentius/chant 0.124.32 → 0.124.34

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 (320) hide show
  1. package/dist/ci-jobs.d.ts +4 -0
  2. package/dist/ci-jobs.d.ts.map +1 -1
  3. package/dist/ci-jobs.js +9 -2
  4. package/dist/cli/handlers/build.d.ts.map +1 -1
  5. package/dist/cli/handlers/build.js +18 -3
  6. package/dist/cli/handlers/lifecycle-health.d.ts +16 -0
  7. package/dist/cli/handlers/lifecycle-health.d.ts.map +1 -0
  8. package/dist/cli/handlers/lifecycle-health.js +150 -0
  9. package/dist/cli/handlers/lifecycle.d.ts +26 -0
  10. package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
  11. package/dist/cli/handlers/lifecycle.js +1 -1
  12. package/dist/cli/handlers/pr.d.ts +2 -0
  13. package/dist/cli/handlers/pr.d.ts.map +1 -1
  14. package/dist/cli/handlers/pr.js +124 -2
  15. package/dist/cli/handlers/promote.d.ts.map +1 -1
  16. package/dist/cli/handlers/promote.js +277 -74
  17. package/dist/cli/handlers/release.d.ts +16 -1
  18. package/dist/cli/handlers/release.d.ts.map +1 -1
  19. package/dist/cli/handlers/release.js +83 -11
  20. package/dist/cli/main.d.ts.map +1 -1
  21. package/dist/cli/main.js +99 -22
  22. package/dist/cli/parse-args.d.ts.map +1 -1
  23. package/dist/cli/parse-args.js +30 -1
  24. package/dist/cli/registry.d.ts +21 -5
  25. package/dist/cli/registry.d.ts.map +1 -1
  26. package/dist/components/deploy-inputs.d.ts +91 -0
  27. package/dist/components/deploy-inputs.d.ts.map +1 -0
  28. package/dist/components/deploy-inputs.js +184 -0
  29. package/dist/components/driver.d.ts.map +1 -1
  30. package/dist/components/driver.js +9 -0
  31. package/dist/components/gate-plan.d.ts +8 -0
  32. package/dist/components/gate-plan.d.ts.map +1 -1
  33. package/dist/components/gate-plan.js +6 -0
  34. package/dist/components/pr-pipeline.d.ts +33 -10
  35. package/dist/components/pr-pipeline.d.ts.map +1 -1
  36. package/dist/components/pr-pipeline.js +42 -11
  37. package/dist/components/pr-run.d.ts +1 -1
  38. package/dist/components/pr-run.d.ts.map +1 -1
  39. package/dist/components/promote-rounds.d.ts +102 -0
  40. package/dist/components/promote-rounds.d.ts.map +1 -0
  41. package/dist/components/promote-rounds.js +174 -0
  42. package/dist/components/release-compile.d.ts +37 -2
  43. package/dist/components/release-compile.d.ts.map +1 -1
  44. package/dist/components/release-compile.js +64 -8
  45. package/dist/components/release-gate.d.ts +30 -0
  46. package/dist/components/release-gate.d.ts.map +1 -1
  47. package/dist/components/release-gate.js +92 -42
  48. package/dist/components/release-promote.d.ts +17 -3
  49. package/dist/components/release-promote.d.ts.map +1 -1
  50. package/dist/components/release-promote.js +79 -18
  51. package/dist/components/verbs/bom-writer.d.ts +1 -1
  52. package/dist/components/verbs/bom-writer.d.ts.map +1 -1
  53. package/dist/components/verbs/lockfile-sbom-generator.d.ts +20 -0
  54. package/dist/components/verbs/lockfile-sbom-generator.d.ts.map +1 -1
  55. package/dist/components/verbs/lockfile-sbom-generator.js +41 -4
  56. package/dist/components/wave-plan.d.ts +10 -0
  57. package/dist/components/wave-plan.d.ts.map +1 -1
  58. package/dist/components/wave-plan.js +32 -4
  59. package/dist/graph-declared.d.ts +4 -0
  60. package/dist/graph-declared.d.ts.map +1 -1
  61. package/dist/graph-declared.js +11 -1
  62. package/dist/graph-detail.d.ts.map +1 -1
  63. package/dist/graph-detail.js +32 -7
  64. package/dist/health.d.ts +110 -0
  65. package/dist/health.d.ts.map +1 -0
  66. package/dist/health.js +105 -0
  67. package/dist/health.schema.json +191 -0
  68. package/dist/lexicon.d.ts +27 -0
  69. package/dist/lexicon.d.ts.map +1 -1
  70. package/dist/lifecycle/merge-record.d.ts +104 -0
  71. package/dist/lifecycle/merge-record.d.ts.map +1 -0
  72. package/dist/lifecycle/merge-record.js +102 -0
  73. package/dist/lifecycle/publish-attachments.d.ts +8 -5
  74. package/dist/lifecycle/publish-attachments.d.ts.map +1 -1
  75. package/dist/lifecycle/publish-attachments.js +27 -13
  76. package/dist/lifecycle/publish-npm.d.ts +3 -2
  77. package/dist/lifecycle/publish-npm.d.ts.map +1 -1
  78. package/dist/lifecycle/publish-npm.js +4 -3
  79. package/dist/lifecycle/release-at.d.ts +40 -0
  80. package/dist/lifecycle/release-at.d.ts.map +1 -0
  81. package/dist/lifecycle/release-at.js +83 -0
  82. package/dist/lifecycle/release-cut.d.ts.map +1 -1
  83. package/dist/lifecycle/release-cut.js +23 -12
  84. package/dist/lifecycle/release-publish.d.ts +28 -12
  85. package/dist/lifecycle/release-publish.d.ts.map +1 -1
  86. package/dist/lifecycle/release-publish.js +29 -17
  87. package/dist/lifecycle/release-store.d.ts +25 -2
  88. package/dist/lifecycle/release-store.d.ts.map +1 -1
  89. package/dist/lifecycle/release-store.js +40 -13
  90. package/dist/lifecycle/run-ledger.d.ts.map +1 -1
  91. package/dist/lifecycle/run-ledger.js +1 -0
  92. package/dist/lint/rules/op/index.d.ts +2 -1
  93. package/dist/lint/rules/op/index.d.ts.map +1 -1
  94. package/dist/lint/rules/op/index.js +4 -2
  95. package/dist/lint/rules/op/ops018-shell-image-digest.d.ts +10 -0
  96. package/dist/lint/rules/op/ops018-shell-image-digest.d.ts.map +1 -0
  97. package/dist/lint/rules/op/ops018-shell-image-digest.js +38 -0
  98. package/dist/op/activities/activity-contracts.d.ts +5 -0
  99. package/dist/op/activities/activity-contracts.d.ts.map +1 -1
  100. package/dist/op/activities/activity-contracts.js +3 -0
  101. package/dist/op/activities/shell.d.ts +38 -0
  102. package/dist/op/activities/shell.d.ts.map +1 -1
  103. package/dist/op/activities/shell.js +89 -3
  104. package/dist/op/builders.d.ts +7 -0
  105. package/dist/op/builders.d.ts.map +1 -1
  106. package/dist/op/builders.js +7 -0
  107. package/dist/op/runtime.d.ts +2 -0
  108. package/dist/op/runtime.d.ts.map +1 -1
  109. package/dist/pr-loop.d.ts +14 -3
  110. package/dist/pr-loop.d.ts.map +1 -1
  111. package/dist/pr-loop.js +15 -5
  112. package/dist/pr-report-url.d.ts +2 -2
  113. package/dist/pr-report-url.d.ts.map +1 -1
  114. package/dist/runner-start.d.ts +179 -0
  115. package/dist/runner-start.d.ts.map +1 -0
  116. package/dist/runner-start.js +277 -0
  117. package/dist/wave-runtime.mjs +236 -229
  118. package/dist/workspace/__fixtures__/contract-repo.d.ts.map +1 -1
  119. package/dist/workspace/__fixtures__/contract-repo.js +13 -2
  120. package/dist/workspace/check.schema.json +88 -2
  121. package/dist/workspace/checks/ci-workflow.d.ts +17 -0
  122. package/dist/workspace/checks/ci-workflow.d.ts.map +1 -0
  123. package/dist/workspace/checks/ci-workflow.js +123 -0
  124. package/dist/workspace/checks/security.d.ts +50 -0
  125. package/dist/workspace/checks/security.d.ts.map +1 -0
  126. package/dist/workspace/checks/security.js +305 -0
  127. package/dist/workspace/checks.d.ts +2 -0
  128. package/dist/workspace/checks.d.ts.map +1 -1
  129. package/dist/workspace/checks.js +8 -0
  130. package/dist/workspace/ci-builds.d.ts +163 -0
  131. package/dist/workspace/ci-builds.d.ts.map +1 -0
  132. package/dist/workspace/ci-builds.js +315 -0
  133. package/dist/workspace/ci-green-cli.d.ts +2 -1
  134. package/dist/workspace/ci-green-cli.d.ts.map +1 -1
  135. package/dist/workspace/ci-green-cli.js +25 -5
  136. package/dist/workspace/ci-green-forge.d.ts +12 -0
  137. package/dist/workspace/ci-green-forge.d.ts.map +1 -1
  138. package/dist/workspace/ci-green-forge.js +12 -0
  139. package/dist/workspace/ci-green-workflow.d.ts +55 -1
  140. package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
  141. package/dist/workspace/ci-green-workflow.js +128 -1
  142. package/dist/workspace/ci-green.d.ts +89 -4
  143. package/dist/workspace/ci-green.d.ts.map +1 -1
  144. package/dist/workspace/ci-green.js +310 -23
  145. package/dist/workspace/ci-init.d.ts +100 -0
  146. package/dist/workspace/ci-init.d.ts.map +1 -0
  147. package/dist/workspace/ci-init.js +434 -0
  148. package/dist/workspace/ci-last-green.schema.json +49 -0
  149. package/dist/workspace/ci-list.schema.json +35 -1
  150. package/dist/workspace/ci-run-index.d.ts +1 -1
  151. package/dist/workspace/ci-run-index.d.ts.map +1 -1
  152. package/dist/workspace/ci-run-index.schema.json +1 -1
  153. package/dist/workspace/ci-run.d.ts +12 -6
  154. package/dist/workspace/ci-run.d.ts.map +1 -1
  155. package/dist/workspace/ci-run.js +72 -16
  156. package/dist/workspace/ci-runner-start.d.ts +77 -0
  157. package/dist/workspace/ci-runner-start.d.ts.map +1 -0
  158. package/dist/workspace/ci-runner-start.js +185 -0
  159. package/dist/workspace/ci-serve.d.ts +76 -7
  160. package/dist/workspace/ci-serve.d.ts.map +1 -1
  161. package/dist/workspace/ci-serve.js +153 -19
  162. package/dist/workspace/ci-workflow.d.ts +91 -0
  163. package/dist/workspace/ci-workflow.d.ts.map +1 -0
  164. package/dist/workspace/ci-workflow.js +33 -0
  165. package/dist/workspace/declaration.d.ts +35 -0
  166. package/dist/workspace/declaration.d.ts.map +1 -1
  167. package/dist/workspace/declaration.js +12 -2
  168. package/dist/workspace/declaration.schema.json +51 -0
  169. package/dist/workspace/init.js +2 -2
  170. package/dist/workspace/ls.d.ts +2 -0
  171. package/dist/workspace/ls.d.ts.map +1 -1
  172. package/dist/workspace/ls.js +1 -1
  173. package/dist/workspace/ls.schema.json +2 -1
  174. package/dist/workspace/member-pipeline.d.ts +1 -0
  175. package/dist/workspace/member-pipeline.d.ts.map +1 -1
  176. package/dist/workspace/member-pipeline.js +2 -0
  177. package/dist/workspace/merge-record.schema.json +49 -0
  178. package/dist/workspace/pr-report.schema.json +3 -3
  179. package/dist/workspace/reason-codes.d.ts +26 -0
  180. package/dist/workspace/reason-codes.d.ts.map +1 -1
  181. package/dist/workspace/reason-codes.js +28 -0
  182. package/dist/workspace/release-candidates.d.ts +129 -0
  183. package/dist/workspace/release-candidates.d.ts.map +1 -0
  184. package/dist/workspace/release-candidates.js +233 -0
  185. package/dist/workspace/release-candidates.schema.json +353 -0
  186. package/dist/workspace/release-workflow.d.ts +31 -0
  187. package/dist/workspace/release-workflow.d.ts.map +1 -0
  188. package/dist/workspace/release-workflow.js +150 -0
  189. package/dist/workspace/security.d.ts +40 -0
  190. package/dist/workspace/security.d.ts.map +1 -0
  191. package/dist/workspace/security.js +99 -0
  192. package/package.json +8 -1
  193. package/src/__fixtures__/pr-loop/pr-plan.note.golden.md +1 -1
  194. package/src/ci-jobs.ts +11 -2
  195. package/src/cli/handlers/build.test.ts +36 -0
  196. package/src/cli/handlers/build.ts +18 -3
  197. package/src/cli/handlers/lifecycle-health.test.ts +123 -0
  198. package/src/cli/handlers/lifecycle-health.ts +157 -0
  199. package/src/cli/handlers/lifecycle.ts +1 -1
  200. package/src/cli/handlers/pr-deploy-inputs.test.ts +209 -0
  201. package/src/cli/handlers/pr-record.test.ts +201 -0
  202. package/src/cli/handlers/pr.test.ts +22 -0
  203. package/src/cli/handlers/pr.ts +127 -4
  204. package/src/cli/handlers/promote.test.ts +17 -0
  205. package/src/cli/handlers/promote.ts +296 -84
  206. package/src/cli/handlers/release-cut-at.e2e.test.ts +115 -0
  207. package/src/cli/handlers/release-publish-targets.e2e.test.ts +2 -2
  208. package/src/cli/handlers/release-verify.e2e.test.ts +12 -10
  209. package/src/cli/handlers/release.e2e.test.ts +19 -28
  210. package/src/cli/handlers/release.ts +81 -11
  211. package/src/cli/main.ts +99 -22
  212. package/src/cli/parse-args.ts +22 -1
  213. package/src/cli/registry.ts +21 -5
  214. package/src/components/deploy-inputs.test.ts +108 -0
  215. package/src/components/deploy-inputs.ts +225 -0
  216. package/src/components/driver.ts +11 -0
  217. package/src/components/gate-plan.ts +9 -0
  218. package/src/components/pr-pipeline.ts +56 -15
  219. package/src/components/pr-run.ts +1 -1
  220. package/src/components/promote-rounds.test.ts +220 -0
  221. package/src/components/promote-rounds.ts +232 -0
  222. package/src/components/release-compile.test.ts +34 -0
  223. package/src/components/release-compile.ts +89 -8
  224. package/src/components/release-gate.test.ts +47 -0
  225. package/src/components/release-gate.ts +111 -46
  226. package/src/components/release-promote.test.ts +55 -2
  227. package/src/components/release-promote.ts +93 -23
  228. package/src/components/verbs/bom-writer.ts +1 -1
  229. package/src/components/verbs/lockfile-sbom-generator.test.ts +36 -0
  230. package/src/components/verbs/lockfile-sbom-generator.ts +43 -5
  231. package/src/components/wave-plan.ts +32 -4
  232. package/src/graph-declared-exports.test.ts +40 -0
  233. package/src/graph-declared.ts +9 -1
  234. package/src/graph-detail.test.ts +57 -0
  235. package/src/graph-detail.ts +33 -7
  236. package/src/health.schema.json +191 -0
  237. package/src/health.test.ts +62 -0
  238. package/src/health.ts +178 -0
  239. package/src/lexicon.ts +41 -1
  240. package/src/lifecycle/merge-record.test.ts +111 -0
  241. package/src/lifecycle/merge-record.ts +154 -0
  242. package/src/lifecycle/publish-attachments.ts +25 -13
  243. package/src/lifecycle/publish-npm.ts +4 -3
  244. package/src/lifecycle/publish-targets.test.ts +34 -4
  245. package/src/lifecycle/release-at.test.ts +48 -0
  246. package/src/lifecycle/release-at.ts +100 -0
  247. package/src/lifecycle/release-cut.test.ts +41 -0
  248. package/src/lifecycle/release-cut.ts +22 -11
  249. package/src/lifecycle/release-publish.test.ts +43 -13
  250. package/src/lifecycle/release-publish.ts +38 -18
  251. package/src/lifecycle/release-store.ts +57 -13
  252. package/src/lifecycle/run-ledger.test.ts +13 -0
  253. package/src/lifecycle/run-ledger.ts +1 -0
  254. package/src/lint/rules/op/index.ts +4 -2
  255. package/src/lint/rules/op/ops018-shell-image-digest.test.ts +60 -0
  256. package/src/lint/rules/op/ops018-shell-image-digest.ts +48 -0
  257. package/src/op/activities/activity-contracts.ts +3 -0
  258. package/src/op/activities/shell-container.e2e.test.ts +67 -0
  259. package/src/op/activities/shell.test.ts +44 -1
  260. package/src/op/activities/shell.ts +110 -3
  261. package/src/op/builders.ts +7 -0
  262. package/src/op/runtime.ts +2 -0
  263. package/src/op/step-console.test.ts +4 -2
  264. package/src/pr-loop.test.ts +29 -0
  265. package/src/pr-loop.ts +26 -7
  266. package/src/pr-report-url.ts +2 -2
  267. package/src/runner-start-bundle.test.ts +29 -0
  268. package/src/runner-start.test.ts +179 -0
  269. package/src/runner-start.ts +329 -0
  270. package/src/workspace/__fixtures__/contract-repo.ts +11 -2
  271. package/src/workspace/check-contract.test.ts +4 -2
  272. package/src/workspace/check.schema.json +88 -2
  273. package/src/workspace/checks/ci-workflow.test.ts +150 -0
  274. package/src/workspace/checks/ci-workflow.ts +129 -0
  275. package/src/workspace/checks/security.test.ts +138 -0
  276. package/src/workspace/checks/security.ts +305 -0
  277. package/src/workspace/checks.ts +8 -0
  278. package/src/workspace/ci-builds.e2e.test.ts +208 -0
  279. package/src/workspace/ci-builds.test.ts +174 -0
  280. package/src/workspace/ci-builds.ts +385 -0
  281. package/src/workspace/ci-green-builds.test.ts +180 -0
  282. package/src/workspace/ci-green-cli.test.ts +54 -0
  283. package/src/workspace/ci-green-cli.ts +26 -5
  284. package/src/workspace/ci-green-forge.ts +24 -0
  285. package/src/workspace/ci-green-workflow.test.ts +84 -1
  286. package/src/workspace/ci-green-workflow.ts +139 -2
  287. package/src/workspace/ci-green.test.ts +5 -2
  288. package/src/workspace/ci-green.ts +359 -27
  289. package/src/workspace/ci-init.test.ts +159 -0
  290. package/src/workspace/ci-init.ts +445 -0
  291. package/src/workspace/ci-last-green.schema.json +49 -0
  292. package/src/workspace/ci-list.schema.json +35 -1
  293. package/src/workspace/ci-report-url.test.ts +6 -1
  294. package/src/workspace/ci-run-index.schema.json +1 -1
  295. package/src/workspace/ci-run-index.ts +1 -1
  296. package/src/workspace/ci-run.test.ts +24 -7
  297. package/src/workspace/ci-run.ts +78 -16
  298. package/src/workspace/ci-runner-start.test.ts +151 -0
  299. package/src/workspace/ci-runner-start.ts +193 -0
  300. package/src/workspace/ci-serve-builds.test.ts +86 -0
  301. package/src/workspace/ci-serve.test.ts +59 -0
  302. package/src/workspace/ci-serve.ts +177 -22
  303. package/src/workspace/ci-workflow.ts +71 -0
  304. package/src/workspace/declaration.schema.json +51 -0
  305. package/src/workspace/declaration.test.ts +17 -0
  306. package/src/workspace/declaration.ts +53 -3
  307. package/src/workspace/init.ts +2 -2
  308. package/src/workspace/ls.schema.json +2 -1
  309. package/src/workspace/ls.ts +3 -2
  310. package/src/workspace/member-pipeline.ts +2 -1
  311. package/src/workspace/merge-record.schema.json +49 -0
  312. package/src/workspace/pr-report.schema.json +3 -3
  313. package/src/workspace/reason-codes.test.ts +4 -0
  314. package/src/workspace/reason-codes.ts +28 -0
  315. package/src/workspace/release-candidates.schema.json +353 -0
  316. package/src/workspace/release-candidates.test.ts +106 -0
  317. package/src/workspace/release-candidates.ts +315 -0
  318. package/src/workspace/release-workflow.ts +167 -0
  319. package/src/workspace/security.test.ts +70 -0
  320. package/src/workspace/security.ts +118 -0
@@ -1 +1 @@
1
- {"version":3,"file":"pr-run.d.ts","sourceRoot":"","sources":["../../src/components/pr-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAEH,OAAO,EAA2C,KAAK,iBAAiB,EAA2C,MAAM,eAAe,CAAC;AACzI,OAAO,EAAgB,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAML,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,MAAM,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAmB,KAAK,qBAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,KAAK,EAAE,aAA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AC;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,CAkCvD"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * A promote under a release that plans again once an upstream applied, and a
3
+ * gate per wave (#4168 step 4). Merging deploys nothing since step 1, so what
4
+ * `pr-apply` did on merge happens here, at promote:
5
+ *
6
+ * - **Rounds** (#3999's rule, `../pr-loop.ts`). The release gate approves a
7
+ * change set in which each dependent was planned against its upstream's
8
+ * planned outputs (`planReleaseSet` in ./release-gate.ts). The promote runs
9
+ * a wave at a time. Before a wave runs, a component whose plan read an
10
+ * upstream output that the run left as another value
11
+ * (`movedWiringReferences`) is planned again against what stands. When the
12
+ * approved change set covers the new plan (`waveNotCovered`, the test a
13
+ * pull request's resume uses), it applies under the approval it has.
14
+ * Otherwise its gates are decided as `<gate>-round-<n>` (`prRoundGate`),
15
+ * bound to the new plan's digest.
16
+ * - **A gate per wave** (`--wave-gate <gate>`, #4157's rule). Every wave
17
+ * after the first is planned again against what the waves before it left,
18
+ * and a wave the approved change set does not cover waits at
19
+ * `<gate>-wave-<k>` (`waveGateName`), one gate for the whole wave, bound to
20
+ * that wave's digest.
21
+ *
22
+ * A stage whose components declare no gate has nowhere to wait, so the
23
+ * promote stops there with nothing more deployed.
24
+ *
25
+ * A promote that stops at a round's or a wave's gate writes a resume record
26
+ * ({@link PromoteResume}): the components that applied and the outputs they
27
+ * left. The same promote run again with it skips what applied and carries on
28
+ * from the wave it stopped at, so an approval of the round or wave it waits on
29
+ * is decided against the same plan.
30
+ */
31
+ import { type DriverComponent, type DriverRunResult, type ReleaseGateBinding } from "./driver.js";
32
+ import type { ChangeSetDocument } from "../change-set.js";
33
+ import type { ReleasePlan } from "./release-gate.js";
34
+ export declare const PROMOTE_RESUME_SCHEMA = "chant-promote-resume/v1";
35
+ /** What a promote that stopped at a round's or a wave's gate leaves for the next attempt. */
36
+ export interface PromoteResume {
37
+ schema: typeof PROMOTE_RESUME_SCHEMA;
38
+ env: string;
39
+ releaseDigest: string;
40
+ /** The change set the release gate approved before anything applied. */
41
+ approvedDigest: string;
42
+ /** Components that applied, in run order. */
43
+ completed: string[];
44
+ /** The outputs standing after them. */
45
+ outputs: Record<string, Record<string, unknown>>;
46
+ /** ISO 8601. */
47
+ at: string;
48
+ }
49
+ /** One round or wave that needed its own approval. */
50
+ export interface PromoteStage {
51
+ kind: "round" | "wave";
52
+ /** The round number (2 and up) or the wave number (1-based). */
53
+ number: number;
54
+ components: string[];
55
+ /** The plan the stage's gates bind. */
56
+ digest: string;
57
+ /** Why the approved change set did not cover it, one line per member. */
58
+ notCovered: string[];
59
+ status: "applied" | "waiting" | "failed";
60
+ /** With `failed` before anything ran: why. */
61
+ message?: string;
62
+ }
63
+ export interface PromoteRoundsOptions {
64
+ /** The promoted compositions, in no particular order. */
65
+ components: DriverComponent[];
66
+ /** Outputs standing before the run: the seeds, and on a resume the record's. */
67
+ outputs: Record<string, Record<string, unknown>>;
68
+ /** The release gate the change set was approved under. */
69
+ binding: ReleaseGateBinding;
70
+ /** The approved change set, and what each component's plan read. */
71
+ approved: ChangeSetDocument;
72
+ reads: ReleasePlan["reads"];
73
+ /** Components an earlier attempt applied. Skipped. */
74
+ completed?: readonly string[];
75
+ /** `--wave-gate <gate>`: check every wave after the first, not only the components whose inputs moved, and name a wave's gate `<gate>-wave-<k>`. */
76
+ waveGate?: string;
77
+ /** Run one subset of the components with `outputs` standing (`runPromotion` with the binding). */
78
+ run: (components: DriverComponent[], outputs: Record<string, Record<string, unknown>>, binding: ReleaseGateBinding) => Promise<DriverRunResult>;
79
+ /** Plan `only` again with `outputs` standing (`planReleaseSet`). */
80
+ replan: (only: ReadonlySet<string>, outputs: Record<string, Record<string, unknown>>) => Promise<ChangeSetDocument>;
81
+ /** Store a stage's plan and bind its gates (empty resolutions included). */
82
+ bind: (doc: ChangeSetDocument, gates: string[]) => Promise<ReleaseGateBinding>;
83
+ }
84
+ export interface PromoteRoundsResult {
85
+ run: DriverRunResult;
86
+ /** The rounds and waves that needed their own approval. */
87
+ stages: PromoteStage[];
88
+ /** Every component that applied, earlier attempts included, in run order. */
89
+ completed: string[];
90
+ outputs: Record<string, Record<string, unknown>>;
91
+ }
92
+ /** `component` with each gate renamed by `rename`, nested phases included. */
93
+ export declare function renameGates(component: DriverComponent, rename: (gate: string) => string): DriverComponent;
94
+ /** The references `component`'s steps make that resolve to another value now than when its plan read them. */
95
+ export declare function movedInputs(component: DriverComponent, read: Record<string, Record<string, unknown>> | undefined, now: Record<string, Record<string, unknown>>): string[];
96
+ /**
97
+ * Run the promote a wave at a time, planning again where an upstream applied
98
+ * as another value, and with `waveGate`, checking each wave. Stops at the
99
+ * first wave that fails or waits on a gate.
100
+ */
101
+ export declare function runPromotionInRounds(options: PromoteRoundsOptions): Promise<PromoteRoundsResult>;
102
+ //# sourceMappingURL=promote-rounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promote-rounds.d.ts","sourceRoot":"","sources":["../../src/components/promote-rounds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAyB,KAAK,eAAe,EAAqC,KAAK,eAAe,EAA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AO,CAAC,CAAC,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,EAAE,CAQzK;AAiBD;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA8DtG"}
@@ -0,0 +1,174 @@
1
+ /**
2
+ * A promote under a release that plans again once an upstream applied, and a
3
+ * gate per wave (#4168 step 4). Merging deploys nothing since step 1, so what
4
+ * `pr-apply` did on merge happens here, at promote:
5
+ *
6
+ * - **Rounds** (#3999's rule, `../pr-loop.ts`). The release gate approves a
7
+ * change set in which each dependent was planned against its upstream's
8
+ * planned outputs (`planReleaseSet` in ./release-gate.ts). The promote runs
9
+ * a wave at a time. Before a wave runs, a component whose plan read an
10
+ * upstream output that the run left as another value
11
+ * (`movedWiringReferences`) is planned again against what stands. When the
12
+ * approved change set covers the new plan (`waveNotCovered`, the test a
13
+ * pull request's resume uses), it applies under the approval it has.
14
+ * Otherwise its gates are decided as `<gate>-round-<n>` (`prRoundGate`),
15
+ * bound to the new plan's digest.
16
+ * - **A gate per wave** (`--wave-gate <gate>`, #4157's rule). Every wave
17
+ * after the first is planned again against what the waves before it left,
18
+ * and a wave the approved change set does not cover waits at
19
+ * `<gate>-wave-<k>` (`waveGateName`), one gate for the whole wave, bound to
20
+ * that wave's digest.
21
+ *
22
+ * A stage whose components declare no gate has nowhere to wait, so the
23
+ * promote stops there with nothing more deployed.
24
+ *
25
+ * A promote that stops at a round's or a wave's gate writes a resume record
26
+ * ({@link PromoteResume}): the components that applied and the outputs they
27
+ * left. The same promote run again with it skips what applied and carries on
28
+ * from the wave it stopped at, so an approval of the round or wave it waits on
29
+ * is decided against the same plan.
30
+ */
31
+ import { movedWiringReferences } from "./driver.js";
32
+ import { resolveComponentGraph } from "./driver.js";
33
+ import { waveNotCovered } from "./pr-run.js";
34
+ import { prRoundGate } from "../pr-loop.js";
35
+ import { waveGateName } from "../gated-waves.js";
36
+ import { capabilitySteps } from "./wave-plan.js";
37
+ export const PROMOTE_RESUME_SCHEMA = "chant-promote-resume/v1";
38
+ function isGate(step) {
39
+ return step.kind === "gate";
40
+ }
41
+ function isPhase(step) {
42
+ return typeof step.phase === "string" && Array.isArray(step.steps);
43
+ }
44
+ /** `component` with each gate renamed by `rename`, nested phases included. */
45
+ export function renameGates(component, rename) {
46
+ const walk = (phase) => ({
47
+ ...phase,
48
+ steps: phase.steps.map((step) => {
49
+ if (isPhase(step))
50
+ return walk(step);
51
+ if (!isGate(step))
52
+ return step;
53
+ const { signalName: _old, ...rest } = step;
54
+ return { ...rest, gate: rename(step.gate ?? step.signalName ?? "") };
55
+ }),
56
+ });
57
+ return { ...component, deploy: component.deploy.map(walk) };
58
+ }
59
+ /** The gate names `components` declare, sorted and distinct. */
60
+ function gatesOf(components) {
61
+ const names = new Set();
62
+ const walk = (steps) => {
63
+ for (const step of steps) {
64
+ if (isPhase(step))
65
+ walk(step.steps);
66
+ else if (isGate(step))
67
+ names.add(step.gate ?? step.signalName ?? "");
68
+ }
69
+ };
70
+ for (const c of components)
71
+ for (const phase of c.deploy)
72
+ walk(phase.steps);
73
+ return [...names].sort();
74
+ }
75
+ /** The references `component`'s steps make that resolve to another value now than when its plan read them. */
76
+ export function movedInputs(component, read, now) {
77
+ if (!read)
78
+ return [];
79
+ const moved = new Set();
80
+ for (const step of capabilitySteps(component.deploy)) {
81
+ const { kind: _kind, ...rest } = step;
82
+ for (const r of movedWiringReferences(rest, read, now))
83
+ if (!r.publish)
84
+ moved.add(r.ref);
85
+ }
86
+ return [...moved].sort();
87
+ }
88
+ function joinRuns(runs, outputs) {
89
+ const last = runs[runs.length - 1];
90
+ const base = {
91
+ order: runs.flatMap((r) => r.order),
92
+ waves: runs.flatMap((r) => r.waves),
93
+ results: runs.flatMap((r) => r.results),
94
+ ok: runs.every((r) => r.ok),
95
+ status: "ok",
96
+ componentOutputs: outputs,
97
+ };
98
+ if (!last || last.status === "ok")
99
+ return base;
100
+ const { order: _o, waves: _w, results: _r, ok: _ok, componentOutputs: _c, ...stop } = last;
101
+ return { ...base, ...stop, ok: false };
102
+ }
103
+ /**
104
+ * Run the promote a wave at a time, planning again where an upstream applied
105
+ * as another value, and with `waveGate`, checking each wave. Stops at the
106
+ * first wave that fails or waits on a gate.
107
+ */
108
+ export async function runPromotionInRounds(options) {
109
+ const byName = new Map(options.components.map((c) => [c.name, c]));
110
+ const { waves } = resolveComponentGraph(options.components.map((c) => ({ ...c, dependsOn: (c.dependsOn ?? []).filter((d) => byName.has(d)) })));
111
+ const completed = [...(options.completed ?? [])];
112
+ const done = new Set(completed);
113
+ let outputs = { ...options.outputs };
114
+ const runs = [];
115
+ const stages = [];
116
+ let round = 1;
117
+ for (const [index, wave] of waves.entries()) {
118
+ const waveNumber = index + 1;
119
+ const pending = wave.filter((name) => !done.has(name));
120
+ if (pending.length === 0)
121
+ continue;
122
+ const check = options.waveGate !== undefined && waveNumber > 1
123
+ ? pending
124
+ : pending.filter((name) => movedInputs(byName.get(name), options.reads[name], outputs).length > 0);
125
+ const batches = [];
126
+ const rest = pending.filter((name) => !check.includes(name));
127
+ if (check.length > 0) {
128
+ const fresh = await options.replan(new Set(check), outputs);
129
+ const notCovered = waveNotCovered(options.approved, fresh);
130
+ if (notCovered.length === 0) {
131
+ rest.push(...check);
132
+ }
133
+ else {
134
+ const kind = options.waveGate !== undefined ? "wave" : "round";
135
+ if (kind === "round")
136
+ round += 1;
137
+ const number = kind === "wave" ? waveNumber : round;
138
+ const base = options.waveGate;
139
+ const rename = (g) => (base !== undefined ? waveGateName(base, number) : prRoundGate(g, number));
140
+ const renamed = check.map((name) => renameGates(byName.get(name), rename));
141
+ const gates = gatesOf(renamed);
142
+ const stage = { kind, number, components: check, digest: fresh.digest, notCovered, status: "waiting" };
143
+ stages.push(stage);
144
+ if (gates.length === 0) {
145
+ stage.status = "failed";
146
+ stage.message = `${check.join(", ")} planned again past the approved change set and declare${check.length === 1 ? "s" : ""} no gate to approve the new plan on`;
147
+ const stop = { order: [], waves: [], results: [], ok: false, status: "fail", failedComponent: check[0], componentOutputs: outputs };
148
+ return { run: joinRuns([...runs, stop], outputs), stages, completed, outputs };
149
+ }
150
+ const binding = await options.bind(fresh, gates);
151
+ batches.push({ names: check, binding, stage, rename });
152
+ }
153
+ }
154
+ if (rest.length > 0)
155
+ batches.unshift({ names: pending.filter((n) => rest.includes(n)), binding: options.binding });
156
+ for (const batch of batches) {
157
+ const components = batch.names.map((name) => (batch.rename ? renameGates(byName.get(name), batch.rename) : byName.get(name)));
158
+ const run = await options.run(components, outputs, batch.binding);
159
+ runs.push(run);
160
+ outputs = { ...outputs, ...run.componentOutputs };
161
+ for (const r of run.results) {
162
+ if (r.status === "ok" && !done.has(r.component)) {
163
+ done.add(r.component);
164
+ completed.push(r.component);
165
+ }
166
+ }
167
+ if (batch.stage)
168
+ batch.stage.status = run.status === "ok" ? "applied" : run.status === "gated" ? "waiting" : "failed";
169
+ if (run.status !== "ok")
170
+ return { run: joinRuns(runs, outputs), stages, completed, outputs };
171
+ }
172
+ }
173
+ return { run: joinRuns(runs, outputs), stages, completed, outputs };
174
+ }
@@ -15,7 +15,14 @@
15
15
  * ./promote.ts: a literal path in a deploy step's `template`, `manifest` or
16
16
  * `values` field ({@link TEMPLATE_FIELDS}), read after the environment's build
17
17
  * command has run. A path with the `archive:` prefix names the file after it.
18
- * A path that names a directory, such as a chart, is not a template.
18
+ *
19
+ * Since #4155 a cut also records the other local paths a deploy step names
20
+ * ({@link recordedInputRefs}: a Helm chart, a kustomize directory, a sync's
21
+ * source tree, the fields `./deploy-inputs.ts` lists). A directory is
22
+ * recorded file by file and named in the target's `trees`; a file that is not
23
+ * UTF-8 is recorded as base64. Such a path that does not exist after the
24
+ * build, as a chart named from a repository, is not recorded, and the
25
+ * promote leaves it as written.
19
26
  *
20
27
  * A project with no components (#4046) is compiled the way `chant build --env
21
28
  * <env> -o <output>` builds it ({@link compileBuildOutput}): every file that
@@ -28,7 +35,7 @@ import { type DriverComponent, type DriverStep } from "./driver.js";
28
35
  import type { CapabilityRegistry } from "./capability.js";
29
36
  import type { ReleaseArtifact, ReleaseParam } from "../lifecycle/release-store.js";
30
37
  /** The deploy step fields whose literal file paths are a component's templates. */
31
- export declare const TEMPLATE_FIELDS: readonly string[];
38
+ export { TEMPLATE_FIELDS } from "./deploy-inputs.js";
32
39
  /** One template a component's deploy reads, as the step names it. */
33
40
  export interface TemplateRef {
34
41
  component: string;
@@ -44,7 +51,9 @@ export interface TemplateRef {
44
51
  export interface CompiledTemplate {
45
52
  component: string | null;
46
53
  path: string;
54
+ /** The text, or the base64 of the bytes under `encoding: "base64"`. */
47
55
  content: string;
56
+ encoding?: "base64";
48
57
  }
49
58
  /** What one environment compiles to. */
50
59
  export interface CompiledTarget {
@@ -66,6 +75,11 @@ export interface CompiledTarget {
66
75
  /** For each component, the file that declares it, relative to the member's directory. */
67
76
  componentFiles: Record<string, string>;
68
77
  templates: CompiledTemplate[];
78
+ /** The directories recorded file by file in `templates` (#4155). Absent from a compiler written before #4155. */
79
+ trees?: Array<{
80
+ component: string | null;
81
+ path: string;
82
+ }>;
69
83
  }
70
84
  /** Compiles a member for one environment, and builds its artifacts. The cut talks to a compiler only, so a test can hand it fixtures. */
71
85
  export interface TargetCompiler {
@@ -74,6 +88,17 @@ export interface TargetCompiler {
74
88
  }
75
89
  /** The templates a component's deploy reads: literal paths in {@link TEMPLATE_FIELDS} of its steps other than build and publish steps. */
76
90
  export declare function templateRefs(component: DriverComponent): TemplateRef[];
91
+ /** A path a deploy step names that a cut records (#4155): a {@link TemplateRef}, and whether its field is a template field, which must exist. */
92
+ export interface RecordedInputRef extends TemplateRef {
93
+ /** True for `template`, `manifest` and `values`, whose path must exist after the build. */
94
+ required: boolean;
95
+ }
96
+ /** Every literal path a component's deploy names that a cut records: {@link templateRefs}, plus each kind's own fields in `DEPLOY_INPUT_FIELDS`. */
97
+ export declare function recordedInputRefs(component: DriverComponent): RecordedInputRef[];
98
+ /** The fields of a step of `kind` whose paths a cut records and a promote points at the recorded copy. */
99
+ export declare function recordedFields(kind: string): string[];
100
+ /** A file's bytes as a template: its text when it is UTF-8, else base64. */
101
+ export declare function templateOf(component: string | null, path: string, file: string): CompiledTemplate;
77
102
  /** A component's build-time steps ({@link BUILD_STEP_KINDS}), each as declared, in composition order. */
78
103
  export declare function buildStepsOf(component: DriverComponent): DriverStep[];
79
104
  /** A component's publish steps ({@link PUBLISH_STEP_KINDS}), each as declared, in composition order. */
@@ -98,7 +123,17 @@ export interface CompileInputs {
98
123
  output?: string;
99
124
  /** For a project with no components: build only this lexicon, as `chant build --lexicon` does. */
100
125
  lexicon?: string;
126
+ /**
127
+ * The release's label (#4168, decision 5), passed to every compile and
128
+ * artifact build as `CHANT_RELEASE_LABEL`, so a version reaches the build
129
+ * without a version-bump commit. A build parameter reads it by declaring
130
+ * `env: "CHANT_RELEASE_LABEL"`, and a build step's own tool (cargo, npm)
131
+ * reads the variable. Unset for a cut with no label.
132
+ */
133
+ releaseLabel?: string;
101
134
  }
135
+ /** The variable a cut's label reaches the build through (#4168). */
136
+ export declare const RELEASE_LABEL_ENV = "CHANT_RELEASE_LABEL";
102
137
  /**
103
138
  * Where a project with no components writes its build output when the cut
104
139
  * names no `-o`. YAML, since the k8s and helm serializers write YAML whatever
@@ -1 +1 @@
1
- {"version":3,"file":"release-compile.d.ts","sourceRoot":"","sources":["../../src/components/release-compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAO9D,OAAO,EAAwC,KAAK,eAAe,EAAqC,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1I,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4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,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAgCD;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsDpG;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CA6DzH;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,QAAQ,CAAC,EAAE,kBAAkB,GAC5B,OAAO,CAAC,eAAe,EAAE,CAAC,CAgC5B;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAG1C;AA4BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,GAAE,SAAS,MAAM,EAAsB,GAAG,cAAc,CA2BzH"}
@@ -15,7 +15,14 @@
15
15
  * ./promote.ts: a literal path in a deploy step's `template`, `manifest` or
16
16
  * `values` field ({@link TEMPLATE_FIELDS}), read after the environment's build
17
17
  * command has run. A path with the `archive:` prefix names the file after it.
18
- * A path that names a directory, such as a chart, is not a template.
18
+ *
19
+ * Since #4155 a cut also records the other local paths a deploy step names
20
+ * ({@link recordedInputRefs}: a Helm chart, a kustomize directory, a sync's
21
+ * source tree, the fields `./deploy-inputs.ts` lists). A directory is
22
+ * recorded file by file and named in the target's `trees`; a file that is not
23
+ * UTF-8 is recorded as base64. Such a path that does not exist after the
24
+ * build, as a chart named from a repository, is not recorded, and the
25
+ * promote leaves it as written.
19
26
  *
20
27
  * A project with no components (#4046) is compiled the way `chant build --env
21
28
  * <env> -o <output>` builds it ({@link compileBuildOutput}): every file that
@@ -24,6 +31,7 @@
24
31
  * back from disk, so a file an earlier build left behind is never recorded.
25
32
  */
26
33
  import { spawn, spawnSync } from "node:child_process";
34
+ import { isUtf8 } from "node:buffer";
27
35
  import { existsSync, readFileSync, statSync } from "node:fs";
28
36
  import { isAbsolute, relative, resolve } from "node:path";
29
37
  import { loadChantConfig } from "../config.js";
@@ -36,7 +44,8 @@ import { ARCHIVE_STEP_KINDS, BUILD_STEP_KINDS, PUBLISH_STEP_KINDS } from "./prom
36
44
  import { DriverRunFailure, runInterpretDriver } from "./driver.js";
37
45
  import { memoryGateLedgerPort } from "../op/gate.js";
38
46
  /** The deploy step fields whose literal file paths are a component's templates. */
39
- export const TEMPLATE_FIELDS = ["template", "manifest", "values"];
47
+ export { TEMPLATE_FIELDS } from "./deploy-inputs.js";
48
+ import { DEPLOY_INPUT_FIELDS, directoryFiles, ignoredByGit, TEMPLATE_FIELDS, walkFiles } from "./deploy-inputs.js";
40
49
  /** The prefix a step may write before an archive-relative template path. */
41
50
  const ARCHIVE_PREFIX = "archive:";
42
51
  function isGate(step) {
@@ -79,6 +88,33 @@ export function templateRefs(component) {
79
88
  }
80
89
  return out;
81
90
  }
91
+ /** Every literal path a component's deploy names that a cut records: {@link templateRefs}, plus each kind's own fields in `DEPLOY_INPUT_FIELDS`. */
92
+ export function recordedInputRefs(component) {
93
+ const out = [];
94
+ for (const { phase, step } of stepsOf(component.deploy)) {
95
+ if (BUILD_STEP_KINDS.includes(step.kind) || PUBLISH_STEP_KINDS.includes(step.kind))
96
+ continue;
97
+ for (const field of recordedFields(step.kind)) {
98
+ const raw = step[field];
99
+ for (const value of Array.isArray(raw) ? raw : [raw]) {
100
+ if (!isLiteralPath(value))
101
+ continue;
102
+ const path = value.startsWith(ARCHIVE_PREFIX) ? value.slice(ARCHIVE_PREFIX.length) : value;
103
+ out.push({ component: component.name, phase, kind: step.kind, field, value, path, required: TEMPLATE_FIELDS.includes(field) });
104
+ }
105
+ }
106
+ }
107
+ return out;
108
+ }
109
+ /** The fields of a step of `kind` whose paths a cut records and a promote points at the recorded copy. */
110
+ export function recordedFields(kind) {
111
+ return [...TEMPLATE_FIELDS, ...(DEPLOY_INPUT_FIELDS[kind] ?? [])];
112
+ }
113
+ /** A file's bytes as a template: its text when it is UTF-8, else base64. */
114
+ export function templateOf(component, path, file) {
115
+ const bytes = readFileSync(file);
116
+ return isUtf8(bytes) ? { component, path, content: bytes.toString("utf-8") } : { component, path, content: bytes.toString("base64"), encoding: "base64" };
117
+ }
82
118
  /** A component's build-time steps ({@link BUILD_STEP_KINDS}), each as declared, in composition order. */
83
119
  export function buildStepsOf(component) {
84
120
  return stepsOf(component.deploy).map((s) => s.step).filter((s) => BUILD_STEP_KINDS.includes(s.kind));
@@ -122,6 +158,8 @@ export function withOnlyArchiveSteps(component) {
122
158
  const deploy = component.deploy.map(keep).filter((p) => p !== undefined);
123
159
  return deploy.length > 0 ? { name: component.name, dependsOn: [], deploy } : undefined;
124
160
  }
161
+ /** The variable a cut's label reaches the build through (#4168). */
162
+ export const RELEASE_LABEL_ENV = "CHANT_RELEASE_LABEL";
125
163
  /**
126
164
  * Where a project with no components writes its build output when the cut
127
165
  * names no `-o`. YAML, since the k8s and helm serializers write YAML whatever
@@ -185,21 +223,33 @@ export async function compileEnvironment(inputs, env) {
185
223
  return compileBuildOutput(inputs, env, config);
186
224
  const rel = (p) => (isAbsolute(p) ? relative(inputs.projectDir, p) : p);
187
225
  const templates = [];
226
+ const trees = [];
188
227
  const seen = new Set();
189
228
  for (const { component } of components) {
190
- for (const ref of templateRefs(component)) {
229
+ for (const ref of recordedInputRefs(component)) {
191
230
  const key = `${ref.component}\u0000${ref.path}`;
192
231
  if (seen.has(key))
193
232
  continue;
194
233
  seen.add(key);
195
234
  const file = resolve(inputs.projectDir, ref.path);
196
235
  if (!existsSync(file)) {
236
+ if (!ref.required)
237
+ continue;
197
238
  throw new ReleaseCompileError(`component "${ref.component}": its ${ref.kind} step in phase "${ref.phase}" reads ${ref.field} "${ref.value}", ` +
198
239
  `and no such file exists after the build for "${env}"`);
199
240
  }
200
- if (!statSync(file).isFile())
241
+ if (statSync(file).isFile()) {
242
+ templates.push(templateOf(ref.component, ref.path, file));
201
243
  continue;
202
- templates.push({ component: ref.component, path: ref.path, content: readFileSync(file, "utf-8") });
244
+ }
245
+ // #4155: a directory, file by file. One git ignores is the build's output, recorded whole.
246
+ const files = ignoredByGit(inputs.projectDir, ref.path) ? walkFiles(inputs.projectDir, ref.path) : directoryFiles(inputs.projectDir, ref.path);
247
+ const dir = ref.path.replace(/\/+$/, "");
248
+ for (const f of files) {
249
+ const under = relative(resolve(inputs.projectDir, dir), resolve(inputs.projectDir, f)).split("\\").join("/");
250
+ templates.push(templateOf(ref.component, `${dir}/${under}`, resolve(inputs.projectDir, f)));
251
+ }
252
+ trees.push({ component: ref.component, path: dir });
203
253
  }
204
254
  }
205
255
  return {
@@ -211,6 +261,7 @@ export async function compileEnvironment(inputs, env) {
211
261
  buildInputs: Object.fromEntries(components.map(({ component }) => [component.name, buildInputPaths(component)])),
212
262
  componentFiles: Object.fromEntries(components.map(({ component, file }) => [component.name, rel(file)])),
213
263
  templates,
264
+ trees,
214
265
  };
215
266
  }
216
267
  /**
@@ -325,10 +376,15 @@ export function ownChantCommand() {
325
376
  const main = process.argv[1] ?? "";
326
377
  return [process.execPath, ...process.execArgv, main];
327
378
  }
328
- function runChild(command, args, cwd, env) {
379
+ function runChild(command, args, cwd, env, releaseLabel) {
329
380
  return new Promise((resolvePromise, reject) => {
330
381
  const [bin, ...lead] = command;
331
- const child = spawn(bin, [...lead, ...args], { cwd, stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, CHANT_ENV: env } });
382
+ const childEnv = { ...process.env, CHANT_ENV: env };
383
+ // A label never leaks in from the caller's shell: only the cut sets it.
384
+ delete childEnv[RELEASE_LABEL_ENV];
385
+ if (releaseLabel !== undefined)
386
+ childEnv[RELEASE_LABEL_ENV] = releaseLabel;
387
+ const child = spawn(bin, [...lead, ...args], { cwd, stdio: ["ignore", "pipe", "pipe"], env: childEnv });
332
388
  const out = [];
333
389
  const err = [];
334
390
  child.stdout.on("data", (c) => out.push(c));
@@ -361,7 +417,7 @@ export function spawnTargetCompiler(inputs, command = ownChantCommand()) {
361
417
  return args;
362
418
  };
363
419
  const call = async (env, extra) => {
364
- const run = await runChild(command, ["release", "compile", "--env", env, ...common(), ...extra, "--json"], inputs.projectDir, env);
420
+ const run = await runChild(command, ["release", "compile", "--env", env, ...common(), ...extra, "--json"], inputs.projectDir, env, inputs.releaseLabel);
365
421
  if (run.code !== 0)
366
422
  throw new ReleaseCompileError(`compiling "${env}" failed (exit ${run.code})`);
367
423
  try {
@@ -39,6 +39,14 @@
39
39
  * planned by that capability, as a pull request's plan is. A plan that
40
40
  * returns no change-set part is a hole, since nothing says what it changes.
41
41
  *
42
+ * A dependency the promote also deploys is read from its plan, not from the
43
+ * estate (#4168 step 4, the rule #3999 gave a pull request): a dependent is
44
+ * planned against the outputs its upstream's plan says it will expose, and a
45
+ * reference the plan can't say is listed in `unknownInputs`. Any other
46
+ * dependency is read as it stands. What each component was planned against is
47
+ * kept in `reads`, so the promote can hold it back when an upstream applies
48
+ * as another value (`./promote-rounds.ts`).
49
+ *
42
50
  * Any other component is a `chant` member compared with what the
43
51
  * environment runs now: its latest deploy record and the release that record
44
52
  * names. The artifact digest, each template the release's target records for
@@ -91,6 +99,22 @@ export interface ReleaseChangeSetInput {
91
99
  seededOutputs?: Record<string, Record<string, unknown>>;
92
100
  /** The chant version to record in the document. */
93
101
  chant?: string;
102
+ /**
103
+ * Plan only these components (a later round or wave, ./promote-rounds.ts).
104
+ * The others are not planned; a dependency among them is read from
105
+ * `seededOutputs`, which then holds what the run left. Default: every one.
106
+ */
107
+ only?: ReadonlySet<string>;
108
+ }
109
+ /** A release's change set for an environment, and what each component was planned against. */
110
+ export interface ReleasePlan {
111
+ doc: ChangeSetDocument;
112
+ /** Per planned component, the outputs of its dependencies as its plan read them. */
113
+ reads: Record<string, Record<string, Record<string, unknown>>>;
114
+ /** Per dependency read from its plan, the names of the outputs the plan knows, sorted. Absent when none. */
115
+ plannedOutputs?: Record<string, string[]>;
116
+ /** Per component, the references to a promoted upstream that no value stands for until it applies, sorted. Absent when none. */
117
+ unknownInputs?: Record<string, string[]>;
94
118
  }
95
119
  /**
96
120
  * A component no capability plans, as a `chant` member: what the release
@@ -112,6 +136,12 @@ export declare function chantComponentPart(input: {
112
136
  * that fails to plan: it becomes a failed member.
113
137
  */
114
138
  export declare function planReleaseChangeSet(input: ReleaseChangeSetInput): Promise<ChangeSetDocument>;
139
+ /**
140
+ * {@link planReleaseChangeSet}, with what each component read. Components are
141
+ * planned a wave at a time, so a dependency the promote deploys has planned
142
+ * before its dependents read its outputs.
143
+ */
144
+ export declare function planReleaseSet(input: ReleaseChangeSetInput): Promise<ReleasePlan>;
115
145
  /** The members a release gate refuses: provisional ones, which no approval of the document covers (`change-set.mdx`). */
116
146
  export declare function provisionalMembers(doc: ChangeSetDocument): string[];
117
147
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"release-gate.d.ts","sourceRoot":"","sources":["../../src/components/release-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAA0D,KAAK,eAAe,EAAsD,MAAM,UAAU,CAAC;AAE5J,OAAO,EAAY,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE5D,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,E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