Repository navigation
fix(test): restore browser test typecheck after CDP pinning - #122607
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Land-ready proof for exact head
Best-fix verdict: best. This reuses the established typed Browser DNS mock instead of weakening the production lookup contract or duplicating casts. |
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 12, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 13, 2026
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
Fixes an issue where canonical
mainand pull requests failcheck-test-typesafter the guarded CDP transport change because two DNS lookup test doubles do not implement Node's overloaded lookup type.Why This Change Was Made
Use the Browser tests' existing typed
LookupFnmock pattern for both CDP policy cases. This keeps the test behavior unchanged while satisfying the real SSRF lookup contract; no production code changes.User Impact
No runtime behavior changes. Developers regain a green browser test typecheck and CI can gate unrelated pull requests normally.
Evidence
Before, canonical main run 31590440071 failed
check-test-typesatcdp.helpers.test.ts:170and:191with TS2322.After locally on Node 24 with
CI=1:pnpm check:test-types— passednode scripts/check-changed.mjs— passednode scripts/run-vitest.mjs extensions/browser/src/browser/cdp.helpers.test.ts— 48 tests passedgit diff --check— passedThe configured autoreview could not execute because the
codexbinary is unavailable in this orb; the one-file test-only diff was manually reviewed.