fix(podman): bound setup image builds

This commit is contained in:
Vincent Koc
2026-05-26 17:58:42 +02:00
parent 6118f3f615
commit d6fcb562f4
2 changed files with 28 additions and 1 deletions

View File

@@ -147,6 +147,20 @@ describe("test-install-sh-docker", () => {
expect(script).not.toContain('podman pull "$OPENCLAW_IMAGE"');
});
it("bounds Podman setup image builds", () => {
const script = readFileSync(PODMAN_SETUP_PATH, "utf8");
expect(script).toContain(
'PODMAN_BUILD_TIMEOUT="${OPENCLAW_PODMAN_SETUP_BUILD_TIMEOUT:-1800s}"',
);
expect(script).toContain("run_podman_build()");
expect(script).toContain("timeout --kill-after=1s 1s true");
expect(script).toContain('timeout --kill-after=30s "$PODMAN_BUILD_TIMEOUT" podman build "$@"');
expect(script).toContain('timeout "$PODMAN_BUILD_TIMEOUT" podman build "$@"');
expect(script).toContain('run_podman_build -t "$OPENCLAW_IMAGE"');
expect(script).not.toContain('podman build -t "$OPENCLAW_IMAGE"');
});
it("bounds detached Podman launches without timing out onboarding", () => {
const script = readFileSync(PODMAN_RUN_PATH, "utf8");