Merge branch 'main' into codex/process-replay-machine
This commit is contained in:
@@ -11,6 +11,7 @@ import { sanitizeCliOutput } from "../src/cliOutput.js";
|
|||||||
|
|
||||||
const execFileAsync = promisify(execFile);
|
const execFileAsync = promisify(execFile);
|
||||||
const CLI_INTEGRATION_TIMEOUT_MS = 60_000;
|
const CLI_INTEGRATION_TIMEOUT_MS = 60_000;
|
||||||
|
const CLI_VARIANT_TIMEOUT_MS = 120_000;
|
||||||
|
|
||||||
describe("CLI output boundary", () => {
|
describe("CLI output boundary", () => {
|
||||||
it("preserves normal output and sanitizes text and JSON validation errors", () => {
|
it("preserves normal output and sanitizes text and JSON validation errors", () => {
|
||||||
@@ -156,7 +157,7 @@ describe("CLI output boundary", () => {
|
|||||||
).rejects.toMatchObject({ code: 1, stdout: expect.any(String) });
|
).rejects.toMatchObject({ code: 1, stdout: expect.any(String) });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
CLI_INTEGRATION_TIMEOUT_MS,
|
CLI_VARIANT_TIMEOUT_MS,
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
|
|||||||
@@ -537,7 +537,7 @@ describe("JavaScript artifact reconstruction", () => {
|
|||||||
truncated: true,
|
truncated: true,
|
||||||
omitted_count: 6,
|
omitted_count: 6,
|
||||||
});
|
});
|
||||||
});
|
}, 15_000);
|
||||||
|
|
||||||
it("rejects traversal from a production reader seam and malformed ASAR containers", async () => {
|
it("rejects traversal from a production reader seam and malformed ASAR containers", async () => {
|
||||||
const root = await fixtureDirectory();
|
const root = await fixtureDirectory();
|
||||||
|
|||||||
+27
-23
@@ -8,39 +8,43 @@ const TEST_FILES = ["tests/**/*.test.ts"];
|
|||||||
const PROCESS_CAPTURE_TEST = "tests/processCapture.test.ts";
|
const PROCESS_CAPTURE_TEST = "tests/processCapture.test.ts";
|
||||||
const CANONICAL_TEMPORARY_DIRECTORY = realpathSync(tmpdir());
|
const CANONICAL_TEMPORARY_DIRECTORY = realpathSync(tmpdir());
|
||||||
const SERIAL_INTEGRATION_TESTS = [
|
const SERIAL_INTEGRATION_TESTS = [
|
||||||
|
"tests/applicationWorkflowCli.test.ts",
|
||||||
"tests/browserCli.test.ts",
|
"tests/browserCli.test.ts",
|
||||||
"tests/cliOutput.test.ts",
|
"tests/cliOutput.test.ts",
|
||||||
|
"tests/electronCli.test.ts",
|
||||||
|
"tests/javascriptArtifactReconstruction.test.ts",
|
||||||
PROCESS_CAPTURE_TEST,
|
PROCESS_CAPTURE_TEST,
|
||||||
"tests/runtime.test.ts",
|
"tests/runtime.test.ts",
|
||||||
];
|
];
|
||||||
const dualCoreProjects =
|
const isolatedProjects = {
|
||||||
availableParallelism() === 2
|
maxWorkers: Math.min(2, availableParallelism()),
|
||||||
? {
|
projects: [
|
||||||
maxWorkers: 2,
|
{
|
||||||
projects: [
|
extends: true as const,
|
||||||
{
|
test: {
|
||||||
test: {
|
name: "parallel",
|
||||||
name: "parallel",
|
include: TEST_FILES,
|
||||||
include: TEST_FILES,
|
exclude: SERIAL_INTEGRATION_TESTS,
|
||||||
exclude: SERIAL_INTEGRATION_TESTS,
|
sequence: { groupOrder: 0 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: {
|
extends: true as const,
|
||||||
name: "serial-integration",
|
test: {
|
||||||
include: SERIAL_INTEGRATION_TESTS,
|
name: "serial-integration",
|
||||||
fileParallelism: false,
|
include: SERIAL_INTEGRATION_TESTS,
|
||||||
},
|
fileParallelism: false,
|
||||||
},
|
sequence: { groupOrder: 1 },
|
||||||
],
|
},
|
||||||
}
|
},
|
||||||
: {};
|
],
|
||||||
|
};
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
include: TEST_FILES,
|
include: TEST_FILES,
|
||||||
env: { TMPDIR: CANONICAL_TEMPORARY_DIRECTORY },
|
env: { TMPDIR: CANONICAL_TEMPORARY_DIRECTORY },
|
||||||
...dualCoreProjects,
|
...isolatedProjects,
|
||||||
retry: 2,
|
retry: 2,
|
||||||
reporters: ["default", "verbose"],
|
reporters: ["default", "verbose"],
|
||||||
coverage: {
|
coverage: {
|
||||||
|
|||||||
Reference in New Issue
Block a user