@intentius/chant-lexicon-terraform 0.124.85 → 0.124.86

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 (65) hide show
  1. package/dist/ci-setup.d.ts +11 -2
  2. package/dist/ci-setup.d.ts.map +1 -1
  3. package/dist/ci-setup.js +11 -6
  4. package/dist/components/capability-plugin.d.ts +12 -0
  5. package/dist/components/capability-plugin.d.ts.map +1 -1
  6. package/dist/components/capability-plugin.js +22 -4
  7. package/dist/compose.d.ts.map +1 -1
  8. package/dist/compose.js +1 -1
  9. package/dist/estate-migration.d.ts +101 -0
  10. package/dist/estate-migration.d.ts.map +1 -0
  11. package/dist/estate-migration.js +471 -0
  12. package/dist/integrity.json +2 -2
  13. package/dist/manifest.json +1 -1
  14. package/dist/op/activities/terraform.d.ts +65 -0
  15. package/dist/op/activities/terraform.d.ts.map +1 -1
  16. package/dist/op/activities/terraform.js +94 -1
  17. package/dist/state/backend.d.ts +46 -9
  18. package/dist/state/backend.d.ts.map +1 -1
  19. package/dist/state/backend.js +84 -31
  20. package/dist/state/gitlab.d.ts +1 -1
  21. package/dist/state/gitlab.d.ts.map +1 -1
  22. package/dist/state/gitlab.js +27 -14
  23. package/dist/state/index.d.ts +1 -0
  24. package/dist/state/index.d.ts.map +1 -1
  25. package/dist/state/index.js +1 -0
  26. package/dist/state/s3.d.ts +9 -3
  27. package/dist/state/s3.d.ts.map +1 -1
  28. package/dist/state/s3.js +4 -3
  29. package/dist/state/source.d.ts +92 -0
  30. package/dist/state/source.d.ts.map +1 -0
  31. package/dist/state/source.js +254 -0
  32. package/dist/state/store.d.ts +41 -4
  33. package/dist/state/store.d.ts.map +1 -1
  34. package/dist/state/store.js +125 -10
  35. package/dist/state/versions.d.ts +77 -10
  36. package/dist/state/versions.d.ts.map +1 -1
  37. package/dist/state/versions.js +118 -64
  38. package/dist/state-migration.d.ts +43 -1
  39. package/dist/state-migration.d.ts.map +1 -1
  40. package/dist/state-migration.js +251 -20
  41. package/dist/state-ops.d.ts +2 -3
  42. package/dist/state-ops.d.ts.map +1 -1
  43. package/dist/state-ops.js +4 -7
  44. package/package.json +2 -2
  45. package/src/ci-setup.test.ts +20 -0
  46. package/src/ci-setup.ts +11 -6
  47. package/src/components/capability-plugin.ts +36 -3
  48. package/src/components/terraform-apply-command-hook.test.ts +157 -0
  49. package/src/compose.ts +1 -0
  50. package/src/estate-migration.test.ts +186 -0
  51. package/src/estate-migration.ts +563 -0
  52. package/src/op/activities/terraform.ts +153 -3
  53. package/src/state/backend-verdict.test.ts +4 -3
  54. package/src/state/backend.test.ts +3 -1
  55. package/src/state/backend.ts +108 -33
  56. package/src/state/gitlab.ts +25 -12
  57. package/src/state/index.ts +1 -0
  58. package/src/state/s3.ts +5 -4
  59. package/src/state/source.ts +289 -0
  60. package/src/state/store.ts +145 -11
  61. package/src/state/versions.test.ts +365 -0
  62. package/src/state/versions.ts +148 -68
  63. package/src/state-migration-backends.test.ts +277 -0
  64. package/src/state-migration.ts +265 -23
  65. package/src/state-ops.ts +6 -8
