Skip to content

Comments

[playwright-browser-tunnel] Add playwright-versioning and remove semver-coersion#5669

Merged
TheLarkInn merged 3 commits intomicrosoft:mainfrom
anarmawala:fix/tunnel-flexibility
Feb 25, 2026
Merged

[playwright-browser-tunnel] Add playwright-versioning and remove semver-coersion#5669
TheLarkInn merged 3 commits intomicrosoft:mainfrom
anarmawala:fix/tunnel-flexibility

Conversation

@anarmawala
Copy link
Contributor

@anarmawala anarmawala commented Feb 24, 2026

First Fix:
Make sure tunneledBrowserConnection takes in a playwright version to manually use but still default to playwright-core version for added flexibility.

Second Fix:
Semver currently does not properly parse prerelease versions and thus the playwright versions are improperly guessed leading to crashes and schema errors.

How it was tested

Using the lauched option for the vscode extension.

Impacted documentation

N/A

Allow manually passing in the version of playwright to use for the tunnel and still default to the playwright-core version if not provided.
This allows us to use the tunnel with different versions of playwright without needing to update the tunnel package itself.
Remove semver coercion from the Playwright version in the handshake message. This allows for more flexible version handling and avoids issues with prerelease version formats.
Copy link
Member

@TheLarkInn TheLarkInn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need rush change for the playwright-browser-tunnel for CI to pass, but LGTM

@TheLarkInn TheLarkInn enabled auto-merge (squash) February 24, 2026 23:51
@TheLarkInn TheLarkInn merged commit 73b6913 into microsoft:main Feb 25, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Feb 25, 2026
@anarmawala anarmawala deleted the fix/tunnel-flexibility branch February 25, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants