test(hopper): align startup fixtures with cleanup and lease contracts

Inspect the typed primary startup failure retained by aggregate cleanup errors. Materialize isolated targets before real lease acquisition so launcher scenarios reach the behavior under test. Repairs the Linux shard and Windows curated test failures without weakening cleanup retention coverage.
This commit is contained in:
morluto
2026-10-12 15:02:43 +08:00
parent d4e8ef7499
commit b3dec005bc
3 changed files with 26 additions and 9 deletions
@@ -107,7 +107,7 @@ const failedStartup = async (launcher: RetryCleanupLauncher) => {
error: {
_tag: "ProviderAdapterError",
cleanupIncomplete: true,
cause: { _tag: "HopperTimeoutError" },
cause: { cause: { _tag: "HopperTimeoutError" } },
},
});
const session = launcher.sessions[0];
@@ -233,7 +233,7 @@ it("blocks a fresh launch while cleanup remains unverified", async () => {
ok: false,
error: {
cleanupIncomplete: true,
cause: { _tag: "HopperTimeoutError" },
cause: { cause: { _tag: "HopperTimeoutError" } },
diagnostics: { primary_error: { code: "provider_timeout" } },
},
});
@@ -263,7 +263,7 @@ it("preserves failed startup state through a blocked retry until cleanup succeed
error: {
_tag: "ProviderAdapterError",
cleanupIncomplete: true,
cause: { _tag: "HopperTimeoutError" },
cause: { cause: { _tag: "HopperTimeoutError" } },
},
});
// ...but must not wipe the failed-startup state: the client still