Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(ci): isolate report fixtures and declare PowerPC Java bounds
  • Loading branch information
morluto committed Oct 13, 2026
commit 3f4e90028de475b87efa0f5a2bce79a9a788af6d
2 changes: 1 addition & 1 deletion src/ghidra/GhidraPowerPcProfile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PPC_LDEFS = `<?xml version="1.0" encoding="UTF-8"?>
const host: GhidraInstallationHost = {
platform: "linux",
architecture: "x64",
readText: () => "application.version=12.1.4\n",
readText: () => "application.version=12.1.4\napplication.java.min=21\n",
executable: () => true,
probeJava: () => ({
version: "21.0.11",
Expand Down
31 changes: 25 additions & 6 deletions tests/boundary/filesystem/ciTestReports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ import { workflowGit } from "../../support/workflowGit.js";

const execute = promisify(execFile);
const script = new URL("../../../scripts/ci/test-report.mjs", import.meta.url);
// Report fixtures own their publication destinations and group outcomes. A
// hosted runner's summary path must not divert fixture stdout into the live job
// summary, and its classification must not change fixture completeness.
const reportEnvironment = {
...process.env,
GITHUB_STEP_SUMMARY: "",
SOURCE_REQUIRED: "false",
SOURCE_RESULT: "",
CI_VERIFY_TEST_INVENTORY: "false",
CI_TEST_SELECTION: "",
};
const stepsSchema = z.array(
z.object({
name: z.string().optional(),
Expand Down Expand Up @@ -228,7 +239,7 @@ it("rejects successful shard reports with missing or duplicate portable files",
return execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: {
...process.env,
...reportEnvironment,
SHARD_RESULT: "success",
MERGE_RESULT: "success",
CI_VERIFY_TEST_INVENTORY: "true",
Expand Down Expand Up @@ -312,7 +323,7 @@ it("exports portable timing history and removes it on a failed, partial, or inva
return execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: {
...process.env,
...reportEnvironment,
GITHUB_STEP_SUMMARY: summary,
SHARD_RESULT: shards,
SOURCE_REQUIRED: String(source !== undefined),
Expand Down Expand Up @@ -461,7 +472,7 @@ it("recovers complete module costs from real blob reports without executing test
const partial = await execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: {
...process.env,
...reportEnvironment,
SHARD_RESULT: "skipped",
SOURCE_REQUIRED: "true",
SOURCE_RESULT: "success",
Expand All @@ -475,7 +486,11 @@ it("recovers complete module costs from real blob reports without executing test
).rejects.toMatchObject({ code: "ENOENT" });
await execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: { ...process.env, SHARD_RESULT: "success", MERGE_RESULT: "success" },
env: {
...reportEnvironment,
SHARD_RESULT: "success",
MERGE_RESULT: "success",
},
});
expect(
parseTestDurations(
Expand Down Expand Up @@ -510,7 +525,11 @@ it("recovers complete module costs from real blob reports without executing test
// Even a caller accidentally marking the merge successful cannot publish this report.
await execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: { ...process.env, SHARD_RESULT: "success", MERGE_RESULT: "success" },
env: {
...reportEnvironment,
SHARD_RESULT: "success",
MERGE_RESULT: "success",
},
});
await expect(
readFile(join(root, ".cache/ci-test-history/test-results.json")),
Expand Down Expand Up @@ -546,7 +565,7 @@ it("records failed omissions from full reports without treating partial or unhan
await execute(process.execPath, [fileURLToPath(script)], {
cwd: root,
env: {
...process.env,
...reportEnvironment,
SHARD_RESULT: "failure",
SOURCE_REQUIRED: "true",
SOURCE_RESULT: source,
Expand Down