mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
fix(runner-e2e): wait for exact remote runtime before native fixture install
Observe the pinned run process and runtime inode within the original deadline before one observer install. Revalidate identity at installation and baseline, and retain only closed RPC phase/error diagnostics. Preserve action, ownership and cleanup gates. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
31201f4a96
commit
11fdee5f65
3 files changed
+255
-30
No files matched your search
@@ -5,7 +5,7 @@ import { dirname, join } from "node:path";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { ObservedStateTimeout, RemoteAdmissionReadError, RunnerApiHttpError, pollUntil } from "./api.js";
|
||||
import { classifyFailure } from "./failure-classifier.js";
|
||||
import { REMOTE_FIXTURE_MIN_SETUP_BUDGET_MS, bindRemoteNativeFixture, type RemoteFixtureApi, type RemoteFixtureDaytona, type RemoteNativeFixture } from "./remote-native-fixtures.js";
|
||||
import { REMOTE_FIXTURE_MIN_SETUP_BUDGET_MS, bindRemoteNativeFixture, remoteNativeFixtureDiagnostics, type RemoteFixtureApi, type RemoteFixtureDaytona, type RemoteNativeFixture } from "./remote-native-fixtures.js";
|
||||
|
||||
type AdmissionEndpoint = "issue" | "run" | "leases";
|
||||
|
||||
@@ -194,7 +194,7 @@ export function createRemoteNativeBootstrap(input: {
|
||||
}
|
||||
try {
|
||||
await input.evidence(`remote-native-bootstrap-startup-${request.runId}.json`, {
|
||||
...lastState, deadlineReached: Date.now() >= input.deadlineAt,
|
||||
...lastState, fixtureDiagnostics: remoteNativeFixtureDiagnostics(error), deadlineReached: Date.now() >= input.deadlineAt,
|
||||
admissionDeadlineReached: Date.now() >= admissionDeadlineAt,
|
||||
});
|
||||
} catch (evidenceError) {
|
||||
|
||||
Reference in new issue
Block a user