Skip to content

Skip creation of gitlab api if GITALY_TESTING_NO_GIT_HOOKS is set

John Cai requested to merge jc-disable-gitlab-api-with-no-hooks into master

in !2243 (merged), we added functionality to fail gitaly startup unless a gitlabapi was created. However, there are many places in gitlab where CI does not run hooks, and there aren't the config options to support a gitlabapi starting up.

this MR allows those places to set an environment variable to disable startup from creating a gitlab api.

when GITALY_TESTING_NO_GIT_HOOKS is set, the hooks aren't run at all so the gitlabapi never gets called.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading