From nobody Thu Nov 21 19:56:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1722550031; cv=none; d=zohomail.com; s=zohoarc; b=dQ1EBvCAjMyqgo3SifCjNGSK0r/LWPqjPqi8jNOgFdQzPmyrsFQBKLAKbvM1uv/yGbjNBQ1KeaOppXDFk6c6W36eH2a9xlYBVaMq1QMcQCPguVQsrK+pVo41aCrMVNRt6+5xE+hUMCOUe09+cajDdQ81KQk3Nb/Ax2P4RK2Gdq4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722550031; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bUPLBLNgUvnQK51BILV9ckTi11DenM1dLLjDVIA1+Ys=; b=jYt7XUuHafoUz62nDCOXkL1rdTqZe0KqNrT6C6Tib09KGADQOzLcPsJCkqX6cdnfqpFWqxdAYLvrhymfJDI7XoR1epm4McgUpkIvUHlZT8J92Z8mLGwuoKCwtvqAdOZzTrX/TLP66CQbUAUwIjPU2tLBnSZK3JnNrcewWfDJJ0o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1722550031453827.3084096014617; Thu, 1 Aug 2024 15:07:11 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.770005.1180863 (Exim 4.92) (envelope-from ) id 1sZdwh-0000J2-Mo; Thu, 01 Aug 2024 22:06:51 +0000 Received: by outflank-mailman (output) from mailman id 770005.1180863; Thu, 01 Aug 2024 22:06:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sZdwh-0000Iv-K0; Thu, 01 Aug 2024 22:06:51 +0000 Received: by outflank-mailman (input) for mailman id 770005; Thu, 01 Aug 2024 22:06:50 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sZdwg-0000In-Ga for xen-devel@lists.xenproject.org; Thu, 01 Aug 2024 22:06:50 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 578d8436-5052-11ef-8776-851b0ebba9a2; Fri, 02 Aug 2024 00:06:46 +0200 (CEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 22AC662954; Thu, 1 Aug 2024 22:06:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1593FC32786; Thu, 1 Aug 2024 22:06:43 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 578d8436-5052-11ef-8776-851b0ebba9a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722550004; bh=zTut31+nWOafgfKglJDPziM5pXREb4+C4my9z6BgDiM=; h=Date:From:To:cc:Subject:From; b=GDwZzxlVMdj8epj04tDTwUMxPJi45mJ0Ttxi2wVqG6vmM62ut/fYyVP6JxoQE+9DX GJSHy+gEDWIT8UFISgiN4vuFAyK9o0Wz1JkINOtEV6ifhk2hod0OgXhT1HZRpPahaO SQycZcPP2G7y/52/heZ5v6lqElLMufr8F3JS8mFKFaufVErJlvPJx5CoR/c3Df+dY/ 9xRxbEIKj+PGkGY+cUCeAYo7VVZgaP9cLVO7F3nWnmnP5rhH5bhglcouTSnyvwmqvh 7CyKLYibiOSL4cDpNrXigvx2u2KpGTR4LZx+lqelMo63vd2Qn2zU8XTySp3RdjeFEJ 1ERQbi1h5Ju3Q== Date: Thu, 1 Aug 2024 15:06:43 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: xen-devel@lists.xenproject.org cc: Simone Ballarin , nicola.vetrini@bugseng.com, consulting@bugseng.com, sstabellini@kernel.org Subject: [PATCH] automation: fix eclair scanning for merge requests Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1722550032235116600 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The ECLAIR jobs part of the Gitlab CI pipeline fail reliably when the pipeline is started from a merge request. This is the error: Unexpected event pull_request The error is a consequence of action.settings setting event=3Dpull_request for merge_request_event. Given that we don't need any special behavior from ECLAIR for merge requests, just run the regular scan, change action.settings to set event=3Dpush for merge_request_event (same as for pipeline triggered by git push). Signed-off-by: Stefano Stabellini Reviewed-by: Simone Ballarin --- Example of a failure: https://gitlab.com/xen-project/hardware/xen/-/jobs/7486162928 Example of a success with this patch applies: https://gitlab.com/xen-project/people/sstabellini/xen/-/pipelines/1397672866 diff --git a/automation/eclair_analysis/ECLAIR/action.settings b/automation= /eclair_analysis/ECLAIR/action.settings index 1577368b61..1bfb22b1c1 100644 --- a/automation/eclair_analysis/ECLAIR/action.settings +++ b/automation/eclair_analysis/ECLAIR/action.settings @@ -64,14 +64,11 @@ gitlab) =20 case "${CI_PIPELINE_SOURCE}" in merge_request_event) - event=3Dpull_request - pullRequestId=3D"${CI_MERGE_REQUEST_IID}" - pullRequestHeadRef=3D"${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" - pullRequestHeadRepo=3D"${CI_MERGE_REQUEST_SOURCE_PROJECT_PATH}" - pullRequestBaseRef=3D"${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}" - pullRequestUser=3D"${GITLAB_USER_LOGIN}" + event=3Dpush + ref_kind=3Dbranch + ref=3D"${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" headCommitId=3D"${CI_COMMIT_SHA}" - baseCommitId=3D"${CI_MERGE_REQUEST_DIFF_BASE_SHA}" + pushUser=3D"${GITLAB_USER_NAME}" ;; push | pipeline | web | schedule) event=3Dpush