From patchwork Thu Mar 20 15:20:17 2025 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: 14024060 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 820B6C28B30 for ; Thu, 20 Mar 2025 15:21:19 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.922518.1326423 (Exim 4.92) (envelope-from ) id 1tvHhm-0000TX-9b; Thu, 20 Mar 2025 15:21:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 922518.1326423; Thu, 20 Mar 2025 15:21:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhm-0000Rv-2u; Thu, 20 Mar 2025 15:21:10 +0000 Received: by outflank-mailman (input) for mailman id 922518; Thu, 20 Mar 2025 15:21:09 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhl-0000Nz-HA for xen-devel@lists.xenproject.org; Thu, 20 Mar 2025 15:21:09 +0000 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [2a00:1450:4864:20::633]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f2bcf8e2-059e-11f0-9ea0-5ba50f476ded; Thu, 20 Mar 2025 16:21:08 +0100 (CET) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-ac297cbe017so369632166b.0 for ; Thu, 20 Mar 2025 08:21:08 -0700 (PDT) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3149cffdasm1165959566b.117.2025.03.20.08.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 08:21:07 -0700 (PDT) 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: f2bcf8e2-059e-11f0-9ea0-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1742484068; x=1743088868; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7X0qYtTtABHw8MowEHTXklbqdS7We/e+J6NalhnMJv0=; b=PDaQtjqz5qJodDcp/jIVe3iz3mHSianQbMvgaFK4Sm00iSJ325Ohf1R9aOnXEaYjVq Q+mblCODNqY27Qxg6ogA77ABBVFixThFbJghGWZ2GsasxG13RfrVUaSsyP1Wldwy9/ZD +9a4Brt08Mn0v/ohzFmTw+dxiCByaJbaLVvqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742484068; x=1743088868; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7X0qYtTtABHw8MowEHTXklbqdS7We/e+J6NalhnMJv0=; b=r6M1IsLjxrwSLrj1DjyoI+NFHFh/oFUe6JhnCF5E5Jb1iDohXoa2N9WDNQvA5xSvOU r8tNnJF+2YggKGPOgsY/HR+zTKqJeZ4oaOcF1fnyw1mfElg1A4KlmPKmYACgqoN/ZkBx j4WMzhsb7jA31Cekfq2WcWR5Q0a7xV2b+5LfLC3jWOYadES6n6bQ/WLQW/7OqC0zTegh Qsi9xiF+EcHE5q7ZYPO0Pi6M9fPAftdM5JzV/8CoDVtuAbPVRV5ieZ+b2LKLhhACuEyL kEIWT1ezJGEpwve5kD8PD1XvFL7WWRMHMLLWL3fhTd+TTJtRqtsqPf7xmEYCVFHgwb4k 4eBA== X-Gm-Message-State: AOJu0YxAULraQ2XLoP75gQJJVqwNJo4M6JgFRJkmuQHeeUDAG2uEJ9o7 77ZL71L+rFjrohNiLS6PBb8IDzItbAVdgIk5WA36pAoJytw4xGF7P9iqnfaW4i7szDAC5mOZ9Mn N X-Gm-Gg: ASbGncuqmwvb5aV2AyEB0/sr8XuENj8Fr3MHMy+LswSV/RLPjwQvzRT/To/ZQ9wmjRC lK/SJs2NAW8hcrcm42gq+Z3mWQAB4/wc0V2w9Wc+UUrG83PqMzTOS7NH7D0qMJUE5NTiBM0zoI6 qrt0QXjJSabVdJ4moIPKWy/R6/+1ZHhVahqYA4bSGrvQZp5jxxyjZQsaTxe1nVJmXuJ3i5uCJIe P4EPQMhIEROXnc9PghXrX+VZhBl7MGBAvpAsUKmG9M3T0oZnD8tIkYw8GdwzFVm3ZjvZgiVGZ1F boJJcu4R1VAu9fFSl3zWqiN20G75mt/vsYalSizPmcgjFoaFbg== X-Google-Smtp-Source: AGHT+IHzn2bikDVGhfevnafbAr5Ufv4v8b2QvTd8dhMPyFkjAo5/pNTccKeQUlhbWBc8FLEza3g6Wg== X-Received: by 2002:a17:907:6d21:b0:ac2:32a:ee2f with SMTP id a640c23a62f3a-ac3cdf883e6mr317505366b.17.1742484067519; Thu, 20 Mar 2025 08:21:07 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v2 1/4] automation/cirrus-ci: use matrix keyword to generate per-version build tasks Date: Thu, 20 Mar 2025 16:20:17 +0100 Message-ID: <20250320152020.88526-2-roger.pau@citrix.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250320152020.88526-1-roger.pau@citrix.com> References: <20250320152020.88526-1-roger.pau@citrix.com> MIME-Version: 1.0 Move the current logic to use the matrix keyword to generate a task for each version of FreeBSD we want to build Xen on. The matrix keyword however cannot be used in YAML aliases, so it needs to be explicitly used inside of each task, which creates a bit of duplication. At least abstract the FreeBSD minor version numbers to avoid repetition of image names. Note that the full build uses matrix over an env variable instead of using it directly in image_family. This is so that the alias can also be set based on the FreeBSD version, in preparation for adding further tasks that will depend on the full build having finished. Signed-off-by: Roger Pau Monné Reviewed-by: Stefano Stabellini --- Changes since v1: - Use FreeBSD_{LEGACY,PRODUCTION,CURRENT} to refer to development release, current release, and current release - 1. --- .cirrus.yml | 78 +++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 41 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 490f214f0460..95d2d2d3db2e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,13 +1,9 @@ # https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks -freebsd_13: &FREEBSD_13 - freebsd_instance: - image_family: freebsd-13-5 -freebsd_14: &FREEBSD_14 - freebsd_instance: - image_family: freebsd-14-2 -freebsd_15: &FREEBSD_15 - freebsd_instance: - image_family: freebsd-15-0-snap +freebsd_versions: &FREEBSD_VERSIONS + env: + FREEBSD_LEGACY: freebsd-13-5 + FREEBSD_PRODUCTION: freebsd-14-2 + FREEBSD_CURRENT: freebsd-15-0-snap freebsd_template: &FREEBSD_ENV environment: @@ -24,7 +20,24 @@ freebsd_configure_artifacts: &FREEBSD_CONFIGURE_ARTIFACTS path: xen-config type: text/plain -freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE +task: + name: 'FreeBSD: full build' + + # It's not possible to use the matrix keyword in YAML aliases, as they + # keyword usage is restricted to task, docker_builder or pipe. Attempting to + # use a YAML alias with the duplicated keys doesn't work either. Use an env + # variable so the version can also be appended to the task alias. + << : *FREEBSD_VERSIONS + env: + matrix: + FREEBSD_VERSION: $FREEBSD_LEGACY + FREEBSD_VERSION: $FREEBSD_PRODUCTION + FREEBSD_VERSION: $FREEBSD_CURRENT + + alias: freebsd_full_$FREEBSD_VERSION + freebsd_instance: + image_family: $FREEBSD_VERSION + << : *FREEBSD_ENV install_script: pkg install -y seabios gmake ninja bash @@ -42,7 +55,20 @@ freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE build_script: - gmake -j`sysctl -n hw.ncpu` clang=y -freebsd_randconfig_template: &FREEBSD_RANDCONFIG_TEMPLATE +task: + name: 'FreeBSD: randconfig build' + + # It's not possible to use the matrix keyword in YAML aliases, as they + # keyword usage is restricted to task, docker_builder or pipe. Attempting to + # use a YAML alias with the duplicated `image_family` keys doesn't work + # either. Abstract the version numbers at least. + << : *FREEBSD_VERSIONS + freebsd_instance: + matrix: + image_family: $FREEBSD_LEGACY + image_family: $FREEBSD_PRODUCTION + image_family: $FREEBSD_CURRENT + << : *FREEBSD_ENV install_script: pkg install -y gmake python3 bison @@ -56,33 +82,3 @@ freebsd_randconfig_template: &FREEBSD_RANDCONFIG_TEMPLATE build_script: - gmake -j`sysctl -n hw.ncpu` build-xen clang=y - -task: - name: 'FreeBSD 13: full build' - << : *FREEBSD_13 - << : *FREEBSD_FULL_BUILD_TEMPLATE - -task: - name: 'FreeBSD 14: full build' - << : *FREEBSD_14 - << : *FREEBSD_FULL_BUILD_TEMPLATE - -task: - name: 'FreeBSD 15: full build' - << : *FREEBSD_15 - << : *FREEBSD_FULL_BUILD_TEMPLATE - -task: - name: 'FreeBSD 13: randconfig' - << : *FREEBSD_13 - << : *FREEBSD_RANDCONFIG_TEMPLATE - -task: - name: 'FreeBSD 14: randconfig' - << : *FREEBSD_14 - << : *FREEBSD_RANDCONFIG_TEMPLATE - -task: - name: 'FreeBSD 15: randconfig' - << : *FREEBSD_15 - << : *FREEBSD_RANDCONFIG_TEMPLATE From patchwork Thu Mar 20 15:20:18 2025 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: 14024062 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 2D08CC36002 for ; Thu, 20 Mar 2025 15:21:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.922519.1326437 (Exim 4.92) (envelope-from ) id 1tvHhn-0000vr-Fm; Thu, 20 Mar 2025 15:21:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 922519.1326437; Thu, 20 Mar 2025 15:21:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhn-0000v7-Ao; Thu, 20 Mar 2025 15:21:11 +0000 Received: by outflank-mailman (input) for mailman id 922519; Thu, 20 Mar 2025 15:21:10 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhm-0000Nz-6g for xen-devel@lists.xenproject.org; Thu, 20 Mar 2025 15:21:10 +0000 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [2a00:1450:4864:20::529]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f3639c92-059e-11f0-9ea0-5ba50f476ded; Thu, 20 Mar 2025 16:21:09 +0100 (CET) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5e66407963fso1625362a12.2 for ; Thu, 20 Mar 2025 08:21:09 -0700 (PDT) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3147e9394sm1193323366b.57.2025.03.20.08.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 08:21:08 -0700 (PDT) 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: f3639c92-059e-11f0-9ea0-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1742484069; x=1743088869; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6oCKTSSRMcwQmX4mwYaCB0qygdwJlpmMZyZmqBhVNbg=; b=SwBVd7rieefuboZyQcssNiIGtd82jg4tOM7hMg83vkPIYgdyNQ9HcyvQqJZNxCSMHK wlQ+zu4eqf1/2ygv82OheMxZWnF9Hki76AGrDWMzgPYNq/yCe9ZUhuJVh4k0z9M9c33/ DPIcjuMW19ZKfrAp0mo8mulRLyCHJtkvLOcfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742484069; x=1743088869; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6oCKTSSRMcwQmX4mwYaCB0qygdwJlpmMZyZmqBhVNbg=; b=S6Nv5mJeLPIq9bS77j3sCSMER3TIBGIBU4VYcwNd3lTPL2KJl1ijUNABfL+d7iwi1w f4E9o1RQn7RqhDFxZ7NyHcWijE+GYudWgy4TsvcriSJqyrP7jy+QyL7zCUw5oSnS/7Kb w4IaYiBrLikBRAbDJ72mMqropsCzXe77yslY21ON9a/ynB6k0Cc1Pj3LkRMUO0vZgBA0 9AZbFX55TRLsUJo/A4GANtvxTpeWLntRGdqj2R4hEIhbhsn+qd7zcxAiPFrnrRuEvmlf 6OwTGWHFg6PIgWgaPH8rSss1Fqvt2sboIzspOHEBJv1YN/MY7Zp1u6k31Rt8FWKA81y0 kdAQ== X-Gm-Message-State: AOJu0YzCExkUW3vwwWmNi+Ym7fsbej0azy7yAtUzI1kpvRKR4covEbqp MsI/BtJ5+kdk3u9J3lV0yckC+Kf8moxVFA5RSTB/4m8chlwDUAYK6u89janwhpMifZzgKJb1jyr 1 X-Gm-Gg: ASbGncvuaurE87/hbYeKZpmICXMQDx10WRgkJDZkKKmh+hWp0njzUkMUtZ9NApxWrM6 w/5PeMTmWP9nHD16qYE2VVC/I61zWGfpIFtc5bE/WdwzdC050fEpn1MyRzCWQKa6733tKLm6/eC PkB+iBJcUq3Yijnibh/qqoWublRI+MoJ/rzxdx3tSoOybkVsbcLwG4I5lcpeUIw86SQjHY1Quop P8sa4p5skrm2A4HLnNBmRhhBtcz9rQOKLXZoXyKcbdkG0N7UmM6LR46nEFCAGJbB/5gTujQQark c2DyV97XnqqbwcWWcdpumxwc0TF1+WT1LEQHBDZLvWGPtE8TdA== X-Google-Smtp-Source: AGHT+IEsiz+jDc5kkiv3IGEkfrYFt+3q1s8LAc+ZYqdVAhu0Rka0LkmN+Ofa4dStHQ+bzLDxj4e66Q== X-Received: by 2002:a17:907:60d2:b0:ab8:c215:fd27 with SMTP id a640c23a62f3a-ac3cdfb9ef1mr379377166b.14.1742484068724; Thu, 20 Mar 2025 08:21:08 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v2 2/4] automation/cirrus-ci: build XTF Date: Thu, 20 Mar 2025 16:20:18 +0100 Message-ID: <20250320152020.88526-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250320152020.88526-1-roger.pau@citrix.com> References: <20250320152020.88526-1-roger.pau@citrix.com> MIME-Version: 1.0 In preparation for using the XTF selftests to smoke test the FreeBSD based Xen builds. Signed-off-by: Roger Pau Monné Reviewed-by: Stefano Stabellini --- Changes since v1: - Use production version. --- .cirrus.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 95d2d2d3db2e..a6e4a5d0308b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -12,6 +12,12 @@ freebsd_template: &FREEBSD_ENV CIRRUS_CLONE_DEPTH: 1 CIRRUS_LOG_TIMESTAMP: true +freebsd_template_latest: &FREEBSD_ENV_PRODUCTION + << : *FREEBSD_VERSIONS + freebsd_instance: + image_family: $FREEBSD_PRODUCTION + << : *FREEBSD_ENV + freebsd_configure_artifacts: &FREEBSD_CONFIGURE_ARTIFACTS always: rename_script: @@ -82,3 +88,21 @@ task: build_script: - gmake -j`sysctl -n hw.ncpu` build-xen clang=y + +task: + name: 'FreeBSD: XTF build' + alias: xtf + + << : *FREEBSD_ENV_PRODUCTION + + clone_script: + - pkg install -y git + - git clone --depth 1 https://xenbits.xen.org/git-http/xtf.git + + install_script: pkg install -y gmake + + build_script: + - cd xtf + - cc --version + - git rev-parse HEAD + - gmake -j`sysctl -n hw.ncpu` LLVM=y From patchwork Thu Mar 20 15:20:19 2025 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: 14024061 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 17CD1C36001 for ; Thu, 20 Mar 2025 15:21:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.922520.1326447 (Exim 4.92) (envelope-from ) id 1tvHho-0001Bs-NC; Thu, 20 Mar 2025 15:21:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 922520.1326447; Thu, 20 Mar 2025 15:21:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHho-0001BZ-J6; Thu, 20 Mar 2025 15:21:12 +0000 Received: by outflank-mailman (input) for mailman id 922520; Thu, 20 Mar 2025 15:21:11 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhn-0000Nz-DC for xen-devel@lists.xenproject.org; Thu, 20 Mar 2025 15:21:11 +0000 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [2a00:1450:4864:20::534]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f425247a-059e-11f0-9ea0-5ba50f476ded; Thu, 20 Mar 2025 16:21:10 +0100 (CET) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5e5c9662131so1377960a12.3 for ; Thu, 20 Mar 2025 08:21:10 -0700 (PDT) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3dd25105csm100781566b.168.2025.03.20.08.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 08:21:09 -0700 (PDT) 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: f425247a-059e-11f0-9ea0-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1742484070; x=1743088870; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W13Eu/suZTu92BTXvCV4kWp1HlyXFt94bf9zYXo3zgc=; b=jE/ljVnA3nN8juACa25gjNqK8FCowa4pe3xgQuJYQE7KakdvPNAQggcTlcZO5zJR+D KoEIZc3/2Fr6TdsABR84PqBEATg0FjEbewZxQUHCURFfauCRG05V9V98xxLQ295e+sgx rzjCzHxP1xHyuy8nKe7qMEOdOc1/DNF/JbEe8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742484070; x=1743088870; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W13Eu/suZTu92BTXvCV4kWp1HlyXFt94bf9zYXo3zgc=; b=nOm7iVWYJpmumxe/mnQknTGtAFTyzh5RC56AHp4PQhEx6/2VaFb+GdrnZhWi5X/aYj JENRC0lYHudevU3vVBBbJm4LoCSPf4cXwpNUAlFK5XEnmwHtvLhIICmuAyHxUO4DwAkI HKTcN3cpyZmFKd460XmHJJAeXU/Hsc48W3qHIna99oLV0hglnxrjQlrJE+nb+Y4nC1ez aYQDUh6IU1Joo/jYa/0USzvX+AaAbF1cuiiQFXwnbfO1+TL/JADArWIyDd+ICr7VUAjC c/0IOuZLGkq/4wf+kxMlGfaczkxul+C5roBGinNq0NOw3Pj2aA2BIgeVqPt9AEldleYr nOOg== X-Gm-Message-State: AOJu0YwAP0mmL7ehQJzyxGJ5Olg1bFs9syDo7PT48a4d9fzGrM/HUDI2 t+gM3ZM6bYIMo+NZPyI47CLFyT/TDaqoLoWfV2YQWi8M1eeN3AabPsRLn0zaO6oSXUFzP5IMAYF 2 X-Gm-Gg: ASbGnctaZphQ50nItmykzQwh6zRYad+1hKUlfxV9AyKyqCWJV7FkFy+2SAs6OPcTq/F pDyd7IKOoI7ZmZMh1zBMMac+l9EWUT9SzuoHJjN/qmBMeR4RGkw2XYIH822iqnIBX6BEuDJRyN+ O5SwNhIUv8fYSBHlWW5p4uhUu4tT/vFd7cIyOpyQxRQtuTxsaxo7ccnPrned3OmJHun8JH+woFi 9/RIuXsZY2FSsQy34kCMOo4t8TLjPQT05iw6qhg56RohX56WlGdv3F0PduQffUeJI7rY5MljP76 YSyuDFxKTRq7H1DTsKSrqu1TJePRduNFPKNST9oq/+OxNaS7TA== X-Google-Smtp-Source: AGHT+IGAWyxXHu6ApYE8Nf2Bh84J5CmQhruf0h1VrE+KueULJp/0Jbe9YNfMAT8zbmJLlufLuvpiEQ== X-Received: by 2002:a17:907:7e5d:b0:ac3:8d36:ead3 with SMTP id a640c23a62f3a-ac3cdf8cac7mr481587866b.12.1742484069971; Thu, 20 Mar 2025 08:21:09 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v2 3/4] automation/cirrus-ci: store XTF and Xen build artifacts Date: Thu, 20 Mar 2025 16:20:19 +0100 Message-ID: <20250320152020.88526-4-roger.pau@citrix.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250320152020.88526-1-roger.pau@citrix.com> References: <20250320152020.88526-1-roger.pau@citrix.com> MIME-Version: 1.0 In preparation for adding some smoke tests that will consume those outputs. Signed-off-by: Roger Pau Monné Acked-by: Stefano Stabellini --- .cirrus.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index a6e4a5d0308b..38b654f75cf2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -61,6 +61,14 @@ task: build_script: - gmake -j`sysctl -n hw.ncpu` clang=y + xen_artifacts: + path: xen/xen + type: application/octet-stream + + debug_artifacts: + path: xen/xen-syms + type: application/octet-stream + task: name: 'FreeBSD: randconfig build' @@ -106,3 +114,7 @@ task: - cc --version - git rev-parse HEAD - gmake -j`sysctl -n hw.ncpu` LLVM=y + + xtf_artifacts: + path: xtf/tests/selftest/test-*-selftest + type: application/octet-stream From patchwork Thu Mar 20 15:20:20 2025 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: 14024064 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 B9591C35FFF for ; Thu, 20 Mar 2025 15:21:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.922521.1326452 (Exim 4.92) (envelope-from ) id 1tvHhp-0001JS-8T; Thu, 20 Mar 2025 15:21:13 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 922521.1326452; Thu, 20 Mar 2025 15:21:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHhp-0001IJ-3f; Thu, 20 Mar 2025 15:21:13 +0000 Received: by outflank-mailman (input) for mailman id 922521; Thu, 20 Mar 2025 15:21:12 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tvHho-0000Nz-KN for xen-devel@lists.xenproject.org; Thu, 20 Mar 2025 15:21:12 +0000 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [2a00:1450:4864:20::62f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f4de47d7-059e-11f0-9ea0-5ba50f476ded; Thu, 20 Mar 2025 16:21:12 +0100 (CET) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-aaecf50578eso184836066b.2 for ; Thu, 20 Mar 2025 08:21:12 -0700 (PDT) Received: from localhost ([84.78.159.3]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3147ead1dsm1185699066b.58.2025.03.20.08.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 08:21:10 -0700 (PDT) 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: f4de47d7-059e-11f0-9ea0-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1742484071; x=1743088871; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DteqfBrt8ivCseyWNFP70Yd0GJfa9Emhwy9r9Go1/ls=; b=GWJvxnAXd94rjFda5IPlAr/xmjJ1e/auf1g508Tu9kc6M3+GzW6cxfZjJ7qIf8S6In AfQWlwM2ceKHPkQn5AMTNMP0QTDx05mzqIqCHuPUNpPa49kzBZAp1i/x1yBECotivgSA zEkoIfQULYij1ceHavIv5BB7bgbsLfyWE4VT0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742484071; x=1743088871; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DteqfBrt8ivCseyWNFP70Yd0GJfa9Emhwy9r9Go1/ls=; b=nISmIel1LsrgZWMwF2ZMeo0xUCV+S10kcrHBj6IIZuF10VCtlMX1pTuX+DyyvYFuip P8YXXZWPaHtcqxc5js7vPfym+y7xqzFH8xyXjPqMOuiwXnFhpz2GxqTTAa1miVy4mGRt h7XtglHmR+vTb5DGN3mjWj045JlKVw56302XmYwhsSBlMpAs/2m4dtDS0/hEVjSvpC0R UBOsd8ruZ8UnzodgseMUNySTnLFehejaBbbCjDQMZSdUX6czim5Q7uYUpqYMekSDyZil IbwTv/cFXOiVGK2+8EP6VMuH3o8NHkR0zuvktd5OrckgO0M26bYcNd91/SkpO/BUSQ+B TECA== X-Gm-Message-State: AOJu0YwQmvsK1kVw4KuZU3oLReincqSkYuwgwqHDjxQCL0PHbZjCEdOI SjGIeeKrydAgGYWZPo/1dtgrWlTSmPDQkJIUhnehQQ6bzrMFQ2viIcPnkT5FnApsoD6Kp/nv85d t X-Gm-Gg: ASbGnctuS+etGj4AAuVY8htYt2o/wcLxgdO84cbBMEA5l0pTm9+ObFCmNW8pcRFHAvj pHg8HTlnMlhhC3AOa2lwvWCZKCJqy3axaYGCBjYQW9+LdniOm3shDBIoNh5ET1JQ6p4POQiQ3u4 GscXYQ5T4k4EDWoI3M52i7L7z68xNHc+XdTIryauNfBVdewNVlE0BaH0N1JH9EwJHs/hcEjj3f+ TLionk7NTfcwnCmT+qe+1+oJwiFyhSEtJAP8gIzMguKerC0pfhL2WxkO3BLgnSYN1S3pJ5cFXlB DYWkXBursw/4zIG1qe9eZLUxegcBX0xN6sSPYY/EjI3zCD9jHTt2S77eXyNK X-Google-Smtp-Source: AGHT+IGRKDORZhS6/H/AYq5vzH+TfYxC5Vfvja+KQ1AUZeS3JVh1jUWDbua6qg/f/qUTH6aEu74s6g== X-Received: by 2002:a17:907:bb4b:b0:ac2:1c64:b0a with SMTP id a640c23a62f3a-ac3b7d7f6bfmr787450766b.14.1742484071187; Thu, 20 Mar 2025 08:21:11 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , Stefano Stabellini , Oleksii Kurochko , Community Manager Subject: [PATCH v2 4/4] automation/cirrus-ci: add smoke tests for the FreeBSD builds Date: Thu, 20 Mar 2025 16:20:20 +0100 Message-ID: <20250320152020.88526-5-roger.pau@citrix.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250320152020.88526-1-roger.pau@citrix.com> References: <20250320152020.88526-1-roger.pau@citrix.com> MIME-Version: 1.0 Introduce a basic set of smoke tests using the XTF selftest image, and run them on QEMU. Use the matrix keyword to create a different task for each XTF flavor on each FreeBSD build. Signed-off-by: Roger Pau Monné Acked-by: Oleksii Kurochko Reviewed-by: Stefano Stabellini --- Changes since v1: - Use production version of FreeBSD to run tests. --- .cirrus.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 55 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 38b654f75cf2..3163ab8f11d8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -5,6 +5,8 @@ freebsd_versions: &FREEBSD_VERSIONS FREEBSD_PRODUCTION: freebsd-14-2 FREEBSD_CURRENT: freebsd-15-0-snap +# Build jobs + freebsd_template: &FREEBSD_ENV environment: APPEND_LIB: /usr/local/lib @@ -118,3 +120,55 @@ task: xtf_artifacts: path: xtf/tests/selftest/test-*-selftest type: application/octet-stream + +# Test jobs + +task: + name: 'FreeBSD: XTF selftest' + + << : *FREEBSD_ENV_PRODUCTION + + env: + matrix: + FREEBSD_BUILD: $FREEBSD_LEGACY + FREEBSD_BUILD: $FREEBSD_PRODUCTION + FREEBSD_BUILD: $FREEBSD_CURRENT + + depends_on: + - freebsd_full_$FREEBSD_BUILD + - xtf + + install_script: pkg install -y qemu-nox11 expect + + env: + matrix: + XTF_ARCH: hvm32 + XTF_ARCH: hvm32pae + XTF_ARCH: hvm32pse + XTF_ARCH: hvm64 + XTF_ARCH: pv64 + + fetch_script: + - fetch https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/xtf/xtf.zip + - fetch https://api.cirrus-ci.com/v1/artifact/build/$CIRRUS_BUILD_ID/freebsd_full_$FREEBSD_BUILD/xen.zip + - unzip xtf.zip + - unzip xen.zip + + test_script: | + case "$XTF_ARCH" in \ + *hvm*) \ + XEN_EXTRA_CMD="dom0=pvh dom0-iommu=none" \ + ;; \ + esac + export TEST_CMD="qemu-system-x86_64 -kernel xen/xen -initrd xtf/tests/selftest/test-${XTF_ARCH}-selftest \ + -append \"loglvl=all console=com1 noreboot console_timestamps=boot dom0=verbose ${XEN_EXTRA_CMD}\" \ + -m 512 -nographic -monitor none -serial stdio" + export TEST_LOG="serial-${FREEBSD_BUILD}-${XTF_ARCH}.txt" + export PASSED="Test result: SUCCESS" + export TEST_TIMEOUT=120 + ./automation/scripts/console.exp | sed 's/\r\+$//' + + always: + serial_artifacts: + path: serial-*.txt + type: text/plain diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5919585d43..35ab6749241c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Resizable BARs is supported for PVH dom0. - Support PCI passthrough for HVM domUs when dom0 is PVH (note SR-IOV capability usage is not yet supported on PVH dom0). + - Smoke tests for the FreeBSD Xen builds in Cirrus CI. ### Removed