Repository navigation
Skip Java source placeholders in local test planning - #36553
Conversation
Select Java sources only when they declare the named test class. Preserve inherited-test classes and batch reads of committed sources.
Keep placeholder exclusion covered by temporary test sources. The live plan check only asserts that real service tests are selected.
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Requiring class declarations during local Java test discovery could omit legitimate tests if parsing misses valid declarations, reducing planned test coverage. Restricts local Java test discovery to files with a matching class declaration after stripping comments, so TODO-only source placeholders are no longer selected as runnable tests. The regression test that relied on a live TODO placeholder was decoupled and now passes against the fixed planner. No open issues found. ✅ 1 closed✅ Quality: Regression test depends on a live TODO placeholder staying unimplemented
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
🚦 Removed from the merge queue —
|
Describe your changes
Fix local Java test planning selecting TODO-only source files as runnable tests and then reporting missing test results. Require a matching class declaration for both unit and integration test discovery, while keeping classes with inherited tests eligible.
Test-tooling fix; no linked issue.
Type of change
High-level design
Reuse the class-declaration check after stripping comments. Read candidate files in batches for both working-tree and committed-tree discovery.
Tests
Planner regression tests
6efd86bca46: two ownership audits flagIdBatchesITandCustomPropertyReferences.java, and the lane assertion expects onlySystemResourceITin its command.ruff check,ruff format --check, andgit diff --checkpassed.Backend integration tests
Local Java test run: NOT NEEDED — no Java unit or integration test is impacted.
d705edb6c2ce(baseorigin/main)Playwright and ingestion tests
No UI or ingestion changes. The Playwright planner could not complete dependency expansion because local
@playwright/testis unavailable; no Playwright tests were run.Manual testing and UI recording
Checked the actual source inventory and regression plans. No manual UI run or recording applies to this test-tooling change.
Checklist
d705edb6c2ceagainstREVIEW.md: no blocking findings.