Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: suppress benign vulkan warnings #29278

Merged
merged 7 commits into from
Apr 10, 2024
Merged

Conversation

cacieprins
Copy link
Contributor

Additional details

The primary Cypress process can emit benign warnings about Vulkan when run on a machine that does not have a GPU, or a docker container whose host does not have a GPU. Vulkan is a cross-platform API for 3D rendering, and is not necessary for the primary Cypress process to execute correctly. This warning is not emitted from the web browser that Cypress launches, and should not be impacting the success of tests. This PR suppresses the warning from stdout, similar to other benign Electron warnings.

Steps to test

  • Execute a long (3+ minute) test suite in run mode on a Linux machine that does not have a GPU. A generic Ubuntu EC2 instance works well.
  • Execute a long (3+ minute) test suite in run mode in a docker container whose host is a Linux machine that does not have a GPU. A generic Ubuntu EC2 instance works well for the docker host.

How has the user experience changed?

Users will no longer see benign Electron warnings about Vulkan on machines and docker containers that do not have access to a GPU.

PR Tasks

@cacieprins cacieprins changed the title fix: suppress benign vulkan warnings misc: suppress benign vulkan warnings Apr 5, 2024
@cacieprins cacieprins marked this pull request as ready for review April 5, 2024 17:00
cli/CHANGELOG.md Outdated
@@ -6,6 +6,7 @@ _Released 4/16/2024 (PENDING)_
**Misc:**

- Updated the Chrome flags to not show the "Enhanced Ad Privacy" dialog. Addresses [#29199](https://github.com/cypress-io/cypress/issues/29199).
- Suppresses benign warnings that reference Vulkan on GPU-less Docker hosts. Addresses [#29085](https://github.com/cypress-io/cypress/issues/29085). Addressed in [#29278](https://github.com/cypress-io/cypress/pull/29278).
Copy link
Contributor

@MikeMcC399 MikeMcC399 Apr 5, 2024

Choose a reason for hiding this comment

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

The issue affects environments without Docker, so you could probably just say

"on GPU-less hosts."

and leave out the word "Docker".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Addressed in 48b406d

Copy link

cypress bot commented Apr 5, 2024

4 flaky tests on run #54867 ↗︎

0 17638 230 0 Flakiness 4

Details:

Merge branch 'develop' into cacie/fix/vulkan-warnings
Project: cypress Commit: 4e8e337ff9
Status: Passed Duration: 16:00 💡
Started: Apr 10, 2024 3:39 PM Ended: Apr 10, 2024 3:55 PM
Flakiness  files.cy.js • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
... > passes through assertion error when not about existence Test Replay
Flakiness  waiting.cy.js • 2 flaky tests • 5x-driver-chrome

View Output

Test Artifacts
... > errors > throws whenever an alias times out Test Replay
... > errors > throws when waiting for 2nd response to route Test Replay
Flakiness  waiting.cy.js • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when waiting for 2nd response to route Test Replay

Review all test suite changes for PR #29278 ↗︎

@jennifer-shehane jennifer-shehane self-assigned this Apr 9, 2024
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

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

Looks good. I like adding the verbose debug logs here!

@AtofStryker AtofStryker requested review from AtofStryker and removed request for MikeMcC399 April 10, 2024 14:42
@cacieprins cacieprins merged commit 96b14c3 into develop Apr 10, 2024
80 of 82 checks passed
@cacieprins cacieprins deleted the cacie/fix/vulkan-warnings branch April 10, 2024 17:12
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 11, 2024

Released in 13.7.3.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.7.3, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning: vkCreateInstance: Found no drivers! warning shown when running Cypress
5 participants