Skip to content

Suppress Chrome sandbox and GPU errors in CI#7191

Open
Dmytro-Melnyshyn wants to merge 1 commit into
masterfrom
fix/chrome-ci-error-logs
Open

Suppress Chrome sandbox and GPU errors in CI#7191
Dmytro-Melnyshyn wants to merge 1 commit into
masterfrom
fix/chrome-ci-error-logs

Conversation

@Dmytro-Melnyshyn

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Running node scripts/report-portal/runFailedTests.js --launchName runNightlyCypressEurekaTests shows the following errors in Jenkins container logs, which actually do not affect anything, but confuse people.

17:48:16  [5815:0528/144816.559731:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 5970: Permission denied (13)
17:48:16  [5970:0528/144816.574743:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

Added a before:browser:launch handler that injects two Chrome flags when running in a Chromium-family browser:

  • --no-sandbox — removes the sandbox that requires OOM-score adjustment privileges (fixes the zygote_host_impl_linux.cc error)
  • --disable-gpu — disables GPU hardware acceleration (fixes the gpu_memory_buffer_support_x11.cc / dri3 error)

These errors are caused by Chrome's sandbox requiring elevated OS privileges and GPU/X11 access that are unavailable in containerized CI agents.

The before:browser:launch handler is inside setupAfterSpecChaining's itemsFilePath guard — it only activates when running the runFailedTests.js script. Regular Cypress runs (local dev, CI pipelines that invoke Cypress directly) are unaffected.

Here are args available for the Chromium-based browsers.

@Dmytro-Melnyshyn Dmytro-Melnyshyn changed the title FAT-20891: Suppress Chrome sandbox and GPU errors in CI Suppress Chrome sandbox and GPU errors in CI May 28, 2026
@Dmytro-Melnyshyn Dmytro-Melnyshyn force-pushed the fix/chrome-ci-error-logs branch from f29d042 to f6435ff Compare May 28, 2026 17:19
Add --no-sandbox and --disable-gpu Chrome flags via before:browser:launch
to eliminate permission and dri3 errors in containerized Jenkins agents.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@OHaimanov OHaimanov force-pushed the fix/chrome-ci-error-logs branch from f6435ff to 83093e1 Compare May 29, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants