Skip to content

refactor(docs-i18n): remove unused test translator - #144580

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-docs-i18n-orphan-20260911
Sep 11, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-docs-i18n-orphan-20260911

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

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

  • Three focused Go marker/fence tests passed, with no skips, using the installed Go toolchain and GOTOOLCHAIN=local.
  • The normal test/scripts/docs-i18n.test.ts bridge executed all four Go-test partitions successfully, with no skips.
  • gofmt -d and git diff --check were empty.
  • All 12 selected changed-file checks completed successfully. The oxfmt step matched no Go files; Go formatting is covered separately by gofmt.
  • One fresh scoped P2 review found no actionable issues.
  • Required CI is green after separately reviewed, job-only diagnostic retries of small-15 and small-19 on the unchanged head. Both previously failing case groups, resource-cleanup assertions and the workflow-owned gate passed. The original failures remain recorded; this recovery does not establish a flake or root-cause fix.
  • CI tested the bound GitHub synthetic merge of this head. Its patch and selected source inputs were verified, without claiming whole-repository equality.

The local module/bridge and hosted checks are not live translation-service or external Codex runtime proof. No performance improvement is claimed.

@vincentkoc vincentkoc self-assigned this Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 11, 2026 02:04
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 10:10 PM ET / September 11, 2026, 02:10 UTC.

ClawSweeper review

What this changes

Removes 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
Reviewed head: ab08a99c43f71ddcd9a582861ea1cbf084d2be2f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup with preserved regression coverage and appropriate reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR removes only unused test support; production translation behavior is unchanged, and the reported Go and bridge runs provide supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR removes only unused test support; production translation behavior is unchanged, and the reported Go and bridge runs provide supplemental validation.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff removes only the unused type and its three methods. No tests, imports, production files, or dependency declarations change.
Cleanup remains applicable on main: The inspected main contains exactly four occurrences of splitProtocolMarkerTranslator: its declaration and three method receivers, with no construction or use.
Retained regression protection: The complete split-marker, fenced-literal masking, and duplicate-placeholder retry tests remain intact. The retained masking stub attempts the same Notice-to-Aviso mutation and records translator inputs for preservation assertions.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -12. Total -12 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 0 12 -12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 12 -12

Review metrics

None.

Root-cause cluster

Relationship: partial_overlap
Canonical: #139428
Summary: This cleanup contributes to the broader test-audit campaign without completing its aggregate acceptance targets.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This removes unused test support without changing runtime behavior or regression coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR removes only unused test support; production translation behavior is unchanged, and the reported Go and bridge runs provide supplemental validation.

Label justifications:

  • P3: This removes unused test support without changing runtime behavior or regression coverage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR removes only unused test support; production translation behavior is unchanged, and the reported Go and bridge runs provide supplemental validation.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff removes only the unused type and its three methods. No tests, imports, production files, or dependency declarations change. (scripts/docs-i18n/doc_mode_test.go:251, ab08a99c43f7)
  • Cleanup remains applicable on main: The inspected main contains exactly four occurrences of splitProtocolMarkerTranslator: its declaration and three method receivers, with no construction or use. (scripts/docs-i18n/doc_mode_test.go:251, 95f3ed90285b)
  • Retained regression protection: The complete split-marker, fenced-literal masking, and duplicate-placeholder retry tests remain intact. The retained masking stub attempts the same Notice-to-Aviso mutation and records translator inputs for preservation assertions. (scripts/docs-i18n/doc_mode_test.go:1935, ab08a99c43f7)
  • Three-way merge preserves scope: Raw test-merge parents match the pinned base followed by the exact PR head; comparison against that base shows only the same helper deletion. (scripts/docs-i18n/doc_mode_test.go:251, 9642d47e9418)
  • Latest release still contains the helper: GitHub's v2026.9.3 source contains both the unused stub and the retained masking-based regression tests, so this cleanup is not already present in the supplied latest release. (scripts/docs-i18n/doc_mode_test.go:251, 1391f7cd2d40)
  • Campaign context and reported validation: The captured PR body links the active maintainer-requested campaign at Test audit: reduce redundant test code and full-suite runtime #139428 and reports three focused Go tests, all four Go-test bridge partitions, formatting, and changed-file checks passing. These are contributor-reported results; this read-only review did not execute tests. Captured sourceRevision: 6614b69a9d31d56a9aa08345be26480b76fa4d7def2d38db0503f66ef89ef925. (ab08a99c43f7)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit e62272f into main Sep 11, 2026
365 of 371 checks passed
@vincentkoc
vincentkoc deleted the refactor/test-audit-docs-i18n-orphan-20260911 branch September 11, 2026 02:55
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant