diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-01 16:21:27 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-03 13:53:00 +0300 |
commit | b2edf3df552b53c5d1f974b7f3ff31749e3e109e (patch) | |
tree | 1a2e2ed593778c43e6a668f310f6bd88637d58fe | |
parent | e8d528caa25ca08e01c593c047a4f3b80b16b1db (diff) |
Makefile: Drop now-unneeded UNPRIVILEGED_CI_SKIP variable
Now that we have converted our CI to both build and test Gitaly as the
same unprivileged user there is no need for the `UNPRIVILEGED_CI_SKIP`
variable anymore that skips building binaries. Remove it.
-rw-r--r-- | Makefile | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -354,10 +354,7 @@ export GITALY_TESTING_GIT_BINARY ?= ${DEPENDENCY_DIR}/git-distribution/bin-wrapp endif .PHONY: prepare-tests -prepare-tests: libgit2 prepare-test-repos ${RUBY_BUNDLE_FILE} ${GOTESTSUM} -ifndef UNPRIVILEGED_CI_SKIP -prepare-tests: ${GITALY_PACKED_EXECUTABLES} -endif +prepare-tests: libgit2 prepare-test-repos ${RUBY_BUNDLE_FILE} ${GOTESTSUM} ${GITALY_PACKED_EXECUTABLES} ${Q}mkdir -p "$(dir ${TEST_REPORT})" .PHONY: prepare-debug @@ -406,17 +403,9 @@ race-go: test-go .PHONY: rspec ## Run Ruby tests. -rspec: prepare-tests +rspec: build prepare-tests ${Q}cd ${GITALY_RUBY_DIR} && PATH='${SOURCE_DIR}/internal/testhelper/testdata/home/bin:${PATH}' bundle exec rspec -# This is a workaround for our unprivileged CI builds. We manually execute the -# build target as privileged user, but then run other targets unprivileged. -# We thus cannot rebuild binaries there given that we have no permissions to -# write into the build directory. -ifndef UNPRIVILEGED_CI_SKIP -rspec: build -endif - .PHONY: verify ## Verify that various files conform to our expectations. verify: check-mod-tidy notice-up-to-date check-proto rubocop lint |