@smoothbricks/nx-plugin 0.7.16 → 0.7.18
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/README.md +210 -64
- package/dist/.build-inputs.json +28 -23
- package/dist/bun-lock-scope.d.ts +128 -20
- package/dist/bun-lock-scope.d.ts.map +1 -1
- package/dist/bun-lock-scope.js +267 -44
- package/dist/cargo-closure-input.d.ts +8 -6
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +14 -11
- package/dist/cargo-source-hash.d.ts +23 -4
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +80 -14
- package/dist/cargo-workspace.d.ts +20 -2
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +42 -22
- package/dist/compile-environment.d.ts +8 -0
- package/dist/compile-environment.d.ts.map +1 -0
- package/dist/compile-environment.js +80 -0
- package/dist/dependency-manifests.d.ts +13 -0
- package/dist/dependency-manifests.d.ts.map +1 -0
- package/dist/dependency-manifests.js +20 -0
- package/dist/ensure-built-receipt.d.ts +3 -2
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +3 -2
- package/dist/eslint-config-closure.d.ts +8 -3
- package/dist/eslint-config-closure.d.ts.map +1 -1
- package/dist/eslint-config-closure.js +24 -5
- package/dist/executors/bounded-exec/bounds.d.ts +12 -1
- package/dist/executors/bounded-exec/bounds.d.ts.map +1 -1
- package/dist/executors/bounded-exec/bounds.js +8 -4
- package/dist/executors/bounded-exec/cpu-rise.d.ts +73 -0
- package/dist/executors/bounded-exec/cpu-rise.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-rise.js +111 -0
- package/dist/executors/bounded-exec/executor.d.ts +1 -1
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +54 -22
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +8 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
- package/dist/executors/bounded-exec/hang-diagnostics.js +66 -6
- package/dist/executors/bounded-exec/mbx-pool.d.ts +16 -2
- package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/mbx-pool.js +18 -2
- package/dist/executors/bounded-exec/mbx-reservations.d.ts +5 -2
- package/dist/executors/bounded-exec/mbx-reservations.d.ts.map +1 -1
- package/dist/executors/bounded-exec/mbx-reservations.js +5 -3
- package/dist/executors/bounded-exec/progress-channel.d.ts +38 -0
- package/dist/executors/bounded-exec/progress-channel.d.ts.map +1 -0
- package/dist/executors/bounded-exec/progress-channel.js +113 -0
- package/dist/executors/bounded-exec/progress.d.ts +2 -1
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.d.ts +24 -1
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.js +123 -16
- package/dist/executors/bounded-exec/schema.d.ts +5 -0
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/schema.js +17 -1
- package/dist/executors/bounded-exec/verdict.d.ts +13 -6
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +34 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +216 -97
- package/dist/managed-files/files.d.ts +3 -3
- package/dist/managed-files/files.js +3 -3
- package/dist/managed-files/generator.d.ts +5 -1
- package/dist/managed-files/generator.d.ts.map +1 -1
- package/dist/managed-files/generator.js +22 -7
- package/dist/managed-files/render-memo.d.ts +13 -0
- package/dist/managed-files/render-memo.d.ts.map +1 -0
- package/dist/managed-files/render-memo.js +94 -0
- package/dist/test-program.d.ts +11 -6
- package/dist/test-program.d.ts.map +1 -1
- package/dist/test-program.js +39 -35
- package/dist/tool-bins.d.ts +12 -0
- package/dist/tool-bins.d.ts.map +1 -1
- package/dist/tool-bins.js +31 -6
- package/dist/typecheck-route.d.ts +3 -4
- package/dist/typecheck-route.d.ts.map +1 -1
- package/dist/typecheck-route.js +4 -15
- package/dist/typecheck-test-policy.d.ts +10 -1
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +40 -24
- package/dist/workspace-index.d.ts +14 -1
- package/dist/workspace-index.d.ts.map +1 -1
- package/dist/workspace-index.js +36 -4
- package/managed/raw/patches/nx@24.0.3.patch +703 -119
- package/managed/raw/patches/{ttsc@0.34.1.patch → ttsc@0.36.3.patch} +728 -71
- package/managed/raw/tooling/direnv/developer-links.ts +17 -3
- package/managed/raw/tooling/direnv/devenv.smoo.nix +1 -1
- package/managed/templates/github/actions/save-nix-devenv/action.yml +19 -1
- package/managed/templates/github/actions/setup-devenv/action.yml +2 -0
- package/package.json +5 -4
- package/src/bun-lock-scope.ts +293 -40
- package/src/cargo-closure-input.ts +19 -11
- package/src/cargo-source-hash.ts +103 -13
- package/src/cargo-workspace.ts +59 -20
- package/src/compile-environment.ts +35 -0
- package/src/dependency-manifests.ts +30 -0
- package/src/ensure-built-receipt.ts +3 -2
- package/src/eslint-config-closure.ts +27 -6
- package/src/executors/bounded-exec/bounds.ts +13 -4
- package/src/executors/bounded-exec/cpu-rise.ts +156 -0
- package/src/executors/bounded-exec/executor.ts +65 -21
- package/src/executors/bounded-exec/hang-diagnostics.ts +88 -6
- package/src/executors/bounded-exec/mbx-pool.ts +24 -3
- package/src/executors/bounded-exec/mbx-reservations.ts +7 -5
- package/src/executors/bounded-exec/progress-channel.ts +129 -0
- package/src/executors/bounded-exec/progress.ts +2 -1
- package/src/executors/bounded-exec/ram-temp.ts +137 -17
- package/src/executors/bounded-exec/schema.ts +19 -0
- package/src/executors/bounded-exec/verdict.ts +44 -16
- package/src/index.ts +272 -106
- package/src/managed-files/files.ts +3 -3
- package/src/managed-files/generator.ts +21 -6
- package/src/managed-files/render-memo.ts +135 -0
- package/src/test-program.ts +36 -41
- package/src/tool-bins.ts +35 -6
- package/src/typecheck-route.ts +5 -14
- package/src/typecheck-test-policy.ts +49 -24
- package/src/workspace-index.ts +40 -5
- package/test-timings.json +6 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { describeTeardown, killProcessGroupNow, TEARDOWN_PATIENCE } from '../../process-group.js';
|
|
3
3
|
import { withDescendants } from '../../testing.js';
|
|
4
|
+
import { CPU_RISING_CLASS, cpuChange, cpuRiseThresholdsMs, describeCpuRise, describeCpuThresholds, parseCpuTime, } from './cpu-rise.js';
|
|
4
5
|
import { describeHolders, lockCandidates, lockWaits, parseLsofFields, parseLsofTable, } from './lock-wait.js';
|
|
5
6
|
/**
|
|
6
7
|
* The pre-expiry capture window. Stack samples set it: under load averages of 27-52 on 18 cores one `sudo -n sample`
|
|
@@ -8,7 +9,15 @@ import { describeHolders, lockCandidates, lockWaits, parseLsofFields, parseLsofT
|
|
|
8
9
|
*/
|
|
9
10
|
export const HANG_CAPTURE_MS = 10_000;
|
|
10
11
|
const MAX_PROBE_BYTES = 4 * 1024 * 1024;
|
|
11
|
-
const PS_FIELDS = 'pid=,ppid=,pgid=,stat=,%cpu=,etime=,lstart=,command=';
|
|
12
|
+
const PS_FIELDS = 'pid=,ppid=,pgid=,stat=,%cpu=,etime=,cputime=,lstart=,command=';
|
|
13
|
+
/**
|
|
14
|
+
* The least time between the two process censuses, which are the snapshot's two CPU samples. A process is named
|
|
15
|
+
* after gaining 2 s where ps counts whole seconds and 0.5 s where it counts centiseconds (cpuRiseThresholdMs), so five
|
|
16
|
+
* seconds show a process at 40% or at 10% of a core. On Darwin the stack samples have usually spent most of it;
|
|
17
|
+
* elsewhere, or when sudo refuses them, the snapshot pauses, inside its window and early enough that the closing
|
|
18
|
+
* census keeps its own limit.
|
|
19
|
+
*/
|
|
20
|
+
const CPU_INTERVAL_MS = 5_000;
|
|
12
21
|
/**
|
|
13
22
|
* Stack samples: `sample` suspends a process every millisecond for one second and reports its threads' call graph. The
|
|
14
23
|
* runner and at most this many leaf processes are sampled, all at once. `-mayDie` is not passed: it reads symbols
|
|
@@ -38,7 +47,20 @@ function callGraph(report) {
|
|
|
38
47
|
const end = report.indexOf('\nBinary Images:');
|
|
39
48
|
return (end === -1 ? report : report.slice(0, end)).trim();
|
|
40
49
|
}
|
|
41
|
-
const host = { platform: process.platform, probe: runProbe };
|
|
50
|
+
const host = { platform: process.platform, probe: runProbe, sleep: sleepUnlessAborted };
|
|
51
|
+
function sleepUnlessAborted(ms, signal) {
|
|
52
|
+
return new Promise((resolve) => {
|
|
53
|
+
const done = () => {
|
|
54
|
+
clearTimeout(timer);
|
|
55
|
+
signal.removeEventListener('abort', done);
|
|
56
|
+
resolve();
|
|
57
|
+
};
|
|
58
|
+
const timer = setTimeout(done, ms);
|
|
59
|
+
signal.addEventListener('abort', done, { once: true });
|
|
60
|
+
if (signal.aborted)
|
|
61
|
+
done();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
42
64
|
/** A pre-expiry observation, never an assertion that an open file is a contested lock. */
|
|
43
65
|
export function captureHangDiagnostics(request, source = host) {
|
|
44
66
|
const startedAtMs = Date.now();
|
|
@@ -53,6 +75,7 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
53
75
|
const during = () => (active.size === 0 ? 'process census' : [...active].join(', '));
|
|
54
76
|
let finished = false;
|
|
55
77
|
let waits = [];
|
|
78
|
+
let rising = [];
|
|
56
79
|
// This package targets lib es2022, which does not declare Promise.withResolvers.
|
|
57
80
|
return new Promise((resolve) => {
|
|
58
81
|
const finish = (outcome) => {
|
|
@@ -70,6 +93,7 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
70
93
|
offsetFromExpiryMs,
|
|
71
94
|
outcome,
|
|
72
95
|
lockWaits: outcome === 'incomplete' ? [] : waits,
|
|
96
|
+
cpuRising: rising,
|
|
73
97
|
text: `${lines.join('\n')}\nHang snapshot outcome=${outcome} capturedAtMs=${capturedAtMs} offsetFromExpiryMs=${offsetFromExpiryMs}\n`,
|
|
74
98
|
});
|
|
75
99
|
};
|
|
@@ -116,27 +140,37 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
116
140
|
}
|
|
117
141
|
const parsed = [];
|
|
118
142
|
for (const row of result.stdout.split('\n').filter((line) => line.trim() !== '')) {
|
|
119
|
-
const match = /^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+\s+\S+\s+\d+\s+\d\d:\d\d:\d\d\s+\d{4})\s+(.*)$/.exec(row);
|
|
143
|
+
const match = /^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+\s+\S+\s+\d+\s+\d\d:\d\d:\d\d\s+\d{4})\s+(.*)$/.exec(row);
|
|
120
144
|
if (match === null) {
|
|
121
145
|
lines.push(`${name}: could not decode ps row: ${row}`);
|
|
122
146
|
return null;
|
|
123
147
|
}
|
|
124
|
-
const [, pid, ppid, pgid, stat, , , started, command] = match;
|
|
148
|
+
const [, pid, ppid, pgid, stat, , , cputime, started, command] = match;
|
|
125
149
|
if (pid === undefined ||
|
|
126
150
|
ppid === undefined ||
|
|
127
151
|
pgid === undefined ||
|
|
128
152
|
stat === undefined ||
|
|
153
|
+
cputime === undefined ||
|
|
129
154
|
started === undefined ||
|
|
130
155
|
command === undefined) {
|
|
131
156
|
lines.push(`${name}: incomplete ps row: ${row}`);
|
|
132
157
|
return null;
|
|
133
158
|
}
|
|
134
|
-
parsed.push({
|
|
159
|
+
parsed.push({
|
|
160
|
+
pid: Number(pid),
|
|
161
|
+
ppid: Number(ppid),
|
|
162
|
+
pgid: Number(pgid),
|
|
163
|
+
stat,
|
|
164
|
+
cpu: parseCpuTime(cputime),
|
|
165
|
+
started,
|
|
166
|
+
command,
|
|
167
|
+
raw: row,
|
|
168
|
+
});
|
|
135
169
|
}
|
|
136
170
|
const roots = [request.pid, ...parsed.filter((entry) => entry.pgid === request.pgid).map((entry) => entry.pid)];
|
|
137
171
|
const selected = new Set(withDescendants(parsed, roots).map((entry) => entry.pid));
|
|
138
172
|
const tree = parsed.filter((entry) => selected.has(entry.pid));
|
|
139
|
-
lines.push(`${name}: PID PPID PGID STAT %CPU ELAPSED STARTED COMMAND`);
|
|
173
|
+
lines.push(`${name}: PID PPID PGID STAT %CPU ELAPSED CPUTIME STARTED COMMAND`);
|
|
140
174
|
lines.push(...tree.map((entry) => entry.raw));
|
|
141
175
|
if (!tree.some((entry) => entry.pid === request.pid)) {
|
|
142
176
|
lines.push(`${name}: root pid ${request.pid} exited or is not visible; capture raced or is incomplete.`);
|
|
@@ -203,6 +237,7 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
203
237
|
return;
|
|
204
238
|
if (before === null)
|
|
205
239
|
return finish('incomplete');
|
|
240
|
+
const beforeAtMs = Date.now();
|
|
206
241
|
let incomplete = false;
|
|
207
242
|
let observed = before.length > 0;
|
|
208
243
|
if (source.platform === 'darwin') {
|
|
@@ -259,11 +294,20 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
259
294
|
lines.push(`Open-file census not provided on ${source.platform}; observations below name processes only.`);
|
|
260
295
|
lines.push(`Stack samples not provided on ${source.platform}; no blocking call is observed.`);
|
|
261
296
|
}
|
|
297
|
+
const settleMs = Math.min(beforeAtMs + CPU_INTERVAL_MS, endsAtMs - CENSUS_LIMIT_MS) - Date.now();
|
|
298
|
+
if (settleMs > 0) {
|
|
299
|
+
active.add('CPU interval');
|
|
300
|
+
await source.sleep(settleMs, controller.signal);
|
|
301
|
+
active.delete('CPU interval');
|
|
302
|
+
if (finished)
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
262
305
|
const after = await census('ps after');
|
|
263
306
|
if (finished)
|
|
264
307
|
return;
|
|
265
308
|
if (after === null)
|
|
266
309
|
return finish('incomplete');
|
|
310
|
+
const afterAtMs = Date.now();
|
|
267
311
|
if (before.length !== after.length ||
|
|
268
312
|
before.some((entry) => !after.some((other) => other.pid === entry.pid &&
|
|
269
313
|
other.ppid === entry.ppid &&
|
|
@@ -274,6 +318,22 @@ export function captureHangDiagnostics(request, source = host) {
|
|
|
274
318
|
incomplete = true;
|
|
275
319
|
lines.push('Process identities or membership changed during capture; open-file census raced.');
|
|
276
320
|
}
|
|
321
|
+
const change = cpuChange(before, after);
|
|
322
|
+
const thresholdsMs = cpuRiseThresholdsMs(before, after);
|
|
323
|
+
rising = change.rising;
|
|
324
|
+
const intervalMs = afterAtMs - beforeAtMs;
|
|
325
|
+
if (change.unread.length > 0) {
|
|
326
|
+
lines.push(`CPU time not read for pid ${change.unread.join(', ')}: ps printed none that parses, so they are not counted idle.`);
|
|
327
|
+
}
|
|
328
|
+
if (rising.length > 0) {
|
|
329
|
+
lines.push(`CPU rose in the tree over about ${intervalMs}ms between the censuses (a rise is named from ${describeCpuThresholds(thresholdsMs)} of CPU):`, ...rising.map((rise) => ` ${describeCpuRise(rise)}`), `Classification: ${CPU_RISING_CLASS}`);
|
|
330
|
+
}
|
|
331
|
+
else if (thresholdsMs.length === 0) {
|
|
332
|
+
lines.push('CPU: no process of the tree had a CPU time ps gave in both censuses, so none was compared.');
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
lines.push(`CPU: no process of the tree gained ${describeCpuThresholds(thresholdsMs)} of CPU over about ${intervalMs}ms between the censuses.`);
|
|
336
|
+
}
|
|
277
337
|
if (!incomplete) {
|
|
278
338
|
for (const wait of waits) {
|
|
279
339
|
lines.push(`Lock wait (open-handle evidence, not a kernel lock owner): ${wait.path} open in the run by pid ${wait.waiters.join(', ')} and outside it by ${describeHolders(wait.holders)}`);
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { type Demand, type ReservedDemand } from './runner-sizing.js';
|
|
2
|
+
/**
|
|
3
|
+
* mbx's pool priorities, as `MBX_SCHEDULER_PRIORITY` and a reservation name them: interactive work's `interactive`,
|
|
4
|
+
* which mbx ranks first and decays as its job ages, a gate's `normal`, every other job's `low` (cowshed's
|
|
5
|
+
* `PoolPriority`).
|
|
6
|
+
*/
|
|
7
|
+
export declare const MBX_PRIORITIES: readonly ['interactive', 'normal', 'low'];
|
|
8
|
+
export type MbxPriority = (typeof MBX_PRIORITIES)[number];
|
|
2
9
|
/**
|
|
3
10
|
* mbx's machine-wide pool as a leaf runner meets it (specs/cowshed/05_gateway.md, "Host scheduling", "Parallelism inside
|
|
4
11
|
* a job"). With the mbx capability the canonical environment names the one pool (`MBX_SCHEDULER=1` beside the shared
|
|
@@ -6,7 +13,7 @@ import { type Demand, type ReservedDemand } from './runner-sizing.js';
|
|
|
6
13
|
* serves a pool of its own beside it.
|
|
7
14
|
*/
|
|
8
15
|
export interface MbxPool {
|
|
9
|
-
readonly priority:
|
|
16
|
+
readonly priority: MbxPriority;
|
|
10
17
|
}
|
|
11
18
|
/**
|
|
12
19
|
* The pool the environment names, or `null` where the project has no mbx and cowshed's own pools apply unchanged, or
|
|
@@ -33,7 +40,7 @@ export type MbxLeaf = {
|
|
|
33
40
|
readonly kind: 'cargo';
|
|
34
41
|
} | {
|
|
35
42
|
readonly kind: 'reserve';
|
|
36
|
-
readonly priority:
|
|
43
|
+
readonly priority: MbxPriority;
|
|
37
44
|
readonly demand: ReservedDemand;
|
|
38
45
|
};
|
|
39
46
|
/** A leaf mbx's pool reserves for. */
|
|
@@ -50,6 +57,13 @@ export declare function runsPrebuiltNextest(command: string): boolean;
|
|
|
50
57
|
* cores busy while 25 of its tasks queued a minute or more, and a gate's Go test leaf waited 401 s for all 18 cores.
|
|
51
58
|
*/
|
|
52
59
|
export declare function mbxLeaf(pool: MbxPool, demand: Demand, command: string): MbxLeaf | null;
|
|
60
|
+
/**
|
|
61
|
+
* Whether a run of `command` under mbx's pool is a Cargo leaf: the one leaf whose admission wait the run reads from
|
|
62
|
+
* mbx's activity report and its waiters' native lineage (mbx-queue.ts; specs/cowshed/11_shell.md, "Cargo test-runner
|
|
63
|
+
* boundaries"), so the only run that loads cowshed's process-lineage entry and its addon. The command alone decides
|
|
64
|
+
* it: the pool's priority, the core count and the environment size a leaf, never its kind.
|
|
65
|
+
*/
|
|
66
|
+
export declare function runsAsCargoLeaf(command: string): boolean;
|
|
53
67
|
/**
|
|
54
68
|
* Only a known scheduled execution may stop its idle clock at zero holds. Plain Cargo tests can run doctests;
|
|
55
69
|
* archive-file targets, direct binaries and other runners are not proven scheduled at spawn (11_shell.md,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mbx-pool.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/mbx-pool.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,MAAM,EAIX,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"mbx-pool.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/mbx-pool.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,MAAM,EAIX,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAG5B;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAI,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,GAAG,IAAI,CAMhF;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,OAAO,GACf;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,CAAC;AAEN,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC;AAKjE,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAoBtF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAExD;AASD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,CAkDrH;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM,CAKzE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAInG;AAkBD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIpE"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { shellTokens } from '../../runtime-input-policy.js';
|
|
2
|
-
import { CPU_TOKENS_ENV, GRANTED_CPUS_ENV, grantedSizing, invocationSpan, WANT_ENV, } from './runner-sizing.js';
|
|
2
|
+
import { CPU_TOKENS_ENV, GRANTED_CPUS_ENV, grantedSizing, invocationSpan, runnerDemand, WANT_ENV, } from './runner-sizing.js';
|
|
3
3
|
import { shellQuote } from './verdict.js';
|
|
4
|
+
/**
|
|
5
|
+
* mbx's pool priorities, as `MBX_SCHEDULER_PRIORITY` and a reservation name them: interactive work's `interactive`,
|
|
6
|
+
* which mbx ranks first and decays as its job ages, a gate's `normal`, every other job's `low` (cowshed's
|
|
7
|
+
* `PoolPriority`).
|
|
8
|
+
*/
|
|
9
|
+
export const MBX_PRIORITIES = ['interactive', 'normal', 'low'];
|
|
4
10
|
/**
|
|
5
11
|
* The pool the environment names, or `null` where the project has no mbx and cowshed's own pools apply unchanged, or
|
|
6
12
|
* where this run is already inside an mbx reservation: whatever holds one hands its work `MBX_SCHED_DISABLE=1` (a
|
|
@@ -13,7 +19,8 @@ export function mbxPool(environment) {
|
|
|
13
19
|
if (environment.MBX_SCHEDULER !== '1' || !environment.MBX_CACHE_DIR || environment.MBX_SCHED_DISABLE === '1') {
|
|
14
20
|
return null;
|
|
15
21
|
}
|
|
16
|
-
|
|
22
|
+
const named = MBX_PRIORITIES.find((priority) => priority === environment.MBX_SCHEDULER_PRIORITY);
|
|
23
|
+
return { priority: named ?? 'low' };
|
|
17
24
|
}
|
|
18
25
|
/** A nextest invocation that runs test binaries already built, from extracted archive metadata or an archive file. */
|
|
19
26
|
const PREBUILT_NEXTEST = /(?<![\w-])--(?:binaries-metadata|archive-file)(?=[=\s]|$)/;
|
|
@@ -49,6 +56,15 @@ export function mbxLeaf(pool, demand, command) {
|
|
|
49
56
|
return reserve(demand);
|
|
50
57
|
}
|
|
51
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Whether a run of `command` under mbx's pool is a Cargo leaf: the one leaf whose admission wait the run reads from
|
|
61
|
+
* mbx's activity report and its waiters' native lineage (mbx-queue.ts; specs/cowshed/11_shell.md, "Cargo test-runner
|
|
62
|
+
* boundaries"), so the only run that loads cowshed's process-lineage entry and its addon. The command alone decides
|
|
63
|
+
* it: the pool's priority, the core count and the environment size a leaf, never its kind.
|
|
64
|
+
*/
|
|
65
|
+
export function runsAsCargoLeaf(command) {
|
|
66
|
+
return mbxLeaf({ priority: 'low' }, runnerDemand(command, undefined, 1, {}), command)?.kind === 'cargo';
|
|
67
|
+
}
|
|
52
68
|
/**
|
|
53
69
|
* The value an in-place runner gives `--target-dir-remap`: smoo-nx-nextest-binaries' answer, quoted. The plugin infers
|
|
54
70
|
* the native helper; a repository's own runner may name its script through bun, which prints the same path.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { PostTasksExecutionContext, PreTasksExecutionContext } from 'nx/src/project-graph/plugins/public-api.js';
|
|
2
|
+
import { type MbxPriority } from './mbx-pool.js';
|
|
2
3
|
/**
|
|
3
4
|
* mbx's reservation endpoint of one Nx run (specs/cowshed/05_gateway.md, "Parallelism inside a job"). A reserved leaf
|
|
4
5
|
* once ran under its own `mbx reserve`, two mbx processes per task whose dynamic loading alone kept the host's vnode
|
|
5
6
|
* table recycling. With mbx's pool, the run's `preTasksExecution` starts `mbx reservations <socket>` once and publishes
|
|
6
7
|
* the socket in `RESERVATIONS_ENV`, which every task inherits; each task's executor asks it for its leaf's cores over
|
|
7
8
|
* one connection per process (`reserveCores`), and the run's `postTasksExecution` closes the endpoint's standard input,
|
|
8
|
-
* which ends it.
|
|
9
|
+
* which ends it. Nx runs both hooks in the process that runs the tasks, never in a daemon (patches/README.md, "A run's
|
|
10
|
+
* task hooks run in its own process"), so the endpoint is a child of the run and ends with it, whatever becomes of the
|
|
11
|
+
* run's daemon. Admission is `mbx reserve`'s: the same pool, priority and order. A grant lasts until its leaf ends, or
|
|
9
12
|
* until its connection closes, so an executor that dies gives back what it held.
|
|
10
13
|
*/
|
|
11
14
|
export declare const RESERVATIONS_ENV = "MBX_RESERVATIONS_SOCKET";
|
|
@@ -59,5 +62,5 @@ export interface Reservation {
|
|
|
59
62
|
* Ask the endpoint at `socket` for at most `cpus` cores at `priority`, over this process's one connection to it,
|
|
60
63
|
* opened by its first request and kept while another one may come.
|
|
61
64
|
*/
|
|
62
|
-
export declare function reserveCores(socket: string, cpus: number, priority:
|
|
65
|
+
export declare function reserveCores(socket: string, cpus: number, priority: MbxPriority): Reservation;
|
|
63
66
|
//# sourceMappingURL=mbx-reservations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mbx-reservations.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/mbx-reservations.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"mbx-reservations.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/mbx-reservations.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAItH,OAAO,EAAE,KAAK,WAAW,EAAW,MAAM,eAAe,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,uCAAuC,CAAC;AAE9E,wEAAwE;AACxE,MAAM,MAAM,WAAW,GACnB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAErC,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,WAAW,CAKzE;AAED,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GAAG,MAAM,CAI3F;AAmBD;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,EAC7C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAAC,IAAI,CAAC,CAef;AAED,6GAA6G;AAC7G,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC,yBAAyB,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAYxG;AAsED,wHAAwH;AACxH,MAAM,MAAM,OAAO,GACf;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,GAC5E;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,6FAA6F;IAC7F,OAAO,IAAI,IAAI,CAAC;CACjB;AAgID;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,WAAW,CAU7F"}
|
|
@@ -17,7 +17,9 @@ import { mbxPool } from './mbx-pool.js';
|
|
|
17
17
|
* table recycling. With mbx's pool, the run's `preTasksExecution` starts `mbx reservations <socket>` once and publishes
|
|
18
18
|
* the socket in `RESERVATIONS_ENV`, which every task inherits; each task's executor asks it for its leaf's cores over
|
|
19
19
|
* one connection per process (`reserveCores`), and the run's `postTasksExecution` closes the endpoint's standard input,
|
|
20
|
-
* which ends it.
|
|
20
|
+
* which ends it. Nx runs both hooks in the process that runs the tasks, never in a daemon (patches/README.md, "A run's
|
|
21
|
+
* task hooks run in its own process"), so the endpoint is a child of the run and ends with it, whatever becomes of the
|
|
22
|
+
* run's daemon. Admission is `mbx reserve`'s: the same pool, priority and order. A grant lasts until its leaf ends, or
|
|
21
23
|
* until its connection closes, so an executor that dies gives back what it held.
|
|
22
24
|
*/
|
|
23
25
|
export const RESERVATIONS_ENV = 'MBX_RESERVATIONS_SOCKET';
|
|
@@ -153,11 +155,11 @@ const stringifyRequest = (() => {
|
|
|
153
155
|
else
|
|
154
156
|
_throwTypeGuardError_1._throwTypeGuardError({
|
|
155
157
|
method: "typia.json.createStringify",
|
|
156
|
-
expected: "({ type: \"reserve\"; id: Uint; cpus: number & Type<\"uint32\"> & Minimum<1>; priority: \"low\" | \"normal\"; } | { type: \"release\"; id: Uint; })",
|
|
158
|
+
expected: "({ type: \"reserve\"; id: Uint; cpus: number & Type<\"uint32\"> & Minimum<1>; priority: \"interactive\" | \"low\" | \"normal\"; } | { type: \"release\"; id: Uint; })",
|
|
157
159
|
value: input
|
|
158
160
|
});
|
|
159
161
|
})();
|
|
160
|
-
const _io0 = input => "reserve" === input.type && _ip0(input) && ("number" === typeof input.cpus && (_isTypeUint32_1._isTypeUint32(input.cpus) && 1 <= input.cpus)) && ("low" === input.priority || "normal" === input.priority);
|
|
162
|
+
const _io0 = input => "reserve" === input.type && _ip0(input) && ("number" === typeof input.cpus && (_isTypeUint32_1._isTypeUint32(input.cpus) && 1 <= input.cpus)) && ("interactive" === input.priority || "low" === input.priority || "normal" === input.priority);
|
|
161
163
|
const _io1 = input => "release" === input.type && _ip0(input);
|
|
162
164
|
return input => _su0(input);
|
|
163
165
|
})();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A run's progress channel: a running test reports its own forward motion on it, and each record restarts the idle
|
|
3
|
+
* bound as a finished test does (specs/cowshed/08_testing.md, "Integration tests (real substrate)"). An agent harness
|
|
4
|
+
* that enforces its own no-progress bound over what its run does (a span written, a byte of output) reports each
|
|
5
|
+
* movement that check sees, so a long test that keeps moving is not ended because it is the last test still running.
|
|
6
|
+
* CPU is never a record: a compile inside a test reports nothing and is still ended at the bound, where the pre-signal
|
|
7
|
+
* snapshot names it (cpu-rise.ts).
|
|
8
|
+
*
|
|
9
|
+
* The channel is a Unix stream socket the executor serves for one run, in a fresh 0700 directory, and names in the
|
|
10
|
+
* command's environment as {@link PROGRESS_SOCKET_ENV}. Each line a client writes is one record and must be
|
|
11
|
+
* {@link PROGRESS_RECORD}; anything else is a broken reporter, said and failed, never read as progress. A client may
|
|
12
|
+
* write one record per connection or many. The server ends its side when the client ends its own, after every record
|
|
13
|
+
* the client wrote was read, so a client that waits for that end knows its records counted.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PROGRESS_SOCKET_ENV = "BOUNDED_EXEC_PROGRESS_SOCKET";
|
|
16
|
+
/** The one record: something the test watches moved. */
|
|
17
|
+
export declare const PROGRESS_RECORD = "moved";
|
|
18
|
+
export interface ProgressChannel {
|
|
19
|
+
/** The socket's path, as the command's environment names it. */
|
|
20
|
+
readonly socket: string;
|
|
21
|
+
/** Ends every connection and removes the socket's directory; the error that left something behind, or null. */
|
|
22
|
+
close(): Promise<string | null>;
|
|
23
|
+
}
|
|
24
|
+
export interface ProgressHandlers {
|
|
25
|
+
/** A record was read. */
|
|
26
|
+
readonly moved: () => void;
|
|
27
|
+
/** A client wrote something that is not a record; its connection is ended. */
|
|
28
|
+
readonly invalid: (detail: string) => void;
|
|
29
|
+
}
|
|
30
|
+
/** Serve one run's progress channel; a channel that cannot be served is the run's refusal, never a silent bound. */
|
|
31
|
+
export declare function serveProgressChannel(handlers: ProgressHandlers): Promise<{
|
|
32
|
+
ok: true;
|
|
33
|
+
channel: ProgressChannel;
|
|
34
|
+
} | {
|
|
35
|
+
ok: false;
|
|
36
|
+
error: string;
|
|
37
|
+
}>;
|
|
38
|
+
//# sourceMappingURL=progress-channel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-channel.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/progress-channel.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,wDAAwD;AACxD,eAAO,MAAM,eAAe,UAAU,CAAC;AAOvC,MAAM,WAAW,eAAe;IAC9B,gEAAgE;IAChE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,KAAK,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,gBAAgB;IAC/B,yBAAyB;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAUD,oHAAoH;AACpH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CA2EhF"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { rm } from 'node:fs/promises';
|
|
2
|
+
import { createServer } from 'node:net';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { ownedSocketDirectory } from '../../testing.js';
|
|
5
|
+
/**
|
|
6
|
+
* A run's progress channel: a running test reports its own forward motion on it, and each record restarts the idle
|
|
7
|
+
* bound as a finished test does (specs/cowshed/08_testing.md, "Integration tests (real substrate)"). An agent harness
|
|
8
|
+
* that enforces its own no-progress bound over what its run does (a span written, a byte of output) reports each
|
|
9
|
+
* movement that check sees, so a long test that keeps moving is not ended because it is the last test still running.
|
|
10
|
+
* CPU is never a record: a compile inside a test reports nothing and is still ended at the bound, where the pre-signal
|
|
11
|
+
* snapshot names it (cpu-rise.ts).
|
|
12
|
+
*
|
|
13
|
+
* The channel is a Unix stream socket the executor serves for one run, in a fresh 0700 directory, and names in the
|
|
14
|
+
* command's environment as {@link PROGRESS_SOCKET_ENV}. Each line a client writes is one record and must be
|
|
15
|
+
* {@link PROGRESS_RECORD}; anything else is a broken reporter, said and failed, never read as progress. A client may
|
|
16
|
+
* write one record per connection or many. The server ends its side when the client ends its own, after every record
|
|
17
|
+
* the client wrote was read, so a client that waits for that end knows its records counted.
|
|
18
|
+
*/
|
|
19
|
+
export const PROGRESS_SOCKET_ENV = 'BOUNDED_EXEC_PROGRESS_SOCKET';
|
|
20
|
+
/** The one record: something the test watches moved. */
|
|
21
|
+
export const PROGRESS_RECORD = 'moved';
|
|
22
|
+
const CHANNEL_DIRECTORY = 'bounded-progress-';
|
|
23
|
+
const CHANNEL_SOCKET = 'p.sock';
|
|
24
|
+
/** How much of a refused line its refusal quotes. */
|
|
25
|
+
const QUOTED_CHARS = 80;
|
|
26
|
+
function describe(error) {
|
|
27
|
+
return error instanceof Error ? error.message : String(error);
|
|
28
|
+
}
|
|
29
|
+
function quoted(line) {
|
|
30
|
+
return JSON.stringify(line.length > QUOTED_CHARS ? `${line.slice(0, QUOTED_CHARS)}…` : line);
|
|
31
|
+
}
|
|
32
|
+
/** Serve one run's progress channel; a channel that cannot be served is the run's refusal, never a silent bound. */
|
|
33
|
+
export async function serveProgressChannel(handlers) {
|
|
34
|
+
let directory;
|
|
35
|
+
try {
|
|
36
|
+
directory = await ownedSocketDirectory(CHANNEL_DIRECTORY, CHANNEL_SOCKET);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
return { ok: false, error: `its directory could not be made: ${describe(error)}` };
|
|
40
|
+
}
|
|
41
|
+
const socketPath = join(directory, CHANNEL_SOCKET);
|
|
42
|
+
const clients = new Set();
|
|
43
|
+
const serve = (client) => {
|
|
44
|
+
clients.add(client);
|
|
45
|
+
client.on('close', () => clients.delete(client));
|
|
46
|
+
// A client that dies mid-record (its test was killed) loses that record with its connection; nothing else is read.
|
|
47
|
+
client.on('error', () => { });
|
|
48
|
+
client.setEncoding('utf8');
|
|
49
|
+
let partial = '';
|
|
50
|
+
const refuse = (detail) => {
|
|
51
|
+
partial = '';
|
|
52
|
+
client.destroy();
|
|
53
|
+
handlers.invalid(detail);
|
|
54
|
+
};
|
|
55
|
+
client.on('data', (text) => {
|
|
56
|
+
const lines = (partial + text).split('\n');
|
|
57
|
+
partial = lines.pop() ?? '';
|
|
58
|
+
for (const line of lines) {
|
|
59
|
+
if (line !== PROGRESS_RECORD) {
|
|
60
|
+
refuse(`a progress record is the line ${PROGRESS_RECORD}, not ${quoted(line)}`);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
handlers.moved();
|
|
64
|
+
}
|
|
65
|
+
// No prefix longer than the record can still become one.
|
|
66
|
+
if (partial.length > PROGRESS_RECORD.length) {
|
|
67
|
+
refuse(`a progress record is the line ${PROGRESS_RECORD}, not ${quoted(partial)}`);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
client.on('end', () => {
|
|
71
|
+
if (partial !== '')
|
|
72
|
+
refuse(`a progress connection ended inside a record: ${quoted(partial)}`);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
const server = createServer(serve);
|
|
76
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: listen is this process's own bind of a path in its fresh directory; the kernel answers it with the listening callback or an error, and no peer takes part
|
|
77
|
+
const listened = await new Promise((settle) => {
|
|
78
|
+
server.once('error', settle);
|
|
79
|
+
server.listen(socketPath, () => {
|
|
80
|
+
server.off('error', settle);
|
|
81
|
+
settle(null);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
const close = async () => {
|
|
85
|
+
const failures = [];
|
|
86
|
+
for (const client of clients)
|
|
87
|
+
client.destroy();
|
|
88
|
+
if (listened === null) {
|
|
89
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: every accepted connection was destroyed just above, so the server closes without waiting on a peer
|
|
90
|
+
const closed = await new Promise((settle) => server.close(settle));
|
|
91
|
+
if (closed !== undefined)
|
|
92
|
+
failures.push(`its socket did not close: ${closed.message}`);
|
|
93
|
+
}
|
|
94
|
+
try {
|
|
95
|
+
await rm(directory, { recursive: true, force: true });
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
failures.push(`its directory was not removed: ${describe(error)}`);
|
|
99
|
+
}
|
|
100
|
+
return failures.length === 0 ? null : `the progress channel at ${socketPath}: ${failures.join('; ')}`;
|
|
101
|
+
};
|
|
102
|
+
if (listened !== null) {
|
|
103
|
+
const left = await close();
|
|
104
|
+
return {
|
|
105
|
+
ok: false,
|
|
106
|
+
error: `it could not listen at ${socketPath}: ${listened.message}${left === null ? '' : `; ${left}`}`,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
server.on('error', (error) => {
|
|
110
|
+
handlers.invalid(`the progress channel at ${socketPath} failed: ${error.message}`);
|
|
111
|
+
});
|
|
112
|
+
return { ok: true, channel: { socket: socketPath, close } };
|
|
113
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { NativeTestResult } from './test-result-writer.js';
|
|
2
2
|
/**
|
|
3
3
|
* What a run's output says about its forward motion: whether a test finished, and which tests the runner said
|
|
4
|
-
* are running and has not said finished. `idleTimeoutMs` re-arms only on a finished test
|
|
4
|
+
* are running and has not said finished. In the output, `idleTimeoutMs` re-arms only on a finished test; a running test
|
|
5
|
+
* reports its own progress on the run's progress channel instead (progress-channel.ts).
|
|
5
6
|
*
|
|
6
7
|
* Output alone is not progress. nextest repeats a `SLOW` line for every test still running at each slow-timeout
|
|
7
8
|
* period, and a hung test may print a heartbeat, so a bound on silence never fires on either. A finished test is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/progress.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/progress.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,WAAW;IAC1B,gGAAgG;IAChG,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5D,6GAA6G;IAC7G,QAAQ,IAAI,MAAM,EAAE,CAAC;IACrB,KAAK,IAAI,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;AA6E/C,wBAAgB,iBAAiB,CAAC,OAAO,SAAK,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,WAAW,CA4LxG;AAED,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAuBtG;AACD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmB1D"}
|
|
@@ -189,6 +189,11 @@ export interface RamTempLease {
|
|
|
189
189
|
* another attach, or none, is not this lease's volume: its free space is some other filesystem's.
|
|
190
190
|
*/
|
|
191
191
|
attach: string;
|
|
192
|
+
/**
|
|
193
|
+
* The I/O Registry entry of the disk that attach is on, which the volume's marker named and the registry proved when
|
|
194
|
+
* the lease was taken: the disk a release of a lease whose volume lost its mount detaches.
|
|
195
|
+
*/
|
|
196
|
+
registryEntry: string;
|
|
192
197
|
}
|
|
193
198
|
export interface RamUnavailable {
|
|
194
199
|
readonly kind: 'ram-unavailable';
|
|
@@ -321,6 +326,18 @@ export declare class RamTempVolume {
|
|
|
321
326
|
*/
|
|
322
327
|
release(lease: RamTempLease, keep: boolean, subtrees: SubtreeOwner): Promise<Result<string[], RamTempError>>;
|
|
323
328
|
private releaseLease;
|
|
329
|
+
/**
|
|
330
|
+
* Release a lease whose volume went from the mountpoint while its task held it. A volume that lost its mount leaves its
|
|
331
|
+
* disk attached and mounted nowhere: no path reaches its files and no lease can be taken on it, yet its pages stay
|
|
332
|
+
* resident until it is detached (on 2026-11-10 a restart of fseventsd stranded the user's 8 GiB disk so, owned by no
|
|
333
|
+
* lease). The lease's own registry entry, which the registry proved when the lease was taken, makes the disk this
|
|
334
|
+
* volume's: the release detaches it through the gateway's registry-bound `ram-detach`, under a detach claim no other
|
|
335
|
+
* caller passes, and the lease is said lost with what became of its disk. A disk mounted anywhere is left as it is and
|
|
336
|
+
* named, and one already gone is said so; nothing is forced.
|
|
337
|
+
*/
|
|
338
|
+
private releaseLost;
|
|
339
|
+
/** The RAM disk of this volume's user and size that registry entry `entry` registers, as one read finds it; else null. */
|
|
340
|
+
private diskOf;
|
|
324
341
|
/**
|
|
325
342
|
* Wait out another caller's creation or detach. Liveness of its owner is its pid's, so a crashed
|
|
326
343
|
* owner whose pid was reused holds every caller here; past each `CLAIM_WAIT_NOTICE_MS` on the same
|
|
@@ -408,7 +425,13 @@ export declare class RamTempVolume {
|
|
|
408
425
|
* directory, and a task still gone. Any other is left for a fresh look, never removed.
|
|
409
426
|
*/
|
|
410
427
|
private unchanged;
|
|
411
|
-
/**
|
|
428
|
+
/**
|
|
429
|
+
* Check the root the volume mounts below, detach what earlier creators left, then attach and provision the volume. An
|
|
430
|
+
* unmounted mountpoint with contents is never mounted over and its files never touched: the volume is unavailable.
|
|
431
|
+
* Only the disk the ledger records as kept is still detached first, by that registry entry, since a lost mount
|
|
432
|
+
* strands it beside such a directory: tasks that held leases on it may have written there after the loss. With no
|
|
433
|
+
* kept record the refusal inspects nothing on the host.
|
|
434
|
+
*/
|
|
412
435
|
private provisionVolume;
|
|
413
436
|
/**
|
|
414
437
|
* Provision the leased disk, record it in the ledger as the kept volume's disk, and keep it once its volume is mounted
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ram-temp.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/ram-temp.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAe,KAAK,UAAU,EAAgC,MAAM,iBAAiB,CAAC;AAE7F,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAW5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAqIpD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,QAA6C,CAAC;AASlF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,8EAA8E;AAC9E,eAAO,MAAM,8BAA8B,QAA2C,CAAC;AAEvF,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3E;AAeD;;;GAGG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAQ/B,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,qFAAqF;QACrF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,+FAA+F;QAC/F,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;KACpD,CAAC;CACH;AAED,oHAAoH;AACpH;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,aAAa,EA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