Repository navigation
improve(tests): remove redundant catalog login wait - #188752
Merged
Merged
Conversation
Use the existing request-start and deferred-response release gates while retaining both real-Gateway cases and their assertions. Reduce the test line budget by the exact three LF removed. Co-authored-by: steipete <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
October 30, 2026 22:04
roboclaw-bot
enabled auto-merge (squash)
October 30, 2026 22:11
Collaborator
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 31, 2026
Use the existing request-start and deferred-response release gates while retaining both real-Gateway cases and their assertions. Reduce the test line budget by the exact three LF removed. Co-authored-by: steipete <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The catalog-login integration test pays a redundant seven-second response floor in each configured case after it already controls response readiness with explicit gates.
User Impact
No user-visible behavior changes. The same two real-Gateway cases finish faster while retaining their assertions.
Why This Change Was Made
Use the existing request-start/deferred-release protocol as the response hold. Remove the timer import, delay variable, and reset; keep OAuth, passive reads under 1,000 ms without extra discovery, publication/work counts, selected-account reads during refresh, logout invalidation, failed-listing fallback, and cleanup unchanged.
The only removed behavior is an arbitrary elapsed fixture delay. The request-start gate and pending/known-row checks still prove the blocked phase, and explicit release plus publication/account-row checks prove completion. No production code, helper, case, assertion, timeout, or repetition changed. The budget scalar decreases by the exact three test LF removed; all allocation records remain unchanged.
Evidence
timeout 900 /usr/bin/time -v pnpm test src/gateway/server-methods/models-auth-login.catalog.integration.test.ts --maxWorkers=1 --reporter=verbose. Import timing was enabled identically throughout.models-auth-refresh.integration.test.tsandmodels-auth-api-key.integration.test.ts: 3 files / 4 cases passed.pendingTasks: 1(expected 0); omitted pending state failed the provider check; prematurely releasing the actual HTTP response and waiting for real publication failed the original known-row and pending assertions. Controls used the configured-false row, retained all assertions, and were restored byte-for-byte.git diff --check, line-cap/max-lines/test-lines/timeout-race/mock-export/assertion-safety ratchets, andpr-simplify.4d2a9f8bb4c47da0daae7fd820cab33fa450ef7b, intact target/owners/helpers supplied; machine status scoped-clean, exit 0, no findings. The reviewed source bytes are the committed candidate; review did not rerun tests.All six benchmark runs and exact budget accounting
The first baseline includes cold worker compilation and is retained. No failed benchmark or discarded timing trial; no observed benchmark flake. Imports are the target module's inclusive total, not a sum of overlapping nested imports. Cold preparation prevents attributing the first run's CPU/RSS difference to this patch.
Discovery CI case-duration sums were 33.838 and 35.082 seconds for the two cases; those are not wall times. Exact-head CI41135650260 passed. Candidate CI seconds were not retimed; the six local samples remain original-base observations.
Native tracked test LF: 6,313,400 → 6,313,397; this file 304 → 301. Scalar 6,287,493 → 6,287,490; 176 unchanged grants total 24,865. Effective ceiling 6,312,358 → 6,312,355, exactly -3, preserving inherited debt 1,042 → 1,042. Production LF delta: 0.
One sibling setup trial selecting
models-list.freshness.integration.test.tstriggered broader runtime preparation. It was interrupted before tests (exit 143); native cleanup reported the process group dead. Its log and the expected mutation failures are retained separately, not counted as passing benchmarks. That sibling remains unproven here; the source-only sibling run above passed. Broad proof is left to exact-head PR CI.Native landing
Parent approved exact head
768969793bcb1224477d1ee2f2651365c51fb95a. The normal enforced-gate route merged it as77b37aca1f3aee1331e08a9eb796d5c95e1a12f0on 2026-10-30T22:14:49Z; native COMPLETE receipt750863704fb20558e617f8b7f1456e31198fb708, original auto squash attempt0ebd4e44-87b1-40c1-bd94-87dc4331c164. Live exact-head CI/security/required-review admission succeeded without bypass. The full landed tree, approved test blob, human coauthor trailer and authoritative main ancestry were verified. No source change, rebase, code push, CI rerun or new benchmark was needed. Native PR-owned checkout and branches were removed.The check-only native counting owner compared captured current main
d107cb81b327fc4654dbbaa9f21beba0cf2fc57awith its merged candidate: test LF 6313400 → 6313397, effective cap 6312358 → 6312355. LF/effective-cap delta is exactly -3/-3; every current grant and inherited 1042-line debt is preserved. The existing nonpositive-delta rule passed; this is not a current-global headroom claim. Actual landing-parent deltas and grants were verified again. Original benchmark, mutation-control and interrupted sibling-setup limitations above are retained.Co-authored-by: steipete [email protected]
Work sessions