@@ -0,0 +1,471 @@
1
+ /**
2
+ * Migrations into and between choudoufu estates (#4806), for chant core's
3
+ * gated migration (`@intentius/chant/state-migration`). A root whose
4
+ * `terraform` block holds a `live` block keeps no state file, so `state
5
+ * pull` and `state push` have nothing to read or write. Ownership is a
6
+ * marker on each live resource (the `tofu-estate` and `tofu-address` tags,
7
+ * `./live-ownership.ts`), so:
8
+ *
9
+ * moves between two estates is a retag: `choudoufu live-mv
10
+ * -from-estate` rewrites the markers of each resource, run in
11
+ * the root it moves to
12
+ * backends from an s3 or local state into an estate is an adoption:
13
+ * `choudoufu live-import` reads the old state once and stamps
14
+ * the markers on every resource it verifies; the old state is
15
+ * left where it was. When the state is the one the root's own
16
+ * backend block names and the binary's live-import reads that
17
+ * backend itself, no state is read here: live-import gets no
18
+ * `-state`, and the proof binds its ratification and the
19
+ * state's version id
20
+ *
21
+ * The proof is read-only.
22
+ *
23
+ * moves `live-mv -dry-run -json` of each retag, run in the root the
24
+ * resource joins: each one must find the live resource in the
25
+ * estate it leaves, and a refusal stops the migration. A root
26
+ * that resources join is not planned first (until the retag
27
+ * its resources carry another estate's markers, and choudoufu
28
+ * refuses to plan it). A root they only leave is planned, which
29
+ * names the instances that leave (its destroys), and every
30
+ * change it plans must be one of those destroys. The digest
31
+ * covers the planned changes of each planned root and the live
32
+ * id of each resource.
33
+ * backends `live-import` without `-approve`: its ratification of every
34
+ * resource instance the old state holds. The root is not
35
+ * planned first, since choudoufu refuses to plan a root with an
36
+ * unmarked live object at a resource's identity. Each instance
37
+ * that does not verify (or is not outside the taggable subset)
38
+ * is a change of the proof. The root's `source` binds the old
39
+ * state's location, version and digest; under the lock of that
40
+ * state the engine reads it again.
41
+ *
42
+ * After the write every root plans and must show no change, which for an
43
+ * adoption is the first plan its root makes. A retag takes no lock: the
44
+ * markers are on the live resources, which no state lock covers.
45
+ *
46
+ * The product resolves each root's estate (choudoufu's `live-check`) and
47
+ * passes it with the root, and keeps its own report of the write: each
48
+ * `-progress-json` line of a write goes to `progress`, and each root's plan
49
+ * after the write to `verified`.
50
+ *
51
+ * Lifted from terragucci's `migrate-estate.ts` (`planEstateMigration`,
52
+ * `planRetag`, `planAdopt`, `planAdoptFromBackend`, `readsOwnBackend`,
53
+ * `liveImportReadsBackend`, `readSource`, `applyEstateMigration`,
54
+ * `writeEstate`, `liveMv`, `writeRetag`, `liveImport`, `parseRatification`,
55
+ * `stampFailures`) and `takesProgressJson` of its `migrate-progress.ts`, so
56
+ * terragucci deletes them.
57
+ */
58
+ import { createHash } from "node:crypto";
59
+ import { readFileSync, writeFileSync } from "node:fs";
60
+ import { hostname } from "node:os";
61
+ import { join, resolve } from "node:path";
62
+ import { mapLimited } from "@intentius/chant/parallelism";
63
+ import { DEFAULT_MIGRATE_LOCK, MigrationError, resourceChanges, stateDigest } from "./state-migration.js";
64
+ import { planStateCheck } from "./state-ops.js";
65
+ import { declaredBackend, isRefused, isStored, readableStateObject, stateLocation } from "./state/backend.js";
66
+ import { lastLines, runBinary } from "./state/exec.js";
67
+ import { StateLockedError, takeLocks } from "./state/locks.js";
68
+ import { S3Client } from "./state/s3.js";
69
+ import { stateStore } from "./state/store.js";
70
+ import { stateVersionSource } from "./state/versions.js";
71
+ /**
72
+ * How many roots of an estate migration plan at once, and how many roots
73
+ * take their live-mv dry runs at once. Each root's dry runs go one at a
74
+ * time in its own directory, and every result keeps its place in the order
75
+ * the roots and addresses were given.
76
+ */
77
+ export const ESTATE_PARALLELISM = 4;
78
+ /** The flag that makes choudoufu's `live-mv` and `live-import` write a JSON line per resource to stderr as each write lands. */
79
+ export const PROGRESS_FLAG = "-progress-json";
80
+ /** Whether the binary is choudoufu: the one that reads and writes ownership markers. */
81
+ export const isEstateBinary = (binary) => /(^|\/)choudoufu[^/]*$/.test(binary);
82
+ const sha = (text) => `sha256:${createHash("sha256").update(text).digest("hex")}`;
83
+ /** Run the binary in a root, in its environment, and answer what it printed. */
84
+ async function inRoot(exec, r, args, io) {
85
+ return exec(r.binary, args, r.dir, r.env, ...(io ? [io] : []));
86
+ }
87
+ const helpBy = new WeakMap();
88
+ /** A subcommand's `-help`, read once per binary. */
89
+ function helpOf(exec, r, sub) {
90
+ let byBinary = helpBy.get(exec);
91
+ if (!byBinary)
92
+ helpBy.set(exec, (byBinary = new Map()));
93
+ const k = `${r.binary}\u0000${sub}`;
94
+ let got = byBinary.get(k);
95
+ if (!got) {
96
+ got = inRoot(exec, r, [sub, "-help"]).then((x) => x.out, () => "");
97
+ byBinary.set(k, got);
98
+ }
99
+ return got;
100
+ }
101
+ /** Whether the binary's writes take `-progress-json`, from `live-mv -help`. */
102
+ export async function takesProgressJson(exec, r) {
103
+ return new RegExp(`(^|\\s)${PROGRESS_FLAG}(\\s|=|$)`, "m").test(await helpOf(exec, r, "live-mv"));
104
+ }
105
+ /** live-import's help line for `-state` when the command reads the backend block's state with no `-state`. */
106
+ const READS_BACKEND = /Defaults to the state the backend\s+block names/;
107
+ /** `<address>: <actions>` split back into its parts. */
108
+ const parseChange = (c) => {
109
+ const i = c.lastIndexOf(": ");
110
+ return { address: c.slice(0, i), actions: c.slice(i + 2) };
111
+ };
112
+ /** The instances of a resource address among a plan's changes: the address itself, or it with an instance key. */
113
+ const instancesOf = (address, changes, actions) => changes
114
+ .map(parseChange)
115
+ .filter((c) => c.actions === actions && (c.address === address || c.address.startsWith(`${address}[`)))
116
+ .map((c) => c.address)
117
+ .sort();
118
+ /** `live-mv -json -from-estate` for one instance in the root it moves to; a dry run writes nothing. */
119
+ async function liveMv(exec, r, fromEstate, address, dry, io) {
120
+ const ran = await inRoot(exec, r, ["live-mv", "-no-color", "-json", ...(dry ? ["-dry-run"] : []), ...(io ? [PROGRESS_FLAG] : []), `-from-estate=${fromEstate}`, address, address], io);
121
+ let doc;
122
+ try {
123
+ doc = JSON.parse(ran.stdout);
124
+ }
125
+ catch {
126
+ doc = undefined;
127
+ }
128
+ const refused = doc?.refusal ? [doc.refusal.summary, doc.refusal.detail].filter(Boolean).join(": ") : undefined;
129
+ if (ran.code !== 0 || !doc || refused)
130
+ throw new MigrationError(`live-mv ${dry ? "-dry-run " : ""}refuses ${address}: ${refused ?? lastLines(ran.out)}`);
131
+ return doc;
132
+ }
133
+ // ── live-import ──────────────────────────────────────────────────────────
134
+ /** `live-import`'s ratification report: one entry per resource instance, by status. */
135
+ export function parseRatification(text) {
136
+ const out = [];
137
+ let status;
138
+ for (const line of text.split("\n")) {
139
+ const head = /^([A-Z_]+) \(\d+\) - /.exec(line);
140
+ if (head) {
141
+ status = ["VERIFIED", "DRIFTED", "MISSING", "UNTAGGABLE", "UNADMITTED_TYPE"].includes(head[1]) ? head[1] : undefined;
142
+ continue;
143
+ }
144
+ if (!line.trim())
145
+ continue;
146
+ const row = /^ {2}(\S+)\s+(\S+)\s+live id: (\S+)\s*$/.exec(line);
147
+ if (status && row)
148
+ out.push({ address: row[1], type: row[2], status, ...(row[3] !== "-" ? { live_id: row[3] } : {}) });
149
+ if (/eligible for stamping/.test(line))
150
+ status = undefined;
151
+ }
152
+ return out;
153
+ }
154
+ /** Statuses a stamp makes plan with no change: verified and stamped, or outside the taggable subset and composed from a stamped parent. */
155
+ const ADOPTED = ["VERIFIED", "UNTAGGABLE"];
156
+ /** `live-import -approve`'s last count line: how many failed. */
157
+ export function stampFailures(text) {
158
+ const m = /(\d+) failed, \d+ skipped\./.exec(text);
159
+ return m ? Number(m[1]) : undefined;
160
+ }
161
+ /** live-import in a root: of the state file `state`, or with none, of the state the root's backend block names. `-approve` with `write`. */
162
+ async function liveImport(exec, r, state, write, io) {
163
+ const ran = await inRoot(exec, r, ["live-import", "-no-color", ...(state ? [`-state=${resolve(state)}`] : []), `-estate=${r.estate}`, ...(write ? ["-approve"] : []), ...(io ? [PROGRESS_FLAG] : [])], io);
164
+ if (ran.code !== 0)
165
+ throw new MigrationError(`live-import ${write ? "could not stamp" : "could not verify"} ${state ? state.replace(/^.*\//, "") : "the state its backend block names"}: ${lastLines(ran.out)}`);
166
+ return ran.stdout;
167
+ }
168
+ const ratificationSummary = (entries) => {
169
+ const verified = entries.filter((e) => ADOPTED.includes(e.status)).length;
170
+ return `live-import: ${verified} of ${entries.length} resource instance${entries.length === 1 ? "" : "s"} verified`;
171
+ };
172
+ /** The digest an adoption read from the backend binds: the ratification's entries, each with its live id, and the state's version id. */
173
+ const ratificationDigest = (entries, version) => sha(JSON.stringify({ entries, ...(version ? { version } : {}) }));
174
+ /** An adopted state's version id now, when its store keeps versions. */
175
+ async function versionOf(o, fetchFn) {
176
+ if (o.backend === "local")
177
+ return undefined;
178
+ const src = stateVersionSource(o, fetchFn, { pin: false });
179
+ if ("refused" in src)
180
+ return undefined;
181
+ return (await src.current()).versionId;
182
+ }
183
+ /** An adopted state now: its text, parsed, and its version id when the bucket keeps versions. s3 and local are read; another backend holds none here. */
184
+ async function readAdopted(o, dir, fetchFn) {
185
+ let text;
186
+ let version;
187
+ if (o.backend === "s3") {
188
+ version = await versionOf(o, fetchFn);
189
+ const client = new S3Client(o.target, fetchFn);
190
+ text = version ? await client.readVersion(o.key, version) : await client.get(o.key);
191
+ }
192
+ else if (o.backend === "local") {
193
+ try {
194
+ text = readFileSync(resolve(dir, o.path), "utf-8");
195
+ }
196
+ catch {
197
+ text = undefined;
198
+ }
199
+ }
200
+ if (!text?.trim())
201
+ return undefined;
202
+ let state;
203
+ try {
204
+ state = JSON.parse(text);
205
+ }
206
+ catch {
207
+ throw new MigrationError(`${stateLocation(o)} is not a state`);
208
+ }
209
+ if (!Array.isArray(state.resources))
210
+ state.resources = [];
211
+ return { text, state, ...(version ? { version } : {}) };
212
+ }
213
+ /**
214
+ * Plan a migration whose roots are choudoufu estates: a retag for `moves`,
215
+ * an adoption for `backends`. Throws MigrationError for a binary that is not
216
+ * choudoufu, a retag a dry run refuses, and a state that cannot be adopted.
217
+ */
218
+ export async function planEstateMigration(input) {
219
+ const exec = input.exec ?? runBinary;
220
+ const log = input.log ?? (() => { });
221
+ if (!!input.moves?.length === !!input.backends?.length)
222
+ throw new MigrationError(`migration ${input.name}: give it moves or backends, one of the two`);
223
+ const byName = new Map(input.roots.map((r) => [r.root, { ...r, env: r.env ?? process.env }]));
224
+ const named = [...new Set(input.moves ? input.moves.flatMap((x) => [x.from, x.to]) : input.backends.map((b) => b.root))].sort();
225
+ const missing = named.filter((n) => !byName.has(n));
226
+ if (missing.length > 0)
227
+ throw new MigrationError(`migration ${input.name}: ${missing.join(", ")} ${missing.length === 1 ? "is" : "are"} not among its roots`);
228
+ const runs = new Map(named.map((n) => [n, byName.get(n)]));
229
+ for (const r of runs.values()) {
230
+ if (!isEstateBinary(r.binary))
231
+ throw new MigrationError(`migration ${input.name} cannot run: its roots keep their resources under live markers, which only choudoufu reads, and ${r.root} runs ${r.binary}`);
232
+ if (r.init === false)
233
+ continue;
234
+ const init = await exec(r.binary, ["init", "-input=false", "-no-color"], r.dir, r.initEnv ?? r.env);
235
+ if (init.code !== 0)
236
+ throw new MigrationError(`init in ${r.root} failed: ${lastLines(init.out)}`);
237
+ }
238
+ const plan = (r, tag) => planStateCheck({ ...r, exec, planFile: join(input.work, `${tag}.tfplan`) }).then((read) => ({ check: { changes: resourceChanges(read.json), summary: read.summary }, json: read.json }));
239
+ if (input.backends)
240
+ return planAdopt(input, runs, exec, log, plan);
241
+ // A root resources join is not planned before the retag: their live objects carry another estate's markers until then.
242
+ const joining = new Set(input.moves.map((x) => x.to));
243
+ const planned = named.filter((r) => !joining.has(r));
244
+ const got = await mapLimited(planned, ESTATE_PARALLELISM, (root) => plan(runs.get(root), `estate-${named.indexOf(root)}`));
245
+ const plans = new Map(planned.map((r, i) => [r, got[i].check]));
246
+ const slots = [];
247
+ for (const mv of input.moves) {
248
+ const fromEstate = runs.get(mv.from).estate;
249
+ const toEstate = runs.get(mv.to).estate;
250
+ if (fromEstate === toEstate) {
251
+ slots.push({ problem: `${mv.from} and ${mv.to} are both estate ${fromEstate}; a move inside one estate is a moved block` });
252
+ continue;
253
+ }
254
+ for (const address of mv.addresses) {
255
+ if (/(^|\.)module\.[A-Za-z_][\w-]*$/.test(address)) {
256
+ slots.push({ problem: `${address} is a module call; a retag names each resource in it` });
257
+ continue;
258
+ }
259
+ // A root that is not planned (it takes resources too) names no instances: the address moves as the file names it.
260
+ const source = plans.get(mv.from);
261
+ const instances = source ? instancesOf(address, source.changes, "delete") : [address];
262
+ if (instances.length === 0) {
263
+ slots.push({ problem: `${address}: the plan of ${mv.from} does not destroy it, so estate ${fromEstate} holds no live resource it leaves` });
264
+ continue;
265
+ }
266
+ for (const inst of instances)
267
+ slots.push({ mv, inst, fromEstate, toEstate });
268
+ }
269
+ }
270
+ const runsOf = slots.filter((x) => "inst" in x);
271
+ const byRoot = new Map();
272
+ for (const r of runsOf)
273
+ byRoot.set(r.mv.to, [...(byRoot.get(r.mv.to) ?? []), r]);
274
+ await mapLimited([...byRoot.entries()], ESTATE_PARALLELISM, async ([to, theirs]) => {
275
+ for (const r of theirs) {
276
+ try {
277
+ r.result = { doc: await liveMv(exec, runs.get(to), r.fromEstate, r.inst, true) };
278
+ }
279
+ catch (e) {
280
+ r.result = { problem: e.message };
281
+ }
282
+ }
283
+ });
284
+ const problems = [];
285
+ const retags = [];
286
+ for (const x of slots) {
287
+ if ("problem" in x) {
288
+ problems.push(x.problem);
289
+ continue;
290
+ }
291
+ const result = x.result;
292
+ if ("problem" in result) {
293
+ problems.push(result.problem);
294
+ continue;
295
+ }
296
+ if (!result.doc.resource?.live_id) {
297
+ problems.push(`live-mv -dry-run names no live resource for ${x.inst}`);
298
+ continue;
299
+ }
300
+ const followers = (result.doc.followers ?? []).map((f) => f.address).filter((a) => typeof a === "string").sort();
301
+ retags.push({ address: x.inst, from: x.mv.from, to: x.mv.to, from_estate: x.fromEstate, to_estate: x.toEstate, live_id: result.doc.resource.live_id, followers });
302
+ log(`${x.inst}: ${result.doc.resource.live_id} moves from estate ${x.fromEstate} to estate ${x.toEstate}${followers.length ? `, with ${followers.join(", ")}` : ""}`);
303
+ }
304
+ if (problems.length > 0)
305
+ throw new MigrationError(`migration ${input.name}:\n ${problems.join("\n ")}`);
306
+ const roots = [];
307
+ for (const root of named) {
308
+ const estate = runs.get(root).estate;
309
+ const leaving = retags.filter((t) => t.from === root);
310
+ const joins = retags.filter((t) => t.to === root);
311
+ const accounted = new Set(leaving.flatMap((t) => [t.address, ...t.followers].map((a) => `${a}: delete`)));
312
+ const p = plans.get(root);
313
+ const ids = (ts) => ts.map((t) => ({ address: t.address, live_id: t.live_id, followers: t.followers }));
314
+ roots.push({
315
+ root,
316
+ location: `estate ${estate}`,
317
+ before: { digest: sha(JSON.stringify({ estate, ...(p ? { changes: [...p.changes].sort() } : {}), leaving: ids(leaving), joining: ids(joins) })) },
318
+ after: { digest: sha(JSON.stringify({ estate, changes: [] })) },
319
+ // A joining root has no plan before the retag: its dry runs are its proof, and each one that refused stopped the migration above.
320
+ proof: p ? { changes: p.changes.filter((c) => !accounted.has(c)), summary: p.summary } : { changes: [], summary: `live-mv -dry-run: ${joins.length === 1 ? "1 resource found in the estate it leaves" : `${joins.length} resources found in the estates they leave`}` },
321
+ });
322
+ }
323
+ const resources = new Set(retags.flatMap((t) => [t.address, ...t.followers])).size;
324
+ return { change: "retag", roots, retags, stamps: [], resources, engine: estateEngine(input, runs, exec, plan, roots, { retags, adopts: [] }) };
325
+ }
326
+ async function planAdopt(input, runs, exec, log, plan) {
327
+ const roots = [];
328
+ const stamps = [];
329
+ const adopts = [];
330
+ for (const [i, b] of input.backends.entries()) {
331
+ const r = runs.get(b.root);
332
+ const o = readableStateObject(r.dir, r.env, { type: b.from.backend, config: b.from.config });
333
+ if (isRefused(o))
334
+ throw new MigrationError(`migration ${input.name} cannot run: the backend ${b.root} adopts from: ${o.reason}`);
335
+ if (o.backend === "s3" && !o.lockfile)
336
+ throw new MigrationError(`migration ${input.name} cannot run: the backend ${b.root} adopts from: its s3 backend takes no lock file (use_lockfile = true), so a migration could not hold its lock`);
337
+ if (o.backend !== "s3" && o.backend !== "local")
338
+ throw new MigrationError(`migration ${input.name} cannot run: the backend ${b.root} adopts from is ${o.backend}; an adoption reads s3 and local states`);
339
+ const location = stateLocation(o);
340
+ let entries;
341
+ let source;
342
+ if (await readsOwnBackend(o, r, exec)) {
343
+ const version = await versionOf(o, input.fetch).catch(() => undefined);
344
+ entries = parseRatification(await liveImport(exec, r, undefined, false));
345
+ source = { ...(version ? { version_id: version } : {}), digest: ratificationDigest(entries, version) };
346
+ adopts.push({ root: b.root, source: o });
347
+ log(`${b.root}: live-import read ${location} through the root's backend block`);
348
+ }
349
+ else {
350
+ const read = await readAdopted(o, r.dir, input.fetch);
351
+ if (!read)
352
+ throw new MigrationError(`migration ${input.name}: ${location} holds no state of ${b.root} to adopt`);
353
+ const path = join(input.work, `adopt-${i}.tfstate`);
354
+ writeFileSync(path, read.text);
355
+ const report = await liveImport(exec, r, path, false);
356
+ entries = parseRatification(report);
357
+ if (entries.length === 0 && read.state.resources.some((x) => x.mode === "managed"))
358
+ throw new MigrationError(`migration ${input.name}: live-import printed no ratification for ${b.root}: ${lastLines(report)}`);
359
+ source = { ...(read.version ? { version_id: read.version } : {}), digest: stateDigest(read.state) };
360
+ adopts.push({ root: b.root, state: path, source: o });
361
+ }
362
+ const unverified = entries.filter((e) => !ADOPTED.includes(e.status)).map((e) => `${e.address}: ${e.status.toLowerCase().replace("_", " ")}`);
363
+ for (const e of entries)
364
+ stamps.push({ root: b.root, estate: r.estate, ...e });
365
+ roots.push({
366
+ root: b.root,
367
+ location: `estate ${r.estate}`,
368
+ before: { digest: sha(JSON.stringify({ estate: r.estate, entries })) },
369
+ after: { digest: sha(JSON.stringify({ estate: r.estate, changes: [] })) },
370
+ source: { location, ...source },
371
+ proof: { changes: unverified, summary: ratificationSummary(entries) },
372
+ });
373
+ log(`${b.root}: ${entries.length - unverified.length} of ${entries.length} resource instances in ${location} verify against the live system${unverified.length ? `; ${unverified.length} do${unverified.length === 1 ? "es" : ""} not: ${unverified.join(", ")}` : ", so the stamp adopts each one"}`);
374
+ }
375
+ return { change: "adopt", roots, retags: [], stamps, resources: stamps.length, engine: estateEngine(input, runs, exec, plan, roots, { retags: [], adopts }) };
376
+ }
377
+ /**
378
+ * Whether live-import reads the adopted state itself: the migration adopts
379
+ * from the backend the root's own backend block names (ignored under the
380
+ * live block), and the binary's live-import reads that backend.
381
+ */
382
+ async function readsOwnBackend(source, r, exec) {
383
+ const own = declaredBackend(r.dir, { env: r.env, binary: r.binary });
384
+ if (!own || own.type === "cloud")
385
+ return false;
386
+ const at = readableStateObject(r.dir, r.env, own);
387
+ if (isRefused(at) || stateLocation(at) !== stateLocation(source))
388
+ return false;
389
+ return READS_BACKEND.test(await helpOf(exec, r, "live-import"));
390
+ }
391
+ // ── the write ────────────────────────────────────────────────────────────
392
+ function estateEngine(input, runs, exec, plan, roots, e) {
393
+ const log = input.log ?? (() => { });
394
+ const planned = new Map(roots.map((r) => [r.root, r]));
395
+ let afterPlans;
396
+ /** Every root's plan after the write, ESTATE_PARALLELISM at once; `verified` sees them in the roots' order. */
397
+ const planAll = () => (afterPlans ?? (afterPlans = mapLimited(roots, ESTATE_PARALLELISM, (r, i) => plan(runs.get(r.root), `estate-${i}-verify`)).then((got) => {
398
+ const out = new Map();
399
+ for (const [i, r] of roots.entries()) {
400
+ input.verified?.(r.root, got[i].json);
401
+ out.set(r.root, got[i].check);
402
+ }
403
+ return out;
404
+ })));
405
+ const io = async (r) => (input.progress && (await takesProgressJson(exec, r)) ? { stderr: input.progress } : undefined);
406
+ return {
407
+ async lock() {
408
+ // An adoption holds the old state's lock while it stamps; the markers of a retag are on live resources, which no state lock covers.
409
+ const stores = e.adopts.filter((a) => isStored(a.source)).map((a) => ({ root: a.root, store: stateStore(a.source, runs.get(a.root).dir, input.fetch) }));
410
+ let held;
411
+ try {
412
+ held = await takeLocks(stores, new Date().toISOString(), input.lock ?? DEFAULT_MIGRATE_LOCK, undefined, input.who ?? `chant@${hostname()}`);
413
+ }
414
+ catch (err) {
415
+ if (err instanceof StateLockedError)
416
+ throw new MigrationError(`${err.root}: the state it adopts is locked (${err.lockLocation}${err.holder?.who ? `: by ${err.holder.who}` : ""}), so nothing was written`);
417
+ throw err;
418
+ }
419
+ return async () => {
420
+ for (const l of held.reverse())
421
+ await l.release().catch((x) => log(`${l.root}: the lock could not be released: ${x.message}`));
422
+ };
423
+ },
424
+ // An estate keeps no state: what the plan bound is its proof, which `source` reads again for an adoption.
425
+ async current(root) {
426
+ return planned.get(root).before;
427
+ },
428
+ async source(root) {
429
+ const a = e.adopts.find((x) => x.root === root);
430
+ if (!a)
431
+ return { digest: null };
432
+ const r = runs.get(root);
433
+ if (a.state === undefined) {
434
+ const version = await versionOf(a.source, input.fetch).catch(() => undefined);
435
+ const again = parseRatification(await liveImport(exec, r, undefined, false));
436
+ return { ...(version ? { version_id: version } : {}), digest: ratificationDigest(again, version) };
437
+ }
438
+ const now = await readAdopted(a.source, r.dir, input.fetch);
439
+ return now ? { ...(now.version ? { version_id: now.version } : {}), digest: stateDigest(now.state) } : { digest: null };
440
+ },
441
+ async write() {
442
+ const done = [];
443
+ for (const t of e.retags) {
444
+ const r = runs.get(t.to);
445
+ try {
446
+ const doc = await liveMv(exec, r, t.from_estate, t.address, false, await io(r));
447
+ if (doc.written !== true)
448
+ throw new MigrationError(`live-mv wrote nothing on ${t.address}`);
449
+ if (doc.resource?.live_id !== t.live_id)
450
+ throw new MigrationError(`live-mv rewrote ${doc.resource?.live_id ?? "an unnamed resource"} for ${t.address}, not ${t.live_id}`);
451
+ }
452
+ catch (err) {
453
+ throw new MigrationError(`${err.message}${done.length ? `; already retagged: ${done.join(", ")}` : "; nothing was retagged"}`);
454
+ }
455
+ done.push(t.address);
456
+ log(`${t.address}: retagged from estate ${t.from_estate} to estate ${t.to_estate}`);
457
+ }
458
+ for (const a of e.adopts) {
459
+ const r = runs.get(a.root);
460
+ const out = await liveImport(exec, r, a.state, true, await io(r));
461
+ const failed = stampFailures(out);
462
+ if (failed === undefined || failed > 0)
463
+ throw new MigrationError(`live-import ${failed === undefined ? "printed no stamp report" : `failed to stamp ${failed} resource${failed === 1 ? "" : "s"}`} in ${a.root}: ${lastLines(out)}`);
464
+ log(`${a.root}: stamped estate ${r.estate} on the resources of ${stateLocation(a.source)}, which is left where it was`);
465
+ }
466
+ },
467
+ async verify(root) {
468
+ return (await planAll()).get(root);
469
+ },
470
+ };
471
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "2c9752b56ec6f321a6a01546dfb2852ec9a0cfc2a0ffabb5857003bfd7d1ff7f",
4
+ "manifest.json": "801af4fb22d31f0226ff35a30ca4bace4b9b772cc8b499d0ff1774839e3e5e97",
5
5
  "meta.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
6
6
  "types/index.d.ts": "022927e6a7b351cc4cf52d5f973f60ccd140e5810e17b32fb8868965aa1db161",
7
7
  "rules/plan-before-apply.ts": "7c10245b2c3335253b48ee7d8b075d89f43116bde20313a5d1031b343fef1282",
@@ -59,5 +59,5 @@
59
59
  "rules/tf047.ts": "bfa86f85c4c5efff297280fc2f15104d6319fa96dfc444a31829fb7353224092",
60
60
  "skills/chant-terraform.md": "53dd11c7b289652f92fdaf2c03766abda46d8964e31fe709e8b142ced4f19c50"
61
61
  },
