Repository navigation
fix(ci): reconcile exact test budget and restore browser fixtures - #192026
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceOther 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 10:50 AM ET / 15:50 UTC. |
20960df to
2bf2848
Compare
2bf2848 to
4b8d67c
Compare
bdb5ac3 to
4f7aa3e
Compare
4f7aa3e to
b373cac
Compare
b373cac to
b8c3cfb
Compare
b8c3cfb to
3c97c17
Compare
3c97c17 to
ec65a04
Compare
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.
83e8789 to
440db62
Compare
|
Merged via squash.
|
…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
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]>
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
f08cd31621a9dad688ea3451f832ff4d09b4c08dhas 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;51e972fb4048reconciled 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 ina1916b9a8425and331c1aed9a22; 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 visiblepairinginstead ofPairing(five cases), and the stored-secret browser case still selectedSave: Bot Tokeninstead ofSave: 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.
af49d6401dd31468299c9a1fcf388f0c068e9cc4f6823c9e0a93e420f4f61104be4687546c3a9723e9e904ad24ffa413c8396cc5a150eeb3f0eb8eef4dd4cdd461dc2b2bf29041b94285c6ced42112cb8863d6e56a21fd8925b710f120908c1c5a9b04b2f0720e7aab7cd5c232aafab01c357c4f3737a3270a0d601bf12de6a2efb46efa81866534e741b935c87df207e01e177767880cd7e832b23fd61543531f50Evidence
Test lines OK: 6441012; ceiling: 6441012; slack: 0.Main and candidate arithmetic is pinned tof08cd31621a9.a1916b9a8425and 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.pnpm check:changedpassed, including all export scans with zero findings, guards, types, formatting and lint.check:changedpassed all guards, types, format and lint; export scans retain one main regression: improve(ui): clarify Systems devices and backup access #192070 /9ce5ba172a8ereplaced the final externalsystemKindcaller but kept its export. Upstream8189ee02f30enow removesformatDurationLong, 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.