Skip to content

Commit c5cca34

Browse files
mydeaclaude
andcommitted
fix(ci): Set HOME=/root for Playwright containers
GitHub Actions runs containers as root but sets HOME=/github/home (owned by pwuser). Firefox refuses to launch as root in another user's home directory. Setting HOME=/root fixes this. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9c9a53b commit c5cca34

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ jobs:
501501
credentials:
502502
username: ${{ github.actor }}
503503
password: ${{ secrets.GITHUB_TOKEN }}
504-
options: --ipc=host
504+
options: --ipc=host -e HOME=/root
505505
timeout-minutes: 25
506506
strategy:
507507
fail-fast: false
@@ -605,7 +605,7 @@ jobs:
605605
credentials:
606606
username: ${{ github.actor }}
607607
password: ${{ secrets.GITHUB_TOKEN }}
608-
options: --ipc=host
608+
options: --ipc=host -e HOME=/root
609609
timeout-minutes: 15
610610
strategy:
611611
fail-fast: false
@@ -799,7 +799,7 @@ jobs:
799799
credentials:
800800
username: ${{ github.actor }}
801801
password: ${{ secrets.GITHUB_TOKEN }}
802-
options: --ipc=host
802+
options: --ipc=host -e HOME=/root
803803
timeout-minutes: 15
804804
strategy:
805805
fail-fast: false
@@ -902,7 +902,7 @@ jobs:
902902
credentials:
903903
username: ${{ github.actor }}
904904
password: ${{ secrets.GITHUB_TOKEN }}
905-
options: --ipc=host
905+
options: --ipc=host -e HOME=/root
906906
timeout-minutes: 15
907907
env:
908908
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -1033,7 +1033,7 @@ jobs:
10331033
credentials:
10341034
username: ${{ github.actor }}
10351035
password: ${{ secrets.GITHUB_TOKEN }}
1036-
options: --ipc=host
1036+
options: --ipc=host -e HOME=/root
10371037
timeout-minutes: 15
10381038
env:
10391039
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}

.github/workflows/canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
credentials:
7777
username: ${{ github.actor }}
7878
password: ${{ secrets.GITHUB_TOKEN }}
79-
options: --ipc=host
79+
options: --ipc=host -e HOME=/root
8080
timeout-minutes: 20
8181
env:
8282
# We just use a dummy DSN here, only send to the tunnel anyhow

.github/workflows/flaky-test-detector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
credentials:
4646
username: ${{ github.actor }}
4747
password: ${{ secrets.GITHUB_TOKEN }}
48-
options: --ipc=host
48+
options: --ipc=host -e HOME=/root
4949
timeout-minutes: 60
5050
name: 'Check tests for flakiness'
5151
# Also skip if PR is from master -> develop

0 commit comments

Comments
 (0)