From: Simon McVittie Date: Mon, 6 Feb 2023 13:13:04 +0000 (+0000) Subject: CI: Don't change ownership of source directory X-Git-Tag: dbus-1.15.4~8^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88dd9d5cc79e4ac37de6b7bf2c9ef8f61f657362;p=thirdparty%2Fdbus.git CI: Don't change ownership of source directory These CI scripts were originally used on Travis-CI, which starts all builds as an ordinary user that has the ability to become root via `sudo`. On Gitlab-CI, we don't need that: we start as uid 0, and can do the whole CI run like that. This also means we get somewhat better test coverage, because some of our unit tests benefit from being run as uid 0. The only test coverage we lose by being uid 0 is that test_pending_fd_timeout() in test/dbus-daemon.c is skipped, because uid 0 bypasses the limit that's under test there. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2fd5a04e8..10e777589 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -142,8 +142,7 @@ windows amd64 image: # compilers - export PATH="/usr/lib/ccache:$PATH" script: - - chown -R user . - - runuser -u user ./tools/ci-build.sh + - ./tools/ci-build.sh debian image: extends: diff --git a/tools/ci-install.sh b/tools/ci-install.sh index b259a58ec..f0bcf6564 100755 --- a/tools/ci-install.sh +++ b/tools/ci-install.sh @@ -406,11 +406,6 @@ if [ "$ci_local_packages" = yes ]; then wget ${mirror}/${filename} tar -C ${dep_prefix} --strip-components=1 -xvf ${filename} done - - # limit access rights - if [ "$ci_in_docker" = yes ]; then - chown -R user "${dep_prefix}" - fi ;; esac fi