Skip to content

perf(test): classify tracked tests once for project policy checks - #14331

Merged
vincentkoc merged 1 commit into
mainfrom
perf/ci-test-ownership-inventory
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/ci-test-ownership-inventory

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 09:20
@vincentkoc
vincentkoc enabled auto-merge (squash) November 24, 2026 09:20
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T09:20:19.122211Z
We couldn’t complete this review. Comment @codex review to try again.
0a2703c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Shares one lazy inventory between the ownership checks and module-isolation probes in ciTestProjects.test.ts.

  • Project policy tests classify tracked files once and reuse the results.

Reviews (1) · Last reviewed commit: "perf(test): classify tracked tests once ..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit eb256b3 into main Nov 24, 2026
38 checks passed
@vincentkoc
vincentkoc deleted the perf/ci-test-ownership-inventory branch November 24, 2026 09:37
@morluto morluto added area: tests Test suite and verification performance Performance regressions, scaling limits, and bounded-resource work labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification performance Performance regressions, scaling limits, and bounded-resource work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants