oliver-zehentleitner / maity

tools: retire the finished views-split tooling and its fixture copy of web/context; stop a tools test pinning live web/context entries

Sign in to report

tsk-s8vw1awdjpvy Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: debt (a one-time migration left in the tree, constraining live files).

What is wrong

  • The split of web/context/views.md is done (its docstring says so: tools/split_views_context.py:17-18, "The split was a one-time migration"). Still in the tree: tools/split_views_context.py (515 lines), tools/views_context_map.py (397), tools/views_families.tsv (233), tools/views_index_summaries.json, tools/test_split_views_context.py (227), tools/test_views_context_map.py (127), and tools/fixtures/split_views_context/ (an 8,480-line views.md and an after/ copy of all 22 web/context files, about 19.6k lines).
  • tools/test_views_context_map.py:55-68 runs vcm.load() against the live web/context/: every id in views_families.tsv must stay in one of the 19 fixed files (views_context_map.py:43-63) and entry a8f4ac34 must stay in inbox.md. Moving or removing one of those entries fails the tools tests.
  • The fixture copies duplicate every web/context entry Id, so every grep for an Id also hits tools/fixtures/split_views_context/after/.
  • Nothing outside the changelog names views_context_map.py.

Proposal

  • Delete the two tools, their tests, the TSV, the JSON and the fixtures (recoverable from git). Mark context/process.md:3056-3088 (entry 58f9c09d) superseded, since its revisit condition is met, and the b4ccca85 entry that sees it.

Effort / risk: S. Low; only tools tests change.