Skip to content

fix(ci): reconcile exact test budget and restore browser fixtures - #192026

Merged
steipete merged 8 commits into
mainfrom
steipete/fix-test-budget-lane2156
Nov 3, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/fix-test-budget-lane2156

Conversation

@steipete

@steipete steipete commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fully allocated regression tests can fail CI when earlier changes exhaust the shared test-line budget. This approved reconciliation sets the ceiling to the exact current tracked tree and repairs the remaining inherited browser fixtures.

User Impact

No runtime behavior changes. Skill-library tests again measure the current dialog surfaces, with positive-width checks that preserve the narrow-viewport overflow assertion. Update triage selects the labeled header Close control when the dialog also has a footer Close button. All existing privacy, retained-revision, stale-draft, and retry assertions remain.

Exact Reconciliation

Fresh main f08cd31621a9dad688ea3451f832ff4d09b4c08d has 6,441,002 test LF lines against a 6,441,020 ceiling: 18 spare lines. Earlier reconciliation and consolidation already eliminated the historical deficit. Honor the approved exact-total rule by lowering the scalar from 6,325,229 to 6,325,211, removing exactly 18 spare lines.

Main allocations total 115,791, giving an adjusted main ceiling of exactly 6,441,002. Fixture repairs add 10 test LF lines (eight width-check/formatting lines, one select-interaction line, and one net line for lazy-module synchronization), separately allocated in full. Final ceiling: 6,325,211 + 115,801 = 6,441,012, exactly the tracked tree, with zero spare capacity. No tests are deleted and the checker is unchanged.

The separate retirement-attribution PR #191985 adds 49 regression-test lines with its own 49-line allocation. Those lines are not included here and do not consume this reconciliation.

Historical Debt And Upstream Repairs

The original976-line excess after #191696/#190955 is attributed below. It later reached1,539 and was reconciled in 4ebf5fef810b; 51e972fb4048 reconciled another393. At the previous audited main anchor92a9, new debt was516. #192003 consolidated1,053 test lines; #191469 added2,092 protocol test lines and2,485 scalar lines. At4b3a, main therefore had663 spare lines after other intervening changes. From4b3a to72b1, test LF increased834 and allocation credit652, leaving481 spare lines. Earlier proposed raises are discarded; no historical debt is funded twice.