62
- "composite": "e1648beeb26dd6fbaa779f1362af83dd9e8483f433d5b7834eac1c22cc196466"
62
+ "composite": "008d7285b2fb3b6bac48cd2b58eab4ef645e47cebdcbc2fedb8e25f31bfb2a7a"
63
63
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terraform",
3
- "version": "0.124.85",
3
+ "version": "0.124.86",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Terraform"
6
6
  }
@@ -729,6 +729,71 @@ export declare function __resetChoudoufuVersionCheckForTests(): void;
729
729
  * plan document with no digest, which is what an older dev build prints.
730
730
  */
731
731
  export declare function choudoufuWavesVersionRefusal(versionOutput: string): string | undefined;
732
+ /**
733
+ * One engine command as a product's {@link TerraformCommandHook} sees it
734
+ * before it runs (chant#4865).
735
+ */
736
+ export interface TerraformCommand {
737
+ /** The step's root the command runs for. */
738
+ root: string;
739
+ /** The upstream root whose state the command reads for `root`'s `reads`, when it runs for one. */
740
+ upstream?: string;
741
+ /** The step method that runs it: `plan`, `run` (the apply) or `outputs`. */
742
+ method: string;
743
+ /** The binary, as the command line names it. */
744
+ binary: string;
745
+ /** The subcommand, the first argument that is not a flag: `init`, `plan`, `show`, `apply`, `output`, `workspace`, `live-plan-set`. */
746
+ name: string;
747
+ /** The arguments after the binary, unquoted. */
748
+ args: string[];
749
+ /** The command line as the shell runs it. */
750
+ line: string;
751
+ /** The directory it runs in. */
752
+ cwd: string;
753
+ /** The variables chant sets for it over the job's environment, such as `TF_IN_AUTOMATION`, `TF_WORKSPACE` and the run hook's `processEnv`. */
754
+ env: Record<string, string>;
755
+ }
756
+ /** How a {@link TerraformCommand} came out, for the hook's `after` (chant#4865). */
757
+ export interface TerraformCommandResult {
758
+ /** The exit code; null when the command did not exit on its own (a signal, an abort, a spawn failure). */
759
+ code: number | null;
760
+ /** How long it ran, in seconds. */
761
+ seconds: number;
762
+ stdout: string;
763
+ stderr: string;
764
+ }
765
+ /** What a {@link TerraformCommandHook} answers for one command (chant#4865). */
766
+ export interface TerraformCommandRun {
767
+ /** Variables laid over the command's own, such as a span receiver's exporter or a trace parent. */
768
+ env?: Record<string, string>;
769
+ /** Called once the command ends, on a failure too, before the step reads its result. */
770
+ after?: (result: TerraformCommandResult) => void | Promise<void>;
771
+ }
772
+ /**
773
+ * A product's hook around each engine command a `terraform-apply` step runs
774
+ * for a root (chant#4865), `terraformApplyCapabilityWith({ onCommand })`:
775
+ * called before the command with what it is, and its answer's `after` once
776
+ * it ends. terragucci times each root's plan and apply with it and sets its
777
+ * span receiver's variables, as its own runs of the binary did.
778
+ */
779
+ export type TerraformCommandHook = (command: TerraformCommand) => TerraformCommandRun | void | Promise<TerraformCommandRun | void>;
780
+ /** The hook, and the root and method it is for, that the commands run in an async call see (chant#4865). */
781
+ interface CommandScope {
782
+ hook: TerraformCommandHook;
783
+ root: string;
784
+ upstream?: string;
785
+ method: string;
786
+ }
787
+ /**
788
+ * Run `fn` with every engine command it runs going through `hook`, as
789
+ * commands for `scope.root` (chant#4865). Inside another scope, a field this
790
+ * one leaves out (`upstream`) is not kept from the outer.
791
+ */
792
+ export declare function withTerraformCommandHook<T>(hook: TerraformCommandHook | undefined, scope: Omit<CommandScope, "hook">, fn: () => Promise<T>): Promise<T>;
793
+ /** Run `fn` with the commands it runs marked as a read of `upstream`'s state for the scope's root (chant#4865). Outside a scope, `fn` as it is. */
794
+ export declare function asUpstreamCommands<T>(upstream: string, fn: () => Promise<T>): Promise<T>;
795
+ /** The words of a command line the builders here wrote: plain words, and `quoteArg`'s single-quoted ones. */
796
+ export declare function commandWords(line: string): string[];
732
797
  /**
733
798
  * `terraform init` in the named root, with the root's `backendConfigFiles` and
734
799
  * `backendConfig` supplied as `-backend-config` flags. Uses the longInfra profile: init downloads
@@ -1 +1 @@
1
- {"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAYH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAIzE,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AAWrB,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,cAAc,CAAC;AAEpD,gIAAgI;AAChI,eAAO,MAAM,+BAA+B,yBAAyB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAE5D,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB;aAAK,MAAM,EAAE,CAAC;aAAE,KAAK,EAAE,CAAC;aAAE,QAAQ,EAAE,CAAC;aAAE,UAAU,EAAE,CAAC;CAAW,CAAC;AAEhG;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,mEACsB,CAAC;AAEnE,mHAAmH;AACnH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,wGAAwG;AACxG,eAAO,MAAM,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