From 4fdacbf982c1bb409dda50cb80ba3eec74dd259e Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 23 Nov 2026 01:03:08 -0500 Subject: [PATCH] fix(ci): track configuration inputs across cached checks (#14015) --- scripts/ci/change-plan.mjs | 8 +++++++- .../boundary/filesystem/ciChangeScope.test.ts | 13 ++++++++++++ .../filesystem/documentationFacts.test.ts | 11 ++++++++-- tsconfig.json | 2 +- turbo.json | 20 ++++++++++++++++++- 5 files changed, 49 insertions(+), 5 deletions(-) diff --git a/scripts/ci/change-plan.mjs b/scripts/ci/change-plan.mjs index 6e648f7196..915151bfb9 100644 --- a/scripts/ci/change-plan.mjs +++ b/scripts/ci/change-plan.mjs @@ -77,6 +77,8 @@ const STATIC_CODE_ONLY_INPUTS = [ // and portable tests without changing packaged host behavior. const DOCS_AND_CODE_INPUTS = [ "scripts/check-doc-facts.mjs", + "scripts/generate-completion-ledger.mjs", + "scripts/lib/completion-ledger-generation.mts", "scripts/generate-error-schema.mjs", "scripts/generate-third-party-inventory.mjs", "scripts/lib/product-catalog.*", @@ -226,7 +228,11 @@ export function planChanges(request, repository) { if (matchesAny(file, earlyAll ? paths : earlyInputs)) selected[owner] = true; // The documentation check validates living prose and the lockfile inventory. - if (isLivingProsePath(file) || file === "package-lock.json") + if ( + isLivingProsePath(file) || + file === "package-lock.json" || + file === "website/locales/languages.json" + ) selected.docs = true; if (file === ".git-blame-ignore-revs") return; if ( diff --git a/tests/boundary/filesystem/ciChangeScope.test.ts b/tests/boundary/filesystem/ciChangeScope.test.ts index 6c3199c101..f2dbb25078 100644 --- a/tests/boundary/filesystem/ciChangeScope.test.ts +++ b/tests/boundary/filesystem/ciChangeScope.test.ts @@ -596,6 +596,8 @@ it("routes license inventories to docs checks and keeps blame-ignore edits forma for (const docsAndCode of [ "scripts/check-doc-facts.mjs", "scripts/lib/product-catalog.mjs", + "scripts/generate-completion-ledger.mjs", + "scripts/lib/completion-ledger-generation.mts", ]) { expect(await classifyPaths([docsAndCode]), docsAndCode).toMatchObject({ code: true, @@ -615,6 +617,17 @@ it("routes license inventories to docs checks and keeps blame-ignore edits forma }); }); +it("checks README locale links when the website language inventory changes", async () => { + expect(await classifyPaths(["website/locales/languages.json"])).toMatchObject( + { + docs: true, + website: true, + runtime: false, + package: false, + }, + ); +}); + it("passes the workflow environment through the entrypoint unchanged", async () => { const { directory, base } = await fixture(); const head = await change(directory, ["src/evm/Example.ts"]); diff --git a/tests/boundary/filesystem/documentationFacts.test.ts b/tests/boundary/filesystem/documentationFacts.test.ts index df2266d7a7..2e910443c4 100644 --- a/tests/boundary/filesystem/documentationFacts.test.ts +++ b/tests/boundary/filesystem/documentationFacts.test.ts @@ -54,7 +54,7 @@ describe("literal tool counts", () => { ]); }); - it("invalidates the cached documentation check for every scanned root", async () => { + it("invalidates the cached documentation check for prose and directly inspected files", async () => { const turbo = JSON.parse( await readFile(join(root, "turbo.json"), "utf8"), ) as { @@ -74,7 +74,14 @@ describe("literal tool counts", () => { : [`${start}/nested/page.md`, `${start}/nested/page.html`], ); expect(samples.every(isLivingProsePath)).toBe(true); - expect(samples.filter((path) => !cached(path))).toEqual([]); + const directlyInspected = [ + ".cursor-plugin/skills/reverse-engineer-anything/SKILL.md", + ".github/pull_request_template.md", + "website/locales/languages.json", + ]; + expect( + [...samples, ...directlyInspected].filter((path) => !cached(path)), + ).toEqual([]); }); }); diff --git a/tsconfig.json b/tsconfig.json index bad6d8858d..32470035f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ "include": [ "src/**/*.ts", "tests/**/*.ts", - "vitest.config.ts", + "vitest*.config.ts", "docs/.vitepress/config.ts" ], "exclude": ["dist", "node_modules"] diff --git a/turbo.json b/turbo.json index f866f0bd38..067df72f3e 100644 --- a/turbo.json +++ b/turbo.json @@ -47,7 +47,7 @@ "tsconfig.json", "tsconfig.build.json", "tsconfig.scripts.json", - "vitest.config.ts", + "vitest*.config.ts", "scripts/**/*.d.{cts,mts,ts}", "scripts/**/*.mjs", "scripts/**/package.json", @@ -161,6 +161,7 @@ "scripts/generate-*.mjs", "scripts/check-doc-facts.mjs", "scripts/lib/*.mjs", + "scripts/lib/completion-ledger-generation.mts", "scripts/verify/managed/*.mjs", "scripts/fixtures/managed/*.mjs", "scripts/verify/apple/*.mjs", @@ -172,9 +173,12 @@ "!docs/public/product-catalog.json", "!docs/verification/managed-conformance-*.json", ".agents/skills/**", + ".cursor-plugin/skills/**", + ".github/pull_request_template.md", "README*.md", "AGENTS.md", "CONTRIBUTING.md", + "website/locales/languages.json", "website/public/**/*.{md,html}", { "mode": "dependencyOutputs", @@ -216,7 +220,14 @@ "package.json", "package-lock.json", "scripts/generate-completion-ledger.mjs", + "scripts/lib/canonical-temporary-directory.mjs", + "scripts/lib/completion-ledger-generation.mts", "scripts/lib/generated-file.mjs", + "scripts/lib/verifier-artifact-scope.mjs", + "scripts/lib/verifier-cleanup.mjs", + "scripts/lib/verifier-fixture.mjs", + "scripts/lib/verifier-run.mjs", + "scripts/lib/verifier-source-loader.mjs", "scripts/verify/managed/**", "scripts/fixtures/managed/**" ], @@ -246,7 +257,14 @@ "package.json", "package-lock.json", "scripts/generate-completion-ledger.mjs", + "scripts/lib/canonical-temporary-directory.mjs", + "scripts/lib/completion-ledger-generation.mts", "scripts/lib/generated-file.mjs", + "scripts/lib/verifier-artifact-scope.mjs", + "scripts/lib/verifier-cleanup.mjs", + "scripts/lib/verifier-fixture.mjs", + "scripts/lib/verifier-run.mjs", + "scripts/lib/verifier-source-loader.mjs", "scripts/verify/managed/**", "scripts/fixtures/managed/**", {