Skip to content

ci: check impersonate targets stay in sync with the pinned binary - #808

Open
dokson wants to merge 1 commit into
lexiforest:mainfrom
dokson:feat/check-browser-targets
Open

ci: check impersonate targets stay in sync with the pinned binary#808
dokson wants to merge 1 commit into
lexiforest:mainfrom
dokson:feat/check-browser-targets

Conversation

@dokson

@dokson dokson commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

When a new browser lands in the pinned curl-impersonate, nothing flags it if you forget to add it to curl_cffi. It just silently is not exposed until someone hits it at runtime.

scripts/check_browsers.py fetches the pinned curl.patch and fails if any browser target it declares is missing from BrowserTypeLiteral or NATIVE_IMPERSONATE_TARGETS. Wired into the lint job; parses via AST so no build is needed.

Checklist

  • I have manually reviewed the changes and fully understand the code.

scripts/check_browsers.py fetches the pinned curl.patch and fails if any
browser target it declares is missing from BrowserTypeLiteral or
NATIVE_IMPERSONATE_TARGETS, so a new version in the binary can't go
unexposed. Wired into the lint job. Parses via AST, no build needed.
@lexiforest lexiforest added this to the v0.17 milestone Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants