From patchwork Sat Nov 9 12:08:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 842096 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp2117924wru; Sat, 9 Nov 2024 04:21:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVE79yyq9UGePrp3OnJwlHK1ksWb6soiDBSPAkLwnWBHUdyIkQ+WENsHiUcRc/OxQc43w5Vlw==@linaro.org X-Google-Smtp-Source: AGHT+IFE7ouYduYNZfemitWdGQm0wNQ+toLysP8yZtSffoqQokUpBATwyeQrLZhTTsUzlrVoILC9 X-Received: by 2002:a05:622a:5c98:b0:460:8b77:cbea with SMTP id d75a77b69052e-46309417ecbmr100487721cf.50.1731154872586; Sat, 09 Nov 2024 04:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731154872; cv=none; d=google.com; s=arc-20240605; b=EN5PVE+JMpi7XjLD84Dkc7sGkqDy6lVTk/2t4Vg41pA8bdJ/ZYuONYODSqOXTWSf+c 7TV0OHmGtha+neIzR5Gy6IgUY8sL+QN+f+2XTHH3pG4NbgckLI8X6+/ahDD/9iWDvOel jgxSEKcXgTbyMIvpxtRF3ym/9j4+F+EM3zlyyu6bRJjVWox7V5m1q3Vq5qw1O+PFZY/x mV/b3CgZsNO4z+jx/zMltWg5ZS/D10xl3EcNh1wj0lF+0pgiVMETG98h/+5Oata26mR+ IgkfYN6fGmXUlnyI4PFXnX38REreMyFYzK7v2s41A3UnB4wcFo5iuj33d1pIP3tq13a/ e7Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=mITr+4ff3/eJn4ZukbuQ+0LdyhP5DuTqc2drUwlfOmE=; fh=QunmYwzbXWilzKUSCm5rGLvrKB9FGWCyqo7FW/+IwZI=; b=YY6q4zKJVpYncJrG2UwVF+zrahRaglqlIHczTAFGnaK/Xpxdn/SV4YchIaIrwB8in2 P89Dz8fYGeXfexAHODE2qDiErmryHgvlssDNtF491GkpHnkLPIXfM9KqAE0goz0Xy2xF 58p9yPn7jzz+IvtqxqqEiRUMSfmL9PRNc78f+8D5CfUqDdxfDU2DQhT3WqV6o8xFDx2/ +dKh8a7OdSIOiuKV1CjcpBS6kgTIbc9d2yl6vhODk5rohXjygg0Os638QthfEH+4vTsH LBvJqZDSvd5Ep9nqjus7A3u+hj8yYHprPtr1rH7nlns+T/Wz5fKNVNHsN6rjO1THA4dt iDsw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-462ff40fdcesi63161361cf.70.2024.11.09.04.21.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Nov 2024 04:21:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9kPf-0006Tp-Dx; Sat, 09 Nov 2024 07:17:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9kOD-0004lA-AY; Sat, 09 Nov 2024 07:16:31 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9kOB-0005AJ-KQ; Sat, 09 Nov 2024 07:16:29 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id AF4A1A163A; Sat, 9 Nov 2024 15:08:07 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 761EA167FC1; Sat, 9 Nov 2024 15:09:02 +0300 (MSK) Received: (nullmailer pid 3296179 invoked by uid 1000); Sat, 09 Nov 2024 12:09:01 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P_?= =?utf-8?q?=2E_Berrang=C3=A9?= , Michael Tokarev Subject: [Stable-9.1.2 17/58] gitlab: make check-[dco|patch] a little more verbose Date: Sat, 9 Nov 2024 15:08:18 +0300 Message-Id: <20241109120901.3295995-17-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Alex Bennée 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é Signed-off-by: Alex Bennée Message-Id: <20241023113406.1284676-11-alex.bennee@linaro.org> (cherry picked from commit 97f116f9c6fd127b6ed2953993fa9fb05e82f450) Signed-off-by: Michael Tokarev diff --git a/.gitlab-ci.d/check-dco.py b/.gitlab-ci.d/check-dco.py index 632c8bcce8..d221b16bd5 100755 --- a/.gitlab-ci.d/check-dco.py +++ b/.gitlab-ci.d/check-dco.py @@ -19,10 +19,9 @@ 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"], diff --git a/.gitlab-ci.d/check-patch.py b/.gitlab-ci.d/check-patch.py index 39e2b403c9..68c549a146 100755 --- a/.gitlab-ci.d/check-patch.py +++ b/.gitlab-ci.d/check-patch.py @@ -19,13 +19,12 @@ 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"],