From patchwork Fri Feb 18 12:00:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12751392 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 345DFC433EF for ; Fri, 18 Feb 2022 12:01:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.275312.471132 (Exim 4.92) (envelope-from ) id 1nL1we-00060k-Sa; Fri, 18 Feb 2022 12:01:04 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 275312.471132; Fri, 18 Feb 2022 12:01:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nL1we-00060d-P1; Fri, 18 Feb 2022 12:01:04 +0000 Received: by outflank-mailman (input) for mailman id 275312; Fri, 18 Feb 2022 12:01:03 +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 1nL1wd-0005gu-AW for xen-devel@lists.xenproject.org; Fri, 18 Feb 2022 12:01:03 +0000 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7043625a-90b2-11ec-8723-dd0c611c5f35; Fri, 18 Feb 2022 13:01:02 +0100 (CET) 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: 7043625a-90b2-11ec-8723-dd0c611c5f35 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1645185662; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=3Ag96AKa6ckCXDTMAqCXlDOih2VxTNmBDm/9Ym2Fx4s=; b=TEYcBq7LQ/5WB5/0zDGIXZWaVLlLWX2344Q4vSdfzXVNgmzwtbMEJ0B6 lAaOAxr56ZuNby7BCB0tZAEK5+Xr7iXnVm7/z0AYO3O4Udnt6UO24b6cM OWFnTgpmZUq5n8YXu+w+IWIr+Dr2xrWzHok2iyekA4PupcSa14zhtIdWW Y=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 64916530 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:enEo1q/aY5rDMJmZ62EyDrUDv36TJUtcMsCJ2f8bNWPcYEJGY0x3y DFMW2/UOPaPYWajfN0lOd7k9k0P7cOAydVqSQs9/iw8E34SpcT7XtnIdU2Y0wF+jyHgoOCLy +1EN7Es+ehtFie0Si+Fa+Sn9T8mvU2xbuKU5NTsY0idfic5Dndx4f5fs7Rh2NQw24HpW1rlV e7a+KUzBnf0g1aYDUpMg06zgEsHUCPa4W5wUvQWPJinjXeG/5UnJMt3yZKZdhMUdrJ8DO+iL 9sv+Znilo/vE7XBPfv++lrzWhVirrc/pmFigFIOM0SpqkAqSiDfTs/XnRfTAKtao2zhojx/9 DlCnY2KcggYJonIosQUCykGDQh1DKFp0bCSdBBTseTLp6HHW37lwvEoB0AqJ4wIvO1wBAmi9 9RBdmpLNErawbvrnvTrEYGAhex6RCXvFJkYtXx6iynQEN4tQIzZQrWM7thdtNs1rp4STK+AO pFBAdZpRCTjZh0XanImMr0Fs6CB2GjyYgxckV3A8MLb5ECMlVcsgdABKuH9YceWTM9YmkKZo GPu/GnjBBwectuFxlKt7XaEluLJ2yThV+o6FqC89/NsqE2ewCoUEhJ+fUu2p7y1h1CzX/pbK lcI4Ww+oK4q7kupQ9LhGRqirxasvBQRRt5RGO0S8xyWx+zf5APxO4QfZmcfMpp87pZwHGF0k A/S9z/0OdBxmKyvcn2s7pOQlxO7YRhLM0YJVCMrZARQtrEPv7oPph7IS99iFou8gdv0BSz8z li2kcQuu1kApZVVjvvmpDgrlxrp/8GUFVBtum07S0r4tlsRWWKzW2C/BbE3B95kJZ3RcFSOt WNsdyO2vLFXVsHleMBgrYww8FCVCxStbGy0bb1HRcBJG9GRF5iLJNE4DNZWfhoBDyr8UWW1C HI/QCsIjHOpAFOkbLVsf6W6ANkwwK7rGLzND66IM4MUPsAgKFHepkmCgHJ8OUi0wSDAdollZ P+mnTuEVy5GWcyLMhLtLwvi7VPb7n9nnj6CLXwK5x+mzaCfdBaopUQtazOzghQCxPrc+m39q o8HX+PTkkk3eLCuM0H/rN9IRXhXfCdTOHwDg5EOHgJ1ClE9Qz9J5j646e5JRrGJaIwPyL+Tp ynlAhUwJZiWrSSvFDhmo0tLMdvHdZ1+sWg6LWorO1Op0GIkeoGh8OEUcJ5fQFXt3LYLISJcJ xXdR/i9Pw== IronPort-HdrOrdr: A9a23:YagHa66OGe94NEmmvwPXwBfXdLJyesId70hD6qkXc20wTiX4rb HKoB1/73XJYVkqN03I9ervBEDiewK/yXcW2+ks1N6ZNWGM1QeVxepZnOjfKlPbehHWx6plzq FnfLF5CNrsSXZHreuS2njfL/8QhOCd9qamnOHfyGooazpLReVP0ydVYzzrdXGfYmF9dOIE/V 6nl7N6mwY= X-IronPort-AV: E=Sophos;i="5.88,378,1635220800"; d="scan'208";a="64916530" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kSjEZo0CG061CYMyUv000bNswHK41SbUbsu04GJWKEtRqKwV4KKXHweuFBTY+EVg/nvzU7sUT0aKo2GaNVrcupd0mMTyDdMfvsszVWN9hliBCuq68eLGvMgUxQ3YHTjTcWKbLabeYzmumEJHMFtVczsP2ovRzdgjozZcu6PQCDcjsJxgk6EPuMzbA2OMpX/yafbzJM6iK/ozlMNVqiKBqaFcqDxdicPKQ7PiD04hk+qc+fPUU3CMLNBJ5PMI7niqZDM8jVpWfcJkkKfsnB5bWljjUoYQj2Rkd+Ais3BzaD1Hxj4YUhH9WnMItxT6mEGKgz6rLwkhLH7M8r5wuziRFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JVEEC7hGK2V16CSDkdSlQ4L0CqRHMYhugTfKIlrqonY=; b=XhlEE1EdYhvUtOknVQIWYYC80MF5zBYxBYNGYEyvYvQzhHWiUlBuJ3IhOsCAXVpsSws7e7xp/aB/dLXT9mrdfsDETlyat+PVxczqBTXNiZKx21v+YsWOqV5SygY+8/KVF12t85PTFJMKnTMYE0EXUm0MFK+dv7sbtiK95h2Q9SkyTEm6w/8cCTDLT9xrN44ULxVErKnW3RDUJqyPWox8Y2lt3GxrAiDunRHu4Hfx94TTCjhUA8jv/TPHCW6iDFONK+EBDir3nXADkO3MY9WWY7VQ8cqo1hF0ZinYgeHJOyEsVeWrN0fqWmVKExou0QmD7da0w4cGkEM3XbqIP2H4iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVEEC7hGK2V16CSDkdSlQ4L0CqRHMYhugTfKIlrqonY=; b=p1I5HxPv7tn71SJ+hJ6/ioQl/KyN8W30dH5RDaDfyqiqQ8yN1dssaLxBFB2HjfjMvSqVQevAQDjxjXVCcs1cthKZNWVKO4FTwzbKsB8TseiJeO+HWGmotfunLelmB/BU5p48TPp3ZLr4BU8LlVbrDc670IkYaGai6YXI81hdZMA= From: Roger Pau Monne To: CC: Roger Pau Monne , Andrew Cooper , George Dunlap , "Jan Beulich" , Julien Grall , "Stefano Stabellini" , Wei Liu Subject: [PATCH 1/2] github: add workflow to run Coverity scans Date: Fri, 18 Feb 2022 13:00:41 +0100 Message-ID: <20220218120042.32102-2-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218120042.32102-1-roger.pau@citrix.com> References: <20220218120042.32102-1-roger.pau@citrix.com> X-ClientProxiedBy: MR2P264CA0185.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501::24) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fb09affa-e51e-4329-eb9a-08d9f2d6519f X-MS-TrafficTypeDiagnostic: SJ0PR03MB5406:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kdCpd2k5MLryhXGAty8WAnj1SomgnEWGl3dB2ctn+JP0GyqNI65htEunAVoTe/608v1oKd2CHLIOdZK0tyWu0CxJs2D3ZauHySfAbv1OpUNhqz1lx1hzr7V/yyaWeWLvB3hvwOErwZ6SokADi2Wmq+pfYMCeBiSvMS3a+QYRSpvru9ag5LjeRgrXB26FqxAOpSMwp/LKsBR2iBfJCqUQzIltV1UtYr9fbDzMUbCBWEhdGpVjmBhy/YfWuP+9O45QFVDvIjXkVPp6N3KYyzgYoCztHKyO+CVlGfoXyuo09VxUEeFreKafc6SZrjHGNRUCz0/AB6etBguU7q8ewoF4BS6uCDdzH5LR6Q9Nwi5bG2dtmW3NuTwKG2K1SkXZdbK7nhKGbvwpzKdTYWO0bWny1FDopXtJgXwZzVol3kTSvwfraRrjPTt5fMsUXJNVBn05TcmlTpafWTs8kkP+6WTwdzOtPTXBmTMSL2BAYtDGav7YcfEaLGi1/DUBR5O43nq83KZpuzNEQQ4uBDEmYSFjekff7eA1rvEbEfky8/Khr46EpHbMFvk/5aZE7Z4ZC9QOHxWgBhqfaiWeTxBuUTWx826wEZRAD6fJOXBd/mJf6OD8RlyWvZskzY0qRjDSKROHP1839gFExr28uBBuMgiIfA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(5660300002)(1076003)(2616005)(38100700002)(8936002)(66946007)(4326008)(83380400001)(8676002)(2906002)(66556008)(26005)(186003)(82960400001)(6666004)(86362001)(66476007)(6506007)(316002)(508600001)(6916009)(36756003)(54906003)(6486002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rR/W0t3yvzSvMVOj9UODisM+GSEa?= =?utf-8?q?1BOwtwvaVDdL8jqLUKtNUhPN3wgeoZ1JZViIa4NmLD1ff6to5E81RYa6bdrxPnQgj?= =?utf-8?q?YEkLHz0HG20SKSoDucDkRxfm3c8ADhYKJNbgXjXF9AJrNe7UgOqFjX2fTxMin0KjN?= =?utf-8?q?8gmLmHgrsi7oqD89/E8/1mQnS7DyfyuX4FXLfH2emiDGOIgazGssxwLzup/CSWB5X?= =?utf-8?q?L/JgvrSa1j3KHaM7pMMTJ2G7pyjNrdVD+3VYEbWYWyyg6KLEnFtqJ7taF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q?AVAj2YyExrC+qfwCFur0CLRqLa3ydkB8De32EMRquqhA0m9iLLpUyJRbGSY7LKf9w?= =?utf-8?q?M7iHQ8BA3Twztc5CAf2Oy4JxuoaNMWHl5F712PNBQ1CN3rZtMnum1VmKyGGYBN7iV?= =?utf-8?q?yQuMTBlFS7Uq1yfJrw1ptsfRdAzTxvgK+wnB79I9HGGSY4tnIKvNNfhtwPJ/TzIaB?= =?utf-8?q?YptrfFF2121oC8Zbh+CBcMWjHq7e0tVGIeOGxdK5GHLcUACTEnIPt3W0s4SAodC/x?= =?utf-8?q?XiESNkhJiQ2gQKrk+WkENjfhpEfP6Xl41fS458Y85lvNWMmK9TjCFa4h/ONufaxMP?= =?utf-8?q?K3n3sgG2dTkVQnSmW7lbnUSLVeEmdLNNivInJHydDj2v+DDfjq8r2qqkpUMzJ0cie?= =?utf-8?q?ZKK2+1MElEwcm0P62ZmwVbzo3bLUrEcN1/yv8XqQW+cgb+3bHilvXAM=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: fb09affa-e51e-4329-eb9a-08d9f2d6519f X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2022 12:00:55.7868 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o1DfpJcYBrJ2k+uYnKmqDt7BvhNBB/W2ADqmRauCGCe5w7IGuNOyOp9xhPz5eT0enq5R+2MpgyY9OLZ1H3Hsxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR03MB5406 X-OriginatorOrg: citrix.com Add a workflow that performs a build like it's done by osstest Coverity flight and uploads the result to Coverity for analysis. The build process is exactly the same as the one currently used in osstest, and it's also run at the same time (bi-weekly). This has one big benefit over using osstest: we no longer have to care about keeping the Coverity tools up to date in osstest. Suggested-by: Andrew Cooper Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper (mainly because I --- .github/workflows/coverity.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/coverity.yml diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 0000000000..12fc9c782b --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,35 @@ +name: Coverity Scan + +# We only want to test official release code, not every pull request. +on: + schedule: + - cron: '18 9 * * WED,SUN' # Bi-weekly at 9:18 UTC + +jobs: + coverity: + runs-on: ubuntu-latest + steps: + - name: Install build dependencies + run: | + sudo apt-get install -y wget git bcc bin86 gawk bridge-utils \ + iproute2 libcurl4-openssl-dev bzip2 libpci-dev build-essential \ + make gcc libc6-dev libc6-dev-i386 linux-libc-dev zlib1g-dev \ + libncurses5-dev patch libvncserver-dev libssl-dev libsdl-dev iasl \ + libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev \ + ocaml-findlib xz-utils gettext libyajl-dev libpixman-1-dev \ + libaio-dev libfdt-dev cabextract libglib2.0-dev autoconf automake \ + libtool libfuse-dev liblzma-dev ninja-build \ + kpartx python3-dev python3-pip golang python-dev libsystemd-dev + - uses: actions/checkout@v2 + - name: Configure Xen + run: | + ./configure + - name: Pre build stuff + run: | + make -C tools/firmware/etherboot all && make mini-os-dir + - uses: vapier/coverity-scan-action@v1 + with: + command: make xen tools && make -C extras/mini-os/ + project: XenProject + email: ${{ secrets.COVERITY_SCAN_EMAIL }} + token: ${{ secrets.COVERITY_SCAN_TOKEN }}