Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8b80f5c7
Commit
8b80f5c7
authored
Nov 09, 2021
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add env variable to disable qa dev-shm
Allow local qa runs to disable dev-shm in chrome as well
parent
edd23d67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
qa/qa/runtime/browser.rb
qa/qa/runtime/browser.rb
+1
-1
qa/qa/runtime/env.rb
qa/qa/runtime/env.rb
+5
-0
No files found.
qa/qa/runtime/browser.rb
View file @
8b80f5c7
...
...
@@ -99,7 +99,7 @@ module QA
end
# Disable /dev/shm use in CI. See https://gitlab.com/gitlab-org/gitlab/issues/4252
capabilities
[
'goog:chromeOptions'
][
:args
]
<<
'disable-dev-shm-usage'
if
QA
::
Runtime
::
Env
.
running_in_ci
?
capabilities
[
'goog:chromeOptions'
][
:args
]
<<
'disable-dev-shm-usage'
if
QA
::
Runtime
::
Env
.
disable_dev_shm
?
# Specify the user-agent to allow challenges to be bypassed
# See https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/11938
...
...
qa/qa/runtime/env.rb
View file @
8b80f5c7
...
...
@@ -80,6 +80,11 @@ module QA
enabled?
(
ENV
[
'CHROME_REUSE_PROFILE'
],
default:
false
)
end
# Disable /dev/shm use in CI. See https://gitlab.com/gitlab-org/gitlab/issues/4252
def
disable_dev_shm?
running_in_ci?
||
enabled?
(
ENV
[
'CHROME_DISABLE_DEV_SHM'
],
default:
false
)
end
def
accept_insecure_certs?
enabled?
(
ENV
[
'ACCEPT_INSECURE_CERTS'
])
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment