From patchwork Sat Nov 9 06:38:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 842066 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp2029161wru; Fri, 8 Nov 2024 22:43:13 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW7D2dQSgU5ENpaXm3OZ3v4Jp+M8tbZLpzD2ifD9LoYv3CxjoQjg/p4/ApG8oHpXPTUUz0kuw==@linaro.org X-Google-Smtp-Source: AGHT+IF5QLqAycSYT5G5otsv7EgeCQS0Mu0lai6wSLQCRUypJamqugA22DYGUDa5Q4P51uKpWU0A X-Received: by 2002:a05:620a:25cf:b0:7b1:7f5b:72c7 with SMTP id af79cd13be357-7b331e98d8amr801617885a.1.1731134593638; Fri, 08 Nov 2024 22:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731134593; cv=none; d=google.com; s=arc-20240605; b=O+Reso2zL0Dlc79vqnm2qQMaT/MXdh0N7SsBYlsC5ZLOf8hqkukkIqcYNMY2/IZhqh 5eVeYR2irUDSfeAOMGB+ZOk/xufTHFltlonJ3/9n9Ac/HQho9cmIhW95pjh11rseByxo RzktHpEUMNU77QmSN5Gzy2ukuSRSZ9XOHyUou6wSPVmklaSi3FTinELW1hzGqcwiSxkE fNSQoDYrOgrJ9bjgebalj7eK+YuIfZvzgu5+MKobS1/SUdJt/VnZNgFxLtqVa4iYLdMa qb3fjBTtqThK42+Q/5+IRsVuduc3YPI8YvuUc0CoyMpaRQuHBboTysX7dZeRbygLqLua 7i4w== 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=W//s0qTbXHTebXGJydI+ArO79+LkOZf6xdmo+4ffi+8=; fh=QunmYwzbXWilzKUSCm5rGLvrKB9FGWCyqo7FW/+IwZI=; b=Ubag50SVcqSuyUSmWdRGaRbxJmDlm9AAyh7EuaSE/+d6Bko19IAGo04N8Bymoweudb rWLhCQVuKP7XBtvrBryfHLpLrHYboFJjUc27hP4/lyxBbteCJeh7QOIhngMXDMvuVYsh ODT8UNnZFHEb9+4kHybBnt6FksCaI5qPrWHzhwConnFY5l6zSlRhoy7IM6Ovc9n5sFHZ q1i+wLk+qF1z56lyzICAprcVwAIYYXqnIXBQSKq3/ExxF/AqRTxV03D5mJccBgAYAqxI oWAkSqujFkBuKfg/93X1tB8nmWfezIHFTBVrpirOqdx4W2RqZxWUFcHhyb6UhXvaGpJI ee4Q==; 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 af79cd13be357-7b32ac3d5b3si627044085a.137.2024.11.08.22.43.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Nov 2024 22:43:13 -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 1t9fAl-0006am-RM; Sat, 09 Nov 2024 01:42:22 -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 1t9f9E-0004Vt-Jt; Sat, 09 Nov 2024 01:40:40 -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 1t9f9C-0002VD-JA; Sat, 09 Nov 2024 01:40:40 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id A638EA12FB; Sat, 9 Nov 2024 09:38:10 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 1C5F5167DDE; Sat, 9 Nov 2024 09:39:05 +0300 (MSK) Received: (nullmailer pid 3272550 invoked by uid 1000); Sat, 09 Nov 2024 06:39:03 -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-7.2.15 19/33] gitlab: make check-[dco|patch] a little more verbose Date: Sat, 9 Nov 2024 09:38:45 +0300 Message-Id: <20241109063903.3272404-19-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 (Mjt: context fix for stable-7.2) diff --git a/.gitlab-ci.d/check-dco.py b/.gitlab-ci.d/check-dco.py index b929571eed..8780d73e31 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", "stable-7.2"], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL) +subprocess.check_call(["git", "fetch", "check-dco", "stable-7.2"]) ancestor = subprocess.check_output(["git", "merge-base", "check-dco/stable-7.2", "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"],