Skip to content

Commit ae9131f

Browse files
committed
fix: build
Chrome is broken on GA giving: [FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/hostedtoolcache/setup-chrome/chromium/stable/x64/chrome-sandbox is owned by root and has mode 4755.
1 parent e3c933d commit ae9131f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
with:
3232
chrome-version: stable
3333

34+
- name: Fix GA Chrome Permissions
35+
run: |
36+
sudo chown root:root /opt/hostedtoolcache/setup-chrome/chromium/stable/x64/chrome-sandbox
37+
sudo chmod 4755 /opt/hostedtoolcache/setup-chrome/chromium/stable/x64/chrome-sandbox
38+
3439
- name: Run tests
3540
run: |
3641
mkdir -p /tmp/ferrum

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
end
4747

4848
config.after(:all) do
49-
@browser.quit
49+
@browser&.quit
5050
end
5151

5252
config.before(:each) do

0 commit comments

Comments
 (0)