Skip to content

Commit 229e299

Browse files
authored
[rb][build] disable dev shm for Chrome and Edge on RBE (#16497)
Issue with Chrome 142 and RBE, Copying the fix in Python from #16443
1 parent e51fca1 commit 229e299

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ def chrome_options(args: [], **opts)
276276
opts[:binary] ||= ENV['CHROME_BINARY'] if ENV.key?('CHROME_BINARY')
277277
args << '--headless' if ENV['HEADLESS']
278278
args << '--no-sandbox' unless Platform.windows?
279-
WebDriver::Options.chrome(args: args, **opts)
279+
args << '--disable-dev-shm-usage' if GlobalTestEnv.rbe?
280+
opts[:args] = args
281+
WebDriver::Options.chrome(**opts)
280282
end
281283

282284
def edge_options(args: [], **opts)
@@ -285,7 +287,9 @@ def edge_options(args: [], **opts)
285287
opts[:binary] ||= ENV['EDGE_BINARY'] if ENV.key?('EDGE_BINARY')
286288
args << '--headless' if ENV['HEADLESS']
287289
args << '--no-sandbox' unless Platform.windows?
288-
WebDriver::Options.edge(args: args, **opts)
290+
args << '--disable-dev-shm-usage' if GlobalTestEnv.rbe?
291+
opts[:args] = args
292+
WebDriver::Options.edge(**opts)
289293
end
290294

291295
def firefox_options(args: [], **opts)

0 commit comments

Comments
 (0)