@codyswann/lisa 5.7.0 → 5.8.1
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/all/copy-overwrite/scripts/lib/push-timing.mjs +135 -9
- package/all/copy-overwrite/scripts/lisa-gates.mjs +5 -5
- package/all/copy-overwrite/scripts/lisa-push-timing-report.mjs +58 -4
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +13 -1
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -3
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +22 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +17 -8
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +5 -5
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/rails/copy-overwrite/scripts/lisa-rails-gates.mjs +6 -0
- package/scripts/check-shell-guard-refusal-coverage.mjs +10 -0
- package/scripts/check-test-files-executed.mjs +149 -0
- package/scripts/lib/nightly-slow-suites.mjs +58 -0
- package/scripts/plan-integration-shards.mjs +12 -3
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeFileSync,
|
|
24
24
|
} from "node:fs";
|
|
25
25
|
import { availableParallelism, freemem, loadavg } from "node:os";
|
|
26
|
-
import { join } from "node:path";
|
|
26
|
+
import { join, sep } from "node:path";
|
|
27
27
|
|
|
28
28
|
import { boundedSpawnSync } from "./bounded-spawn.mjs";
|
|
29
29
|
|
|
@@ -46,6 +46,9 @@ const REPORT_NAME = /^\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}Z(?:-\d+)?\.json$/u;
|
|
|
46
46
|
* @property {string|null} startedAt ISO-8601 start, null when never reached.
|
|
47
47
|
* @property {number} durationMs Time spent; 0 when proved by a sibling's run.
|
|
48
48
|
* @property {string|null} provedBy The gate whose run proved this one.
|
|
49
|
+
* @property {string[]} failingTestFiles Repo-relative test files the gate's
|
|
50
|
+
* output named as failing; empty unless the gate failed (#4896).
|
|
51
|
+
* @property {boolean} failingTestFilesTruncated True when that list was capped.
|
|
49
52
|
*/
|
|
50
53
|
|
|
51
54
|
/**
|
|
@@ -99,28 +102,151 @@ export function formatDuration(ms) {
|
|
|
99
102
|
return `${seconds}s`;
|
|
100
103
|
}
|
|
101
104
|
|
|
105
|
+
/** The most failing test files one gate records (#4896). */
|
|
106
|
+
export const MAX_FAILING_TEST_FILES = 200;
|
|
107
|
+
|
|
108
|
+
/** Terminal colour and cursor sequences, which Vitest wraps its FAIL badge in. */
|
|
109
|
+
// eslint-disable-next-line no-control-regex -- matching the ESC byte is the point
|
|
110
|
+
const ANSI_SEQUENCE = /\u001b\[[0-9;?]*[ -/]*[@-~]/gu;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* A runner's per-file failure header, at the start of a line:
|
|
114
|
+
* - Vitest: ` FAIL |project| path/to/file.test.ts > suite > case`
|
|
115
|
+
* - Jest: `FAIL path/to/file.test.ts (5.1 s)`
|
|
116
|
+
* The project tag is optional in both. A `FAIL` anywhere else in a line is prose.
|
|
117
|
+
*/
|
|
118
|
+
const FAIL_HEADER = /^\s*FAIL\s+(?:\|[^|\n]*\|\s+)?(\S+)/u;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A path without its trailing slashes. A loop rather than `/\/+$/`, which the
|
|
122
|
+
* shipped ReDoS rule flags: an anchored `+` before `$` backtracks on a long run
|
|
123
|
+
* of slashes followed by anything else.
|
|
124
|
+
* @param {string} path A POSIX path.
|
|
125
|
+
* @returns {string} The path with trailing `/` characters removed.
|
|
126
|
+
*/
|
|
127
|
+
function trimTrailingSlashes(path) {
|
|
128
|
+
let end = path.length;
|
|
129
|
+
while (end > 0 && path[end - 1] === "/") end -= 1;
|
|
130
|
+
return path.slice(0, end);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** A token that is plausibly a file path: path characters plus an extension. */
|
|
134
|
+
const FILE_TOKEN = /^[\w@.+\-/\\]+\.[A-Za-z0-9]+$/u;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A FAIL token as a repo-relative POSIX path, or null when it is not one.
|
|
138
|
+
*
|
|
139
|
+
* Only repo-relative paths are kept: an absolute path inside `root` is made
|
|
140
|
+
* relative, and anything outside it — or climbing out with `..` — is dropped,
|
|
141
|
+
* because a report that names files from somewhere else is not about this repo.
|
|
142
|
+
* @param {string} token The first token after `FAIL`.
|
|
143
|
+
* @param {string|null} root The project root, or null to keep relative paths only.
|
|
144
|
+
* @returns {string|null} The path, or null.
|
|
145
|
+
*/
|
|
146
|
+
function repoRelative(token, root) {
|
|
147
|
+
if (!FILE_TOKEN.test(token)) return null;
|
|
148
|
+
const posix = token.replaceAll("\\", "/");
|
|
149
|
+
const base = root
|
|
150
|
+
? `${trimTrailingSlashes(root.replaceAll(sep, "/"))}/`
|
|
151
|
+
: null;
|
|
152
|
+
const absolute = posix.startsWith("/") || /^[A-Za-z]:\//u.test(posix);
|
|
153
|
+
const inRoot = absolute && base && posix.startsWith(base);
|
|
154
|
+
if (absolute && !inRoot) return null;
|
|
155
|
+
const relative = (inRoot ? posix.slice(base.length) : posix).replace(
|
|
156
|
+
/^(?:\.\/)+/u,
|
|
157
|
+
""
|
|
158
|
+
);
|
|
159
|
+
const segments = relative.split("/");
|
|
160
|
+
if (segments.some(part => part === ".." || part === "")) return null;
|
|
161
|
+
return relative;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The test files a failed gate's output names as failing (CodySwannGT/lisa#4896).
|
|
166
|
+
*
|
|
167
|
+
* The push timing report records pass or fail per gate, which cannot say WHICH
|
|
168
|
+
* test file failed — so a slow file that never catches anything and a slow file
|
|
169
|
+
* that catches regressions every week look the same. This reads each runner's
|
|
170
|
+
* per-file failure header out of the captured diagnostic tail (Vitest's summary
|
|
171
|
+
* repeats every failed file there, so the tail is enough).
|
|
172
|
+
*
|
|
173
|
+
* Diagnostics only: anything unexpected — a non-string, binary noise, a format
|
|
174
|
+
* this does not know — yields an empty list. It never throws, so it can never
|
|
175
|
+
* change a gate verdict or fail a push.
|
|
176
|
+
* @param {unknown} output A gate's captured output.
|
|
177
|
+
* @param {object} [options] Bounds.
|
|
178
|
+
* @param {string|null} [options.root] Project root, for relativising absolute paths.
|
|
179
|
+
* @param {number} [options.max] Cap on the number of files.
|
|
180
|
+
* @returns {{files: string[], truncated: boolean}} Deduped files in first-seen order.
|
|
181
|
+
*/
|
|
182
|
+
export function failingTestFiles(
|
|
183
|
+
output,
|
|
184
|
+
{ root = null, max = MAX_FAILING_TEST_FILES } = {}
|
|
185
|
+
) {
|
|
186
|
+
try {
|
|
187
|
+
if (typeof output !== "string") return { files: [], truncated: false };
|
|
188
|
+
const unique = [
|
|
189
|
+
...new Set(
|
|
190
|
+
output
|
|
191
|
+
.replace(ANSI_SEQUENCE, "")
|
|
192
|
+
.split(/\r?\n/u)
|
|
193
|
+
.map(line => FAIL_HEADER.exec(line)?.[1])
|
|
194
|
+
.filter(token => typeof token === "string")
|
|
195
|
+
.map(token => repoRelative(token, root))
|
|
196
|
+
.filter(path => path !== null)
|
|
197
|
+
),
|
|
198
|
+
];
|
|
199
|
+
return { files: unique.slice(0, max), truncated: unique.length > max };
|
|
200
|
+
} catch {
|
|
201
|
+
// probe-direction: neutral — a diagnostic list; no gate reads it.
|
|
202
|
+
return { files: [], truncated: false };
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** States under which a gate's run did not prove its property. */
|
|
207
|
+
const UNPROVED_STATES = new Set(["FAILED", "UNPROVABLE", "KILLED"]);
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The failing-file fields of one gate record. A gate that did not fail records
|
|
211
|
+
* none, whatever its entry carries, and a malformed list reads as none.
|
|
212
|
+
* @param {string} state The record's state.
|
|
213
|
+
* @param {unknown} failingTests The entry's `{files, truncated}`, if any.
|
|
214
|
+
* @returns {{failingTestFiles: string[], failingTestFilesTruncated: boolean}} The fields.
|
|
215
|
+
*/
|
|
216
|
+
function failingFields(state, failingTests) {
|
|
217
|
+
const files = UNPROVED_STATES.has(state) ? failingTests?.files : null;
|
|
218
|
+
const valid =
|
|
219
|
+
Array.isArray(files) && files.every(file => typeof file === "string");
|
|
220
|
+
return {
|
|
221
|
+
failingTestFiles: valid ? [...files] : [],
|
|
222
|
+
failingTestFilesTruncated: valid && failingTests.truncated === true,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
102
226
|
/**
|
|
103
227
|
* One gate's timing record.
|
|
104
228
|
* @param {object} entry A `runGates` result entry (or a pre-gate step).
|
|
105
229
|
* @returns {GateTiming} The record.
|
|
106
230
|
*/
|
|
107
231
|
function gateRecord(entry) {
|
|
232
|
+
// A remembered pass (#4594) did not run, so it is reported as CACHED
|
|
233
|
+
// rather than as a PASSED gate that happened to take no time.
|
|
234
|
+
const state =
|
|
235
|
+
entry.cached === true
|
|
236
|
+
? "CACHED"
|
|
237
|
+
: String(entry.state ?? "unknown")
|
|
238
|
+
.toUpperCase()
|
|
239
|
+
.replaceAll("-", "_");
|
|
108
240
|
return {
|
|
109
241
|
id: entry.id,
|
|
110
242
|
level: entry.level ?? null,
|
|
111
243
|
command: entry.command ?? null,
|
|
112
|
-
|
|
113
|
-
// rather than as a PASSED gate that happened to take no time.
|
|
114
|
-
state:
|
|
115
|
-
entry.cached === true
|
|
116
|
-
? "CACHED"
|
|
117
|
-
: String(entry.state ?? "unknown")
|
|
118
|
-
.toUpperCase()
|
|
119
|
-
.replaceAll("-", "_"),
|
|
244
|
+
state,
|
|
120
245
|
exitCode: typeof entry.code === "number" ? entry.code : null,
|
|
121
246
|
startedAt: entry.startedAt ?? null,
|
|
122
247
|
durationMs: typeof entry.durationMs === "number" ? entry.durationMs : 0,
|
|
123
248
|
provedBy: entry.provedBy ?? null,
|
|
249
|
+
...failingFields(state, entry.failingTests),
|
|
124
250
|
};
|
|
125
251
|
}
|
|
126
252
|
|
|
@@ -268,12 +268,12 @@ export const STATE_FAMILIES = [CONTINUOUS];
|
|
|
268
268
|
/**
|
|
269
269
|
* Keys on a gate entry that are settings rather than moments.
|
|
270
270
|
*
|
|
271
|
-
* `reuse` is
|
|
272
|
-
* removed
|
|
273
|
-
*
|
|
274
|
-
*
|
|
271
|
+
* The retired `reuse` setting is not among them. Its release-reuse checker was
|
|
272
|
+
* removed in CodySwannGT/lisa#4794, and the key itself in
|
|
273
|
+
* CodySwannGT/lisa#4899, after no Lisa-managed host was found declaring it, so
|
|
274
|
+
* a leftover declaration is now refused like any other unknown key.
|
|
275
275
|
*/
|
|
276
|
-
export const GATE_FIELDS = new Set(["run", "needs", "task"
|
|
276
|
+
export const GATE_FIELDS = new Set(["run", "needs", "task"]);
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
* The per-moment field saying how this gate's prover prints a MEASURED failure.
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Prints, per gate, the median and max duration and how many of the selected
|
|
12
12
|
* runs recorded it; then, per run, the total wall time with the one-minute
|
|
13
|
-
* load at start and end
|
|
13
|
+
* load at start and end; then, when any selected run recorded failing test
|
|
14
|
+
* files (CodySwannGT/lisa#4896), how many of those runs each file failed in —
|
|
15
|
+
* the evidence for judging whether a slow test file ever catches anything.
|
|
16
|
+
* A missing or empty `.lisa/push-timing/` exits 1 with
|
|
14
17
|
* one line saying so, because "no data" must not read as "nothing was slow".
|
|
15
18
|
* @module lisa-push-timing-report
|
|
16
19
|
*/
|
|
@@ -34,10 +37,47 @@ export function median(values) {
|
|
|
34
37
|
return sorted.length % 2 ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2;
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
/**
|
|
41
|
+
* The failing test files one report names, deduped across its gates: a file
|
|
42
|
+
* named by two gates that shared one run failed once, not twice. A report
|
|
43
|
+
* written before the field existed, or a malformed one, names none.
|
|
44
|
+
* @param {object} report One parsed timing report.
|
|
45
|
+
* @returns {{files: Set<string>, truncated: boolean}} The files and whether any gate's list was capped.
|
|
46
|
+
*/
|
|
47
|
+
function reportFailingFiles(report) {
|
|
48
|
+
const gates = Array.isArray(report?.gates) ? report.gates : [];
|
|
49
|
+
const lists = gates.map(gate =>
|
|
50
|
+
Array.isArray(gate?.failingTestFiles) ? gate.failingTestFiles : []
|
|
51
|
+
);
|
|
52
|
+
return {
|
|
53
|
+
files: new Set(lists.flat().filter(file => typeof file === "string")),
|
|
54
|
+
truncated: gates.some(gate => gate?.failingTestFilesTruncated === true),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* How many reports each test file failed in, most frequent first.
|
|
60
|
+
* @param {object[]} reports Parsed timing reports.
|
|
61
|
+
* @returns {{failingFiles: Array<{file: string, count: number}>, truncatedRuns: number}} The tally.
|
|
62
|
+
*/
|
|
63
|
+
function tallyFailingFiles(reports) {
|
|
64
|
+
const perReport = reports.map(reportFailingFiles);
|
|
65
|
+
const counts = new Map();
|
|
66
|
+
for (const file of perReport.flatMap(entry => [...entry.files])) {
|
|
67
|
+
counts.set(file, (counts.get(file) ?? 0) + 1);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
failingFiles: [...counts.entries()]
|
|
71
|
+
.map(([file, count]) => ({ file, count }))
|
|
72
|
+
.sort((a, b) => b.count - a.count || a.file.localeCompare(b.file)),
|
|
73
|
+
truncatedRuns: perReport.filter(entry => entry.truncated).length,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
37
77
|
/**
|
|
38
78
|
* Per-gate and per-run figures for a list of reports, oldest first.
|
|
39
79
|
* @param {object[]} reports Parsed timing reports.
|
|
40
|
-
* @returns {{gates: Array<{id: string, count: number, medianMs: number, maxMs: number}>, runs: object[]}} The summary.
|
|
80
|
+
* @returns {{gates: Array<{id: string, count: number, medianMs: number, maxMs: number}>, runs: object[], failingFiles: Array<{file: string, count: number}>, truncatedRuns: number}} The summary.
|
|
41
81
|
*/
|
|
42
82
|
export function summariseReports(reports) {
|
|
43
83
|
const durations = new Map();
|
|
@@ -65,7 +105,7 @@ export function summariseReports(reports) {
|
|
|
65
105
|
cores: report.cores,
|
|
66
106
|
gates: (report.gates ?? []).length,
|
|
67
107
|
}));
|
|
68
|
-
return { gates, runs };
|
|
108
|
+
return { gates, runs, ...tallyFailingFiles(reports) };
|
|
69
109
|
}
|
|
70
110
|
|
|
71
111
|
/**
|
|
@@ -126,7 +166,8 @@ export function main(
|
|
|
126
166
|
return [];
|
|
127
167
|
}
|
|
128
168
|
});
|
|
129
|
-
const { gates, runs } =
|
|
169
|
+
const { gates, runs, failingFiles, truncatedRuns } =
|
|
170
|
+
summariseReports(reports);
|
|
130
171
|
|
|
131
172
|
out(`Push timing — last ${runs.length} run(s) from ${dir}/`);
|
|
132
173
|
out("");
|
|
@@ -145,6 +186,19 @@ export function main(
|
|
|
145
186
|
`${formatLoad(run.loadEnd)}/${run.cores} cores`
|
|
146
187
|
);
|
|
147
188
|
}
|
|
189
|
+
if (failingFiles.length > 0) {
|
|
190
|
+
out("");
|
|
191
|
+
out(`Failing test files (runs failed in, of ${runs.length}):`);
|
|
192
|
+
for (const { file, count } of failingFiles) {
|
|
193
|
+
out(` ${`${count}/${runs.length} runs`.padEnd(14)}${file}`);
|
|
194
|
+
}
|
|
195
|
+
if (truncatedRuns > 0) {
|
|
196
|
+
out(
|
|
197
|
+
` (${truncatedRuns} run(s) failed more files than a report records; ` +
|
|
198
|
+
`those lists are incomplete)`
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
148
202
|
return 0;
|
|
149
203
|
}
|
|
150
204
|
|
|
@@ -72,7 +72,11 @@ import {
|
|
|
72
72
|
withAdmission,
|
|
73
73
|
} from "./lib/push-admission.mjs";
|
|
74
74
|
import { withPushGateDefaults } from "./lib/push-gate-defaults.mjs";
|
|
75
|
-
import {
|
|
75
|
+
import {
|
|
76
|
+
failingTestFiles,
|
|
77
|
+
hostReading,
|
|
78
|
+
recordPushTiming,
|
|
79
|
+
} from "./lib/push-timing.mjs";
|
|
76
80
|
import { worktreeDependencyProblem } from "./lib/worktree-dependencies.mjs";
|
|
77
81
|
import {
|
|
78
82
|
interruptionReason,
|
|
@@ -239,6 +243,9 @@ export const CONDITIONAL_FLOOR = Object.freeze({
|
|
|
239
243
|
* run proved it or it was never reached (#4591).
|
|
240
244
|
* @property {boolean} [cached] True when the verdict is a remembered pass for
|
|
241
245
|
* this exact content and the gate did not run (CodySwannGT/lisa#4594).
|
|
246
|
+
* @property {{files: string[], truncated: boolean}} [failingTests] Test files
|
|
247
|
+
* a nonzero run's output named as failing, for the push timing report only
|
|
248
|
+
* (CodySwannGT/lisa#4896). Absent on a pass; never read into a verdict.
|
|
242
249
|
*/
|
|
243
250
|
|
|
244
251
|
/**
|
|
@@ -503,6 +510,11 @@ function execute(gate, exec, declarations) {
|
|
|
503
510
|
diagnosis: diagnosis.kind,
|
|
504
511
|
evidence: diagnosis.evidence,
|
|
505
512
|
proves: diagnosis.proves,
|
|
513
|
+
// Which test files the output names as failing, for the push timing report
|
|
514
|
+
// (CodySwannGT/lisa#4896). Read only on this failure branch, so a passing
|
|
515
|
+
// gate never carries a list. Diagnostics only: the parser never throws and
|
|
516
|
+
// nothing above or below reads it into a verdict.
|
|
517
|
+
failingTests: failingTestFiles(output, { root: process.cwd() }),
|
|
506
518
|
};
|
|
507
519
|
}
|
|
508
520
|
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
"children": []
|
|
1391
1391
|
},
|
|
1392
1392
|
"lib/push-timing.mjs": {
|
|
1393
|
-
"sha256": "
|
|
1393
|
+
"sha256": "7f04b451325dfa5aea321ec5b5d1aa7f34e737c8395e3a8a2de7dcdbf7d22d3f",
|
|
1394
1394
|
"staticImports": [
|
|
1395
1395
|
"lib/bounded-spawn.mjs",
|
|
1396
1396
|
"node:fs",
|
|
@@ -1505,7 +1505,7 @@
|
|
|
1505
1505
|
"children": []
|
|
1506
1506
|
},
|
|
1507
1507
|
"lisa-gates.mjs": {
|
|
1508
|
-
"sha256": "
|
|
1508
|
+
"sha256": "95156e0e0b998ed9b444af97911accbe7764f6b4611376bad24539295fb9633d",
|
|
1509
1509
|
"staticImports": [
|
|
1510
1510
|
"lib/gate-pass-cache.mjs",
|
|
1511
1511
|
"lib/invoked-as-script.mjs",
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
"children": []
|
|
1591
1591
|
},
|
|
1592
1592
|
"lisa-run-gates.mjs": {
|
|
1593
|
-
"sha256": "
|
|
1593
|
+
"sha256": "99eb89df79bdee353136525d273cbb168b5c289f1ef0876120c73bf61d01901a",
|
|
1594
1594
|
"staticImports": [
|
|
1595
1595
|
"lib/affected-tests.mjs",
|
|
1596
1596
|
"lib/bounded-spawn.mjs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAu3FjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA0xFjC,CAAC"}
|
|
@@ -1406,6 +1406,9 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1406
1406
|
]),
|
|
1407
1407
|
"scripts/lib/push-timing.mjs": Object.freeze([
|
|
1408
1408
|
"31de9d9357839e7e63292a4c18ede6c7b66e2cc2d562ede80036cc90f24d0d9f",
|
|
1409
|
+
"40ebd0bbadc04ad5c0aad78264f26b066e4cb4a8a811064af4888f932b99e0f4",
|
|
1410
|
+
"684c2e824e1d8682fffeef181e8801e8d4f6f5bc4d1c78ac6becbecb1eb199bd",
|
|
1411
|
+
"7f04b451325dfa5aea321ec5b5d1aa7f34e737c8395e3a8a2de7dcdbf7d22d3f",
|
|
1409
1412
|
"b2ff671d4b46de3b94518771850ff4f4b54c38f196e2f40cbf7b34ab02e40f19",
|
|
1410
1413
|
]),
|
|
1411
1414
|
"scripts/lib/reusable-workflow-load-adapter.d.mts": Object.freeze([
|
|
@@ -1742,6 +1745,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
1742
1745
|
"92b3bcbe6051e04c53a6e60fd62e30c1176bbdacdcaf7e11f8e456ff9cd1c5d9",
|
|
1743
1746
|
"94640dede038608239edea5cffbf0227a86d77b3e4b9b9c6e3762369fa2de259",
|
|
1744
1747
|
"94a9bd9ebe4ae61e3dd6fa42875bfe6b81f818ae8669e8cac508b8dc2251a7c6",
|
|
1748
|
+
"95156e0e0b998ed9b444af97911accbe7764f6b4611376bad24539295fb9633d",
|
|
1745
1749
|
"95d021d8c199001bc669ffe19cc3a54590cc1cfa1524c3e278c410e47dcc4bdb",
|
|
1746
1750
|
"96077d0bbcf53ccc6b1baadef319cb9fa9979413bcff418ecea5abd136ff3491",
|
|
1747
1751
|
"984c34add3cffa3733e8852126e59aab08d34495205d8a3dde9108d8aaa87fbf",
|
|
@@ -2223,9 +2227,11 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2223
2227
|
"f16196413b0050a805327f9d6d7b55913f9df70c8be4b8805bb9267e9abb4abf",
|
|
2224
2228
|
]),
|
|
2225
2229
|
"scripts/lisa-push-timing-report.mjs": Object.freeze([
|
|
2230
|
+
"0bfa5e899305b7c89d5b8e496953326ef2240e019bddebea63a5467ecae592bf",
|
|
2226
2231
|
"96aed02d22f93cc15ea83182c6fcf05a994ee45c7e38807dc34cf31d38ebbb70",
|
|
2227
2232
|
]),
|
|
2228
2233
|
"scripts/lisa-rails-gates.mjs": Object.freeze([
|
|
2234
|
+
"2e5c231ac779fcfd3ef3380282268d5e163544dabe41fb6ee41eb5109320c6c3",
|
|
2229
2235
|
"34e6fa2e8b5a1a5794e107b880b30780596f219af09f6128e13423036f272d31",
|
|
2230
2236
|
"5f8dd1f06848084c9381e0524397d32847c9c83c2099bc8bf285c2001003ff8c",
|
|
2231
2237
|
"6b2f0bf7d3689a8081ae1287b7a73115e46d0c305b7a648861edfb11a8bf0cb9",
|
|
@@ -2321,6 +2327,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2321
2327
|
"918dccb834291eeabcc947ccd5b6dc9f5c5523370e4dd4f637d071a8ad07e33e",
|
|
2322
2328
|
"92c3de77e2158e86db54876bf9f02ccd51ef892fdd8326ab9107b08044222a6a",
|
|
2323
2329
|
"94453bdae8ab3dd2eba0883c4b278027396090e0bdc8e2f102414abc6415912a",
|
|
2330
|
+
"99eb89df79bdee353136525d273cbb168b5c289f1ef0876120c73bf61d01901a",
|
|
2324
2331
|
"9b14c8864608e8ca390579048229bc0bbaba3094af0b536f1956085295c68af3",
|
|
2325
2332
|
"9c05ccc07c5b97bd7e910e235f2bd7bea9816fe2f5f282091557140c7ef7855e",
|
|
2326
2333
|
"9fa363107aa5ff033f150ff1a1bb5550d286de383b3d1f7b6c2ac2947730c8f2",
|
|
@@ -2700,6 +2707,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2700
2707
|
"44774fb225e22b19697907c32aa9582f0a114a3206bde1c1d95d0797994a7bef",
|
|
2701
2708
|
"45bb1e58fa069e51de109e75caf55544e4652a0f5afab4c692234073bae3a7e6",
|
|
2702
2709
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
2710
|
+
"48e627d114bf14b1faa3f2922bf171b82f1eb7d5c74fdf97ef495a8dc98d780d",
|
|
2703
2711
|
"4ba0a464fece333a2bcd8590d62e1881397ca5863958627b92a4b797afaebc45",
|
|
2704
2712
|
"4e3aeb528d0b8d9620151b445753266284ccc5f76185c75e042fd90e1826cf47",
|
|
2705
2713
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
@@ -2760,6 +2768,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2760
2768
|
"88f23c2b0763bc51976bb035011533bb655433f6dbf9ce6efd3278cdd43681ec",
|
|
2761
2769
|
"8a3c46d3501797ebb53a081c8b35e78e0ceb2b060503332b48e44ccc30d6d0df",
|
|
2762
2770
|
"8b3ef61c17d94bdf8eee99e02d396c975a12a8b8a3c2e34231eff6aaea3bf392",
|
|
2771
|
+
"8bc64fc8ba942bf5958988970af40def6dd7d77ca28fa373afb8a44f8a21ff4c",
|
|
2763
2772
|
"8c695c8ee36415fd7212d016cf7960d053bfdcc51129181aac6c2cdfc86d6865",
|
|
2764
2773
|
"8ddd6ca8b29a14434ff287cb7f07c5652efd39649ba5da2d981f153721f26f5a",
|
|
2765
2774
|
"8f2b36bc3fd7a7bde50b43f1cca4d9d2bbd7f6cd690d8766870291272cf077da",
|
|
@@ -2775,6 +2784,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2775
2784
|
"985fbb040eef3c9843f20c300d01ea11a4c578db116c04658e450deafeeef4e4",
|
|
2776
2785
|
"9941f4b52e04534c4a0526ef4deb41c8798db8b963e62f5afca0d248023fbef8",
|
|
2777
2786
|
"9c7b426995048105a34ca8406e8c12ae06fd02294064cdf250238b156117d9a4",
|
|
2787
|
+
"9dbe1d8ba2c9db60ecd1efbe467ee48e16ca26ecb32d08f5f982fbed5ce486e6",
|
|
2778
2788
|
"9de265a5876d56d72e237b97bcb006c11ea4411e51e786b16e1f4b488402bea0",
|
|
2779
2789
|
"9f2be0dcbdba3b42ea89fb8ebd363daf12b6c2709fb05459a9d682ccf5d5c1c6",
|
|
2780
2790
|
"9fd0930e93674df5d1dbb464bf85b6838b9781aadbd68a0e2eca5b48f00381a6",
|
|
@@ -2801,6 +2811,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2801
2811
|
"b5643bb8b2659860fde47aa4fdeade8e4fb473f87416660c32f9bb862e26f368",
|
|
2802
2812
|
"b67b99e08c15aedbb2f1c4246c94106217eb83c5956d07e198f0e90d40893895",
|
|
2803
2813
|
"b922ba883be07b5bef68c3a9e5718bbd41eec7cbf8b2b1c28a7beb8fed38d19d",
|
|
2814
|
+
"ba8b289410a9a8c73afa4cda26a4631712b4a2f2e82eea4b50e50ecc07e7439c",
|
|
2804
2815
|
"baa8ffc248ce29c30d10b579960b34b7836c7d7f47651ced3cbb551dfee65291",
|
|
2805
2816
|
"baabc232fc5020953af42a3474dce8e2670a5e97af0cee4c19f8cb5105879000",
|
|
2806
2817
|
"bdc4ee248108dcb9a714c723df047b953ea5c9cd8fb774338f5fd01e9fbfc1fb",
|
|
@@ -4324,6 +4335,9 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4324
4335
|
]),
|
|
4325
4336
|
"scripts/lib/push-timing.mjs": Object.freeze([
|
|
4326
4337
|
"31de9d9357839e7e63292a4c18ede6c7b66e2cc2d562ede80036cc90f24d0d9f",
|
|
4338
|
+
"40ebd0bbadc04ad5c0aad78264f26b066e4cb4a8a811064af4888f932b99e0f4",
|
|
4339
|
+
"684c2e824e1d8682fffeef181e8801e8d4f6f5bc4d1c78ac6becbecb1eb199bd",
|
|
4340
|
+
"7f04b451325dfa5aea321ec5b5d1aa7f34e737c8395e3a8a2de7dcdbf7d22d3f",
|
|
4327
4341
|
"b2ff671d4b46de3b94518771850ff4f4b54c38f196e2f40cbf7b34ab02e40f19",
|
|
4328
4342
|
]),
|
|
4329
4343
|
"scripts/lib/reusable-workflow-load-adapter.d.mts": Object.freeze([
|
|
@@ -4631,6 +4645,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4631
4645
|
"92b3bcbe6051e04c53a6e60fd62e30c1176bbdacdcaf7e11f8e456ff9cd1c5d9",
|
|
4632
4646
|
"94640dede038608239edea5cffbf0227a86d77b3e4b9b9c6e3762369fa2de259",
|
|
4633
4647
|
"94a9bd9ebe4ae61e3dd6fa42875bfe6b81f818ae8669e8cac508b8dc2251a7c6",
|
|
4648
|
+
"95156e0e0b998ed9b444af97911accbe7764f6b4611376bad24539295fb9633d",
|
|
4634
4649
|
"95d021d8c199001bc669ffe19cc3a54590cc1cfa1524c3e278c410e47dcc4bdb",
|
|
4635
4650
|
"96077d0bbcf53ccc6b1baadef319cb9fa9979413bcff418ecea5abd136ff3491",
|
|
4636
4651
|
"98652623c7451d05e48239e1678ad7977a323eaf7ff5ca4b4f3bbc0798396859",
|
|
@@ -5085,9 +5100,11 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5085
5100
|
"f16196413b0050a805327f9d6d7b55913f9df70c8be4b8805bb9267e9abb4abf",
|
|
5086
5101
|
]),
|
|
5087
5102
|
"scripts/lisa-push-timing-report.mjs": Object.freeze([
|
|
5103
|
+
"0bfa5e899305b7c89d5b8e496953326ef2240e019bddebea63a5467ecae592bf",
|
|
5088
5104
|
"96aed02d22f93cc15ea83182c6fcf05a994ee45c7e38807dc34cf31d38ebbb70",
|
|
5089
5105
|
]),
|
|
5090
5106
|
"scripts/lisa-rails-gates.mjs": Object.freeze([
|
|
5107
|
+
"2e5c231ac779fcfd3ef3380282268d5e163544dabe41fb6ee41eb5109320c6c3",
|
|
5091
5108
|
"34e6fa2e8b5a1a5794e107b880b30780596f219af09f6128e13423036f272d31",
|
|
5092
5109
|
"5f8dd1f06848084c9381e0524397d32847c9c83c2099bc8bf285c2001003ff8c",
|
|
5093
5110
|
"6b2f0bf7d3689a8081ae1287b7a73115e46d0c305b7a648861edfb11a8bf0cb9",
|
|
@@ -5176,6 +5193,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5176
5193
|
"918dccb834291eeabcc947ccd5b6dc9f5c5523370e4dd4f637d071a8ad07e33e",
|
|
5177
5194
|
"92c3de77e2158e86db54876bf9f02ccd51ef892fdd8326ab9107b08044222a6a",
|
|
5178
5195
|
"94453bdae8ab3dd2eba0883c4b278027396090e0bdc8e2f102414abc6415912a",
|
|
5196
|
+
"99eb89df79bdee353136525d273cbb168b5c289f1ef0876120c73bf61d01901a",
|
|
5179
5197
|
"9b14c8864608e8ca390579048229bc0bbaba3094af0b536f1956085295c68af3",
|
|
5180
5198
|
"9c05ccc07c5b97bd7e910e235f2bd7bea9816fe2f5f282091557140c7ef7855e",
|
|
5181
5199
|
"9fa363107aa5ff033f150ff1a1bb5550d286de383b3d1f7b6c2ac2947730c8f2",
|
|
@@ -5548,6 +5566,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5548
5566
|
"44774fb225e22b19697907c32aa9582f0a114a3206bde1c1d95d0797994a7bef",
|
|
5549
5567
|
"45bb1e58fa069e51de109e75caf55544e4652a0f5afab4c692234073bae3a7e6",
|
|
5550
5568
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
5569
|
+
"48e627d114bf14b1faa3f2922bf171b82f1eb7d5c74fdf97ef495a8dc98d780d",
|
|
5551
5570
|
"4ba0a464fece333a2bcd8590d62e1881397ca5863958627b92a4b797afaebc45",
|
|
5552
5571
|
"4e3aeb528d0b8d9620151b445753266284ccc5f76185c75e042fd90e1826cf47",
|
|
5553
5572
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
@@ -5608,6 +5627,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5608
5627
|
"88f23c2b0763bc51976bb035011533bb655433f6dbf9ce6efd3278cdd43681ec",
|
|
5609
5628
|
"8a3c46d3501797ebb53a081c8b35e78e0ceb2b060503332b48e44ccc30d6d0df",
|
|
5610
5629
|
"8b3ef61c17d94bdf8eee99e02d396c975a12a8b8a3c2e34231eff6aaea3bf392",
|
|
5630
|
+
"8bc64fc8ba942bf5958988970af40def6dd7d77ca28fa373afb8a44f8a21ff4c",
|
|
5611
5631
|
"8c695c8ee36415fd7212d016cf7960d053bfdcc51129181aac6c2cdfc86d6865",
|
|
5612
5632
|
"8ddd6ca8b29a14434ff287cb7f07c5652efd39649ba5da2d981f153721f26f5a",
|
|
5613
5633
|
"8f2b36bc3fd7a7bde50b43f1cca4d9d2bbd7f6cd690d8766870291272cf077da",
|
|
@@ -5623,6 +5643,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5623
5643
|
"985fbb040eef3c9843f20c300d01ea11a4c578db116c04658e450deafeeef4e4",
|
|
5624
5644
|
"9941f4b52e04534c4a0526ef4deb41c8798db8b963e62f5afca0d248023fbef8",
|
|
5625
5645
|
"9c7b426995048105a34ca8406e8c12ae06fd02294064cdf250238b156117d9a4",
|
|
5646
|
+
"9dbe1d8ba2c9db60ecd1efbe467ee48e16ca26ecb32d08f5f982fbed5ce486e6",
|
|
5626
5647
|
"9de265a5876d56d72e237b97bcb006c11ea4411e51e786b16e1f4b488402bea0",
|
|
5627
5648
|
"9f2be0dcbdba3b42ea89fb8ebd363daf12b6c2709fb05459a9d682ccf5d5c1c6",
|
|
5628
5649
|
"9fd0930e93674df5d1dbb464bf85b6838b9781aadbd68a0e2eca5b48f00381a6",
|
|
@@ -5649,6 +5670,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
5649
5670
|
"b5643bb8b2659860fde47aa4fdeade8e4fb473f87416660c32f9bb862e26f368",
|
|
5650
5671
|
"b67b99e08c15aedbb2f1c4246c94106217eb83c5956d07e198f0e90d40893895",
|
|
5651
5672
|
"b922ba883be07b5bef68c3a9e5718bbd41eec7cbf8b2b1c28a7beb8fed38d19d",
|
|
5673
|
+
"ba8b289410a9a8c73afa4cda26a4631712b4a2f2e82eea4b50e50ecc07e7439c",
|
|
5652
5674
|
"baa8ffc248ce29c30d10b579960b34b7836c7d7f47651ced3cbb551dfee65291",
|
|
5653
5675
|
"baabc232fc5020953af42a3474dce8e2670a5e97af0cee4c19f8cb5105879000",
|
|
5654
5676
|
"bdc4ee248108dcb9a714c723df047b953ea5c9cd8fb774338f5fd01e9fbfc1fb",
|