mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-31 22:24:16 +01:00
test(runner): qualify Kimi Code lifecycle and recovery (#18029)
Add the Kimi lifecycle and recovery qualification harness. Preserve original grades and cleanup evidence, strict native ownership audits, bounded startup and cleanup, and early rejection of unsupported local fault execution before credentials or resources. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
59da15066a
commit
8c9dd1e444
58 files changed
+5066
-183
No files matched your search
@@ -1,4 +1,16 @@
|
||||
import path from "node:path";
|
||||
import type { MatrixExecution, RunnerTaskFlow } from "./types.js";
|
||||
|
||||
export function runnerE2EPlaywrightCaseTimeoutMs(flow: RunnerTaskFlow, deadlineMs: number) {
|
||||
return (flow === "kimi_native_lifecycle" ? 2 * deadlineMs : deadlineMs) + 90_000;
|
||||
}
|
||||
|
||||
export function runnerE2EPlaywrightWatchdogMs(executions: readonly MatrixExecution[]) {
|
||||
// Playwright starts its web server before any case timeout begins.
|
||||
return executions.reduce((total, execution) => total + runnerE2EPlaywrightCaseTimeoutMs(
|
||||
execution.task.flow, execution.task.attemptTimeoutMs[execution.environment.id],
|
||||
), 0) + 5 * 60_000;
|
||||
}
|
||||
|
||||
export const runnerE2EPlaywrightShutdownSignal = "SIGINT" as const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user