From 2d1d8c45ea305cd5f39f9c25de4b3ae9e0957d71 Mon Sep 17 00:00:00 2001 From: 64579525 <17373302683@163.com> Date: Tue, 13 Oct 2026 11:04:10 +0800 Subject: [PATCH] test(ci): own iNES macOS coverage and portable fixture paths --- scripts/ci/scopes.mjs | 6 ++++ .../boundary/filesystem/ciChangeScope.test.ts | 32 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/scripts/ci/scopes.mjs b/scripts/ci/scopes.mjs index 497dfeed0..19e3a035b 100644 --- a/scripts/ci/scopes.mjs +++ b/scripts/ci/scopes.mjs @@ -4,6 +4,12 @@ export const SCOPES = { // Apple artifact CLI/MCP lane on macOS, including its focused regressions. apple: [ + "src/artifacts/InesArtifactReader.ts", + "src/domain/inesContainer.ts", + "tests/fixtures/ines.ts", + "tests/acceptance/inesContainer.test.ts", + "tests/boundary/filesystem/inesArtifact.test.ts", + "tests/boundary/filesystem/inesCancellation.test.ts", "src/native/Apple*", "src/native/NativeMacOS*", "src/native/NativeUi*", diff --git a/tests/boundary/filesystem/ciChangeScope.test.ts b/tests/boundary/filesystem/ciChangeScope.test.ts index 9176dec34..fcce47693 100644 --- a/tests/boundary/filesystem/ciChangeScope.test.ts +++ b/tests/boundary/filesystem/ciChangeScope.test.ts @@ -7,6 +7,7 @@ import { writeFile, } from "node:fs/promises"; import { dirname, join, matchesGlob } from "node:path"; +import { fileURLToPath } from "node:url"; import { afterAll, beforeAll, expect, it } from "vitest"; import { parse } from "yaml"; @@ -83,7 +84,7 @@ async function classify( await writeFile(output, ""); const result = await execFileAsync( process.execPath, - [new URL("../../../scripts/ci/plan.mjs", import.meta.url).pathname], + [fileURLToPath(new URL("../../../scripts/ci/plan.mjs", import.meta.url))], { cwd: directory, env: { @@ -316,6 +317,30 @@ it.each([ "tests/boundary/cli/nativePlistCli.test.ts", { code: true, apple: true, package: false, runtime: false }, ], + [ + "src/artifacts/InesArtifactReader.ts", + { code: true, apple: true, package: false, runtime: true }, + ], + [ + "src/domain/inesContainer.ts", + { code: true, apple: true, docs: true, package: false, runtime: true }, + ], + [ + "tests/fixtures/ines.ts", + { code: true, apple: true, package: false, runtime: false }, + ], + [ + "tests/acceptance/inesContainer.test.ts", + { code: true, apple: true, package: false, runtime: false }, + ], + [ + "tests/boundary/filesystem/inesArtifact.test.ts", + { code: true, apple: true, package: false, runtime: false }, + ], + [ + "tests/boundary/filesystem/inesCancellation.test.ts", + { code: true, apple: true, package: false, runtime: false }, + ], [ "tests/boundary/filesystem/windowsNpxRegistration.test.ts", { code: true, package: true, runtime: true, apple: false }, @@ -419,8 +444,9 @@ it.each([ ); it("rejects skipped selected work while allowing unselected lanes to skip", async () => { - const command = new URL("../../../scripts/ci/required.mjs", import.meta.url) - .pathname; + const command = fileURLToPath( + new URL("../../../scripts/ci/required.mjs", import.meta.url), + ); const jobs = { changes: { result: "success", outputs: { evm: "true" } }, static: { result: "success" },