Skip to content

Conversation

@neuralsorcerer
Copy link

Updated the Playwright environment server setup to bind to an ephemeral localhost port and fail fast with cleanup if the socket cannot be created, avoiding collisions with in-use ports.

Copilot AI review requested due to automatic review settings December 6, 2025 08:22
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the Playwright environment server initialization to use dynamic port allocation instead of a hardcoded port, eliminating potential port collision issues. The changes introduce proper error handling and cleanup when socket binding fails.

Key changes:

  • Replaced hardcoded port 42352 with ephemeral port allocation (port 0)
  • Added socket validation and cleanup on binding failure
  • Removed the TODO comment about port collision handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant