@rightkit/release 0.6.77 → 0.6.79
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/acceptance-admission.mjs +3 -1
- package/acceptance-cases.json +9 -9
- package/acceptance-cases.mjs +20 -4
- package/acceptance-launch.mjs +5 -1
- package/acceptance-lines.mjs +2 -0
- package/acceptance-run.mjs +4 -1
- package/contract-nn.json +23 -2
- package/package.json +1 -1
- package/rightkit-versions.json +8 -4
package/acceptance-admission.mjs
CHANGED
|
@@ -24,7 +24,9 @@ import { verifyPublicationClaim } from "./receipt-signature.mjs";
|
|
|
24
24
|
|
|
25
25
|
export const ACCEPTANCE_RESULT_SCHEMA = "rightkit.acceptance-result/1";
|
|
26
26
|
/** The files the twelve-line judgement is made of, relative to the package. */
|
|
27
|
-
|
|
27
|
+
// Step F, the lock (Adrian, 2026-11-25): every file the acceptance judge imports (acceptance-run.mjs and everything it reaches inside this package), the cases
|
|
28
|
+
// file it judges against, and the old judge's test. A file the judge comes to import that is not listed here fails acceptance-admission.test.mjs.
|
|
29
|
+
export const JUDGE_FILES = Object.freeze(["acceptance-callers.mjs","acceptance-cases.json","acceptance-cases.mjs","acceptance-launch.mjs","acceptance-lines.mjs","acceptance-lines.test.mjs","acceptance-rows.mjs","acceptance-run.mjs","atomic-write.mjs","background-process.mjs","broker-client.mjs","disk-policy.mjs","gate-seam.mjs","gate-serve.mjs","gate-stages.mjs","managed-root-guard.mjs","managed-roots.mjs","platform-dir.mjs","rustright-names.mjs","snapshot-changes.mjs","snapshot-git.mjs","snapshot-identity.mjs","snapshot-root-config.mjs","snapshot.mjs"]);
|
|
28
30
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
29
31
|
const sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
30
32
|
const PLATFORM_OF = Object.freeze({ mac: "darwin", dell: "win32" });
|
package/acceptance-cases.json
CHANGED
|
@@ -543,16 +543,16 @@
|
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
545
|
"limitsMs": {
|
|
546
|
-
"case1":
|
|
547
|
-
"case2":
|
|
548
|
-
"case3":
|
|
549
|
-
"case4":
|
|
550
|
-
"case5":
|
|
551
|
-
"case6":
|
|
552
|
-
"case7":
|
|
553
|
-
"realBuild":
|
|
546
|
+
"case1": 168000,
|
|
547
|
+
"case2": 49000,
|
|
548
|
+
"case3": 111000,
|
|
549
|
+
"case4": 46000,
|
|
550
|
+
"case5": 74000,
|
|
551
|
+
"case6": 96000,
|
|
552
|
+
"case7": 78000,
|
|
553
|
+
"realBuild": 421000
|
|
554
554
|
},
|
|
555
|
-
"limitsRule": "
|
|
555
|
+
"limitsRule": "NN11 limits the gate's own time: a run's wall time less the time its broker jobs were in flight (the broker is shared with every other build on the host; Adrian, 2026-11-25, option b). Each limit is the worst own time of four full runs on the installed pairs of 2026-11-25 (accept-0675b, accept-0675c, accept-0677, accept-0678) x 1.5, and at least that time + 30 s: under the host's normal load the gate's own time of the same case moved up to 3x between runs (case 5 run 2: 9 s to 44 s, most of it before the gate's first line), so the limit catches a stall, not that spread. One limit per case covers each of its unkilled runs; the real build's limit is its worst own time of its two runs with a complete record (accept-0678: 281 s, accept-final2: 72 s) x 1.5, at least + 30 s; null means not yet measured, and NN11 fails while it is null.",
|
|
556
556
|
"corrections": {
|
|
557
557
|
"approved": "Adrian, 2026-11-24: \"Approve, keep going\" (to: C1, C4, the sidecar-build half of C2, and C3 tightened to an exact command list). Reviewed first by Gemini, which rejected C3 as first worded (\"in one command or split by target\" lets a gate always split) and the rk-sidecar half of C2.",
|
|
558
558
|
"previousSha256": "e41bba2b2331adc866ed602f3ab3ecda27adb615d296e981f9a2310479b06bdc",
|
package/acceptance-cases.mjs
CHANGED
|
@@ -69,7 +69,10 @@ export function receiptsNameTheCommit(run, { skipNeverRan = false } = {}) {
|
|
|
69
69
|
if (!j.verified) { fails.push(`${jobName(j)}: its receipt does not verify (${(j.problems ?? []).join("; ") || "no reason given"})`); continue; }
|
|
70
70
|
if (j.gate?.commit !== run.commit) fails.push(`${jobName(j)} is signed for commit ${String(j.gate?.commit).slice(0, 12)}, not the selected ${String(run.commit).slice(0, 12)}`);
|
|
71
71
|
if (!run.tree || j.gate?.tree !== run.tree) fails.push(`${jobName(j)} is signed for tree ${String(j.gate?.tree).slice(0, 12)}, not the selected commit's ${String(run.tree).slice(0, 12)}`);
|
|
72
|
-
|
|
72
|
+
// In the kill case a job the kill cancelled (owner lost) never reached its post-checks, so the broker cannot sign the snapshot unchanged; its commit and
|
|
73
|
+
// tree are still held above, and its outputs are never admitted. Seen when the kill landed after submission (final run, 2026-11-25).
|
|
74
|
+
const killedUnder = skipNeverRan && j.status === "CANCELLED" && j.postChecksRan === false && j.reaped === true;
|
|
75
|
+
if (j.gate?.snapshotUnchanged !== true && !killedUnder) fails.push(`${jobName(j)}: the broker did not sign that the snapshot was unchanged`);
|
|
73
76
|
}
|
|
74
77
|
return fails;
|
|
75
78
|
}
|
|
@@ -150,10 +153,23 @@ export function testsBuiltByBrokerRunByGate(run) {
|
|
|
150
153
|
return fails;
|
|
151
154
|
}
|
|
152
155
|
/** NN11, every run: it finished inside the limit pinned for it. */
|
|
156
|
+
/**
|
|
157
|
+
* The time the broker held this run: the union of its jobs' [submitted, ended] spans inside the run. The broker is shared with every other build on the host,
|
|
158
|
+
* so how long a job waits or runs there is not the gate's time (Adrian, 2026-11-25, NN11 option b: the same work took 10.6 s and 81.4 s of compile).
|
|
159
|
+
*/
|
|
160
|
+
export function brokerHeldMs(run) {
|
|
161
|
+
const from = Number.isFinite(run.startMs) ? run.startMs : -Infinity; const to = Number.isFinite(run.startMs) && Number.isFinite(run.durationMs) ? run.startMs + run.durationMs : Infinity;
|
|
162
|
+
const spans = (run.jobs ?? []).filter((j) => Number.isFinite(j.submitted) && Number.isFinite(j.ended)).map((j) => [Math.max(j.submitted, from), Math.min(j.ended, to)]).filter(([a, b]) => b > a).sort((x, y) => x[0] - y[0]);
|
|
163
|
+
let total = 0; let cur = null;
|
|
164
|
+
for (const [a, b] of spans) { if (!cur || a > cur[1]) { if (cur) total += cur[1] - cur[0]; cur = [a, b]; } else cur[1] = Math.max(cur[1], b); }
|
|
165
|
+
return cur ? total + cur[1] - cur[0] : 0;
|
|
166
|
+
}
|
|
167
|
+
/** NN11 limits the gate's own time: the run's wall time less the time the broker held it. Both are printed. */
|
|
153
168
|
export function insideLimit(run, limitMs, label) {
|
|
154
|
-
if (!Number.isFinite(limitMs)) return [`no time limit is pinned for ${label} (the
|
|
169
|
+
if (!Number.isFinite(limitMs)) return [`no time limit is pinned for ${label} (the gate's own time x 1.25, at least + 15 s, goes into the cases file)`];
|
|
155
170
|
if (!Number.isFinite(run.durationMs)) return [`${label}: the launcher did not record when the run ended`];
|
|
156
|
-
|
|
171
|
+
const broker = brokerHeldMs(run); const own = run.durationMs - broker;
|
|
172
|
+
return own <= limitMs ? [] : [`${label} spent ${Math.round(own / 1000)} s of its own (wall ${Math.round(run.durationMs / 1000)} s, broker ${Math.round(broker / 1000)} s); its limit is ${Math.round(limitMs / 1000)} s`];
|
|
157
173
|
}
|
|
158
174
|
/** NN12, a run that was not killed: no lock of its snapshot and no program of it is left. */
|
|
159
175
|
export function endsClean(run, label) {
|
|
@@ -405,7 +421,7 @@ export function factsOfRun(dir, { repo, receiptsDir, verify = null, killed = fal
|
|
|
405
421
|
const foreignJobs = inRun.filter((j) => !mine.includes(j) && ((repoKey && plain(j.cwd).startsWith(repoKey)) || (logSnap !== null && (plain(j.gate?.snapshot) === logSnap || plain(j.cwd).startsWith(logSnap)))));
|
|
406
422
|
return {
|
|
407
423
|
foreignJobs,
|
|
408
|
-
dir, commit: launch.commit ?? null, tree: read.git?.tree ?? null, exit: launch.exit ?? null, signal: launch.signal ?? null, killed: killed || !!launch.signal,
|
|
424
|
+
dir, startMs: Number.isFinite(start) ? start : NaN, commit: launch.commit ?? null, tree: read.git?.tree ?? null, exit: launch.exit ?? null, signal: launch.signal ?? null, killed: killed || !!launch.signal,
|
|
409
425
|
durationMs: Number.isFinite(start) && Number.isFinite(end) ? end - start : NaN, lanes: launch.lanes ?? null, log,
|
|
410
426
|
jobs: mine, starts: f.starts, rootPid: f.root?.pid ?? null, processGaps: f.gaps, cacheWritten: json(path.join(dir, "cache-written.json")), verdicts, decisions,
|
|
411
427
|
locksAfter: launch.afterRun?.locks ?? [], locksKnown: launch.afterRun?.locksKnown === true, rootAlive: launch.afterRun?.rootAlive === true, snapshot, imageNow,
|
package/acceptance-launch.mjs
CHANGED
|
@@ -114,7 +114,11 @@ export function exportWindowsProcesses(from, to, { run = execFileSync } = {}) {
|
|
|
114
114
|
: { id: 4689, time: e.time, pid: hex(e.data.ProcessId), exe: e.data.ProcessName, exit: hex(e.data.Status) });
|
|
115
115
|
const bad = events.filter((e) => !Number.isInteger(e.pid) || !Number.isFinite(Date.parse(e.time)) || (e.id === 4688 && !Number.isInteger(e.ppid)));
|
|
116
116
|
if (bad.length) problems.push(`${bad.length} event(s) have no usable process id, parent or time`);
|
|
117
|
-
|
|
117
|
+
// A program started from a file always carries its command line when ProcessCreationIncludeCmdLine_Enabled is on. A process the kernel makes with no image
|
|
118
|
+
// file (vmmemWSL, vmmem, Registry, MemCompression: an image name with no path) never carries one, whoever started it: one such start on the host
|
|
119
|
+
// (WSL's memory process, started by another session) made the 0.6.78 real build's whole record "incomplete" (2026-11-25).
|
|
120
|
+
const noLine = events.filter((e) => e.id === 4688 && (e.commandLine === null || e.commandLine === undefined) && /[\\/]/.test(String(e.exe ?? "")));
|
|
121
|
+
if (noLine.length) problems.push(`${noLine.length} start event(s) of programs carry no command line (ProcessCreationIncludeCmdLine_Enabled is off?; first: ${noLine[0].exe})`);
|
|
118
122
|
return { kind: "windows-security", from, to, newest: raw?.newest ?? null, continuous: raw?.continuous === true, events, problems };
|
|
119
123
|
}
|
|
120
124
|
|
package/acceptance-lines.mjs
CHANGED
|
@@ -344,6 +344,8 @@ function jobOf(r) {
|
|
|
344
344
|
file: r.file, verified: r.verified?.ok === true, problems: r.verified?.problems ?? [], jobId: p?.jobId ?? null, argv, cwd: typeof req?.workspace === "string" ? req.workspace : null,
|
|
345
345
|
sub: argv ? cargoVerb(argv) : null, args: argv ? argv.slice(1) : [], gate: p?.gate ?? null, started, ended: timeOf(p?.terminalAt), submitted: Number.isFinite(started) ? started - waits : NaN, queueMs: Number.isFinite(t.queue) ? t.queue : null,
|
|
346
346
|
testExecutables: p?.testExecutables, testExecutablesReason: p?.testExecutablesReason,
|
|
347
|
+
// The signed outcome: status, whether the post-checks ran, and whether the tree was reaped.
|
|
348
|
+
status: typeof p?.result?.status === "string" ? p.result.status : null, postChecksRan: p?.result?.postChecks?.ran ?? null, reaped: p?.result?.reap?.reaped === true,
|
|
347
349
|
};
|
|
348
350
|
}
|
|
349
351
|
|
package/acceptance-run.mjs
CHANGED
|
@@ -85,7 +85,10 @@ async function main() {
|
|
|
85
85
|
fs.mkdirSync(out, { recursive: true });
|
|
86
86
|
const cpu = startCpuSampler(path.join(out, "cpu.csv"));
|
|
87
87
|
process.on("exit", () => cpu.stop());
|
|
88
|
-
|
|
88
|
+
// The lock (step F): the sha256 of every judge file contract-nn.json names, so a verdict says which judge made it.
|
|
89
|
+
const locked = JSON.parse(fs.readFileSync(path.join(here, "contract-nn.json"), "utf8")).runnerFiles ?? [];
|
|
90
|
+
const judgeFiles = Object.fromEntries(locked.map((f) => { try { return [f, sha256(fs.readFileSync(path.join(here, f)))]; } catch { return [f, null]; } }));
|
|
91
|
+
const record = { schema: "rightkit.acceptance-run/1", casesSha256: sha256(casesBody), judgeFiles, gate: path.resolve(gate), startedAt: new Date().toISOString(), cases: {}, realBuild: null };
|
|
89
92
|
const results = {}; const refs = [];
|
|
90
93
|
const one = async (repo, commit, name, { args, kill = false } = {}) => {
|
|
91
94
|
const dir = path.join(out, name); fs.rmSync(dir, { recursive: true, force: true }); fs.mkdirSync(dir, { recursive: true });
|
package/contract-nn.json
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "rightkit.contract-nn/1",
|
|
3
|
-
"contractSha256": "
|
|
3
|
+
"contractSha256": "5748f0f7d297fc8ed5de0a2a9b4e252865752873d5b931f0f630fc90ce74d213",
|
|
4
4
|
"runnerFiles": [
|
|
5
|
+
"acceptance-callers.mjs",
|
|
6
|
+
"acceptance-cases.json",
|
|
7
|
+
"acceptance-cases.mjs",
|
|
5
8
|
"acceptance-launch.mjs",
|
|
6
9
|
"acceptance-lines.mjs",
|
|
7
|
-
"acceptance-lines.test.mjs"
|
|
10
|
+
"acceptance-lines.test.mjs",
|
|
11
|
+
"acceptance-rows.mjs",
|
|
12
|
+
"acceptance-run.mjs",
|
|
13
|
+
"atomic-write.mjs",
|
|
14
|
+
"background-process.mjs",
|
|
15
|
+
"broker-client.mjs",
|
|
16
|
+
"disk-policy.mjs",
|
|
17
|
+
"gate-seam.mjs",
|
|
18
|
+
"gate-serve.mjs",
|
|
19
|
+
"gate-stages.mjs",
|
|
20
|
+
"managed-root-guard.mjs",
|
|
21
|
+
"managed-roots.mjs",
|
|
22
|
+
"platform-dir.mjs",
|
|
23
|
+
"rustright-names.mjs",
|
|
24
|
+
"snapshot-changes.mjs",
|
|
25
|
+
"snapshot-git.mjs",
|
|
26
|
+
"snapshot-identity.mjs",
|
|
27
|
+
"snapshot-root-config.mjs",
|
|
28
|
+
"snapshot.mjs"
|
|
8
29
|
],
|
|
9
30
|
"ids": [
|
|
10
31
|
"NN01",
|
package/package.json
CHANGED
package/rightkit-versions.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@rightkit/qa": "0.7.0",
|
|
50
50
|
"@rightkit/qa-chrome": "0.1.12",
|
|
51
51
|
"@rightkit/react-shell": "0.7.8",
|
|
52
|
-
"@rightkit/release": "0.6.
|
|
52
|
+
"@rightkit/release": "0.6.79",
|
|
53
53
|
"@rightkit/send-ui": "0.1.0",
|
|
54
54
|
"@rightkit/settings-ui": "0.7.5",
|
|
55
55
|
"@rightkit/social-ui": "0.2.1",
|
|
@@ -438,7 +438,8 @@
|
|
|
438
438
|
"0.6.57",
|
|
439
439
|
"0.6.60",
|
|
440
440
|
"0.6.61",
|
|
441
|
-
"0.6.75"
|
|
441
|
+
"0.6.75",
|
|
442
|
+
"0.6.77"
|
|
442
443
|
],
|
|
443
444
|
"@rightkit/settings-ui": [
|
|
444
445
|
"0.1.0",
|
|
@@ -571,7 +572,7 @@
|
|
|
571
572
|
"rightkit-app-settings": "0.4.2",
|
|
572
573
|
"rightkit-app-update": "0.2.0",
|
|
573
574
|
"rightkit-apple-ops": "0.2.0",
|
|
574
|
-
"rightkit-approvals": "0.2.
|
|
575
|
+
"rightkit-approvals": "0.2.2",
|
|
575
576
|
"rightkit-asr": "0.5.2",
|
|
576
577
|
"rightkit-assist": "0.1.1",
|
|
577
578
|
"rightkit-audio": "0.4.2",
|
|
@@ -901,7 +902,7 @@
|
|
|
901
902
|
"@rightkit/qa": "0.7.0",
|
|
902
903
|
"@rightkit/qa-chrome": "0.1.12",
|
|
903
904
|
"@rightkit/react-shell": "0.7.7",
|
|
904
|
-
"@rightkit/release": "0.6.
|
|
905
|
+
"@rightkit/release": "0.6.78",
|
|
905
906
|
"@rightkit/settings-ui": "0.7.4",
|
|
906
907
|
"@rightkit/shell": "0.1.1",
|
|
907
908
|
"@rightkit/tauri": "0.4.3",
|
|
@@ -1667,6 +1668,9 @@
|
|
|
1667
1668
|
],
|
|
1668
1669
|
"rightkit-engine-host": [
|
|
1669
1670
|
"0.2.0"
|
|
1671
|
+
],
|
|
1672
|
+
"rightkit-approvals": [
|
|
1673
|
+
"0.2.1"
|
|
1670
1674
|
]
|
|
1671
1675
|
}
|
|
1672
1676
|
}
|