mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-07 06:16:06 -10:00
test: assemble both rolling supervisor requests before live runs
Co-Authored-By: Paperclip <[email protected]>
This commit is contained in:
1 parent
0c6796b936
commit
dd5aa710b2
1 file changed
+11
@@ -19,6 +19,17 @@ afterEach(async () => {
|
||||
await rm(root, { recursive: true, force: true });
|
||||
});
|
||||
|
||||
it.each(["rolling-web-deployment", "rolling-web-deployment-warm"])("accepts the assembled %s restart request", async suite => {
|
||||
const execution = runnerMatrix.find(row => row.suite.id === suite && row.profile.id === "runner-codex")!;
|
||||
const recoveryBinding = { companyId: "11111111-1111-4111-8111-111111111111",
|
||||
issueId: "22222222-2222-4222-8222-222222222222", runId: "33333333-3333-4333-8333-333333333333" };
|
||||
await writeFile(requestPath, JSON.stringify({ requestId: "rolling-request", rollingDeployment: true,
|
||||
discardControllerCache: true, controllerOutage: controllerOutageForExecution(execution, {}), recoveryBinding }));
|
||||
const request = await readRestartRequest(requestPath, [execution.id]);
|
||||
expect(request).toMatchObject({ rollingDeployment: true, discardControllerCache: true, recoveryBinding });
|
||||
expect(request).not.toHaveProperty("controllerOutage");
|
||||
});
|
||||
|
||||
const cells = ["everyday-workflows", "daytona-restart-continuity"].flatMap(suite =>
|
||||
["codex", "acpx"].map(provider => {
|
||||
const execution = runnerMatrix.find(row => row.suite.id === suite && row.task.id === "recover-controller"
|
||||
|
||||
Reference in new issue
Block a user