CI exposed11 inherited browser failures and then five channel-save unit failures. Those are main regressions, not noise. Current main supplies the Unicode correction (#192069 / 575baa5530c7), credential/Incognito/secrets corrections (ba05b160a17b), channel-save correction (a4e6278e182d), and unused-export cleanup (91a943924eb1). Their duplicate local patches are removed. Main supplies all dialog selector repairs in a1916b9a8425 and 331c1aed9a22; duplicate local hunks are removed. This PR retains nonvacuous skill-width checks, visible-label corrections missed by #191352, and the native select interaction after #191368.

Exact-head CI41680931184 on prior head4f7aa3e2bee1 passed31 jobs. Native merge admission then rejected before dispatch because the two new upstream browser fixes conflicted; the retained auto-merge request remains confirmed cancelled. The later b373 run exposed the six label failures below plus a stale budget reduction: #191353 added7 lines and #191358 added23 between the exact-count anchor and CI main parent eb370. Main itself still had451 spare lines; the candidate had removed that earlier slack. This is advancing-base accounting, not a claim that main failed the budget guard. Run41689845327 on b8c3 passed all29 source/test/type/lint/security jobs; only the ratchet failed after another93 main test lines landed without allocation changes (#192129 +49, #192132 +21, #191369 +7, #191374 +16). Main still had296 slack, so this again reflects stale candidate accounting. The subsequent run41693508533 passed the ratchet and exposed two cold lazy-module test flakes; fresh exact-head CI remains required.

The next exact-head run exposed six more inherited failures from #191352 (72b1c6d83222): four channel-save call sites still selected visible pairing instead of Pairing (five cases), and the stored-secret browser case still selected Save: Bot Token instead of Save: Bot token. Both reproduce locally (five plus one failures). Correct only those five display literals; all stored lowercase values and behavioral assertions remain. Before the next rebase, the two files passed all18 cases in1.48s. Those label edits add zero lines. During the next required conflict rebase, #191368 (0d2071eba04f) changes the four-option DM policy to a native select. The same five cases reproduce red again until their helper chooses the visible option and dispatches a native change. That repair adds one line, separately funded. All18 cases pass on the final base (5.51s), retaining exact patch/baseHash, no-write, overwrite, reconnect and sentinel assertions.

Run41693508533 exposed two main test regressions from #181023 (4f44cc7d7899), which introduced lazy effort-picker and confirmation-dialog modules. The tests started their one-second DOM deadline before those modules finished loading. A normal replay passed150 tests, so that alone was insufficient proof. A controlled1.3-second real-module load reproduced both null-element failures; explicitly awaiting each actual module before the existing DOM assertion made both pass. The full affected files pass150 tests under the pinned Bun runtime (6.94s). Temporary delay mocks are removed. These two awaits replace one immediately duplicated slider-type assertion, adding one net separately allocated line. The existing wait already asserts that same type before reading the slider; all behavioral assertions remain.

Run41697910124 on83e878 passed all30 source/test/type/lint/security jobs, including the repaired cold-import cases. Its only failure was the budget guard: CI merged into3235705cb012 after #191399 (fcf922bf0226) added26 unallocated test LF. Main still had25 spare lines; this is another stale exact reduction, not failing-main debt. Fresh f08cd accounting above replaces that reduction. All six repaired test files are byte-identical to83e878; only the budget scalar changes. Exact-head green remains required.

No production changes, new test cases, timeout changes, retries, or behavioral assertion removals.

Attribution of the earlier 976-line excess after #191696 / #190955

After #191742, the first crossing was #191354: its 154 unallocated lines consumed the remaining 122 lines of slack, leaving 32 lines of debt. These intervening changes then produced the observed 976-line excess; changes with matching allocations contributed zero and are omitted. The later 1,539-line reconciliation already covered this history.

Commit PR/title Test-line delta Ceiling delta Debt after
af49d6401dd3 improve(ui): confirm settings saves without moving the page (#191354) +154 +0 32
1468299c9a1f improve(ui): use one disclosure row for advanced settings (#191359) +5 +0 37
cf388f0c068e improve(ui): organize Agents Overview as settings rows (#191252) +91 +0 128
9cc4f6823c9e fix(test): isolate the archived session clipboard (#191930) +7 +0 135
0a93e420f4f6 improve(ui): rethink Privacy & Security around what's exposed and what agents can do (#191467) +289 +0 424
1104be468754 feat(ui): move conversation versions into the session menu -154 +0 270
6c3a9723e9e9 improve(ui): show devices as rows with details on demand (#191329) +30 +0 300
04ad24ffa413 improve(ui): use the settings page header on Logs and Debug (#191230) -2 +0 298
c8396cc5a150 improve(ui): use the settings page header on About and Lobsterdex (#191238) -1 +0 297
eeb3f0eb8eef fix(ui): keep the Search settings page from crashing (#191250) +52 +0 349
4dd4cdd461dc improve(ui): make Review the accent action in the Pair dialog (#191231) +25 +0 374
2b2bf29041b9 improve(ui): rebuild the Pair device dialog on one dialog layout (#191337) +20 +0 394
4285c6ced421 improve(ui): rebuild the channel setup dialog on one dialog layout (#191385) +27 +0 421
12cb8863d6e5 test(codex): trim redundant fingerprint privacy assertion (#191917) -1 +0 420
6a21fd8925b7 improve(ui): bring the remaining Settings dialogs onto one dialog layout (#191430) -14 +0 406
10f120908c1c test(ci): publish registry fixture port atomically -2 +0 404
5a9b04b2f072 improve(ui): show one line of setting help, with the rest on demand (#191375) +244 +0 648
0e7aab7cd5c2 fix(browser): refuse strict Chrome MCP navigation without redirect inspection (#191271) +30 +0 678
32aafab01c35 improve(ui): make nested settings real disclosures, once per form (#191390) +372 +0 1050
7c4f3737a327 improve(ui): keep config groups on the settings title's axis (#191319) +38 +0 1088
0a0d601bf12d improve(ui): reorganize the Appearance page (#191303) -77 +0 1011
e6a2efb46efa fix(ui): Android agent browser says tab unavailable after a cold start (#191538) -3 +0 1008
81866534e741 improve(ui): use autosave for Agents configuration (#191355) -328 +0 680
b935c87df207 improve(ui): report Agents identity edits through the shared save status (#191394) +236 +0 916
e01e17776788 improve(ui): rethink the failed settings save as one card (#191890) +72 +0 988
0cd7e832b23f fix(browser): avoid splitting surrogate pairs in page text (#191899) -1 +0 987
d61543531f50 improve(ui): remove Save from Devices bindings, which autosave (#191356) -11 +0 976

Evidence

  • Native exact count: Test lines OK: 6441012; ceiling: 6441012; slack: 0. Main and candidate arithmetic is pinned to f08cd31621a9.
  • Conflict rebase consumed a1916b9a8425 and retained the upstream importer body selector. Rebased production Chromium E2E: 12 tests pass across three files (23.16s). Label regression files: all 18 tests pass; six reproduced red before correction.
  • Previous rebased local proof:16 production Chromium tests passed across seven files; consumed channel-save fix5 passed; pnpm check:changed passed, including all export scans with zero findings, guards, types, formatting and lint.
  • Fresh Codex review is scoped-clean. Rebased production Chromium proof passed 16 tests across seven files (41.77s). Current check:changed passed all guards, types, format and lint; export scans retain one main regression: improve(ui): clarify Systems devices and backup access #192070 / 9ce5ba172a8e replaced the final external systemKind caller but kept its export. Upstream 8189ee02f30e now removes formatDurationLong, resolving the earlier fix(ui): drop the "Done in" recap line from chat #192058 finding. Exact-parent72e8 production/full-tree scans reproduce the identical sole finding (105.287s, no resolution errors); this PR does not duplicate unrelated repairs. Ordinary PR CI excludes Knip, so no green export-scan claim is made. Historical failures and reproductions are retained in the task report.
  • Final landing requires completed exact-head green CI and native review/preparation/replacement recovery.

@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@steipete
steipete marked this pull request as ready for review November 3, 2026 15:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:07:54.093913Z 440db62 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 3, 2026 15:47
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR raises the shared test-line baseline by 164 lines without changing tests, allocations, or checker behavior.

Example: The pinned tracked test tree contains 6,436,256 LF lines.

  • Before: The effective ceiling is 6,436,092, leaving 164 lines of inherited debt.
  • After: The effective ceiling is 6,436,256, leaving zero spare capacity.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) An exact, minimal reconciliation supported by native checker output and independent accounting; hosted CI is not yet settled.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR records native full-tree checker output showing 6436256 lines, ceiling 6436256, and zero slack; independent read-only counting confirms those values. Prepared screenshots depict unrelated Logs UI and provide no evidence for this change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Fully allocated regression-test changes can fail the shared budget gate because earlier changes left inherited debt.
Reason: Maintainer-authored direction and independently verified arithmetic justify a narrow reconciliation through the existing approved mechanism.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes an exact, justified budget reconciliation, with no introduced defect found.

Priority: P3
Reviewed head: 20960dfb755ad7fd02a985668cf3984476074341

Before merge

None.

Findings

None.

Agent review details

How this fits together

The repository's test-line checker combines a shared baseline with tracked allocations, counts test-source LF bytes, and reports budget compliance to CI.

flowchart LR
  A[Tracked test sources] --> D[Test line checker]
  B[Shared baseline] --> D
  C[Allocation records] --> D
  D --> E[Budget result]
  E --> F[CI gate]
Loading

Technical review

Best possible solution:

Retain the exact scalar reconciliation while preserving the existing checker and independently attributable allocation records.

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

Independent read-only LF counting confirms the 164-line deficit at the pinned tree; no target code or tests were executed.

Is this the best way to solve the issue?

The single scalar adjustment is the smallest complete reconciliation: it restores exact coverage without weakening allocation checks or adding spare capacity.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 547d5c496b94.

Provenance checked

  • Shared test-line baseline keeps the original intent (4ebf5fe: Reconcile 1539 inherited LF lines while preserving allocation records and leaving zero headroom.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Exact introduced change: The pinned introduction changes only the scalar from 6322351 to 6322515. (config/test-lines-baseline.txt:1, 20960dfb755a)
  • Independent full-tree accounting: Read-only counting with the checker's exact tracked-file patterns produced 6436256 LF bytes; allocation records sum to 113741, so the proposed baseline exactly funds the tree. (scripts/check-test-lines-ratchet.mts:16, 20960dfb755a)
  • Intentional reconciliation route: The documented checker contract permits separately approved scalar reconciliation while preserving independent allocations and inherited-debt checks; maintainer authorship supplies the direction decision. Public docs: docs/ci/local-proof.md. (docs/ci/local-proof.md:331, 20960dfb755a)
  • Current-main and provenance: Fetched main still has baseline 6322351; the preceding reconciliation explicitly funded earlier debt with zero headroom. (config/test-lines-baseline.txt:1, 547d5c496b94)
  • Related work remains separate: fix(sandbox): attribute slow dependency builder retirement #191985 reports that its own matching 49-line allocation preserves inherited debt; this reconciliation addresses the separate shared deficit.
  • CI remains unresolved: The reviewed head has a failed hosted core-lint stripe and an unfinished ratchet check. Annotations do not identify the lint root cause, and downloading its logs was blocked by the artifact-host allowlist; no diff-caused failure is established. (20960dfb755a)

PR surface

Other 0. Total 0 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: This is repository budget maintenance with no runtime behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is repository budget maintenance with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 10:50 AM ET / 15:50 UTC.

@steipete
steipete disabled auto-merge November 3, 2026 15:56
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from 20960df to 2bf2848 Compare November 3, 2026 16:00
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from 2bf2848 to 4b8d67c Compare November 3, 2026 16:36
@steipete steipete changed the title fix(ci): reconcile the exact current test-line budget fix(ci): reconcile exact test budget and restore browser fixtures Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S and removed size: XS labels Nov 3, 2026
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from bdb5ac3 to 4f7aa3e Compare November 3, 2026 17:06
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from 4f7aa3e to b373cac Compare November 3, 2026 17:36
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from b373cac to b8c3cfb Compare November 3, 2026 18:01
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from b8c3cfb to 3c97c17 Compare November 3, 2026 18:24
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from 3c97c17 to ec65a04 Compare November 3, 2026 18:51
Reconcile 516 inherited test lines on main 92a9b67 and exactly 25 lines required to restore existing browser proof. Scalar 6323285 plus unchanged allocations 114888 equals 6438173 with zero headroom. Preserve the separate 49-line retirement allocation.

Repair stale dialog, build-facts, heading and explicit credential-save flows without changing runtime behavior or dropping assertions. Incognito readiness matches the existing correction proposed in #192005.
Main 4b3a25c has 6439550 test LF lines and a 6440213 ceiling after upstream reconciliation and consolidation. Lower the shared scalar by exactly 663 to 6324566; allocate the browser fixture repair 25 lines separately. Final effective ceiling is exactly 6439575 with zero spare capacity. Retirement attribution retains its separate 49-line allocation.
Retain upstream Unicode, credential, Incognito and secrets fixes; only the skill dialog geometry and update-triage selectors remain. Main 72b1c6d has 6440384 test LF and 481 spare ceiling lines. Lower scalar to 6324748 and allocate exactly eight remaining test lines. Final total and ceiling are both 6440392, zero slack.
Repair six inherited failures introduced by #191352. Keep stored configuration values and every save, conflict, reconnect, and sentinel assertion unchanged. No test-line growth.
Retain upstream dialog repairs and exact test budget: scalar6324840 plus115707 allocations equals6440547 tracked test lines. Nine fixture lines are separately allocated; retirement attribution remains separately funded.
Current main37f6f4ec has6440886 test lines and129 spare ceiling lines. Scalar6325100 plus115795 allocated lines equals6440895 with the separately funded nine fixture lines; zero slack.
@steipete
steipete force-pushed the steipete/fix-test-budget-lane2156 branch from 83e8789 to 440db62 Compare November 3, 2026 19:05
@steipete
steipete merged commit a4d7594 into main Nov 3, 2026
82 checks passed
@steipete
steipete deleted the steipete/fix-test-budget-lane2156 branch November 3, 2026 19:24
@steipete

steipete commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…enclaw#192026)

* fix(ci): reconcile exact test budget and browser fixtures

Reconcile 516 inherited test lines on main 73cd9ae and exactly 25 lines required to restore existing browser proof. Scalar 6323285 plus unchanged allocations 114888 equals 6438173 with zero headroom. Preserve the separate 49-line retirement allocation.

Repair stale dialog, build-facts, heading and explicit credential-save flows without changing runtime behavior or dropping assertions. Incognito readiness matches the existing correction proposed in openclaw#192005.

* fix(ci): reconcile exact test ceiling after main consolidation

Main 315fcc7 has 6439550 test LF lines and a 6440213 ceiling after upstream reconciliation and consolidation. Lower the shared scalar by exactly 663 to 6324566; allocate the browser fixture repair 25 lines separately. Final effective ceiling is exactly 6439575 with zero spare capacity. Retirement attribution retains its separate 49-line allocation.

* fix(ci): keep exact budget after upstream browser repairs

Retain upstream Unicode, credential, Incognito and secrets fixes; only the skill dialog geometry and update-triage selectors remain. Main 0238481 has 6440384 test LF and 481 spare ceiling lines. Lower scalar to 6324748 and allocate exactly eight remaining test lines. Final total and ceiling are both 6440392, zero slack.

* test(ui): follow sentence-case labels in save coverage

Repair six inherited failures introduced by openclaw#191352. Keep stored configuration values and every save, conflict, reconnect, and sentinel assertion unchanged. No test-line growth.

* test(ui): follow native channel selects after main integration

Retain upstream dialog repairs and exact test budget: scalar6324840 plus115707 allocations equals6440547 tracked test lines. Nine fixture lines are separately allocated; retirement attribution remains separately funded.

* fix(ci): reconcile exact ceiling against current main

Current main37f6f4ec has6440886 test lines and129 spare ceiling lines. Scalar6325100 plus115795 allocated lines equals6440895 with the separately funded nine fixture lines; zero slack.

* test(ui): await lazy modules before DOM assertions

* fix(ci): pin test ceiling to fresh main total
RomneyDa added a commit that referenced this pull request Nov 13, 2026
Backport the terminal fixture hunk from a4d7594 (#192026). Await the existing lazy module before asserting its dialog; retain every cancellation assertion and production behavior.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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