cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.98k stars 3.18k forks source link

Constant logging of: CreatePlatformSocket() failed: Address family not supported by protocol (97) #30123

Open CN91 opened 2 months ago

CN91 commented 2 months ago

Current behavior

When running tests using the following image: cypress/included:13.13.3. inside a gitlab runner using electron browser throughout testing the same error makes the logging unreadable. It only happens when using the electron browser. When using chrome it doesn't report the error.

Scherm­afbeelding 2024-08-28 om 08 28 44

Desired behavior

No logging of the error; making it readable again.

Scherm­afbeelding 2024-08-28 om 08 31 19

Test code to reproduce

setup cypress inside a gitlab runner; with a docker image. backend is an external url and frontend is an external url; both are potentially ipv6

i've already seen multiple reports here about other errors that in their logging show the same error as i'm reporting.

Cypress Version

13.3.3

Node version

v20.17.0

Operating System

Kubernetes executor with image /cypress/included:13.13.3

Debug Logs

No response

Other

In chrome it works without logging errors. Locally it also doesn't seem to show the errors. It seems to be an issue between linux and chromium and the connection cypress sets up for devtools and possible ipv6?

Please give us a way to either:

CN91 commented 2 months ago

If it is more linux/chromium related and doesnt affect testing; than maybe consider the same that is done for https://github.com/cypress-io/cypress/pull/20939

jennifer-shehane commented 2 months ago

Oh man, haven't seen this one before. But yah, hopefully it does not affect the running of tests.