Skip to content

fix(ci): keep transcript geometry tests within file budget - #148030

Merged
vincentkoc merged 1 commit into
mainfrom
fix/chat-transcript-test-budget-20260914
Sep 14, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/chat-transcript-test-budget-20260914

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Related: #147612

What Problem This Solves

Required CI fails because the transcript controller test grew past the 1,000-line test-file limit after the hidden-viewport geometry coverage landed.

User Impact

No user-visible behavior changes. The existing transcript tests fit the unchanged lint limit.

Why This Change Was Made

Move four geometry test definitions (five cases) into a sibling suite and share the existing transcript-size assertion helper. Both suites retain the same isolated runner, DOM setup and cleanup; all 24 test-definition bodies remain byte-for-byte unchanged.

This maintainer-requested prerequisite unblocks qualification of #143610. Production delta: zero. Test/support/routing delta: +237/-209 (net +28).

Evidence

  • Observed required-lint failure: 1,010 counted lines against the 1,000-line limit.
  • The identical patch on prior head 2f769840eae57cbdb0768445d25ef42514cc3a53 passed all 90 relevant cases in hosted isolated UI tests: controller 35, geometry 5, invalidation 18 and render 32. That run used merge 7fc018b979631c11541d63bbd324a086331f76b9; its required lint failed the older sidebar helper, and it did not complete type/aggregate qualification.
  • Current candidate f1fcf286e179674e23711e259b19730cf94eaa15 reapplies those exact four file changes on 43bf86e1ef4f81a80a6eacfee25c7ea830b9597a, which contains the separately landed sidebar fix. Fresh candidate CI remains pending.
  • Targeted Oxfmt 0.66.0 and existing Oxlint 1.75.0 checks passed; hosted CI pins Oxlint 1.81.0. Independent source/composition review and fresh complete-diff review found no actionable findings.

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

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check could not safely complete for this revision.

ClawSweeper will not retry this unchanged revision.

Next step: No contributor action is requested. Maintainers should inspect the linked workflow run.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:32 AM ET / 07:32 UTC (Revision 2).

ClawSweeper review

What this changes

Moves transcript geometry tests into a separate isolated suite and shares their size helper to satisfy the existing test-file limit.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped CI repair: the test bodies are preserved, isolation is retained, and fetched main does not contain the split. No actionable patch defects were found.

Priority: P3
Reviewed head: 2f769840eae57cbdb0768445d25ef42514cc3a53

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coverage-preserving repair with no actionable findings; ordinary CI qualification remains separate.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test reorganization changes no production owner or visible behavior and triggers no authority-chain proof requirement; related UI screenshots do not validate the split.
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 test reorganization changes no production owner or visible behavior and triggers no authority-chain proof requirement; related UI screenshots do not validate the split.
Evidence reviewed 7 items Test preservation: A read-only comparison of complete test-definition blocks confirmed all 24 definitions remain identical after removing separator whitespace; four definitions, covering five cases, move to the geometry suite. The controller file falls from 1,113 to 905 physical lines, below the 1,000 counted-line limit even before excluded comments and blank lines.
Runner isolation preserved: The new suite joins the canonical isolation list. Both root Vitest configurations and the UI package configuration consume that list, excluding these tests from shared module graphs. Both suites retain the same setup and cleanup.
Still needed on fetched main: The existing controller tests, support module, and isolation list are unchanged between the merge base and fetched main; the new geometry suite is absent from fetched main and the supplied latest release v2026.9.4. The merged related UI change does not implement this file-budget repair.
Findings None None.
Security None None.

How this fits together

Control UI transcript tests exercise chat rendering, resizing, and scroll preservation. The shared test registry routes suites requiring fresh DOM and module state into isolated Vitest runners.

flowchart LR
  A[Transcript regression tests] --> B[Controller suite]
  A --> C[Geometry suite]
  B --> D[Shared DOM helpers]
  C --> D
  B --> E[Isolation registry]
  C --> E
  E --> F[Isolated test runners]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +28. Total +28 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 237 209 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 237 209 +28

