Repository navigation
chore(test): remove docs spellcheck source mirror - #133645
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:10 PM ET / August 31, 2026, 00:10 UTC. ClawSweeper reviewWhat this changesThe PR removes a brittle source-text assertion from the docs spellcheck test while retaining checks that dictionary and ignore-file entries are clean. Merge readinessKeep open: this is a focused, behavior-neutral test cleanup; current main and the latest release still contain the removed source-format mirror. The member-authored PR also carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe documentation spellcheck package command invokes a shell wrapper, which supplies the repository’s dictionary and ignore files to codespell. The test suite checks configuration-file hygiene alongside that wrapper. flowchart LR
A[Package command] --> B[Spellcheck wrapper]
C[Dictionary and ignore files] --> B
B --> D[Codespell]
E[Script test] --> C
D --> F[Documentation findings]
Decision needed
Why: The protected Before merge
Agent review detailsSecurityNone. PR surfaceTests -10. Total -10 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused cleanup: retain configuration-file hygiene coverage and rely on executable Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes test implementation coupling rather than reporting a runtime defect. Is this the best way to solve the issue? Yes: the removed assertions freeze shell formatting, while the package command and wrapper remain the executable behavior boundary and the configuration-hygiene test remains. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fa48aee896a2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
The docs-spellcheck unit test copied four shell-script substrings, including an assertion that only checked for a hyphen. It froze argument formatting without executing the wrapper and duplicated the stronger command boundary.
Why This Change Was Made
Removes the shell-text mirror and its unused path constant. The retained test still validates dictionary hygiene, while the repository's
docs:spellcheckcommand owns whether the wrapper passes the dictionary and ignore files correctly to codespell.User Impact
No user-visible behavior changes. Contributors retain dictionary quality checks without a source-format snapshot of the wrapper.
Evidence
node scripts/run-vitest.mjs test/scripts/docs-spellcheck.test.ts— 1 test passed.node scripts/check-changed.mjs -- test/scripts/docs-spellcheck.test.ts— passed.pnpm docs:spellcheckin a disposable codespell environment reached the executable boundary and reported the same five pre-existing corpus findings as currentmain; this test-only diff neither adds nor suppresses them.git diff --check origin/main...HEAD— passed.