]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
gitlab: make check-[dco|patch] a little more verbose
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 23 Oct 2024 11:33:58 +0000 (12:33 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 24 Oct 2024 08:56:29 +0000 (09:56 +0100)
When git fails the rather terse backtrace only indicates it failed
without some useful context. Add some to make the log a little more
useful.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241023113406.1284676-11-alex.bennee@linaro.org>

.gitlab-ci.d/check-dco.py
.gitlab-ci.d/check-patch.py

index 632c8bcce87e630733ad2bbac693d532ac05b107..d221b16bd513dce8ad50e04c1d149d8450ec3da3 100755 (executable)
@@ -19,10 +19,9 @@ cwd = os.getcwd()
 reponame = os.path.basename(cwd)
 repourl = "https://gitlab.com/%s/%s.git" % (namespace, reponame)
 
+print(f"adding upstream git repo @ {repourl}")
 subprocess.check_call(["git", "remote", "add", "check-dco", repourl])
-subprocess.check_call(["git", "fetch", "check-dco", "master"],
-                      stdout=subprocess.DEVNULL,
-                      stderr=subprocess.DEVNULL)
+subprocess.check_call(["git", "fetch", "check-dco", "master"])
 
 ancestor = subprocess.check_output(["git", "merge-base",
                                     "check-dco/master", "HEAD"],
index 39e2b403c9eb901079e644234191d1d023c99142..68c549a146a3f2e93dfe713988beff6205c62e2f 100755 (executable)
@@ -19,13 +19,12 @@ cwd = os.getcwd()
 reponame = os.path.basename(cwd)
 repourl = "https://gitlab.com/%s/%s.git" % (namespace, reponame)
 
+print(f"adding upstream git repo @ {repourl}")
 # GitLab CI environment does not give us any direct info about the
 # base for the user's branch. We thus need to figure out a common
 # ancestor between the user's branch and current git master.
 subprocess.check_call(["git", "remote", "add", "check-patch", repourl])
-subprocess.check_call(["git", "fetch", "check-patch", "master"],
-                      stdout=subprocess.DEVNULL,
-                      stderr=subprocess.DEVNULL)
+subprocess.check_call(["git", "fetch", "check-patch", "master"])
 
 ancestor = subprocess.check_output(["git", "merge-base",
                                     "check-patch/master", "HEAD"],