Skip to content

Enable Chrome to run again on CI#784

Merged
romaricpascal merged 2 commits intomainfrom
fix-chrome-headless-ci
Dec 15, 2025
Merged

Enable Chrome to run again on CI#784
romaricpascal merged 2 commits intomainfrom
fix-chrome-headless-ci

Conversation

@romaricpascal
Copy link
Copy Markdown
Member

Quick fix for #781 that enables Chrome to run again on CI by using the --no-sandbox and --disable-sandbox-uuid flags.

This was something we used to do on alphagov/govuk-frontend and it gets the tests running again. However, we've since stopped using these flags so we should look at a more long term solution if it exists, as --no-sandbox is not problematic on CI (each CI run is in a container, which is its own little sandbox), but on our machines we should find a more secure way (although this is mitigated by the fact we only access our dev server)

Use the same `--no-sandbox` and `--disable-setuid-sandbox` flags
as on GOV.UK Frontend to enable Chrome to run on CI.
Similarly to Karma, Chrome won't launch on CI unless
the `--no-sandbox` and `--disable-setuid-sandbox` are set.
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 15, 2025

Deploy Preview for accessible-autocomplete ready!

Name Link
🔨 Latest commit e37cf34
🔍 Latest deploy log https://app.netlify.com/projects/accessible-autocomplete/deploys/693fded6c8f4310008cf5287
😎 Deploy Preview https://deploy-preview-784--accessible-autocomplete.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@romaricpascal romaricpascal merged commit 1d5c175 into main Dec 15, 2025
8 of 10 checks passed
@romaricpascal romaricpascal deleted the fix-chrome-headless-ci branch December 15, 2025 12:15
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