fix(test): avoid runtime rebuilds after test utility edits (#163571)

Exclude dotted .test-utils.ts and .test-utils.tsx paths through the existing build-input owner. Preserve runtime support inputs and extend the existing build-stamp regression.

The controlled prepared test-utility-edit workflow at db793644 improved from 67.205s to 27.870s mean wall time. Current-source correctness and changed-file gates remain pending in the draft PR.
This commit is contained in:
Peter Steinberger 2026-10-02 10:10:28 -07:00 • committed by GitHub
parent b5a41c2001
commit dd5ff2c382
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 0 deletions

View file

@ -51,6 +51,8 @@ export const normalizeRunNodePath = (filePath: unknown): string =>
export const isIgnoredRunNodeSourcePath = (relativePath: string): boolean =>
relativePath.endsWith(".test.ts") ||
relativePath.endsWith(".test.tsx") ||
relativePath.endsWith(".test-utils.ts") ||
relativePath.endsWith(".test-utils.tsx") ||
relativePath.endsWith("test-helpers.ts");
const isBuildRelevantSourcePath = (relativePath: string): boolean =>