mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 18:31:34 +01:00
test(runner): validate nested provider-pack export layout
This commit is contained in:
1 parent
56cf3dbb69
commit
a1d0ebbb0e
1 file changed
+2
-1
@@ -168,7 +168,8 @@ describe("runner E2E Daytona image contract", () => {
|
||||
|
||||
it("exports the canonical provider stage without a mutable base or recursive builder", async () => {
|
||||
const dockerfile = await readFile(path.join(repositoryRoot, "docker/daytona-runner/Dockerfile"), "utf8");
|
||||
expect(dockerfile).toContain("FROM scratch AS provider-pack-export\nCOPY --from=provider-pack-build /provider-pack /");
|
||||
const exportStage = dockerfile.split(/^FROM /m).find((stage) => stage.startsWith("scratch AS provider-pack-export\n"));
|
||||
expect(exportStage).toMatch(/^COPY --from=provider-pack-build \/provider-pack \/provider-pack$/m);
|
||||
expect(extractDaytonaBaseImages(dockerfile)).not.toContain("scratch");
|
||||
expect(() => extractDaytonaBaseImages("FROM node:latest\nFROM scratch AS exported")).toThrow("immutable");
|
||||
const builder = await readFile(path.join(repositoryRoot, "packages/paperclip-runner/scripts/build-provider-pack.mjs"), "utf8");
|
||||
|
||||
Reference in new issue
Block a user