@intentius/sql-yodeler 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chant/drift.d.ts +13 -41
- package/dist/chant/drift.js +21 -117
- package/dist/chant/drift.js.map +1 -1
- package/dist/ci/render.d.ts +57 -20
- package/dist/ci/render.js +206 -131
- package/dist/ci/render.js.map +1 -1
- package/dist/ci-words.d.ts +10 -0
- package/dist/ci-words.js +10 -0
- package/dist/ci-words.js.map +1 -1
- package/dist/commands/ci.js +20 -42
- package/dist/commands/ci.js.map +1 -1
- package/dist/commands/drift.d.ts +1 -1
- package/dist/commands/drift.js +5 -41
- package/dist/commands/drift.js.map +1 -1
- package/dist/commands/plan.js +79 -80
- package/dist/commands/plan.js.map +1 -1
- package/dist/config/define.d.ts +29 -0
- package/dist/config/define.js.map +1 -1
- package/dist/config/load.js +20 -3
- package/dist/config/load.js.map +1 -1
- package/dist/declarative/plan.d.ts +2 -2
- package/dist/declarative/plan.js +2 -2
- package/dist/mcp/tools.js +2 -2
- package/dist/mcp/tools.js.map +1 -1
- package/dist/notify/index.d.ts +4 -0
- package/dist/notify/index.js +3 -1
- package/dist/notify/index.js.map +1 -1
- package/dist/pr/forge.d.ts +1 -1
- package/dist/pr/forge.js +1 -1
- package/dist/pr/issue.d.ts +7 -5
- package/dist/pr/issue.js +16 -9
- package/dist/pr/issue.js.map +1 -1
- package/dist/pr/model.d.ts +1 -5
- package/dist/pr/model.js +2 -7
- package/dist/pr/model.js.map +1 -1
- package/dist/pr/note.d.ts +25 -9
- package/dist/pr/note.js +56 -21
- package/dist/pr/note.js.map +1 -1
- package/dist/pr/render.d.ts +4 -6
- package/dist/pr/render.js +4 -10
- package/dist/pr/render.js.map +1 -1
- package/dist/versioned/explain.d.ts +1 -9
- package/dist/versioned/explain.js +1 -20
- package/dist/versioned/explain.js.map +1 -1
- package/package.json +7 -7
- package/schemas/drift.schema.json +9 -5
- package/schemas/plan.schema.json +1 -1
- package/dist/pr/overdue.d.ts +0 -41
- package/dist/pr/overdue.js +0 -46
- package/dist/pr/overdue.js.map +0 -1
package/dist/chant/drift.d.ts
CHANGED
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
* --json`, the sql lexicon's section of it:
|
|
5
5
|
*
|
|
6
6
|
* - `deep.drifted[].changes[]`: a declared object whose live definition
|
|
7
|
-
* differs, property by property, declared against live;
|
|
7
|
+
* differs, property by property, declared against live; a column is
|
|
8
|
+
* addressed by its name (`columns[#country].default.expr`), and a
|
|
9
|
+
* ClickHouse grant declared and not held is `absent` on its grant;
|
|
10
|
+
* - `deep.pending`: a change on no one object's properties, which an apply
|
|
11
|
+
* would undo: a column the server has and the declaration does not, a
|
|
12
|
+
* privilege granted by hand (chant issue 4944);
|
|
8
13
|
* - `resources.missing`: a declared object the server does not have;
|
|
9
14
|
* - `resources.unobserved` and `deep.unobserved`: a declared object chant
|
|
10
15
|
* could not read (no credentials, a kind it cannot observe). Not drift, and
|
|
@@ -14,10 +19,11 @@
|
|
|
14
19
|
* what the project declares, and only touches what carries its marker.
|
|
15
20
|
*/
|
|
16
21
|
import type { LiveDiffResult, UnobservedResource } from "@intentius/chant/lifecycle/live-diff";
|
|
17
|
-
import type { DeepDiffResult, DeepEntityDrift
|
|
22
|
+
import type { DeepDiffResult, DeepEntityDrift } from "@intentius/chant/lifecycle/deep-diff";
|
|
23
|
+
import type { DeepPendingChange } from "@intentius/chant/deep-observation";
|
|
18
24
|
import { type Environment, type Project } from "../project.js";
|
|
19
25
|
import { type ServerInfo } from "../server.js";
|
|
20
|
-
import type {
|
|
26
|
+
import type { BuildOutput } from "./build.js";
|
|
21
27
|
/** The `lexicons.sql` section of `chant lifecycle diff --live --json`. */
|
|
22
28
|
export interface SqlLiveDiff {
|
|
23
29
|
resources?: LiveDiffResult;
|
|
@@ -29,12 +35,12 @@ export interface Drift {
|
|
|
29
35
|
changed: DeepEntityDrift[];
|
|
30
36
|
/** Declared objects the server does not have. */
|
|
31
37
|
missing: string[];
|
|
38
|
+
/** Changes on no one object's properties that an apply would undo, such as a column or a privilege added by hand. Absent when there are none. */
|
|
39
|
+
pending?: DeepPendingChange[];
|
|
32
40
|
/** Declared objects chant could not read. */
|
|
33
41
|
unobserved: UnobservedResource[];
|
|
34
42
|
/** Postgres: a read gave up at the lock timeout, and what it waited on (#18). */
|
|
35
43
|
lockWait?: string | undefined;
|
|
36
|
-
/** Each changed table's declared column names, by position, so `columns[3]` reads as the column's name (#19). */
|
|
37
|
-
columns?: Record<string, string[]>;
|
|
38
44
|
/** What the server was compared with (#49): `src/`, or the schema the newest applied migration records. */
|
|
39
45
|
against?: DriftAgainst;
|
|
40
46
|
/** Objects on the server of a kind yodel cannot declare (#251), as `<kind> <name>`: unmanaged, never drift. */
|
|
@@ -69,51 +75,17 @@ export declare function recordedAccessSource(objects: ReadonlyArray<{
|
|
|
69
75
|
type?: string;
|
|
70
76
|
ddl: string;
|
|
71
77
|
}>): string;
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
* grant is compared as part of its grantee's grants): yodel plans `build`
|
|
75
|
-
* against the environment and reads each `grants <grantee>` change as drift.
|
|
76
|
-
* A grant declared and not held is `absent`; one held and not declared
|
|
77
|
-
* (granted by hand, which the next apply revokes) is `changed`, declared
|
|
78
|
-
* nothing. A grantee the server does not have is gone. The grant
|
|
79
|
-
* declarations come off `unobserved`, since they were compared.
|
|
80
|
-
*/
|
|
81
|
-
export declare function withClickHouseGrants(drift: Drift, project: Project, env: Environment, build: Build): Promise<Drift>;
|
|
78
|
+
/** Whether the drift has anything an apply would change: an object changed or gone, or a pending change. */
|
|
79
|
+
export declare const hasDrift: (drift: Drift) => boolean;
|
|
82
80
|
/** `2` on drift; `1` when there is none but part of the environment could not be read; `0` when clean. */
|
|
83
81
|
export declare function driftExitCode(drift: Drift): number;
|
|
84
82
|
/** The drift in a parsed `chant lifecycle diff --live --json` document. */
|
|
85
83
|
export declare function driftFromLifecycle(environment: string, doc: unknown): Drift;
|
|
86
|
-
/**
|
|
87
|
-
* Columns on the server that a declared table does not declare (#273), as
|
|
88
|
-
* drift: `column <name>`, declared none, live its type. chant reports a live
|
|
89
|
-
* column past the declared ones as unclaimed fields `columns[N].*`, which it
|
|
90
|
-
* does not count as drift, since nothing in src/ set them. A group with its
|
|
91
|
-
* own `name` is a whole column; a field of a declared column that src/ does
|
|
92
|
-
* not set (`columns[2].default`) has no name of its own and stays unclaimed.
|
|
93
|
-
*/
|
|
94
|
-
export declare function extraColumns(unclaimed: readonly DeepEntityUnclaimed[]): DeepEntityDrift[];
|
|
95
84
|
/** Runs `chant lifecycle diff <env> --live --json` in the project and reads the drift from it. */
|
|
96
85
|
export declare function readDrift(project: Project, env: Environment, options?: {
|
|
97
86
|
env?: NodeJS.ProcessEnv;
|
|
98
87
|
src?: string;
|
|
99
88
|
}): Promise<Drift>;
|
|
100
|
-
/**
|
|
101
|
-
* The declared column names of each changed object whose drift is named by
|
|
102
|
-
* column position (chant's ClickHouse tables keep columns as a list, so a
|
|
103
|
-
* change reads `columns[3].default.expr`). Read from the project's build,
|
|
104
|
-
* with the dialect's own tag, the way chant reads the declaration.
|
|
105
|
-
*/
|
|
106
|
-
export declare function declaredColumns(project: Project, drift: Drift, build: () => Promise<{
|
|
107
|
-
output: {
|
|
108
|
-
objects: Array<{
|
|
109
|
-
export: string;
|
|
110
|
-
ddl: string;
|
|
111
|
-
}>;
|
|
112
|
-
};
|
|
113
|
-
dispose: () => void;
|
|
114
|
-
}>): Promise<Record<string, string[]>>;
|
|
115
|
-
/** `columns[3].default.expr` as `column country: default.expr`, when the declaration names column 3. */
|
|
116
|
-
export declare function describePath(path: string, columns: readonly string[] | undefined): string;
|
|
117
89
|
/** What the server was compared with, in words. */
|
|
118
90
|
export declare function describeAgainst(against: DriftAgainst | undefined): string | undefined;
|
|
119
91
|
/** The drift as text. */
|
package/dist/chant/drift.js
CHANGED
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
* --json`, the sql lexicon's section of it:
|
|
5
5
|
*
|
|
6
6
|
* - `deep.drifted[].changes[]`: a declared object whose live definition
|
|
7
|
-
* differs, property by property, declared against live;
|
|
7
|
+
* differs, property by property, declared against live; a column is
|
|
8
|
+
* addressed by its name (`columns[#country].default.expr`), and a
|
|
9
|
+
* ClickHouse grant declared and not held is `absent` on its grant;
|
|
10
|
+
* - `deep.pending`: a change on no one object's properties, which an apply
|
|
11
|
+
* would undo: a column the server has and the declaration does not, a
|
|
12
|
+
* privilege granted by hand (chant issue 4944);
|
|
8
13
|
* - `resources.missing`: a declared object the server does not have;
|
|
9
14
|
* - `resources.unobserved` and `deep.unobserved`: a declared object chant
|
|
10
15
|
* could not read (no credentials, a kind it cannot observe). Not drift, and
|
|
@@ -19,7 +24,6 @@ import { YodelError } from "../project.js";
|
|
|
19
24
|
import { runChant } from "@intentius/chant/chant-install";
|
|
20
25
|
import { describeServer } from "../server.js";
|
|
21
26
|
import { CH_ACCESS_TYPES } from "./access.js";
|
|
22
|
-
import { planEnvironment } from "./plan.js";
|
|
23
27
|
import { EXIT_DRIFT } from "../exit.js";
|
|
24
28
|
export async function writeRecordedSource(projectDir, schema) {
|
|
25
29
|
const { sqlTemplateGenerator } = await import("@intentius/chant-lexicon-sql/import-generator");
|
|
@@ -58,46 +62,11 @@ export function recordedAccessSource(objects) {
|
|
|
58
62
|
lines.push(`export const ${o.export} = ${CH_ACCESS_TAG[o.type ?? ""] ?? "grant"}\`${o.ddl.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${")}\`;`);
|
|
59
63
|
return `${lines.join("\n")}\n`;
|
|
60
64
|
}
|
|
61
|
-
/**
|
|
62
|
-
|
|
63
|
-
* grant is compared as part of its grantee's grants): yodel plans `build`
|
|
64
|
-
* against the environment and reads each `grants <grantee>` change as drift.
|
|
65
|
-
* A grant declared and not held is `absent`; one held and not declared
|
|
66
|
-
* (granted by hand, which the next apply revokes) is `changed`, declared
|
|
67
|
-
* nothing. A grantee the server does not have is gone. The grant
|
|
68
|
-
* declarations come off `unobserved`, since they were compared.
|
|
69
|
-
*/
|
|
70
|
-
export async function withClickHouseGrants(drift, project, env, build) {
|
|
71
|
-
const grants = build.output.objects.filter((o) => o.type === "ClickHouse::Grant");
|
|
72
|
-
if (grants.length === 0)
|
|
73
|
-
return drift;
|
|
74
|
-
const plan = await planEnvironment(project, env, build);
|
|
75
|
-
const byGrantee = new Map();
|
|
76
|
-
const missing = [];
|
|
77
|
-
for (const c of plan.diff.changes) {
|
|
78
|
-
if (!c.object.startsWith("grants "))
|
|
79
|
-
continue;
|
|
80
|
-
if (c.rule === "SQLCH200") {
|
|
81
|
-
missing.push(c.object);
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
if (c.rule !== "SQLCH273" && c.rule !== "SQLCH274")
|
|
85
|
-
continue;
|
|
86
|
-
const e = byGrantee.get(c.object) ?? { name: c.object, type: "ClickHouse::Grant", changes: [] };
|
|
87
|
-
e.changes.push(c.rule === "SQLCH273" ? { path: c.field, kind: "absent", declared: c.after } : { path: c.field, kind: "changed", live: c.before });
|
|
88
|
-
byGrantee.set(c.object, e);
|
|
89
|
-
}
|
|
90
|
-
const compared = new Set(grants.map((o) => o.export));
|
|
91
|
-
return {
|
|
92
|
-
...drift,
|
|
93
|
-
changed: [...drift.changed, ...byGrantee.values()],
|
|
94
|
-
missing: [...drift.missing, ...missing].sort(),
|
|
95
|
-
unobserved: drift.unobserved.filter((u) => !compared.has(u.name)),
|
|
96
|
-
};
|
|
97
|
-
}
|
|
65
|
+
/** Whether the drift has anything an apply would change: an object changed or gone, or a pending change. */
|
|
66
|
+
export const hasDrift = (drift) => drift.changed.length > 0 || drift.missing.length > 0 || (drift.pending?.length ?? 0) > 0;
|
|
98
67
|
/** `2` on drift; `1` when there is none but part of the environment could not be read; `0` when clean. */
|
|
99
68
|
export function driftExitCode(drift) {
|
|
100
|
-
if (drift
|
|
69
|
+
if (hasDrift(drift))
|
|
101
70
|
return EXIT_DRIFT;
|
|
102
71
|
return drift.unobserved.length > 0 ? 1 : 0;
|
|
103
72
|
}
|
|
@@ -117,47 +86,21 @@ export function driftFromLifecycle(environment, doc) {
|
|
|
117
86
|
unobserved.set(u.name, u);
|
|
118
87
|
}
|
|
119
88
|
const changed = new Map();
|
|
120
|
-
for (const d of
|
|
89
|
+
for (const d of sql.deep?.drifted ?? []) {
|
|
121
90
|
if (d.changes.length === 0)
|
|
122
91
|
continue;
|
|
123
92
|
const had = changed.get(d.name);
|
|
124
93
|
changed.set(d.name, had ? { ...had, changes: [...had.changes, ...d.changes] } : d);
|
|
125
94
|
}
|
|
95
|
+
const pending = sql.deep?.pending ?? [];
|
|
126
96
|
return {
|
|
127
97
|
environment,
|
|
128
98
|
changed: [...changed.values()],
|
|
129
99
|
missing: [...(sql.resources?.missing ?? [])].sort(),
|
|
100
|
+
...(pending.length > 0 ? { pending: [...pending] } : {}),
|
|
130
101
|
unobserved: [...unobserved.values()].sort((a, b) => a.name.localeCompare(b.name)),
|
|
131
102
|
};
|
|
132
103
|
}
|
|
133
|
-
/**
|
|
134
|
-
* Columns on the server that a declared table does not declare (#273), as
|
|
135
|
-
* drift: `column <name>`, declared none, live its type. chant reports a live
|
|
136
|
-
* column past the declared ones as unclaimed fields `columns[N].*`, which it
|
|
137
|
-
* does not count as drift, since nothing in src/ set them. A group with its
|
|
138
|
-
* own `name` is a whole column; a field of a declared column that src/ does
|
|
139
|
-
* not set (`columns[2].default`) has no name of its own and stays unclaimed.
|
|
140
|
-
*/
|
|
141
|
-
export function extraColumns(unclaimed) {
|
|
142
|
-
const out = [];
|
|
143
|
-
for (const u of unclaimed) {
|
|
144
|
-
const byIndex = new Map();
|
|
145
|
-
for (const f of u.fields) {
|
|
146
|
-
const m = /^columns\[(\d+)\]\.(.+)$/.exec(f.path);
|
|
147
|
-
if (!m?.[1] || !m[2])
|
|
148
|
-
continue;
|
|
149
|
-
const column = byIndex.get(m[1]) ?? {};
|
|
150
|
-
column[m[2]] = f.live;
|
|
151
|
-
byIndex.set(m[1], column);
|
|
152
|
-
}
|
|
153
|
-
const changes = [...byIndex.values()]
|
|
154
|
-
.filter((c) => typeof c.name === "string")
|
|
155
|
-
.map((c) => ({ path: `column ${String(c.name)}`, kind: "changed", live: c.type ?? null }));
|
|
156
|
-
if (changes.length > 0)
|
|
157
|
-
out.push({ name: u.name, type: u.type, changes });
|
|
158
|
-
}
|
|
159
|
-
return out;
|
|
160
|
-
}
|
|
161
104
|
/** Runs `chant lifecycle diff <env> --live --json` in the project and reads the drift from it. */
|
|
162
105
|
export async function readDrift(project, env, options = {}) {
|
|
163
106
|
// chant scopes the build to sourceDir (chant issue 4794); `src` is a directory the caller names.
|
|
@@ -174,51 +117,6 @@ export async function readDrift(project, env, options = {}) {
|
|
|
174
117
|
}
|
|
175
118
|
return driftFromLifecycle(env.name, doc);
|
|
176
119
|
}
|
|
177
|
-
const COLUMN_PATH = /^columns\[(\d+)\]/;
|
|
178
|
-
/**
|
|
179
|
-
* The declared column names of each changed object whose drift is named by
|
|
180
|
-
* column position (chant's ClickHouse tables keep columns as a list, so a
|
|
181
|
-
* change reads `columns[3].default.expr`). Read from the project's build,
|
|
182
|
-
* with the dialect's own tag, the way chant reads the declaration.
|
|
183
|
-
*/
|
|
184
|
-
export async function declaredColumns(project, drift, build) {
|
|
185
|
-
const wanted = new Set(drift.changed.filter((e) => e.changes.some((c) => COLUMN_PATH.test(c.path))).map((e) => e.name));
|
|
186
|
-
if (wanted.size === 0)
|
|
187
|
-
return {};
|
|
188
|
-
const b = await build();
|
|
189
|
-
try {
|
|
190
|
-
const tag = project.dialect === "postgres"
|
|
191
|
-
? (await import("@intentius/chant-lexicon-sql/postgres/entities")).table
|
|
192
|
-
: (await import("@intentius/chant-lexicon-sql/clickhouse/entities")).table;
|
|
193
|
-
const out = {};
|
|
194
|
-
for (const o of b.output.objects) {
|
|
195
|
-
if (!wanted.has(o.export))
|
|
196
|
-
continue;
|
|
197
|
-
try {
|
|
198
|
-
const strings = Object.assign([o.ddl], { raw: [o.ddl] });
|
|
199
|
-
const columns = tag(strings).props.columns;
|
|
200
|
-
if (Array.isArray(columns))
|
|
201
|
-
out[o.export] = columns.map((c) => { const n = c.name; return typeof n === "string" ? n : ""; });
|
|
202
|
-
}
|
|
203
|
-
catch {
|
|
204
|
-
// Not a table this tag reads: its paths stay as chant gives them.
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return out;
|
|
208
|
-
}
|
|
209
|
-
finally {
|
|
210
|
-
b.dispose();
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/** `columns[3].default.expr` as `column country: default.expr`, when the declaration names column 3. */
|
|
214
|
-
export function describePath(path, columns) {
|
|
215
|
-
const m = COLUMN_PATH.exec(path);
|
|
216
|
-
const name = m && columns ? columns[Number(m[1])] : undefined;
|
|
217
|
-
if (!m || !name)
|
|
218
|
-
return path;
|
|
219
|
-
const rest = path.slice(m[0].length).replace(/^\./, "");
|
|
220
|
-
return `column ${name}${rest ? ` ${rest}` : ""}`;
|
|
221
|
-
}
|
|
222
120
|
const show = (v) => (v === undefined ? "(none)" : typeof v === "string" ? v : JSON.stringify(v));
|
|
223
121
|
/** What the server was compared with, in words. */
|
|
224
122
|
export function describeAgainst(against) {
|
|
@@ -236,7 +134,7 @@ export function renderDrift(drift, server) {
|
|
|
236
134
|
const against = describeAgainst(drift.against);
|
|
237
135
|
if (against)
|
|
238
136
|
lines.push(against, "");
|
|
239
|
-
if (drift
|
|
137
|
+
if (!hasDrift(drift)) {
|
|
240
138
|
lines.push(drift.unobserved.length > 0 ? "No drift in the declared objects that could be read." : "No drift: every declared object matches the server.");
|
|
241
139
|
}
|
|
242
140
|
if (drift.changed.length > 0) {
|
|
@@ -244,8 +142,7 @@ export function renderDrift(drift, server) {
|
|
|
244
142
|
for (const e of drift.changed) {
|
|
245
143
|
lines.push(` ${e.name} (${e.type})`);
|
|
246
144
|
for (const c of e.changes) {
|
|
247
|
-
|
|
248
|
-
lines.push(c.kind === "absent" ? ` ${path}: declared ${show(c.declared)}, absent live` : ` ${path}: declared ${show(c.declared)}, live ${show(c.live)}`);
|
|
145
|
+
lines.push(c.kind === "absent" ? ` ${c.path}: declared ${show(c.declared)}, absent live` : ` ${c.path}: declared ${show(c.declared)}, live ${show(c.live)}`);
|
|
249
146
|
}
|
|
250
147
|
}
|
|
251
148
|
}
|
|
@@ -256,6 +153,13 @@ export function renderDrift(drift, server) {
|
|
|
256
153
|
for (const name of drift.missing)
|
|
257
154
|
lines.push(` ${name}`);
|
|
258
155
|
}
|
|
156
|
+
if (drift.pending?.length) {
|
|
157
|
+
if (drift.changed.length > 0 || drift.missing.length > 0)
|
|
158
|
+
lines.push("");
|
|
159
|
+
lines.push("Added on the server, which the next apply undoes:");
|
|
160
|
+
for (const p of drift.pending)
|
|
161
|
+
lines.push(` ${p.subject}: ${p.change}`);
|
|
162
|
+
}
|
|
259
163
|
if (drift.unobserved.length > 0) {
|
|
260
164
|
lines.push("", "Could not be read, so their state is unknown:");
|
|
261
165
|
for (const u of drift.unobserved)
|
package/dist/chant/drift.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift.js","sourceRoot":"","sources":["../../src/chant/drift.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAE,UAAU,EAAkC,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAmB,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAA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yodel ci renders), `yodel lint`, and the replay check into a
|
|
35
35
|
* throwaway server the job starts (the `replay` profile), then for each
|
|
36
|
-
* environment
|
|
37
|
-
*
|
|
38
|
-
* that
|
|
36
|
+
* environment chant's product plan ({@link productPlanOptions}): a plan
|
|
37
|
+
* job, holding that environment's reader credentials and no forge token,
|
|
38
|
+
* that runs `yodel plan <env> --pr-note`, and a note job that posts the
|
|
39
|
+
* pending migrations and the digest to approve.
|
|
39
40
|
* - yodel-apply: on a push to main, one job per wave, each needing the one
|
|
40
41
|
* before, running `yodel chant run wave`: through the sql lexicon's
|
|
41
42
|
* `sql-migrate` capability it plans the environment (`yodel apply <env>
|
|
@@ -75,12 +76,14 @@
|
|
|
75
76
|
* yodel ci renders through chant's product pipeline (chant#4550) with
|
|
76
77
|
* yodel's words (#289, ../ci-words.ts): {@link productWaves}.
|
|
77
78
|
*/
|
|
78
|
-
import { type ApplySteps, type ApprovalMode, type CiLogin, type RespondNew, type RespondRebase, type WaveGate } from "../config/define.js";
|
|
79
|
+
import { type ApplySteps, type ApprovalMode, type CiEvidence, type CiLogin, type RespondNew, type RespondRebase, type WaveGate } from "../config/define.js";
|
|
79
80
|
import type { OpWaveHooks } from "@intentius/chant/op";
|
|
80
81
|
import { type CloudToken, type Role } from "../credentials.js";
|
|
81
82
|
import { type CheckHook } from "./check-hooks.js";
|
|
82
83
|
import type { CheckTool } from "../config/define.js";
|
|
83
84
|
import type { Declarable } from "@intentius/chant/declarable";
|
|
85
|
+
import { type ProductPlanPipelineOptions } from "@intentius/chant-lexicon-github/components/product-plan-pipeline";
|
|
86
|
+
import type { ScheduledWatch } from "@intentius/chant/op/schedule-overdue";
|
|
84
87
|
import { type ChantProduct, type ProductWaveJob } from "../ci-words.js";
|
|
85
88
|
export type Forge = "github" | "gitlab" | "forgejo";
|
|
86
89
|
export declare const FORGES: readonly Forge[];
|
|
@@ -153,19 +156,22 @@ export interface Environments {
|
|
|
153
156
|
/** yodel.config.ts `ci.tools` (#294): the SQL tools run as check hooks beside yodel's checks. */
|
|
154
157
|
tools?: readonly CheckTool[];
|
|
155
158
|
/**
|
|
156
|
-
* The
|
|
157
|
-
* ci check` with the hooks read from the workspace declaration at
|
|
158
|
-
* pull request's base
|
|
159
|
-
*
|
|
159
|
+
* The pull request runs chant's check moment (#294, chant#4556): `yodel
|
|
160
|
+
* chant ci check` with the hooks read from the workspace declaration at
|
|
161
|
+
* the pull request's base, in chant's check job on GitHub and Forgejo
|
|
162
|
+
* (chant issue 4964) and in the lint job on GitLab. Set by {@link render}
|
|
163
|
+
* when the project has a declaration.
|
|
160
164
|
*/
|
|
161
165
|
checkHooks?: true;
|
|
166
|
+
/** yodel.config.ts `ci.evidence` (sql-yodeler issue 346): the runner identity that signs the plans, the check hooks and the waves. */
|
|
167
|
+
evidence?: CiEvidence;
|
|
168
|
+
/** yodel.config.ts `ci.refGate`: the ref gate's rule in `.chant/trust.json` and its status job. */
|
|
169
|
+
refGate?: true;
|
|
162
170
|
/** yodel.config.ts `ci.respond.new` (#312): what answers `/yodel new`, through chant's commit job. Default `comment`. */
|
|
163
171
|
respondNew?: RespondNew;
|
|
164
172
|
/** yodel.config.ts `ci.respond.rebase` (#313): what answers `/yodel rebase`. Default `comment`, or `off` when a reader's password is cloud-minted. */
|
|
165
173
|
respondRebase?: RespondRebase;
|
|
166
174
|
}
|
|
167
|
-
/** The line the lint job runs chant's check moment with (#294): the hooks are read at the pull request's base. */
|
|
168
|
-
export declare const checkHooksLine: (forge: Forge) => string;
|
|
169
175
|
/** yodel's checks and the project's tools as check-hook presets for `forge` (#294). */
|
|
170
176
|
export declare function checkHooksOf(envs_: Environments): CheckHook[];
|
|
171
177
|
/** What a job holding one role of an environment needs: the variables it reads, and the cloud identity its token source mints from. */
|
|
@@ -275,15 +281,49 @@ export declare const reportArtifact: (job: string) => string;
|
|
|
275
281
|
/** upload-artifact v4 on GitHub, and v3 from code.forgejo.org on Forgejo, where v4 refuses any server but github.com's (chant#4008), as chant's own Forgejo jobs have it. */
|
|
276
282
|
export declare const UPLOAD_ARTIFACT: string;
|
|
277
283
|
export declare const FORGEJO_UPLOAD_ARTIFACT: string;
|
|
284
|
+
/**
|
|
285
|
+
* The comment at the top of every file, as `#` lines. The files declared here
|
|
286
|
+
* (the review workflows and .gitlab-ci.yml) take theirs as the Workflow's or
|
|
287
|
+
* Pipeline's `comment`, which chant writes. The files chant's
|
|
288
|
+
* generateOpWavesPipeline and generateOpsPipeline write take no comment, so
|
|
289
|
+
* withHeader puts it above their YAML.
|
|
290
|
+
*/
|
|
291
|
+
/** The first line of every file yodel ci writes, by which it knows the ones it wrote (#348). */
|
|
292
|
+
export declare const PIPELINE_HEADER = "# Rendered by yodel ci from chant.config.ts, yodel.config.ts and ops/.";
|
|
278
293
|
/** The pipeline directories yodel ci writes into, besides the root `.gitlab-ci.yml`. */
|
|
279
294
|
export declare const PIPELINE_DIRS: string[];
|
|
280
|
-
/** Whether a file's text is one yodel ci wrote: it opens with the header (#348). */
|
|
281
|
-
export declare const renderedByYodel: (text: string) => boolean;
|
|
282
295
|
type Actions = "github" | "forgejo";
|
|
283
|
-
|
|
296
|
+
/**
|
|
297
|
+
* The pull request plan on chant's product plan (chant issues 4799, 4963,
|
|
298
|
+
* 4972; sql-yodeler issue 345): one plan job and one note job per
|
|
299
|
+
* environment, each environment a target. The plan job holds the
|
|
300
|
+
* environment's reader (and the reader of the environment it requires) and
|
|
301
|
+
* no forge token, logs in to its cloud through chant's trade (Forgejo:
|
|
302
|
+
* chant's login from the runner's token file), runs the write probe, then
|
|
303
|
+
* `yodel plan <env> --pr-note`, which writes chant's plan note hand-off, and
|
|
304
|
+
* `yodel report` whatever the plan's exit. chant's note job posts the note,
|
|
305
|
+
* says what moved since the previous one from the plan's subject, warns of
|
|
306
|
+
* an overdue drift watch, and sets `yodel/plan/<env>`.
|
|
307
|
+
*/
|
|
308
|
+
export declare function productPlanOptions(forge: Forge, envs_: Environments, watches?: readonly ScheduledWatch[]): ProductPlanPipelineOptions;
|
|
309
|
+
export declare function actionsReview(forge: Actions, envs_: Environments, watches?: readonly ScheduledWatch[]): RenderedFile;
|
|
284
310
|
export declare const GITLAB_WATCH_FILE = ".gitlab/yodel-watch.gitlab-ci.yml";
|
|
285
311
|
export declare const GITLAB_APPLY_FILE = ".gitlab/yodel-apply.gitlab-ci.yml";
|
|
286
312
|
export declare function gitlabPipeline(envs_: Environments): RenderedFile;
|
|
313
|
+
/** The file .gitlab-ci.yml includes for the plan jobs and their note jobs, chant's product plan (sql-yodeler issue 345). */
|
|
314
|
+
export declare const GITLAB_PLAN_FILE = ".gitlab/yodel-plan.gitlab-ci.yml";
|
|
315
|
+
/**
|
|
316
|
+
* The plan on GitLab through chant's product plan: its jobs as
|
|
317
|
+
* {@link GITLAB_PLAN_FILE}, their names and their stages. chant's
|
|
318
|
+
* `workflow` and `stages` stay out of the file: .gitlab-ci.yml has the
|
|
319
|
+
* pipeline's own, with chant's stages after review, and its rules let the
|
|
320
|
+
* plan notes pipeline (a schedule of the default branch) run.
|
|
321
|
+
*/
|
|
322
|
+
export declare function gitlabPlan(envs_: Environments, watches?: readonly ScheduledWatch[]): {
|
|
323
|
+
file: RenderedFile;
|
|
324
|
+
jobs: string[];
|
|
325
|
+
stages: string[];
|
|
326
|
+
};
|
|
287
327
|
export interface Wave {
|
|
288
328
|
env: string;
|
|
289
329
|
gate: WaveGate;
|
|
@@ -435,11 +475,8 @@ export declare function watchSpec(env: string, forge: Forge, envs: Pick<Environm
|
|
|
435
475
|
* yodel (#289).
|
|
436
476
|
*
|
|
437
477
|
* The job stays chant's generateOpsPipeline and its last line stays `yodel
|
|
438
|
-
* drift <env> --issue`, which
|
|
439
|
-
*
|
|
440
|
-
* --live` leaves ClickHouse::Grant out. Once chant#4582 puts grants in the
|
|
441
|
-
* sql lexicon's live diff, the watch moves onto chant's drift job with
|
|
442
|
-
* `stages.drift` and the workaround goes.
|
|
478
|
+
* drift <env> --issue`, which compares with the history's recorded schema
|
|
479
|
+
* and keeps the tracking issue.
|
|
443
480
|
*/
|
|
444
481
|
export declare function watchPipelines(dir: string, envs_: Environments): Promise<RenderedFile[]>;
|
|
445
482
|
/** Whether `/yodel new` gets chant's commit job (#312): `ci.respond.new` is not `off`. */
|
|
@@ -483,8 +520,8 @@ export interface ProjectJobs {
|
|
|
483
520
|
}
|
|
484
521
|
/** Loads the module `ci.jobs` names. */
|
|
485
522
|
export declare function loadProjectJobs(dir: string, file: string): Promise<ProjectJobs>;
|
|
486
|
-
/** The
|
|
487
|
-
export declare function review(envs: Environments): RenderedFile[];
|
|
523
|
+
/** The pull request pipelines, and GitLab's main file. `watches` are the drift watches the plan note checks for having stopped. */
|
|
524
|
+
export declare function review(envs: Environments, watches?: readonly ScheduledWatch[]): RenderedFile[];
|
|
488
525
|
/**
|
|
489
526
|
* The workspace declaration with yodel's check presets in `ci.hooks.check`
|
|
490
527
|
* (#294), or undefined when the project has no declaration. The hooks are one list for every forge: the
|