mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 22:41:36 +00:00
test: let the suite own default test deadlines
178 Vitest cases set an explicit 30 s deadline, the old suite default. An explicit per-test value overrides the suite setting, so these cases kept 30 s under coverage (suite: 60 s) and on hosted CI (60 s since #10417); asyncChunkCapacity.test.ts then timed out at 30 s on main. Remove only explicit test or describe deadlines equal to 30 s, selected by syntax tree. Hook deadlines, subprocess timeouts, setTimeout delays and data values are unchanged. Local runs keep 30 s.
This commit is contained in:
1 parent
cc7d73d23a
commit
83ed1cbd2a
76 files changed
+117
-211
No files matched your search
@@ -58,7 +58,6 @@ it.skipIf(process.platform === "win32")(
|
||||
await fixture.cleanup([probe]);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
let commands = new ApktoolCommandCleanup();
|
||||
|
||||
@@ -353,7 +353,6 @@ it.skipIf(process.platform !== "linux")(
|
||||
spy.mockRestore();
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
describe.skipIf(process.platform !== "linux")(
|
||||
@@ -416,7 +415,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
expect(
|
||||
JSON.parse(await readFile(join(output, "capture.json"), "utf8")),
|
||||
).toEqual(JSON.parse(JSON.stringify(evidence)));
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps a baseline-only capture when cancelled before any checkpoint", async () => {
|
||||
const { root, home, environment } = await fixture();
|
||||
@@ -517,7 +516,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
after: expect.objectContaining({ sha256: sha256("count=2\n") }),
|
||||
}),
|
||||
]);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -589,7 +588,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
{ name: "stop", trigger: "stop" },
|
||||
{ name: "exit", trigger: "exit" },
|
||||
]);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -644,7 +643,6 @@ describe.skipIf(process.platform !== "linux")(
|
||||
details: { cleanup: "incomplete", resources: [statePath] },
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -678,7 +676,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
expect(await readdir(root)).toEqual(
|
||||
expect.arrayContaining(["group-term", "setsid-term"]),
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("stops the application gracefully and removes retained content when the session fails", async () => {
|
||||
const { root, home, environment } = await fixture();
|
||||
@@ -703,7 +701,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
expect(await readdir(root)).toEqual(
|
||||
expect.arrayContaining(["group-term", "setsid-term"]),
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -774,7 +772,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
expect(capture.limitations).toContainEqual(
|
||||
expect.stringMatching(/^The window list could not be read in [34] /u),
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ it.each(["", "h:"])(
|
||||
await browser.close();
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
it.each(["progress", "enable", "terminal", "complete"] as const)(
|
||||
|
||||
@@ -1367,5 +1367,5 @@ describe("XML namespace resolution ordering and capacity", () => {
|
||||
expect(result.urls).toEqual([
|
||||
approvedHref(elements.length, `${origin}/deep`),
|
||||
]);
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
@@ -98,4 +98,4 @@ it("admits exact Amp command facts and rejects invalid commands before publicati
|
||||
} finally {
|
||||
await rm(home, { recursive: true, force: true });
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -86,7 +86,7 @@ describe("runSolveHelper", () => {
|
||||
stop.abort();
|
||||
await Promise.allSettled([started, solved]);
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("records a helper stopped at its deadline without a report as a failed solve of unknown cost, its cleanup known", async () => {
|
||||
const runner = await fakeAgentEnvSolves([SOLVE]);
|
||||
@@ -109,7 +109,7 @@ describe("runSolveHelper", () => {
|
||||
});
|
||||
expect(report.error).toMatch(/stopped \(SIG[A-Z]+\) without a report/u);
|
||||
expect(retained).toHaveLength(0);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps a helper whose cleanup failed, so closing can retry it, and reports what is left", async () => {
|
||||
const runner = await fakeAgentEnvSolves([SOLVE]);
|
||||
@@ -146,7 +146,7 @@ describe("runSolveHelper", () => {
|
||||
status: "verified-cleanup",
|
||||
});
|
||||
retained[0]?.dispose();
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
it("retains a reported sandbox on failed removal, then retries that exact sandbox", async () => {
|
||||
@@ -184,7 +184,7 @@ it("retains a reported sandbox on failed removal, then retries that exact sandbo
|
||||
expect(failure.cleanupIncomplete).toBe(false);
|
||||
expect(failure.cleanupResources).toEqual([]);
|
||||
retained[0]?.dispose();
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("retains a completed report if cancellation arrives during final cleanup", async () => {
|
||||
const runner = await fakeAgentEnvSolves([SOLVE]);
|
||||
@@ -211,7 +211,7 @@ it("retains a completed report if cancellation arrives during final cleanup", as
|
||||
cause: reason,
|
||||
report: { outcome: "passed", turns: 3, usd: 0.1 },
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("retains an unrecognized sandbox root entry and retries after it is repaired", async () => {
|
||||
const runner = await fakeAgentEnvSolves([SOLVE]);
|
||||
@@ -240,7 +240,7 @@ it("retains an unrecognized sandbox root entry and retries after it is repaired"
|
||||
if (!(failure instanceof ProviderCleanupError)) throw failure;
|
||||
expect(failure.cleanupIncomplete).toBe(false);
|
||||
retained[0]?.dispose();
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("retains root cleanup and the spawn failure when admission fails", async () => {
|
||||
const runner = await fakeAgentEnvSolves([SOLVE]);
|
||||
@@ -274,4 +274,4 @@ it("retains root cleanup and the spawn failure when admission fails", async () =
|
||||
expect(failure.cleanupIncomplete).toBe(false);
|
||||
expect(failure.cleanupResources).toEqual([]);
|
||||
retained[0]?.dispose();
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -157,7 +157,7 @@ describe.skipIf(process.platform !== "linux")("runDesktopSession", () => {
|
||||
await expect(runDesktopSession(plan)).rejects.toBe(failure);
|
||||
expect(checkpoints).toEqual(["stop", "exit"]);
|
||||
expect(vi.mocked(terminateTokenOwnedProcesses)).toHaveBeenCalledTimes(1);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("launches the application without the agent environment's variables", async () => {
|
||||
const root = await createTestTempDirectory("desktop-session-env-");
|
||||
@@ -184,7 +184,7 @@ describe.skipIf(process.platform !== "linux")("runDesktopSession", () => {
|
||||
"REA_PROCESS_RUN_ID",
|
||||
]),
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe.skipIf(process.platform !== "linux")(
|
||||
@@ -209,7 +209,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
entry.pid !== outcome.session.launch_pid,
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("does not take samples whose window list was unreadable as the application having exited", async () => {
|
||||
const root = await createTestTempDirectory("desktop-session-unread-");
|
||||
@@ -230,7 +230,7 @@ describe.skipIf(process.platform !== "linux")(
|
||||
expect(outcome.session.end_reason).toBe("application_exited");
|
||||
expect(outcome.unreadableWindowSamples).toBe(4);
|
||||
expect(samples).toBeGreaterThanOrEqual(6);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -385,7 +385,7 @@ describe.skipIf(process.platform === "win32")(
|
||||
expect(stderr).not.toContain("runtime 0 of 400");
|
||||
expect(Buffer.byteLength(stderr)).toBeLessThanOrEqual(8 * 1024);
|
||||
expect(stderr_truncated).toBe(true);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("gives each checkpoint the titles the app's own windows have shown so far", async () => {
|
||||
const root = await createTestTempDirectory("desktop-session-titles-");
|
||||
@@ -422,7 +422,7 @@ describe.skipIf(process.platform === "win32")(
|
||||
});
|
||||
|
||||
expect(seen.at(-1)).toEqual(["today.txt - Notes"]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("launches the app with glibc's fatal errors sent to its stderr, not its terminal", async () => {
|
||||
const root = await createTestTempDirectory("desktop-session-libc-");
|
||||
@@ -435,6 +435,6 @@ describe.skipIf(process.platform === "win32")(
|
||||
);
|
||||
|
||||
expect(outcome.session.stderr).toContain("LIBC_FATAL_STDERR_=1");
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
@@ -275,7 +275,7 @@ describe("call path topology and capacity", () => {
|
||||
expect(result.status).toBe("unknown");
|
||||
expect(result.search_scope.exhaustive).toBe(false);
|
||||
expect(result.limitations).toEqual(limitations);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("retains every shortest path through merging branches and cycles", () => {
|
||||
const result = run([
|
||||
|
||||
@@ -1076,7 +1076,7 @@ describe("property mutation collection on minified bundles", () => {
|
||||
{ value: { status: "unknown" } },
|
||||
],
|
||||
});
|
||||
}, 30000);
|
||||
});
|
||||
});
|
||||
|
||||
describe("results of methods on an escaped receiver", () => {
|
||||
@@ -1112,7 +1112,7 @@ describe("results of methods on an escaped receiver", () => {
|
||||
status: "array",
|
||||
items: [{ value: { status: "unknown" } }],
|
||||
});
|
||||
}, 30000);
|
||||
});
|
||||
});
|
||||
|
||||
it.each([
|
||||
|
||||
@@ -26,7 +26,7 @@ describe("bounded paths through dynamic selectors and class origins", () => {
|
||||
value: 42,
|
||||
});
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("retains effects through class getter aliases while bounding loop paths", () => {
|
||||
expect(
|
||||
@@ -65,7 +65,7 @@ describe("bounded paths through dynamic selectors and class origins", () => {
|
||||
"unknown",
|
||||
);
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("retains shared-child mutations reached by dynamic-key alias loops", () => {
|
||||
expect(
|
||||
@@ -103,7 +103,7 @@ describe("bounded member path propagation", () => {
|
||||
);
|
||||
expect(callable.returnSites[0]?.value.status).toBe("unknown");
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("preserves Array prototype effects through an otherwise unknown alias", () => {
|
||||
expect(
|
||||
@@ -125,7 +125,7 @@ describe("bounded member path propagation", () => {
|
||||
),
|
||||
).toEqual({ status: "literal", value: 3 });
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
// A dynamic self alias escapes its repeated prefix, which conservatively
|
||||
// covers every child; a static key without that slot keeps the literal.
|
||||
@@ -144,7 +144,6 @@ describe("bounded member path propagation", () => {
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
expect(value?.status).toBe(status);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
it.each([
|
||||
@@ -196,7 +195,6 @@ describe("bounded member path propagation", () => {
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
expect(value?.status).toBe(status);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
it.each([
|
||||
@@ -282,7 +280,7 @@ describe("reference lifetimes across calls and shallow copies", () => {
|
||||
`const alias0 = [1]; ${declarations} const ${pattern} = alias9; return alias0[0];`,
|
||||
);
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("bounds conditional shallow-copy traversal while retaining shared children", () => {
|
||||
const declarations = Array.from(
|
||||
@@ -297,7 +295,7 @@ describe("reference lifetimes across calls and shallow copies", () => {
|
||||
)?.status,
|
||||
).toBe("unknown");
|
||||
expect(performance.now() - start).toBeLessThan(2000);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it.each([
|
||||
["child: {}", "child: {}", "literal"],
|
||||
|
||||
@@ -580,7 +580,7 @@ describe("managed artifact coded indexes", () => {
|
||||
(attribute) => attribute.type_name === "Fixture.LookupAttribute",
|
||||
),
|
||||
).toBe(true);
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
it.each([false, true])(
|
||||
|
||||
@@ -80,7 +80,7 @@ it("recovers expanded ASAR listing admission on the same MCP connection independ
|
||||
} finally {
|
||||
await client.close();
|
||||
}
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("advertises exact contracts and recovers a full large-index archive over one MCP connection", async () => {
|
||||
const root = await createTestTempDirectory("rea-runtime-settings-");
|
||||
@@ -214,7 +214,7 @@ it("advertises exact contracts and recovers a full large-index archive over one
|
||||
} finally {
|
||||
await client.close();
|
||||
}
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it.each(["0", "2147483648"])(
|
||||
"keeps invalid JADX launch timeout %s local and repairable through MCP",
|
||||
@@ -279,7 +279,6 @@ it.each(["0", "2147483648"])(
|
||||
await client.close();
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
it("lowers, restores and seeds the native matching allowance over MCP", async () => {
|
||||
@@ -427,7 +426,7 @@ it("lowers, restores and seeds the native matching allowance over MCP", async ()
|
||||
} finally {
|
||||
await invalid.client.close();
|
||||
}
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("starts with invalid runtime seeds and recovers ASAR and capture work on the same connection", async () => {
|
||||
const root = await createTestTempDirectory("rea-invalid-runtime-seeds-");
|
||||
@@ -517,7 +516,7 @@ it("starts with invalid runtime seeds and recovers ASAR and capture work on the
|
||||
} finally {
|
||||
await client.close();
|
||||
}
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it.skipIf(process.platform === "win32")(
|
||||
"ignores Windows ChangeTime launch settings on other hosts",
|
||||
@@ -539,5 +538,4 @@ it.skipIf(process.platform === "win32")(
|
||||
await client.close();
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
@@ -432,7 +432,6 @@ cliTest(
|
||||
|
||||
await assertCoverageControls({ left, right, inventory, compare });
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform === "win32")(
|
||||
@@ -469,7 +468,6 @@ cliTest.skipIf(process.platform === "win32")(
|
||||
],
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform === "win32")(
|
||||
@@ -521,7 +519,6 @@ cliTest.skipIf(process.platform === "win32")(
|
||||
]),
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform === "win32")(
|
||||
@@ -579,7 +576,6 @@ cliTest.skipIf(process.platform === "win32")(
|
||||
);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -620,7 +616,6 @@ cliTest(
|
||||
]),
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
|
||||
@@ -170,5 +170,4 @@ cliTest.skipIf(process.platform !== "darwin")(
|
||||
});
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -500,5 +500,4 @@ cliTest(
|
||||
);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -88,5 +88,4 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -138,5 +138,4 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -72,7 +72,6 @@ cliTest(
|
||||
},
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -113,5 +112,4 @@ cliTest(
|
||||
},
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -531,5 +531,4 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -250,7 +250,6 @@ cliTest(
|
||||
details: { issues: [{ path: ["evidence_output"] }] },
|
||||
});
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -280,7 +279,6 @@ cliTest(
|
||||
expect(parseMcpToolError(response).error).toMatchObject(expected);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -307,7 +305,6 @@ cliTest(
|
||||
expect(infos[1]).toEqual(infos[0]);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
for (const bits of [32, 64] as const) {
|
||||
@@ -357,7 +354,6 @@ for (const bits of [32, 64] as const) {
|
||||
expect(buildInfos[1]).toEqual(buildInfos[0]);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -413,7 +409,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
for (const expectedErrno of ["ELOOP", "ENAMETOOLONG"] as const) {
|
||||
|
||||
@@ -383,7 +383,6 @@ cliTest(
|
||||
}),
|
||||
]);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -424,5 +423,4 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
@@ -109,7 +109,6 @@ cliTest(
|
||||
});
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -176,7 +175,6 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -238,7 +236,6 @@ cliTest(
|
||||
}
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -312,7 +309,6 @@ cliTest(
|
||||
expect(Buffer.compare(await readFile(path), fixture.bytes)).toBe(0);
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -431,7 +427,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -487,7 +482,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -562,7 +556,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
const metadataPageReader =
|
||||
@@ -750,7 +743,7 @@ it("queries compact retained metadata through the real SDK with exact row identi
|
||||
});
|
||||
expect(parseMcpToolError(invalid).error.code).toBe("invalid_request");
|
||||
await client.ping();
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("imports historical metadata Evidence with unavailable member collections without inventing empty results", async () => {
|
||||
const root = await createTestTempDirectory("rea-il2cpp-history-"),
|
||||
@@ -827,7 +820,7 @@ it("imports historical metadata Evidence with unavailable member collections wit
|
||||
view: { kind: "il2cpp-metadata", collection: "parameters" },
|
||||
});
|
||||
expect(parseMcpToolError(unavailable).error.code).toBe("invalid_request");
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
cliTest(
|
||||
"exports complete metadata Evidence for compact CLI delivery and portable selected reads",
|
||||
@@ -906,7 +899,6 @@ cliTest(
|
||||
parent_evidence_id: evidence.evidence_id,
|
||||
});
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform === "win32")(
|
||||
@@ -950,7 +942,6 @@ cliTest.skipIf(process.platform === "win32")(
|
||||
expect(read.exitCode, read.stderr).toBe(0);
|
||||
expect(read.stdout).toContain(saved.value.records[0]?.evidence_id);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1042,7 +1033,6 @@ cliTest(
|
||||
);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1088,7 +1078,6 @@ cliTest(
|
||||
).toEqual(report.method_addresses);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1157,7 +1146,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1218,7 +1206,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1301,7 +1288,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -1339,7 +1325,6 @@ cliTest(
|
||||
),
|
||||
).toBe(true);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
|
||||
@@ -57,5 +57,4 @@ cliTest(
|
||||
expect(parseMcpToolError(result).error).toMatchObject(expected);
|
||||
}
|
||||
},
|
||||
30000,
|
||||
);
|
||||
@@ -117,7 +117,6 @@ cliTest.skipIf(process.platform !== "darwin")(
|
||||
expect(Buffer.compare(await readFile(first), Buffer.from(bytes))).toBe(0);
|
||||
expect(Buffer.compare(await readFile(second), Buffer.from(bytes))).toBe(0);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform !== "darwin")(
|
||||
@@ -174,7 +173,6 @@ cliTest.skipIf(process.platform !== "darwin")(
|
||||
expect(Buffer.compare(await readFile(target), bytes)).toBe(0);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform !== "darwin")(
|
||||
@@ -308,7 +306,6 @@ cliTest.skipIf(process.platform !== "darwin")(
|
||||
expect(Buffer.compare(await readFile(target), Buffer.from(bytes))).toBe(0);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest.skipIf(process.platform !== "darwin")(
|
||||
|
||||
@@ -88,5 +88,4 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
@@ -68,7 +68,6 @@ cliTest.skipIf(CAPTURE_SKIP_REASON)(
|
||||
expect(result.stderr).not.toContain(literal);
|
||||
verify(result.json);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -85,5 +84,4 @@ itWithCaptureCapability(
|
||||
),
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -94,5 +94,4 @@ captureTest(
|
||||
reason: "exited",
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -74,7 +74,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -240,7 +239,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest("returns null metadata when .dep-v0 is absent", async ({ cli }) => {
|
||||
@@ -427,7 +425,6 @@ cliTest(
|
||||
});
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -485,7 +482,6 @@ cliTest(
|
||||
expectCliMcpEvidenceParity(evidence, response.structuredContent, path);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -532,7 +528,6 @@ cliTest(
|
||||
expect(parseMcpToolError(response).error).toMatchObject(expectedFailure);
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -689,7 +684,6 @@ cliTest(
|
||||
}
|
||||
await client.ping();
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
|
||||
@@ -451,5 +451,4 @@ cliTest(
|
||||
}
|
||||
expect((await readFile(path)).length).toBeGreaterThan(0);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
@@ -131,4 +131,4 @@ it("preserves file URL scheme spelling and script identity after real Inspector
|
||||
expect(original.predicate_type).toBe(first.predicate_type);
|
||||
expect(original.normalized_result).toEqual(first.normalized_result);
|
||||
expect(await readFile(source, "utf8")).toBe(sourceText);
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -122,4 +122,4 @@ it("observes a real Node Inspector and releases attachments after cancellation a
|
||||
details: { reason: "endpoint_unreachable" },
|
||||
},
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -46,7 +46,6 @@ describe.skipIf(process.platform === "win32")(
|
||||
);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
cliTest(
|
||||
@@ -84,7 +83,6 @@ describe.skipIf(process.platform === "win32")(
|
||||
expect(evidence.subject?.digest.sha256, path).toBe(selectedDigest);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -45,6 +45,5 @@ describe("projected CLI failures", () => {
|
||||
expect(result.json).toMatchObject({ code: "invalid_request" });
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
});
|
||||
@@ -129,7 +129,7 @@ describe("canonical CLI catalog", () => {
|
||||
const inventory = createCliInventory(createCli());
|
||||
expect(inventory.primary).toEqual([...CLI_COMMAND_NAMES].sort());
|
||||
expect(inventory.aliases).toEqual([]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("describes every primary command argument and option", () => {
|
||||
expect(cliCommandDescriptionIssues(createCli())).toEqual([]);
|
||||
|
||||
@@ -234,5 +234,4 @@ it.skipIf(process.platform !== "win32")(
|
||||
await transport.close();
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -38,4 +38,4 @@ it("retains a wide factory's async keys before normalizing the registration", ()
|
||||
end: { line: 1, column: start + factory.length },
|
||||
},
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -87,7 +87,7 @@ it("does not request native-addon members from erased TypeScript names", async (
|
||||
value.graph.nodes.filter((node) => node.kind === "native-export")[0]
|
||||
?.observations[0]?.properties.requested_members,
|
||||
).toEqual(["load"]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it.each(["node", "NODE", "Node"])(
|
||||
"keeps path spelling while classifying .%s native requests",
|
||||
@@ -141,5 +141,4 @@ it.each(["node", "NODE", "Node"])(
|
||||
}),
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -409,7 +409,6 @@ it.skipIf(process.platform === "win32")(
|
||||
await harness.close();
|
||||
await verifyJadxFixtureCleanup(launches);
|
||||
},
|
||||
30000,
|
||||
);
|
||||
|
||||
it("preserves partial/unknown declarations and Unicode text while rejecting missing APK identity and malformed source", async () => {
|
||||
|
||||
@@ -474,7 +474,7 @@ ${returnSites}
|
||||
left_omitted_fields: 0,
|
||||
right_omitted_fields: 0,
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
const analyzeSourceEvidence = async (source: string) => {
|
||||
|
||||
@@ -71,7 +71,6 @@ describe.skipIf(process.platform === "win32")(
|
||||
},
|
||||
] as const)(
|
||||
"derives inspection and summary coverage from inventory traversal (FIFO: $withFifo)",
|
||||
{ timeout: 30_000 },
|
||||
async ({ withFifo, status, sourceCoverage }, { mcp, onTestFinished }) => {
|
||||
const path = await writeBundle(withFifo);
|
||||
const { client, outputSchema } = await connect(mcp, onTestFinished);
|
||||
|
||||
@@ -689,7 +689,7 @@ it("runs one computer's calls in the order they arrive and another computer's be
|
||||
"reset",
|
||||
"screenshot behind the reset",
|
||||
]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("sends progress while an action waits for the call before it on its computer", async () => {
|
||||
const app = slowApp(14);
|
||||
@@ -715,7 +715,7 @@ it("sends progress while an action waits for the call before it on its computer"
|
||||
expect(waited.isError, JSON.stringify(waited)).not.toBe(true);
|
||||
expect(progress.length).toBeGreaterThan(0);
|
||||
await reset;
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("cancels a computer's call in progress on close and refuses the calls waiting behind it", async () => {
|
||||
const app = slowApp(600);
|
||||
|
||||
@@ -901,7 +901,7 @@ it("keeps a completed reset when the screenshot after it is cancelled", async ()
|
||||
const near = parseMcpToolError(await witness.check({ stage: "near_miss" }));
|
||||
expect(near.error.message).toContain("put the seed back");
|
||||
expect(witness.app.state).toEqual(lines("milk"));
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("checks after_reset once the reset sent before it has relaunched the app", async () => {
|
||||
const witness = await witnessed(4);
|
||||
@@ -925,7 +925,7 @@ it("checks after_reset once the reset sent before it has relaunched the app", as
|
||||
outcome: "applied",
|
||||
});
|
||||
expect(app.methods.slice(-2)).toEqual(["data/reset", "data/get"]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("sends progress while a reset waits for the relaunched app", async () => {
|
||||
const witness = await witnessed(14);
|
||||
@@ -939,7 +939,7 @@ it("sends progress while a reset waits for the relaunched app", async () => {
|
||||
);
|
||||
expect(reset.isError, JSON.stringify(reset)).not.toBe(true);
|
||||
expect(progress.length).toBeGreaterThan(0);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
/** The shipped timing scaled down a tenfold: a read every 50 ms, a 300 ms window, a 1.5 s bound. */
|
||||
const SETTLE: SettleTiming = { intervalMs: 50, windowMs: 300, boundMs: 1500 };
|
||||
|
||||
@@ -197,7 +197,7 @@ it("honors explicit ABI and old full requests, validates SDK schemas and reuses
|
||||
});
|
||||
if (!portable.ok) throw portable.error;
|
||||
expect(portable.value.normalized_result).toEqual(view);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("preserves null snapshot facts and pool lower bounds after exhaustion, rejecting malformed and conflicting identities", async () => {
|
||||
const report = {
|
||||
|
||||
@@ -61,7 +61,7 @@ describe("compact Ghidra reference MCP evidence", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("preserves empty references and unresolved targets without manufacturing provenance", async () => {
|
||||
const outputs = {
|
||||
@@ -107,7 +107,7 @@ describe("compact Ghidra reference MCP evidence", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("preserves ARM TMode and Thumb decoder context across the MCP boundary", async () => {
|
||||
const instructionWithContext = (value: string | null) => ({
|
||||
@@ -148,5 +148,5 @@ describe("compact Ghidra reference MCP evidence", () => {
|
||||
await harness.close();
|
||||
}
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
@@ -126,7 +126,7 @@ it("tells a finished CLI invocation to rerun with the launch setting, not to reu
|
||||
const { message } = cliFailure.parse(projected);
|
||||
expect(message.startsWith(BRIDGE_MESSAGE)).toBe(true);
|
||||
expect(message).not.toContain(GHIDRA_SESSION_RETAINED);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps same-session and runtime-update guidance for a continuing MCP connection", async () => {
|
||||
const launcher = new GhidraFixtureLauncher("decompile_timed_out");
|
||||
@@ -184,4 +184,4 @@ it("keeps same-session and runtime-update guidance for a continuing MCP connecti
|
||||
await harness.close();
|
||||
await expectReleased(launcher);
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -736,5 +736,5 @@ describe("Ghidra MCP evidence parity", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
@@ -99,7 +99,7 @@ it("preserves queue failure diagnostics through the provider, CLI adapter and SD
|
||||
process.exitCode = previousExitCode;
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it.each(
|
||||
(["cancelled", "protocol"] as const).flatMap((kind) =>
|
||||
|
||||
@@ -197,7 +197,7 @@ it("reports file-backed, uninitialized and unmapped addresses through MCP withou
|
||||
} finally {
|
||||
await mcp.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
const segments = z.array(
|
||||
z.object({ name: z.string(), start: z.string(), end: z.string() }),
|
||||
@@ -259,7 +259,7 @@ it("maps the last byte of a file-backed block and refuses the first address past
|
||||
} finally {
|
||||
await mcp.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("gives the CLI analysis path the same unbacked-address outcome as MCP", async () => {
|
||||
const launcher = new GhidraFixtureLauncher();
|
||||
@@ -308,4 +308,4 @@ it("gives the CLI analysis path the same unbacked-address outcome as MCP", async
|
||||
} finally {
|
||||
await expectReleased(launcher);
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -245,7 +245,7 @@ describe("Ghidra MCP native API evidence", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("returns complete native API boundaries without output-cap unknowns", async () => {
|
||||
const harness = await connectGhidraMcp("ghidra-native-api");
|
||||
@@ -290,7 +290,7 @@ describe("Ghidra MCP native API evidence", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
it("retains unavailable Ghidra native API observations across live reobservation and provenance", async () => {
|
||||
@@ -409,4 +409,4 @@ it("retains unavailable Ghidra native API observations across live reobservation
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -108,4 +108,4 @@ it("reports local Ghidra admission through SDK MCP without dispatching or losing
|
||||
for (const child of launcher.processes)
|
||||
expect(child.exitCode !== null || child.signalCode !== null).toBe(true);
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -78,7 +78,7 @@ describe("Ghidra MCP capability routing", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps a Ghidra null-pseudocode observation's limitations on its batch item", async () => {
|
||||
const bodyless = "0x401020";
|
||||
@@ -136,5 +136,5 @@ describe("Ghidra MCP capability routing", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
@@ -263,4 +263,4 @@ it("reports missing sources for a retained dossier with a large link set", async
|
||||
},
|
||||
},
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -139,7 +139,7 @@ it("returns a first-call overview and pages the unchanged source after its file
|
||||
});
|
||||
if (!portable.ok) throw portable.error;
|
||||
expect(portable.value.normalized_result).toEqual(view);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("keeps malformed metadata, empty returned rows and historical null subjects explicit", async () => {
|
||||
const directory = await createTestTempDirectory(
|
||||
@@ -215,7 +215,7 @@ it("keeps malformed metadata, empty returned rows and historical null subjects e
|
||||
ok: false,
|
||||
error: { _tag: "EvidenceIntegrityError" },
|
||||
});
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("refuses selected delivery before file access when the server cannot retain Evidence", async () => {
|
||||
const directory = await createTestTempDirectory("rea-managed-fixed-view-");
|
||||
@@ -258,4 +258,4 @@ it("refuses selected delivery before file access when the server cannot retain E
|
||||
complete.structuredContent,
|
||||
).success,
|
||||
).toBe(true);
|
||||
}, 30000);
|
||||
});
|
||||
@@ -193,7 +193,7 @@ it("runs every managed static inspection independently of an active native targe
|
||||
},
|
||||
});
|
||||
await assertFieldMemberRefToken(client, fieldTokenPath);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("compares observed call-target names through the managed MCP contract", async () => {
|
||||
const directory = await createTestTempDirectory("rea-managed-call-target-");
|
||||
@@ -308,7 +308,7 @@ it("opens a managed PE and executes the managed static provider through MCP", as
|
||||
rightPath,
|
||||
assertOutput,
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
const verifyManagedCatalogAndNativeWorkflow = async (
|
||||
client: Client,
|
||||
|
||||
@@ -304,7 +304,7 @@ it("summarizes selected members and pages every original collection after the fi
|
||||
});
|
||||
if (!portable.ok) throw portable.error;
|
||||
expect(portable.value.normalized_result).toEqual(view);
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("keeps collections that historical member Evidence never examined unknown", async () => {
|
||||
const directory = await createTestTempDirectory("rea-member-historical-");
|
||||
@@ -360,7 +360,7 @@ it("keeps collections that historical member Evidence never examined unknown", a
|
||||
view: { kind: "managed", collection: "attributes", offset: 0, limit: 1 },
|
||||
}),
|
||||
).toMatchObject({ ok: false, error: { _tag: "AnalysisInputError" } });
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
it("binds managed member views to their recorded token scope", async () => {
|
||||
const original = MANAGED_RECONSTRUCTION_IMPORT_EXAMPLE.static_members;
|
||||
|
||||
@@ -332,7 +332,6 @@ describe("production MCP doctor", () => {
|
||||
if (cliParity)
|
||||
await assertCliCatalogIdentity(selectedEnvironment, identity);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -384,7 +383,6 @@ describe("production MCP doctor family scopes", () => {
|
||||
await assertStatusCatalogIdentity(environment, identity);
|
||||
if (cliParity) await assertCliCatalogIdentity(environment, identity);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
it("discovers an empty prompt inventory and explains a scope without session", async () => {
|
||||
@@ -428,7 +426,7 @@ describe("production MCP doctor family scopes", () => {
|
||||
expect(result.diagnostics?.stderr).toEqual(
|
||||
expect.stringContaining("REA_MCP_TOOL_FAMILIES"),
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe("production MCP doctor output", () => {
|
||||
@@ -662,7 +660,7 @@ describe("production MCP doctor probe validation", () => {
|
||||
});
|
||||
}
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe("production MCP doctor child lifecycle", () => {
|
||||
|
||||
@@ -123,14 +123,13 @@ describe.skipIf(process.platform !== "darwin")(
|
||||
() => {
|
||||
it("reports missing, directory and symlink-loop replacements as artifact changes and recovers in the same session", async () => {
|
||||
await inspectReplacements(["missing", "directory", "loop"]);
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it.skipIf(process.getuid?.() === 0)(
|
||||
"keeps permission denial distinct and recovers after restoring read access",
|
||||
async () => {
|
||||
await inspectReplacements(["unreadable"]);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -99,7 +99,7 @@ it("preserves raw and DOL verification facts and selected DOL sections through t
|
||||
limitations: expect.arrayContaining(report.limitations),
|
||||
});
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("delivers load-image summaries from the complete retained public-tool observation", async () => {
|
||||
const report = nativeRawLoadImageFixture();
|
||||
|
||||
@@ -132,7 +132,6 @@ describe("address navigation refusals", () => {
|
||||
await harness.close();
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -204,7 +203,7 @@ describe("address navigation refusal alternatives", () => {
|
||||
} finally {
|
||||
await harness.close();
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keep generic advice when the provider offers no declared alternative", async () => {
|
||||
const [target] = await createBinarySessionTargets();
|
||||
|
||||
@@ -68,5 +68,4 @@ itWithCaptureCapability(
|
||||
await harness.close();
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -451,7 +451,7 @@ describe("target-free MCP lifecycle", () => {
|
||||
path: canonicalTargetPath,
|
||||
sha256: z.object({ sha256: z.string() }).parse(second).sha256,
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe("snapshot receipt after MCP cleanup", () => {
|
||||
|
||||
@@ -100,7 +100,6 @@ process.on('exit', () => fs.writeSync(2, 'Evidence close attempts: ' + attempts
|
||||
);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
it("refuses oversized Evidence before a whole-file read", async () => {
|
||||
@@ -147,4 +146,4 @@ syncBuiltinESMExports();
|
||||
`Runtime Evidence exceeds 64 MiB: ${evidence}`,
|
||||
),
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
@@ -176,7 +176,6 @@ const macosIt = it.skipIf(process.platform !== "darwin");
|
||||
|
||||
macosIt(
|
||||
"completes at the permission boundary when the helper refuses changed target bytes",
|
||||
{ timeout: 30_000 },
|
||||
async () => {
|
||||
const result = await runVerifier(answersChangedBytes, [
|
||||
"--allow-permission-denial",
|
||||
@@ -195,7 +194,6 @@ macosIt(
|
||||
|
||||
macosIt(
|
||||
"fails when the helper does not refuse changed target bytes",
|
||||
{ timeout: 30_000 },
|
||||
async () => {
|
||||
const result = await runVerifier(denied, ["--allow-permission-denial"]);
|
||||
expect(result.code).toBe(1);
|
||||
@@ -210,7 +208,6 @@ macosIt(
|
||||
|
||||
macosIt(
|
||||
"keeps a permission denial a failure in the positive lane",
|
||||
{ timeout: 30_000 },
|
||||
async () => {
|
||||
const result = await runVerifier(answersChangedBytes, []);
|
||||
expect(result.code).toBe(1);
|
||||
|
||||
@@ -231,5 +231,4 @@ it.skipIf(process.platform === "win32")(
|
||||
await removeTestWorkspace(workspace.root);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -268,5 +268,4 @@ it.skipIf(process.platform === "win32").each(clients)(
|
||||
await removeTestWorkspace(workspace.root);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -262,7 +262,6 @@ processTest
|
||||
.skipIf(process.platform === "win32")
|
||||
.each(["interactive", "redirected"] as const)(
|
||||
"preserves selected configuration and closes the real PTY for %s setup",
|
||||
{ timeout: 30_000 },
|
||||
async (mode) => {
|
||||
const root = await createTestTempDirectory("rea-package-setup-success-");
|
||||
const scratch = join(root, "scratch");
|
||||
|
||||
@@ -129,7 +129,6 @@ const releaseDescendant = async (release: string, receipt: string) => {
|
||||
// install, native engine, or WABT behavior is simulated or claimed.
|
||||
processTest.skipIf(process.platform === "win32")(
|
||||
"joins a timed-out npm entry and its acknowledged descendant before removing the verifier root",
|
||||
{ timeout: 30_000 },
|
||||
async ({ processes }) => {
|
||||
const root = await createTestTempDirectory("rea-package-command-owner-");
|
||||
const scratch = join(root, "scratch");
|
||||
|
||||
@@ -237,7 +237,6 @@ itWithCaptureCapability(
|
||||
}
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
|
||||
@@ -298,7 +298,6 @@ itWithCaptureCapability(
|
||||
},
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -348,7 +347,6 @@ itWithCaptureCapability(
|
||||
},
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -388,7 +386,6 @@ itWithCaptureCapability(
|
||||
).toBeGreaterThanOrEqual(10);
|
||||
expect(updates.at(-1)?.details.owned_process_group).toBe("cleaned");
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -417,7 +414,6 @@ itWithCaptureCapability(
|
||||
},
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -449,7 +445,6 @@ itWithCaptureCapability(
|
||||
},
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -540,7 +535,6 @@ itWithCaptureCapability(
|
||||
code: 0,
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
@@ -641,5 +635,4 @@ itWithCaptureCapability(
|
||||
/setInterval|CHILD/u,
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -163,5 +163,4 @@ itWithCaptureCapability.each([
|
||||
}),
|
||||
);
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -228,7 +228,6 @@ itWithCaptureCapability(
|
||||
temporary_root: "removed",
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
itWithCaptureCapability(
|
||||
|
||||
@@ -79,5 +79,4 @@ it.skipIf(process.platform === "win32")(
|
||||
await fixture.cleanup([pending, provider.close()]);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -60,5 +60,4 @@ it
|
||||
await fixture.cleanup([probe, commands.close()]);
|
||||
}
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
@@ -144,7 +144,7 @@ describe.skipIf(process.platform === "win32")(
|
||||
},
|
||||
},
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it.each([
|
||||
["process exit", "flood_then_exit_tools"],
|
||||
@@ -167,7 +167,6 @@ describe.skipIf(process.platform === "win32")(
|
||||
diagnostics: { failure_output: { observed_oome: [] } },
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
|
||||
it("does not mistake a budget-cut identifier prefix for an OOME", async () => {
|
||||
@@ -190,7 +189,7 @@ describe.skipIf(process.platform === "win32")(
|
||||
},
|
||||
},
|
||||
});
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps a startup timeout after budget-exhausting output", async () => {
|
||||
const projected = await failedOperation("flood_silent", {
|
||||
@@ -201,7 +200,7 @@ describe.skipIf(process.platform === "win32")(
|
||||
expect(projected.remediation.action).not.toContain(
|
||||
"GHIDRA_HEADLESS_MAXMEM",
|
||||
);
|
||||
}, 30_000);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -91,12 +91,12 @@ describe("Hopper startup failure priority", () => {
|
||||
if (!(error instanceof HopperProcessError)) return;
|
||||
expect(error.exitCode).toBe(3);
|
||||
expect(error.stage).toBe("launch");
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("reports the same launcher exit without any cancellation", async () => {
|
||||
const error = await start("never");
|
||||
expect(error._tag).toBe("HopperProcessError");
|
||||
}, 30_000);
|
||||
});
|
||||
|
||||
it("keeps cancellation first when its abort handler causes the later launcher exit", async () => {
|
||||
const controller = new AbortController();
|
||||
@@ -117,5 +117,5 @@ describe("Hopper startup failure priority", () => {
|
||||
} finally {
|
||||
await client.close().catch(() => undefined);
|
||||
}
|
||||
}, 30_000);
|
||||
});
|
||||
});
|
||||
@@ -136,41 +136,37 @@ it.each([
|
||||
{ schemaVersion: undefined, expectations: {} },
|
||||
{ schemaVersion: 1, expectations: {} },
|
||||
{ schemaVersion: 2, expectations: { strings: ["ambiguous"] } },
|
||||
])(
|
||||
"refuses retired manifest semantics: %j",
|
||||
async (legacy) => {
|
||||
const { commands, root } = await ownedFixture(
|
||||
"rea-fixture-manifest-version-",
|
||||
);
|
||||
const manifest = join(root, "manifest.json");
|
||||
await writeFile(
|
||||
manifest,
|
||||
JSON.stringify({
|
||||
schemaVersion: legacy.schemaVersion,
|
||||
platform: "linux",
|
||||
fixtures: [{ expectations: legacy.expectations }],
|
||||
}),
|
||||
);
|
||||
await expect(
|
||||
commands.exec(process.execPath, [verifier, manifest, root], {
|
||||
cwd: root,
|
||||
timeout: 10_000,
|
||||
}),
|
||||
).rejects.toMatchObject({
|
||||
code: 1,
|
||||
snapshot: {
|
||||
stderr: {
|
||||
text: expect.stringContaining(
|
||||
legacy.schemaVersion === 2
|
||||
? "Invalid conformance fixture string expectations"
|
||||
: "Unsupported conformance manifest",
|
||||
),
|
||||
},
|
||||
])("refuses retired manifest semantics: %j", async (legacy) => {
|
||||
const { commands, root } = await ownedFixture(
|
||||
"rea-fixture-manifest-version-",
|
||||
);
|
||||
const manifest = join(root, "manifest.json");
|
||||
await writeFile(
|
||||
manifest,
|
||||
JSON.stringify({
|
||||
schemaVersion: legacy.schemaVersion,
|
||||
platform: "linux",
|
||||
fixtures: [{ expectations: legacy.expectations }],
|
||||
}),
|
||||
);
|
||||
await expect(
|
||||
commands.exec(process.execPath, [verifier, manifest, root], {
|
||||
cwd: root,
|
||||
timeout: 10_000,
|
||||
}),
|
||||
).rejects.toMatchObject({
|
||||
code: 1,
|
||||
snapshot: {
|
||||
stderr: {
|
||||
text: expect.stringContaining(
|
||||
legacy.schemaVersion === 2
|
||||
? "Invalid conformance fixture string expectations"
|
||||
: "Unsupported conformance manifest",
|
||||
),
|
||||
},
|
||||
});
|
||||
},
|
||||
30_000,
|
||||
);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("preserves a carriage return that belongs to an nm symbol name", () => {
|
||||
expect(splitNmSymbolRecords("rea_entry\r\nrea_inventory_0000\n")).toEqual([
|
||||
|
||||
Reference in new issue
Block a user