From nobody Sat May 30 11:18:26 2026 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=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1778504698; cv=none; d=zohomail.com; s=zohoarc; b=PpRT43rV0EKsm0Rdg3UXjGW7wJjruZrTNQ3vO4TVacJpZ+kfOD+LgV9OHWqiATtyI+wTQcyCoDDZwzx5EVnPVJu7TvcCNSUpJuqCl0gotgxMHHDGI56/kev1ZA4bvbJfzwbcMRVjaN0nerxiSJwsme0PfH28HpydriMMmnblliY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778504698; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2fASRzB8nQ57rMJi7XMHtCPQOTg59xiY5NktzJBJKvI=; b=J+Kbimey5FtIDY7JGp4oze0gL+vass5d51+2xBJGrLIDjVKi3IzSfOkaWg37DAZvgdU5hLr4gY9E2zIAoTfqsjflE0Pe9rMq6FxIEGYu2uD66lKYD9Y1LrlNVUS8eg4lS8Rgcl264MfBXW8fbkMrFj6mHbT9Hb3qxPsR1mLjLd4= 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=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1778504698571231.25678368091837; Mon, 11 May 2026 06:04:58 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1306153.1578217 (Exim 4.92) (envelope-from ) id 1wMQJF-0003BY-JM; Mon, 11 May 2026 13:04:33 +0000 Received: by outflank-mailman (output) from mailman id 1306153.1578217; Mon, 11 May 2026 13:04:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wMQJF-0003BR-GE; Mon, 11 May 2026 13:04:33 +0000 Received: by outflank-mailman (input) for mailman id 1306153; Mon, 11 May 2026 13:04:32 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wMQJE-0003BF-4C for xen-devel@lists.xenproject.org; Mon, 11 May 2026 13:04:32 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wMQJD-006IPn-HD for xen-devel@lists.xenproject.org; Mon, 11 May 2026 15:04:31 +0200 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a01d3d1-5cb7-0a2a0a5109dd-0a2a450ab54c-42 for ; Mon, 11 May 2026 15:04:31 +0200 Received: from [209.85.221.42] (helo=mail-wr1-f42.google.com) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a01d3df-56b3-0a2a450a0019-d155dd2ac0a1-3 for ; Mon, 11 May 2026 15:04:31 +0200 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4526a8170ceso2326570f8f.2 for ; Mon, 11 May 2026 06:04:31 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4548ec6aea4sm29766551f8f.10.2026.05.11.06.04.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2026 06:04:30 -0700 (PDT) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:In-Reply-To:Autocrypt:Content-Language:References:Cc:To:From:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778504671; x=1779109471; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=2fASRzB8nQ57rMJi7XMHtCPQOTg59xiY5NktzJBJKvI=; b=XaF+gaO8MyPa/N1dzTOnViLpGGcBtAxTHWs0D32uv1lQtrW0Ky/UEMaDzxJI4PArkK L0WWqfBlVGe8u1Ymd863OcD01DUgPtZdqetgO42/rMT2yVcJEJ3irr4uupPQRKtjAPft 7ZdcT0bBx77Wlf7CJIgkRGAxpwgP9aCKP8MFCvKPExo+dvth4DA8Uy5h9di1kE5TWLiJ D3OYeFPvoYxJNtVwGEQ287+qb7poxn5mNJGzXEFE6pQAbUS/JVfcrg1gHyWUGpErDrq+ PgbTCbA52APzlzlvZW++JC99ry+2XLFv3dOcoZ6/Zyl3+37VoRoIaTgqSoBRG8t2Q8qC IeHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778504671; x=1779109471; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2fASRzB8n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Hubco= X-Received: by 2002:a5d:584c:0:b0:441:1c18:f779 with SMTP id ffacd0b85a97d-4568e70690amr14375770f8f.37.1778504670844; Mon, 11 May 2026 06:04:30 -0700 (PDT) Message-ID: Date: Mon, 11 May 2026 15:04:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 1/2] CI: re-work Xen artifacts collection From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Stefano Stabellini , Andrew Cooper References: Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-4011c0/1778504671-7377D8B7-AF9A630E/0/0 X-purgate-type: clean X-purgate-size: 1989 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1778504701697158500 Content-Type: text/plain; charset="utf-8" There's no need to do this separately from three places. Once moved to the bottom of the script, the need for this to be a function also disappears. While there also make sure xen-syms is collected. This is rather more useful for analysis of possible problems than its stripped counterpart. Signed-off-by: Jan Beulich Reviewed-by: Stefano Stabellini --- a/automation/scripts/build +++ b/automation/scripts/build @@ -44,30 +44,15 @@ cp xen/.config xen-config # Directory for the artefacts to be dumped into mkdir -p binaries =20 -collect_xen_artefacts() -{ - local f - - for f in xen/xen xen/xen.efi; do - if [[ -f $f ]]; then - cp $f binaries/ - fi - done -} - if [[ "${CPPCHECK}" =3D=3D "y" ]] && [[ "${HYPERVISOR_ONLY}" =3D=3D "y" ]]= ; then # Cppcheck analysis invokes Xen-only build xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j$(npr= oc) =20 # Preserve artefacts - collect_xen_artefacts cp xen/cppcheck-report/xen-cppcheck.txt xen-cppcheck.txt elif [[ "${HYPERVISOR_ONLY}" =3D=3D "y" ]]; then # Xen-only build make -j$(nproc) xen - - # Preserve artefacts - collect_xen_artefacts else # Full build. Figure out our ./configure options cfgargs=3D("--prefix=3D/usr") @@ -108,9 +93,16 @@ else make -j$(nproc) dist =20 # Preserve artefacts - # Note: Some smoke tests depending on finding binaries/xen on a full b= uild - # even though dist/ contains everything, while some containers don't e= ven - # build Xen (cd dist/install; find | cpio -R 0:0 -o -H newc | gzip) > binaries/xen= -tools.cpio.gz - collect_xen_artefacts fi + +# Preserve Xen artefacts +# +# Note: Some smoke tests depend on finding binaries/xen on a full build +# even though dist/ contains everything, while some containers don't even +# build Xen. +for f in xen/xen xen/xen-syms xen/xen.efi; do + if [[ -f $f ]]; then + cp $f binaries/ + fi +done From nobody Sat May 30 11:18:26 2026 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=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1778504720; cv=none; d=zohomail.com; s=zohoarc; b=a4hKCrhZ56VX/B5YpUId0fGByleKh7d875+H1gN+azd93LzSFqkKEQnK0mWQCLZUFWr2XB8oL6xu93n4xcj1aTvlwao2Nonn/PJNZKEJgNOpz4fJpTMycwkg8IBn4q1dkeKW6+Khg9tT7YQ+jn5c9YWMrkqcV3Pf1cT6XLDn5aQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778504720; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ExMfZGjK/TN3VobC9Bl8Sp492l2t0I9xSSZ7GtLdHpc=; b=f3LgZDiV8fYA7FKq3M96s41/Lnlqno/OvTeIIZL2rGnOtbbtNpltJAnSzvJU8Wxyq74Y9urGAq/Kt6Y2uss+P4oIcpaDDag5uIVxSAEqyZ2ZGqZoh5LbMJbImSM11uIme5P7RjIvfXaAU+F95GchbECVNxYDEHEba22/r3yAiUQ= 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=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1778504720689837.1901064222939; Mon, 11 May 2026 06:05:20 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1306158.1578225 (Exim 4.92) (envelope-from ) id 1wMQJj-0003bg-Qy; Mon, 11 May 2026 13:05:03 +0000 Received: by outflank-mailman (output) from mailman id 1306158.1578225; Mon, 11 May 2026 13:05:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wMQJj-0003bZ-O6; Mon, 11 May 2026 13:05:03 +0000 Received: by outflank-mailman (input) for mailman id 1306158; Mon, 11 May 2026 13:05:02 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wMQJi-0003bJ-4o for xen-devel@lists.xenproject.org; Mon, 11 May 2026 13:05:02 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wMQJh-00DB1g-HZ for xen-devel@lists.xenproject.org; Mon, 11 May 2026 15:05:01 +0200 Received: from [10.42.69.11] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a01d3fb-2eae-0a2a0a5409dd-0a2a450ba71a-6 for ; Mon, 11 May 2026 15:05:01 +0200 Received: from [209.85.128.48] (helo=mail-wm1-f48.google.com) by tlsNG-42698a.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a01d3fd-212f-0a2a450b0019-d1558030bd12-3 for ; Mon, 11 May 2026 15:05:01 +0200 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-488b0046078so35992875e9.1 for ; Mon, 11 May 2026 06:05:01 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6fffb9bdsm172144195e9.1.2026.05.11.06.05.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2026 06:05:00 -0700 (PDT) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:In-Reply-To:Autocrypt:Content-Language:References:Cc:To:From:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778504701; x=1779109501; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=ExMfZGjK/TN3VobC9Bl8Sp492l2t0I9xSSZ7GtLdHpc=; b=eTkry5uy02QFGIkf5varVjuOzbugZIg3rsflNTp/q2uhfD7m14V6EtVxsXCBkD0EQy OEBpj6Itc7GoNtSO1JbUz++cOwiD4b+HsaEUGTn2JwBqgwS4gI5AFg+D/meC3qz5y/0B ldqa4KfmiMuUz/57EX62DbJiUQIr36yL7N9doMD/L4hB22SGf1xDuuIyp7uz0FAbeaaX lLGpMBy2Ah9EnB76ydJPTMPTdgbPY9JuP8O0LvIhLwYZuD8IvSuWqRSP29gVdQpewUbn wFRgwjXxXdSr5Rw5bVlLQJYxUe8g2Du9DX9QddOFCs+rh93RxiTt9OAsuMKNEDyiaost +CWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778504701; x=1779109501; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ExMfZGjK/TN3VobC9Bl8Sp492l2t0I9xSSZ7GtLdHpc=; b=LhsbG38s5Y22zEnj2e3geAW9/GiWugpQOffqBtWvNhmnAqsbf8qeMIdf5K+yeW0H49 Ki+sq1vO6tY2s7klFD7nfTqmjWqKGqs5TJkcXblac5NoHxhE+qO4FQxRq6piRXpt3o8l HTF1iwwXAYvG+vBvODBpBeJ1l4JaPM+EJ+J6jRAEIisdtMOIvS+Qd9hqLRKrbAkjRW3S EwzPnuu/gb8PyFeCUPs095c04lyYA9SbMr3m0ocG1IPurg/p9/FSYKug4jXdl3VSu+Xz wvQMwkITUyae1pCkmyqY4IOffTcSRLJFXnHta0hTVkElUWSgeaNLnmvBwCu9SsZMsTbR UeqQ== X-Gm-Message-State: AOJu0YxbVB14TseJue0T20sBfq1aG7atTO2w+xMYs+Hn4SwLA+n/asuQ 7p2u8yS3KBaX+jdiLjWpPID32BUxGWSJS90NTGIjK1tgcwLlGmG6d9fohaopoXSDUNQ3d3oJoGt r93c= X-Gm-Gg: Acq92OFPF+bx3jnjJHXg8KbQXtCk+jqEEjd9fdiGTi4ddpW/sXs7KFFL+gVjDzX8kGy 4mlkEREXFU7aV5npcxv8YCykxXA6DIdlmwfJKm6rOhJgNWTIDoEIuokWEvG9ZojheIsCdRAW6ds qHvLR3z8WEWYcdliWTyI20kySk8Zcw+RgLzSsFGMD4BqBT90BZTrlBk3Z/IDm0JAsZKqIuyY3hs ZdqBQWLZdHdptrmptRToC1w1LnyyYHljwhUfqDiDbPjL2UPJenqkg4aR7K3ewhrZ3AL3+BoESON 0MR/TwVTNrTlh9l+KJeAEy55EpFfVaFm/AO6zzA+p26dv2BFNY352mjUot1rIhHCnR19lqFg0VE xRh0IOkrksVFUzOuyZQTfH8Y5qCApMC/BQBhPf6tBCMboEYZtwh4GDXC9CrqmedAXv+c5gI2ovQ PA09JKbZIlwVsXPyucZIHCeUPI1/JFnIv65jN0JDgSAd/F7w2VGKVIpSZQlUis7wqB/guOgjzcx DjUrHJ/paQFf8A= X-Received: by 2002:a05:600c:8b65:b0:488:a824:fdff with SMTP id 5b1f17b1804b1-48e706c7e20mr159001025e9.22.1778504700900; Mon, 11 May 2026 06:05:00 -0700 (PDT) Message-ID: <6e0266e6-8dda-4a87-886d-79da637c2172@suse.com> Date: Mon, 11 May 2026 15:05:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 2/2] CI: collect certain intermediate files as artifacts From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Stefano Stabellini , Andrew Cooper References: Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBF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Rv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-42698a/1778504701-22589F3B-C2F86D50/0/0 X-purgate-type: clean X-purgate-size: 2753 X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1778504722997158500 Content-Type: text/plain; charset="utf-8" When one of the linking passes fails, additional intermediate files are still in place. Having them available for analysis of the underlying problem can be pretty helpful. Collect some into a new intermediates/ directory. (Nothing new will be collected if linking succeeds.) As the script is run with -e passed to bash, defer exit if the main "make" (or substituent script thereof) failed. This way more artifacts are collected, potentially making it easier to analyze the failure. Signed-off-by: Jan Beulich Reviewed-by: Stefano Stabellini --- https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2515787945 (with PPC forced to invoke the new logic, hence respective failures there) --- v2: Different approach. --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -6,6 +6,7 @@ artifacts: paths: - binaries/ + - intermediates/ - xen-config - xen-cppcheck.txt - '*.log' --- a/automation/scripts/build +++ b/automation/scripts/build @@ -37,22 +37,24 @@ else make -j$(nproc) -C xen olddefconfig fi =20 -# Save the config file before building because build failure causes the sc= ript -# to exit early -- bash is invoked with -e. +# Save the config file before building, just in case. cp xen/.config xen-config =20 -# Directory for the artefacts to be dumped into -mkdir -p binaries +# Directories for artefacts to be dumped into +mkdir -p binaries intermediates + +# Script exit status, to be overridden by the main make's status below. +ret=3D0 =20 if [[ "${CPPCHECK}" =3D=3D "y" ]] && [[ "${HYPERVISOR_ONLY}" =3D=3D "y" ]]= ; then # Cppcheck analysis invokes Xen-only build - xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j$(npr= oc) + xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j$(npr= oc) || ret=3D$? =20 # Preserve artefacts cp xen/cppcheck-report/xen-cppcheck.txt xen-cppcheck.txt elif [[ "${HYPERVISOR_ONLY}" =3D=3D "y" ]]; then # Xen-only build - make -j$(nproc) xen + make -j$(nproc) xen || ret=3D$? else # Full build. Figure out our ./configure options cfgargs=3D("--prefix=3D/usr") @@ -90,7 +92,7 @@ else fi =20 ./configure "${cfgargs[@]}" - make -j$(nproc) dist + make -j$(nproc) dist || ret=3D$? =20 # Preserve artefacts (cd dist/install; find | cpio -R 0:0 -o -H newc | gzip) > binaries/xen= -tools.cpio.gz @@ -106,3 +108,12 @@ for f in xen/xen xen/xen-syms xen/xen.ef cp $f binaries/ fi done + +# Preserve Xen intermediate files. Some may be there only upon build fail= ure. +for f in xen/.xen-syms.* xen/.xen.efi.*; do + if [[ -f $f ]]; then + cp $f intermediates/ + fi +done + +exit $ret