mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-01 23:43:16 +01:00
Recover native controllers from durable metadata without local markers
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
a86902833f
commit
59ff89a18f
26 files changed
+982
-116
No files matched your search
@@ -412,6 +412,15 @@ describeEmbeddedPostgres("native harness backup expiration", () => {
|
||||
expect(await exists(session.current)).toBe(false);
|
||||
});
|
||||
|
||||
it("retains incomplete native snapshot publications even after the issue closes", async () => {
|
||||
const session = await seedSession({ finalization: { phase: "committed" } });
|
||||
await db.update(heartbeatRuns).set({ runnerProfileJson: { nativeControllerRecovery: {
|
||||
schema: "paperclip.native-controller-recovery.v1", checkpoint: null,
|
||||
} } }).where(eq(heartbeatRuns.id, session.runId));
|
||||
expect(await service().tick()).toMatchObject({ expired: 0, skipped: { native_recovery_incomplete: 1 } });
|
||||
expect(await exists(session.current)).toBe(true);
|
||||
});
|
||||
|
||||
it.each([
|
||||
["committed", "resuming_session"],
|
||||
["terminal_failure", "blocked"],
|
||||
|
||||
Reference in new issue
Block a user