From dfa050a940b3f91763adfed243cbfd48e1105ebb Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 7 Jun 2023 10:23:23 +0200 Subject: 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. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3