From nobody Sun Dec 14 12:10:31 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1762881603; cv=none; d=zohomail.com; s=zohoarc; b=n/qDQ0sEfn6vTl5sYtu9EN4yv4QKc+bIYPkMALHb6hZmedw8FLDFn2+QFmSmiyuKXjMNZD5Z0PlDLBbQrvSjmGMrMTnq4NeM9wCnTbbmPGx2yTS2iChGM9wNWooeyytR6FxJ6LTIFGoHtk0wOsK3FmKAiGyPGPNVU3cCJ23fAfA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762881603; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=glL4PMebuiMgidhmY2a2TZVCW1BYHHEcevF9p4vs0SA=; b=fcXFMA7lJu/YUjKwvtPhNDiwKW2y4vmL///cuebMJbzOzYMOUA3ihqd6nDvix4uVjNjx3iw/qFugh9i+aFBlOJy7ZGu4r5iSBh6fjkZSKRoy0mOkhswIBbSjBfNwqolzCV7bdWBS89FL/5Lvv+hLD+y6M3vqZbcv/wj2doI/GDQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1762881603881630.0130961442113; Tue, 11 Nov 2025 09:20:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vIs1p-0007a6-LN; Tue, 11 Nov 2025 12:19:40 -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 1vIrzy-0005pH-MF for qemu-devel@nongnu.org; Tue, 11 Nov 2025 12:17:43 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vIrzr-0003yM-6A for qemu-devel@nongnu.org; Tue, 11 Nov 2025 12:17:42 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-640d0ec9651so7265083a12.3 for ; Tue, 11 Nov 2025 09:17:34 -0800 (PST) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6411f862cd7sm13899519a12.30.2025.11.11.09.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Nov 2025 09:17:30 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id C537B60DC4; Tue, 11 Nov 2025 17:17:25 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762881454; x=1763486254; darn=nongnu.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=glL4PMebuiMgidhmY2a2TZVCW1BYHHEcevF9p4vs0SA=; b=HUvUQXUIB+QCzG1b9jm6TstAQTHBY0jlYh5gWkbiwTyE77Rr7NePt13QoaiQDEopEW rKIHi1CgjH+TSdmBBOluPev4jnJGJpb2J1WX7PYjjdfJ5mjm8dEySjBxWYv4VB/OuDNN aBlblTk8xOvvS0UWu83X+A1vr8qwWqdCqsbmbTv3GVAMP748v3/IZWl2LM3AV5jWR09X J0+SJRVy7FEaVzjJgJKKra4a2fRFJSCHEnMygff/tVS27Rs80PgiE60ymqzBqDNgRyjr J3Su/NtS6Ue2KPKcgGf0w40bOsaOkbz3VwCzg2/slJZfOLhqST5s28OCDuqtLdEe580/ tkdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762881454; x=1763486254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=glL4PMebuiMgidhmY2a2TZVCW1BYHHEcevF9p4vs0SA=; b=tfxiES4uXR6XMuDbNCfvus3tQRtgpWWrUFD1NqTe2/rxjQ2saViwCXtycBDvwRjs0D w7gMF3ME0N9HfmphlyteNiUayerZbBSJ67QT/90Vk7Ak2tLc2y6Wj3B9hRFOV04Mw7CI Hb632bpTtLehZhwZtvMfHNK2ovL7BrGPz70lyVgC2rN2FI6dV2uHVTnRBhulmdqEfpwC MRtNo5qCnistedodDLhjX/SEMHkc6dXDstHEJ17Buyfl1EW756qC1smEMyDGmVy8jiAX x0sPrPm579k/omltV/cwBlDESNDpT5zZEvlY0WQST9HSLblEX4VZ+EjHIvnVdBomotSA JKyQ== X-Gm-Message-State: AOJu0YxWcwXWy/Upc+8O2ZG1GGXuP/4TderOAVn/23WmZpmrm8OeK4+G oduDRqp0WveWphWx1d4MA22IZs9R2cXKSEJMzkcjFqwYWXdVJ22oEw2v9M0FkKpJP2A= X-Gm-Gg: ASbGncsg/hbJqVXkF48dQDteQwXTBIhi2pO/JQXQiI0cDkHgOzl33tR00sgZkfk3Wrj Jv/CvpJeMZ7z0jiSGrJejGfoJgHiQzCUGzXJumOnTmUaAgtJTqWT02tHHszAUKfQL++2BcVsirl bXGClAaX7GLP0uWykONof67JTNEDW2RaUbGkqcwEcz/vF047UH0HZYhcER1HGbxRtkGx3ZM2RHa sFFwKw3tWngMvbm0vzXTrTIEtX4ZS0AKr7tSfJ0qpjNVZ1Ib5YaYkTsyAZhKFiD4b/csubBMygK 4ErNGb0y+WI9gRJPIMdHX/CL3GuCeUleR9uz6Nr1WQzNb7n1piHpcISP3j2CopFf6uRsj6+dZBs sICmyhuAt2uzakSdkZVTmlSTQMFVZnCSEv1N8rrTQKFI+sqJP5sEXt8+crhEScM5cqxDaUoeB/O 3n X-Google-Smtp-Source: AGHT+IFqWFJG51QU8oKjZfr6lOD9E7rJY++PQ95IH/ortVzcdzRVhxUjVr/tj1WDORjQY32KeAOkGg== X-Received: by 2002:a05:6402:3508:b0:641:1f6c:bccf with SMTP id 4fb4d7f45d1cf-6415dc1ebd7mr11564501a12.16.1762881453569; Tue, 11 Nov 2025 09:17:33 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-s390x@nongnu.org, Zhao Liu , Kohei Tokunaga , Sriram Yagnaraman , Ed Maste , Paul Durrant , David Woodhouse , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Li-Wen Hsu , Thomas Huth , Dmitry Osipenko , BALATON Zoltan , Gustavo Romero Subject: [PATCH 13/16] gitlab: use template for ubuntu-24.04-s390x jobs Date: Tue, 11 Nov 2025 17:17:20 +0000 Message-ID: <20251111171724.78201-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251111171724.78201-1-alex.bennee@linaro.org> References: <20251111171724.78201-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1762881606949153000 Most of the test is pure boilerplate so to save ourselves from repetition move all the main bits into a minimal copy of native_build_job_template but without the caching. We keep all the current allow_fail and configure setups but do take the opportunity to replace the inline nproc calls to using a common JOBS variable. Signed-off-by: Alex Benn=C3=A9e --- .../custom-runners/ubuntu-24.04-s390x.yml | 181 +++++++----------- 1 file changed, 66 insertions(+), 115 deletions(-) diff --git a/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml b/.gitlab-c= i.d/custom-runners/ubuntu-24.04-s390x.yml index 45dbee17880..ef8db2750ac 100644 --- a/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml +++ b/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml @@ -2,129 +2,80 @@ # setup by the scripts/ci/setup/ubuntu/build-environment.yml task # "Install basic packages to build QEMU on Ubuntu 24.04" =20 +.ubuntu_s390x_template: + extends: .custom_runner_template + needs: [] + stage: build + tags: + - ubuntu_24.04 + - s390x + rules: + - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANC= H =3D~ /^staging/' + - if: "$S390X_RUNNER_AVAILABLE" + before_script: + - source scripts/ci/gitlab-ci-section + - section_start setup "Pre-script setup" + - JOBS=3D$(expr $(nproc) - 1) + - section_end setup + script: + - mkdir build + - cd build + - section_start configure "Running configure" + - ../configure $CONFIGURE_ARGS || + { cat config.log meson-logs/meson-log.txt; exit 1; } + - section_end configure + - section_start build "Building QEMU" + - make --output-sync -j"$JOBS" + - section_end build + - section_start test "Running tests" + - if test -n "$MAKE_CHECK_ARGS"; + then + make -j"$JOBS" $MAKE_CHECK_ARGS ; + fi + - section_end test + ubuntu-24.04-s390x-all-linux: - extends: .custom_runner_template - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - - if: "$S390X_RUNNER_AVAILABLE" - script: - - mkdir build - - cd build - - ../configure --enable-debug --disable-system --disable-tools --disable-= docs - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make --output-sync -j`nproc` - - make --output-sync check-tcg - - make --output-sync -j`nproc` check + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --enable-debug --disable-system --disable-tools --disa= ble-docs + MAKE_CHECK_ARGS: check-tcg check =20 ubuntu-24.04-s390x-all-system: - extends: .custom_runner_template - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - timeout: 75m - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - allow_failure: true - - if: "$S390X_RUNNER_AVAILABLE" - allow_failure: true - script: - - mkdir build - - cd build - - ../configure --disable-user - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make --output-sync -j`nproc` - - make --output-sync -j`nproc` check + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --disable-user + MAKE_CHECK_ARGS: check + allow_failure: true =20 ubuntu-24.04-s390x-alldbg: - extends: .custom_runner_template - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - when: manual - allow_failure: true - - if: "$S390X_RUNNER_AVAILABLE" - when: manual - allow_failure: true - script: - - mkdir build - - cd build - - ../configure --enable-debug - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make clean - - make --output-sync -j`nproc` - - make --output-sync -j`nproc` check + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --enable-debug + MAKE_CHECK_ARGS: check + allow_failure: true =20 ubuntu-24.04-s390x-clang: - extends: .custom_runner_template - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - when: manual - allow_failure: true - - if: "$S390X_RUNNER_AVAILABLE" - when: manual - allow_failure: true - script: - - mkdir build - - cd build - - ../configure --cc=3Dclang --cxx=3Dclang++ --enable-ubsan - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make --output-sync -j`nproc` - - make --output-sync -j`nproc` check + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --cc=3Dclang --cxx=3Dclang++ --enable-ubsan + MAKE_CHECK_ARGS: check + allow_failure: true =20 ubuntu-24.04-s390x-tci: - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - when: manual - allow_failure: true - - if: "$S390X_RUNNER_AVAILABLE" - when: manual - allow_failure: true - script: - - mkdir build - - cd build - - ../configure --enable-tcg-interpreter - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make --output-sync -j`nproc` + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --enable-tcg-interpreter + allow_failure: true =20 ubuntu-24.04-s390x-notcg: - extends: .custom_runner_template - needs: [] - stage: build - tags: - - ubuntu_24.04 - - s390x - rules: - - if: '$CI_PROJECT_NAMESPACE =3D=3D "qemu-project" && $CI_COMMIT_BRANCH = =3D~ /^staging/' - when: manual - allow_failure: true - - if: "$S390X_RUNNER_AVAILABLE" - when: manual - allow_failure: true - script: - - mkdir build - - cd build - - ../configure --disable-tcg - || { cat config.log meson-logs/meson-log.txt; exit 1; } - - make --output-sync -j`nproc` - - make --output-sync -j`nproc` check + extends: .ubuntu_s390x_template + needs: [] + variables: + CONFIGURE_ARGS: --disable-tcg + MAKE_CHECK_ARGS: check + allow_failure: true --=20 2.47.3