Review metrics

Metric Value Why it matters
Coverage preservation 24 test definitions preserved; 4 definitions / 5 cases relocated The split restores file-budget headroom without weakening existing assertions.

Technical review

Best possible solution:

Keep the geometry coverage in a focused sibling suite under the existing isolation owner without relaxing file limits or changing runtime behavior.

Do we have a high-confidence way to reproduce the issue?

Not applicable to a product defect: this reorganizes existing tests; source inspection verifies the reduced file size and preserved definitions.

Is this the best way to solve the issue?

Yes. A sibling suite using the existing helpers and isolation registry is a narrow repair that preserves coverage and the lint threshold.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 43bf86e1ef4f.

Labels

Label justifications:

  • P3: This is a bounded test-organization repair with no user-visible runtime change.
  • 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 test reorganization changes no production owner or visible behavior and triggers no authority-chain proof requirement; related UI screenshots do not validate the split.

Evidence

What I checked:

  • Test preservation: A read-only comparison of complete test-definition blocks confirmed all 24 definitions remain identical after removing separator whitespace; four definitions, covering five cases, move to the geometry suite. The controller file falls from 1,113 to 905 physical lines, below the 1,000 counted-line limit even before excluded comments and blank lines. (ui/src/pages/chat/components/chat-transcript-geometry.test.ts:22, 2f769840eae5)
  • Runner isolation preserved: The new suite joins the canonical isolation list. Both root Vitest configurations and the UI package configuration consume that list, excluding these tests from shared module graphs. Both suites retain the same setup and cleanup. (test/vitest/vitest.ui-isolated-paths.mjs:35, 2f769840eae5)
  • Still needed on fetched main: The existing controller tests, support module, and isolation list are unchanged between the merge base and fetched main; the new geometry suite is absent from fetched main and the supplied latest release v2026.9.4. The merged related UI change does not implement this file-budget repair. (ui/src/pages/chat/components/chat-transcript-controller.test.ts, 43bf86e1ef4f)
  • Maintainer-requested prerequisite: The supplied body identifies this as a requested prerequisite for feat(ios): add selected-conversation actions #143610, whose body independently names the dependency. CONTRIBUTING.md allows specifically requested refactoring for concrete fixes. The author is a MEMBER and the PR carries the protected maintainer label. (CONTRIBUTING.md:21, 2f769840eae5)
  • History-based routing: Current-main file history lists prior transcript-support work by Vincent Koc and Peter Steinberger. Deeper blame and historical patch reads encountered unavailable Git objects and HTTP 403 responses, so these are routing candidates without verified source-line introduction claims. (ui/src/pages/chat/components/chat-transcript.test-support.ts, 43bf86e1ef4f)
  • Validation and inspection limits: The supplied checks show all three UI shards passing. The failed check-lint-core-2 annotation only reports exit code 1; its log redirect was blocked by the host's domain allowlist, so its cause remains unclassified. No tests or formatters were executed during this read-only review. The introduced diff passes git diff --check, and the checkout remains clean. (2f769840eae5)

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T07:16:33.728Z sha 2f76984 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 07:19
@vincentkoc
vincentkoc force-pushed the fix/chat-transcript-test-budget-20260914 branch 2 times, most recently from f1fcf28 to 7ae9838 Compare September 14, 2026 07:56
@vincentkoc
vincentkoc force-pushed the fix/chat-transcript-test-budget-20260914 branch from 7ae9838 to 846f0e2 Compare September 14, 2026 08:12
@vincentkoc
vincentkoc merged commit acc699c into main Sep 14, 2026
227 of 229 checks passed
@vincentkoc
vincentkoc deleted the fix/chat-transcript-test-budget-20260914 branch September 14, 2026 10:46
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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. size: M 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