Skip to content

Add a karma.config.d/config.js to the jsNoExecutableTests test#5625

Merged
Konstantin (terrakok) merged 1 commit into
masterfrom
chrome-fix
Jun 17, 2026
Merged

Add a karma.config.d/config.js to the jsNoExecutableTests test#5625
Konstantin (terrakok) merged 1 commit into
masterfrom
chrome-fix

Conversation

@terrakok

@terrakok Konstantin (terrakok) commented Jun 16, 2026

Copy link
Copy Markdown
Member

Problem

testJsNoExecutableTests fails in CI when the build runs as root:

Cannot start ChromeHeadless
Running as root without --no-sandbox is not supported.

This is the only integration test in gradle-plugins that actually launches a browser (it's the only one invoking jsBrowserTest with a real Compose UI test). All other test projects declaring js { browser() } are driven through compile/packaging tasks only and never start Chrome, so they're unaffected. Other browser test suites in the repo (html/, components/resources/) already ship their own --no-sandbox karma patch — this test project was the only browser-launching one without one.

Fix

Add a karma.config.d/config.js to the jsNoExecutableTests test project that runs ChromeHeadless with --no-sandbox.

Release Notes

N/A

@terrakok Konstantin (terrakok) changed the title Enable Chrome for JS browser tests in jsNoExecutableTests project Add a karma.config.d/config.js to the jsNoExecutableTests test Jun 17, 2026
@terrakok Konstantin (terrakok) merged commit d0d62e6 into master Jun 17, 2026
25 of 27 checks passed
@terrakok Konstantin (terrakok) deleted the chrome-fix branch June 17, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants