Skip to content

Commit 3b3f9dd

Browse files
mydeaclaude
andcommitted
fix(ci): Set HOME=/root via docker -e flag to override GHA default
GHA hard-codes HOME=/github/home when creating the container, which overrides our container.env setting. Using -e HOME=/root in the container options flag takes precedence over GHA's injected value. Firefox requires HOME to be owned by the current user (root). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 079a3d1 commit 3b3f9dd

3 files changed

Lines changed: 7 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,7 @@ jobs:
500500
credentials:
501501
username: ${{ github.actor }}
502502
password: ${{ secrets.GITHUB_TOKEN }}
503-
options: --ipc=host --user root
504-
env:
505-
HOME: /root
503+
options: --ipc=host --user root -e HOME=/root
506504
timeout-minutes: 25
507505
strategy:
508506
fail-fast: false
@@ -606,9 +604,7 @@ jobs:
606604
credentials:
607605
username: ${{ github.actor }}
608606
password: ${{ secrets.GITHUB_TOKEN }}
609-
options: --ipc=host --user root
610-
env:
611-
HOME: /root
607+
options: --ipc=host --user root -e HOME=/root
612608
timeout-minutes: 15
613609
strategy:
614610
fail-fast: false
@@ -828,9 +824,7 @@ jobs:
828824
credentials:
829825
username: ${{ github.actor }}
830826
password: ${{ secrets.GITHUB_TOKEN }}
831-
options: --ipc=host --user root
832-
env:
833-
HOME: /root
827+
options: --ipc=host --user root -e HOME=/root
834828
timeout-minutes: 15
835829
strategy:
836830
fail-fast: false
@@ -934,9 +928,7 @@ jobs:
934928
credentials:
935929
username: ${{ github.actor }}
936930
password: ${{ secrets.GITHUB_TOKEN }}
937-
options: --ipc=host --user root
938-
env:
939-
HOME: /root
931+
options: --ipc=host --user root -e HOME=/root
940932
timeout-minutes: 15
941933
env:
942934
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -1068,9 +1060,7 @@ jobs:
10681060
credentials:
10691061
username: ${{ github.actor }}
10701062
password: ${{ secrets.GITHUB_TOKEN }}
1071-
options: --ipc=host --user root
1072-
env:
1073-
HOME: /root
1063+
options: --ipc=host --user root -e HOME=/root
10741064
timeout-minutes: 15
10751065
env:
10761066
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}

.github/workflows/canary.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ jobs:
7777
credentials:
7878
username: ${{ github.actor }}
7979
password: ${{ secrets.GITHUB_TOKEN }}
80-
options: --ipc=host --user root
81-
env:
82-
HOME: /root
80+
options: --ipc=host --user root -e HOME=/root
8381
timeout-minutes: 20
8482
env:
8583
# We just use a dummy DSN here, only send to the tunnel anyhow

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

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

0 commit comments

Comments
 (0)