Repository navigation
refactor(docs-i18n): remove unused test translator - #144580
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 10:10 PM ET / September 11, 2026, 02:10 UTC. ClawSweeper reviewWhat this changesRemoves an unused translator stub from the documentation translation tests without changing test cases or runtime behavior. Merge readiness✅ Ready for maintainer review Keep open with no actionable findings. This is a bounded, maintainer-sponsored cleanup; the unused helper remains on inspected main, and the existing regression tests remain unchanged. Priority: P3 Review scores
Verification
How this fits togetherThe documentation translation pipeline protects Markdown syntax and protocol markers while translating prose. Its Go tests inject translator stubs to check preservation and retry behavior. flowchart LR
A[Documentation text] --> B[Mask protected literals]
B --> C[Translate chunks]
D[Test translator stubs] --> C
C --> E[Validate and restore literals]
E --> F[Translated documentation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -12. Total -12 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the active masking-based regression coverage and remove the unreachable test stub. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: source inspection confirms the deleted helper has no callers, and no test scenario is removed. Is this the best way to solve the issue? Yes. Deleting the unused declaration and methods is the narrowest cleanup, with the existing masking and retry tests preserved. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 95f3ed90285b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #139428
What Problem This Solves
The docs translation tests retained an unused translator after marker-preservation coverage moved to the fenced-literal masking helper. Its declaration and methods were the only remaining references.
Why This Change Was Made
Remove only that dead test helper. Keep every test, import, fixture and production file unchanged, including split-marker preservation, fenced-literal masking and duplicate-placeholder retry coverage.
User Impact
No runtime behavior change. This removes 12 lines of obsolete test support without removing a test case.
Evidence
GOTOOLCHAIN=local.test/scripts/docs-i18n.test.tsbridge executed all four Go-test partitions successfully, with no skips.gofmt -dandgit diff --checkwere empty.gofmt.The local module/bridge and hosted checks are not live translation-service or external Codex runtime proof. No performance improvement is claimed.