fix(e2e): tighten kitchen sink error log allowlist

This commit is contained in:
Vincent Koc
2026-06-04 08:32:58 +02:00
parent e71e585969
commit 21c3d6993b
2 changed files with 20 additions and 3 deletions

View File

@@ -368,6 +368,23 @@ describe("kitchen-sink RPC gateway readiness logs", () => {
}
});
it("does not allowlist dirty error lines that mention zero errors", () => {
const root = mkdtempSync(path.join(tmpdir(), "openclaw-kitchen-rpc-log-zero-error-smuggle-"));
try {
const logPath = path.join(root, "gateway.log");
writeFileSync(logPath, "[ERROR] 0 errors reported but fatal state remained\n");
expect(findErrorLogFindings(logPath)).toEqual([
{
line: "[ERROR] 0 errors reported but fatal state remained",
lineNumber: 1,
},
]);
} finally {
rmSync(root, { recursive: true, force: true });
}
});
it("bounds scanner memory for very long log lines", () => {
const root = mkdtempSync(path.join(tmpdir(), "openclaw-kitchen-rpc-log-long-line-"));
try {