Repository navigation
refactor: delete zero-reference defs and the unused paired_cluster module - #1189
Conversation
…dule DocMetrics, colour_of and _is_public have no reference in dokimi or its tests. eval/paired_cluster.py (added in intel#431) has no production caller: its only importer was its own test, so both files go. The Removed fragment names the two public symbols. Test-narrowed: tests/test_paired_cluster.py is deleted with eval/paired_cluster.py, the only code it exercises; no production caller existed, so no check of shipped behaviour is lost. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 4 selected item(s). CI at `8c62f4b`: 1 failing, 20 passing, 4 skippedNot fully read: log of Test Linux Wheels Python 3.14: longer than 8000000 bytes, only the start was read
Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1189 +/- ##
==========================================
- Coverage 96.10% 96.08% -0.02%
==========================================
Files 491 490 -1
Lines 64882 64804 -78
Branches 11266 11250 -16
==========================================
- Hits 62352 62269 -83
- Misses 1560 1561 +1
- Partials 970 974 +4
🚀 New features to boost your workflow:
|
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟢 LGTM · checked 8c62f4b · nothing required from @napetrov
🔀 Merge: safe now · merges cleanly into current main, 3 commits behind; its tests pass on the merge · no open PR touches its files
✅ make ci-local --offline: 28,203 passed · schema_compat fails from the base (opportunities.v1.json from #1082 on main), not from this PR · ✅ no reference to the removed names left in code, tests, docs or main · ✅ 318 tests of the touched modules pass on the merge
A clean deletion: nothing used these names, and the fragment and Test-narrowed: line say so.
vchamarthi
left a comment
There was a problem hiding this comment.
Approving 8c62f4b.
What I checked: the full test suite passes with main merged in (28,384 tests), apart from failures main has too; it merges cleanly onto main.
Summary
Arch review round 6, items R6-3 and R6-4. Test-only helpers are left alone.
Evidence
DocMetrics,_is_public,colour_of);paired_clusterhas no non-test importer.After:
git grepfor each removed name over tracked files returns no code, doc or test hit (only an unrelated hunk header in.agent-eval/tasks/feat-static-metric/oracle.patch).scripts/check_test_narrowing.py --base intel/main --head HEADexits 0 (the deleted test file is waived by theTest-narrowed:line in the commit message).make ci-localstatic job on this head: 17/17 pass (includes Test narrowing and the changelog fragment check). The full test job passed on the same package and test tree before the changelog wording fix and the commit-message waiver.Merge Danger
Door: two-way. A revert restores the three names and the module.
Public names go:
dokimi.runner.run.DocMetrics,dokimi.novelty.report.colour_of, and the moduledokimi.eval.paired_cluster. Code outside the repo that imports them breaks on upgrade; the### Removedfragment says so.Blast Radius: library import surface only. No CLI, artifact, schema or runtime path reads these names, so CLI behaviour and output are unchanged.
Self-review
Local self-review (3 passes, finder runs as
claude -pchildren with fresh context; lens and probe checks run by hand). Two blocking findings were fixed (changelog count, test-narrowing waiver). A stale oracle fixture in.agent-evalis pre-existing: it pins base16e319fd, where it applies, and fails the same way on main.🤖 Generated with Claude Code