Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-06-07 11:23:23 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-06-07 16:44:39 +0300
commitdfa050a940b3f91763adfed243cbfd48e1105ebb (patch)
tree08ddcd8679cf1c0c0227b673edccc90c35cbd847 /.gitlab-ci.yml
parent6f81f3546feb01f82d6d82b2e7f31e7d3321d509 (diff)
ci: Disable Gatekeeper for macOS jobs
Gatekeeper is a security feature of macOS intended to secure the operating system against executing malicious code. This feature works by checking signatures of executables against known-malicious code and verifying signatures. But while this may be a good idea for normal desktop and server usage, it doesn't help us much in the context of CI pipelines. Quite on the contrary: as our Gitaly test suite is quite heavy on executing binaries the check even causes a quite noticeable slowdown. Disable Gatekeeper in our macOS job. This reduces test times from around 600 seconds to 480 seconds.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72424650c..7eec0c517 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -343,6 +343,8 @@ test:macos:
# Disable code coverage generation as it is too slow on macOS.
TEST_WITH_COVERAGE: ""
before_script:
+ # Disable Gatekeeper to speed up spawning executables.
+ - sudo spctl --master-disable
# Create a 2GB RAM disk to speed up our tests.
- sudo diskutil apfs create $(hdiutil attach -nomount ram://4194304) RAMDisk
- brew uninstall go