New packages/runs reads run records, result.json, the release pointer
and the activation log without writing, pruning or following a link out
of the data root. mosaic-task.mjs list and show use it, so a malformed
result.json or a run that is a regular file no longer crashes them.
Deliberate deltas are listed in the README.
Rocko built it. Round 1 (ed3c5392) was approved with notes by Darkwing
(27115) and Filbert (27116); round 2 (2727198f, tests and wording only)
was approved by Darkwing (27123) and Filbert (27124). Sage's gate on
c9a25a47 plus the candidate: runs 41/0, queue 148/0, webui 22/0,
conversation 182/0 (181/1 in the full run on the K12 cgroup timing
test under load, 182/0 alone), control-board 124/0, every
scripts/test-*.sh 0 failed (task 98/0 with Docker, 26/0 without).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 lines
307 B
JavaScript
10 lines
307 B
JavaScript
// Exit codes follow scripts/mosaic-task.mjs: 2 invalid data, 4 a file or
|
|
// environment problem. Every refusal in this package is a RunsError.
|
|
export class RunsError extends Error {
|
|
constructor(message, exitCode = 4) {
|
|
super(message);
|
|
this.name = "RunsError";
|
|
this.exitCode = exitCode;
|
|
}
|
|
}
|