fix(scripts): share Docker E2E artifact bounds · openclaw/openclaw@e934e1c
vincentkoc
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -122,6 +122,26 @@ describe("Docker E2E helper CLIs", () => {
|
122 | 122 | ); |
123 | 123 | }); |
124 | 124 | |
| 125 | +it("rejects oversized rerun JSON artifacts without a Node stack trace", () => { |
| 126 | +const root = mkdtempSync(`${tmpdir()}/openclaw-docker-e2e-rerun-`); |
| 127 | +try { |
| 128 | +const file = path.join(root, "summary.json"); |
| 129 | +writeFileSync(file, `${JSON.stringify({ filler: "x".repeat(128) })}\n`, "utf8"); |
| 130 | + |
| 131 | +const result = runHelper("scripts/docker-e2e-rerun.mjs", file, "--ref", "abc123", { |
| 132 | +OPENCLAW_DOCKER_E2E_JSON_ARTIFACT_MAX_BYTES: "64", |
| 133 | +}); |
| 134 | + |
| 135 | +expect(result.status).toBe(1); |
| 136 | +expect(result.stdout).toBe(""); |
| 137 | +expect(result.stderr).toContain("JSON artifact exceeded 64 bytes"); |
| 138 | +expect(result.stderr).not.toContain("Error:"); |
| 139 | +expect(result.stderr).not.toContain("at file:"); |
| 140 | +} finally { |
| 141 | +rmSync(root, { force: true, recursive: true }); |
| 142 | +} |
| 143 | +}); |
| 144 | + |
125 | 145 | it.each(["summary.json", "failures.json"])( |
126 | 146 | "prints local cleanup reruns without synthesizing Docker lane reruns from %s", |
127 | 147 | (fileName) => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。