diff --git a/packages/plugins/sandbox-providers/daytona/src/plugin.test.ts b/packages/plugins/sandbox-providers/daytona/src/plugin.test.ts index 5035fcdb44a..362021051dc 100644 --- a/packages/plugins/sandbox-providers/daytona/src/plugin.test.ts +++ b/packages/plugins/sandbox-providers/daytona/src/plugin.test.ts @@ -5148,6 +5148,7 @@ describe("daytona native file-sync hooks", () => { const pack = spans.find((span) => span.name === "pack"); expect(pack).toBeDefined(); expect(pack!.ended).toBe(true); + expect(pack!.attributes["paperclip.sandbox.startup.provider"]).toBe("daytona"); expect(typeof pack!.attributes["paperclip.sandbox.startup.pack.wall_ms"]).toBe("number"); const transfer = spans.find((span) => span.name === "transfer"); @@ -5241,42 +5242,6 @@ describe("daytona native file-sync hooks", () => { } }); - it("records a pack span for a traced directory mapping", async () => { - const hostDir = await makeHostDir(); - const sourceDir = path.join(hostDir, "assets"); - await fs.mkdir(sourceDir, { recursive: true }); - await fs.writeFile(path.join(sourceDir, "a.txt"), "alpha"); - const sandbox = createMockSandbox(); - mockGet.mockResolvedValue(sandbox); - - const { tracer, spans } = createRecordingPluginTracer(); - const restore = __setDaytonaPluginContextForTest({ tracer } as unknown as PluginContext); - try { - await plugin.definition.onEnvironmentSyncIn?.({ - driverKey: "daytona", - companyId: "company-1", - environmentId: "env-1", - config: { timeoutMs: 300000, reuseLease: false }, - lease: syncLease(), - operations: [ - { - operationId: "sync-op-pack", - files: [ - { sourcePath: sourceDir, targetPath: `${REMOTE_DIR}/.paperclip-runtime/assets`, kind: "directory" }, - ], - }, - ], - }); - } finally { - restore(); - } - - const pack = spans.find((span) => span.name === "pack"); - expect(pack).toBeDefined(); - expect(pack!.ended).toBe(true); - expect(pack!.attributes["paperclip.sandbox.startup.provider"]).toBe("daytona"); - }); - it("opens a postUploadCommand span for a post-upload command with a working directory", async () => { const hostDir = await makeHostDir(); const source = path.join(hostDir, "config.txt");