Repository navigation
fix: avoid browser blocked ports for the runner server - #35262
Merged
Merged
Conversation
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 07:36 — with
GitHub Actions
Waiting
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 07:36 — with
GitHub Actions
Waiting
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 07:36 — with
GitHub Actions
Waiting
jennifer-shehane
requested changes
Nov 5, 2026
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 16:27 — with
GitHub Actions
Waiting
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 16:27 — with
GitHub Actions
Waiting
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 16:27 — with
GitHub Actions
Waiting
Contributor
Author
|
Addressed the review feedback in 399d3f8:
|
akasakariko
requested a deployment
to
fork-pr-review
November 5, 2026 16:27 — with
GitHub Actions
Waiting
jennifer-shehane
self-requested a review
November 5, 2026 18:42
jennifer-shehane
requested changes
Nov 5, 2026
Discard a randomly assigned port that browsers refuse to load and report an actionable error when a blocked port is configured Reject a bind failure other than EADDRINUSE so the run cannot hang before it starts Fixes cypress-io#30869
Add the missing 4190 and 6679 restricted ports and correct the 993 comment Reject a configured port that browsers block during configuration validation so it is reported before the file server starts Use a separate message when every randomly assigned port was blocked Close the file server when the runner server fails to start and surface close errors instead of retrying Fixes cypress-io#30869
Rely on configuration validation for configured ports and keep the runner error specific to exhausted ephemeral port retries Remove the duplicate validation, helper, test and unused error variant, restore port-in-use handling and remove historical test commentary Keep one current changelog entry after rebasing onto develop
akasakariko
force-pushed
the
issue-30869
branch
from
November 6, 2026 01:15
399d3f8 to
7d5e3ad
Compare
akasakariko
requested a deployment
to
fork-pr-review
November 6, 2026 01:15 — with
GitHub Actions
Waiting
akasakariko
temporarily deployed
to
fork-pr-review
November 6, 2026 01:15 — with
GitHub Actions
Inactive
akasakariko
temporarily deployed
to
fork-pr-review
November 6, 2026 01:15 — with
GitHub Actions
Inactive
akasakariko
temporarily deployed
to
fork-pr-review
November 6, 2026 01:16 — with
GitHub Actions
Inactive
jennifer-shehane
self-requested a review
November 6, 2026 19:31
jennifer-shehane
approved these changes
Nov 6, 2026
cypress
|
||||||||||||||||||||||||||||||||||||||||
| Project |
cypress
|
| Branch Review |
pull/35262/head
|
| Run status |
|
| Run duration | 15m 28s |
| Commit |
|
| Committer | akasakariko |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
14
|
|
|
1044
|
|
|
0
|
|
|
30164
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
67.12%
|
|
|---|---|
|
|
24
|
|
|
49
|
Accessibility
99%
|
|
|---|---|
|
|
0 critical
3 serious
2 moderate
0 minor
|
|
|
18
|
Contributor
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Additional details
When
portis unset, Cypress can receive a randomly assigned port that browsers block, such as10080, causing the runner to fail withERR_UNSAFE_PORTCypress now releases a blocked randomly assigned port and retries, with a limit of 10 attempts and an error explaining when no permitted port could be found
Configured ports are checked during configuration validation before the file server or runner starts, using the same restricted port list as the retry logic
Runner bind failures release the file server, bind errors other than
EADDRINUSEreject instead of hanging, and a failure to close a blocked listener is surfaced without retryingSteps to test
portto10080in a project configuration and runcypress runorcypress openportfrom the configuration and verify that the runner loads normallyyarn workspace @packages/config testyarn workspace @packages/errors testyarn workspace @packages/server test-unit -- test/unit/server-base.spec.ts test/unit/file_server.spec.ts test/unit/open_project.spec.ts test/unit/project-base.spec.tsLocal validation on macOS arm64 with Node
24.22.1and Yarn1.22.22:cypress, as required by two existing directory-name assertions@packages/config,@packages/errorsand@packages/serverHow has the user experience changed?
Cypress avoids randomly assigned ports that browsers block and reports an actionable configuration error for a blocked configured port
Runs using permitted ports behave as before
PR Tasks