Skip to content

improve: speed up Google Chat timeout proof - #109671

Merged
steipete merged 1 commit into
mainfrom
codex/test-performance-more-28
Jul 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-performance-more-28

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Google Chat certificate-timeout proof spent 500 ms of wall time waiting to confirm that its deliberately hanging request was still pending.

Why This Change Was Made

Advance the same 500 ms mutation-control window with fake timers, while preserving the real SSRF guard, loopback HTTP request, production abort signal, and timeout-driven settlement. Completed deadline timers are also cleared, and timer teardown restores spies before returning to real timers.

User Impact

No user-visible or production behavior changes. The focused test body drops from a 531 ms median to 29 ms on the exact-head Testbox proof.

Evidence

  • Before: three focused runs, 532/533/~531 ms test body; median 531 ms.
  • After: focused runs at 24-33 ms; exact-head run 29 ms (about 95% faster).
  • Exact-head Testbox tbx_01kxq82qzjt86zarnj3k1nzxgj: node scripts/run-vitest.mjs extensions/googlechat/src/auth.proof.test.ts extensions/googlechat/src/actions.test.ts — 12/12 tests passed.
  • Same Testbox: OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed — passed.
  • Autoreview: clean, 0.94 confidence.

@openclaw-barnacle openclaw-barnacle Bot added channel: googlechat Channel integration: googlechat size: XS maintainer Maintainer-authored PR labels Jul 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof:

  • Exact reviewed head: 46d83e40a0cea0683ddae903040ac9bc8cf37ff7
  • Testbox: tbx_01kxq82qzjt86zarnj3k1nzxgj
  • node scripts/run-vitest.mjs extensions/googlechat/src/auth.proof.test.ts extensions/googlechat/src/actions.test.ts — 12/12 passed; target 29 ms.
  • OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed — passed.
  • Baseline median 531 ms; final exact-head 29 ms, about 95% faster.
  • Commit-mode autoreview clean, 0.94 confidence.

Known proof gaps: none for this test-only change. Production and CI configuration are untouched.

@steipete
steipete merged commit dfe9e55 into main Jul 17, 2026
107 of 112 checks passed
@steipete
steipete deleted the codex/test-performance-more-28 branch July 17, 2026 05:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 17, 2026
zooqueen pushed a commit to zooqueen/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

channel: googlechat Channel integration: googlechat maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant