Repository navigation
refactor: delete the src symbols that only tests call - #4849
Conversation
|
The stage_ready row leaves pull request #4849 a draft. It holds the label |
Read each of the 129 symbols that vulture 2.16 lists as called only by tests, and each name of the #1910 list. Delete a symbol when no module of src, no entry point, no framework hook, no document and no string calls it, with the tests whose subject is that symbol. Delete the three modules that no module of src imports, and the helpers, constants, defaults and tool message that only a deleted symbol used. Keep framework hooks, invariant and gate helpers, test seams, unwired new code, files that other open items change, and names that a spec or a standards document holds. The design of the OpenSpec change gives the reason of each kept symbol. #5148 deletes the rest.
b9053fa to
76e896d
Compare
MeasurementsTest cases in the 54 changed test files, from
Time of the deleted test cases,
Code: 2100 lines deleted from 52 files of Checks run on this branch
|
76e896d to
49219ce
Compare
Owner stepsThe stage job opened this pull request as a plan, and it keeps the labels of that plan. The plan now covers the 129-symbol scope of the CI audit, and group 5 runs mypy and the tests, so the two open findings of the plan review are fixed. The agent could not remove the labels.
Note: the first CI Quality Gate run of head |
|
Independent review of head 49219ce (2026-11-12): no blocking findings.
Minor, non-blocking: orphans that only deleted code used remain ( The label |
🤖 I have created a release *beep* *boop* --- ## [0.123.1](v0.123.0...v0.123.1) (2026-11-12) ### Bug Fixes * **roadmap:** write and read the kind of each plan task group ([#5262](#5262)) ([592227e](592227e)) ### Code Refactoring * delete the src symbols that only tests call ([#4849](#4849)) ([2550643](2550643)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Delete the src symbols that only tests call. The CI audit counted 129 with vulture 2.16. Each one, and each name of the #1910 list, was read by hand: a symbol goes when no module of src, no entry point, no framework hook, no document and no string calls it, with the tests whose subject it is (docs/TESTING.md: dead code is deleted).
The change deletes 75 audit symbols, 13 listed names, the modules ai/agents/capabilities.py, k8s/chaos_runner.py and output/table_builder.py, and the helpers, constants and defaults that only they used. Tests of live code move from a deleted wrapper to the live function.
It keeps framework hooks, gate helpers, test seams, unwired new code, files of other open items and names that a spec or standard holds; the OpenSpec design gives each reason, and #5148 takes the rest. No vulture gate is added.
Closes #1910
Change:
openspec/changes/archive/2026-11-12-1910-delete-unused-functions-after-manual-caller/