fix(ci): restore generated shard inputs and cleanup assertions

Restore ignored generated inputs before deterministic test shards consume the downloaded build. Preserve verified cleanup assertions and explicitly check residual unknowns for unrelated processes.
This commit is contained in:
Ysopwnable
2026-10-08 23:20:52 +08:00
committed by GitHub
parent 46d195e8a4
commit 5f93b4b125
2 changed files with 17 additions and 4 deletions
@@ -423,11 +423,20 @@ itWithCaptureCapability(
);
const timedOutCapture = captureObservations(timedOut);
expect(timedOutCapture.capture.exit.reason).toBe("timeout");
if (!timedOutCapture.cleanupIncomplete && timedOut.ok)
expect(timedOut.value.cleanup).toEqual({
if (!timedOutCapture.cleanupIncomplete && timedOut.ok) {
expect(timedOut.value.cleanup).toMatchObject({
owned_process_group: "verified",
temporary_root: "removed",
});
for (const { pid } of timedOut.value.cleanup.unverified_processes ?? []) {
expect(timedOut.value.residual_unknowns).toContainEqual({
scope: "process",
reason: expect.stringContaining(
`${String(pid)} could not be verified`,
),
});
}
}
const controller = new AbortController();
setTimeout(() => controller.abort(), 50);