Repository navigation
perf(test): classify tracked tests once for project policy checks - #14331
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryShares one lazy inventory between the ownership checks and module-isolation probes in
Reviews (1) · Last reviewed commit: "perf(test): classify tracked tests once ..." · Reviewed by Greptile |
Summary
The ownership and module-isolation tests enumerated tracked files separately. Each isolation probe classified paths again until it found the first file in that project. Both tests now share a lazy inventory. It counts assignments and records the first tracked file per project in Git order. The existing tests still check every file's ownership and run the real lint probes.
Verification
On Node 24.22.1, an alternating old/new/new/old replay over the same 3,870 tracked tests produced identical source and built totals and identical representatives for all 12 projects. The ownership lookup count fell from 30,999 to 3,870. The lookup portion took 0.486–0.499 seconds before and 0.053–0.055 seconds after on this machine. Those are local lookup timings only. The standalone formatter and git diff whitespace checks passed.