Prepare verified laboratory 7 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 20afc2c790
commit eb1b5c7b84
677 changed files with 208256 additions and 64 deletions
+43
View File
@@ -0,0 +1,43 @@
import { compose, run, local, privateWrite } from "./runtime";
import { resolve } from "node:path";
const categories = [
"Permission denied",
"Operation not permitted",
"Unknown command or category name",
"Failed trying to load the ACL",
"Syntax error",
"FATAL",
"No such file or directory",
"cannot change permissions",
"invalid value",
"not a valid",
"unknown flag",
"unrecognized configuration parameter",
"could not load",
"could not access",
"out of memory",
"Address already in use",
"cannot open",
"server key file has group or world access",
"server key file must be owned",
"invalid connection type",
];
for (const service of Bun.argv.slice(2)) {
const logs = await compose(["logs", "--no-color", "--tail", "80", service], {
allowFailure: true,
});
await privateWrite(
resolve(local, "diagnostics", service + "-logs.txt"),
logs.out + logs.err,
);
const content = logs.out + logs.err;
console.log(
JSON.stringify({
service,
exit: logs.code,
categories: categories.filter((x) =>
content.toLowerCase().includes(x.toLowerCase()),
),
}),
);
}