Skip to content

Commit 6edb101

Browse files
committed
fix(tools): add --no-sandbox for CI environments
Puppeteer's Chrome requires --no-sandbox on GitHub Actions runners where unprivileged user namespaces are restricted by AppArmor. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 00c79f1 commit 6edb101

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/pfe-tools/test/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export function pfeTestRunnerConfig(opts: PfeTestRunnerConfigOptions): TestRunne
8787
browsers: [
8888
chromeLauncher({
8989
puppeteer: puppeteer as never,
90+
launchOptions: {
91+
args: process.env.CI ? ['--no-sandbox'] : [],
92+
},
9093
createBrowserContext: async ({ browser }) => {
9194
const context = await browser.defaultBrowserContext();
9295
await context.overridePermissions('http://localhost', [

0 commit comments

Comments
 (0)