From nobody Mon Feb 9 09:28:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1647339261; cv=none; d=zohomail.com; s=zohoarc; b=APoplP5GJPFHOpOw8pRe7nTEe3HJkD/PoA5NHWeRChjQo/+ySRiRua2dcBBWtOGm/PkYhWHb3v6VA0avmeKBBfNfmkVSbbDriWa3QVz+5BNM8vIMJVcMs6oOSMMmxE87LMEGYXqJRtG2WGTHAOKv8BxN38IWrPc28sZ/+0N7hXw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1647339261; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IGdrb8wg8h+9uB8EUHVZyP3uVZ3aR/eNoDp5hqs/IaE=; b=BYHYnR5hvZ+a73OeVEn6RJL/PdWOaYhLRdyGh539DBmO05pIaMkqNFspR9jScTV1HfFKsPKqzqbWF4RjkmHqGfdmLBF6uBGcJgAMyVvcyDqG1zdDyVPaWn+2q9e310P32ILKbn+FaafjDAfgIFlLPi41ELiRerxbqwAT0NvcqD8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 16473392613601005.540600113557; Tue, 15 Mar 2022 03:14:21 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-577-f24nK52tNyuJrV-s851raQ-1; Tue, 15 Mar 2022 06:14:18 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F8A41064C8D; Tue, 15 Mar 2022 10:14:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 382CB40D1B9A; Tue, 15 Mar 2022 10:14:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EFF16194E107; Tue, 15 Mar 2022 10:14:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0926A194E021 for ; Tue, 15 Mar 2022 10:14:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EF05C40C1247; Tue, 15 Mar 2022 10:14:13 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.193.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5012640C128B; Tue, 15 Mar 2022 10:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647339261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IGdrb8wg8h+9uB8EUHVZyP3uVZ3aR/eNoDp5hqs/IaE=; b=LTjtLsWGAigA9VJA/HFLqQoP583l0XW6EzvK9/m0caAnMXidCdJhFOhHeiLY/OIlknMYOk X3LZpNn+B8hq1UKjs64pLI6JxMxq5iu5bEdia+y0MwoHTSmDcC7fEq+wjjMmCGokNNxl57 gnLmvEpVWn1uxTH8N+dCqZJQWXCa6AA= X-MC-Unique: f24nK52tNyuJrV-s851raQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 3/4] gitlab-ci: Introduce new 'integration_tests' pipeline stage Date: Tue, 15 Mar 2022 11:14:08 +0100 Message-Id: <5542e9468239b0accd1924bcc7e0eed0f2a888f8.1647339160.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bleal@redhat.com, eskultet@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1647339289008100001 Content-Type: text/plain; charset="utf-8" This stage will download build artifacts from both the libvirt and libvirt-perl (multi-project CI) builds, install all them on the custom runners and configures libvirt debug logging on the runners prior to executing the actual test suite. In case of a failure, libvirt and Avocado logs will be saved and published as pipeline artifacts. Signed-off-by: Erik Skultety --- .gitlab-ci.yml | 5 ++- ci/integration.yml | 99 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 ci/integration.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d84ac31601..6b4c843055 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ variables: stages: - containers - builds + - integration_tests - sanity_checks =20 .script_variables: &script_variables | @@ -14,7 +15,9 @@ stages: export VIR_TEST_VERBOSE=3D"1" export VIR_TEST_DEBUG=3D"1" =20 -include: '/ci/gitlab.yml' +include: + - '/ci/gitlab.yml' + - '/ci/integration.yml' =20 .native_build_job: extends: .gitlab_native_build_job diff --git a/ci/integration.yml b/ci/integration.yml new file mode 100644 index 0000000000..9a36ccc05e --- /dev/null +++ b/ci/integration.yml @@ -0,0 +1,99 @@ +.tests: + stage: integration_tests + before_script: + - mkdir "$SCRATCH_DIR" + - sudo dnf install -y libvirt-rpms/* libvirt-perl-rpms/* + - sudo pip3 install --prefix=3D/usr avocado-framework + - source /etc/os-release # in order to query the vendor-provided vari= ables + - if test "$ID" =3D "centos" && test "$VERSION_ID" -lt 9 || + test "$ID" =3D "fedora" && test "$VERSION_ID" -lt 35; + then + DAEMONS=3D"libvirtd virtlogd virtlockd"; + else + DAEMONS=3D"virtproxyd virtqemud virtinterfaced virtsecretd virtsto= raged virtnwfilterd virtnodedevd virtlogd virtlockd"; + fi + - for daemon in $DAEMONS; + do + LOG_OUTPUTS=3D"1:file:/var/log/libvirt/${daemon}.log"; + LOG_FILTERS=3D"3:remote 4:event 3:util.json 3:util.object 3:util.d= bus 3:util.netlink 3:node_device 3:rpc 3:access 1:*"; + sudo augtool set /files/etc/libvirt/${daemon}.conf/log_filters "$L= OG_FILTERS" &>/dev/null; + sudo augtool set /files/etc/libvirt/${daemon}.conf/log_outputs "$L= OG_OUTPUTS" &>/dev/null; + sudo systemctl --quiet stop ${daemon}.service; + sudo systemctl restart ${daemon}.socket; + done + - sudo virsh net-start default &>/dev/null || true; + script: + - mkdir logs + - cd "$SCRATCH_DIR" + - git clone --depth 1 https://gitlab.com/libvirt/libvirt-tck.git + - cd libvirt-tck + - sudo avocado --config avocado.config run --job-results-dir "$SCRATCH= _DIR"/avocado + after_script: + - test "$CI_JOB_STATUS" =3D "success" && exit 0; + - test -e "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/lat= est/test-results logs/avocado; + - sudo mv /var/log/libvirt logs/libvirt + - sudo chown -R $(whoami):$(whoami) logs + variables: + SCRATCH_DIR: "/tmp/scratch" + artifacts: + name: logs + paths: + - logs + when: on_failure + + +centos-stream-8-tests: + extends: .tests + needs: + - x86_64-centos-stream-8 + - project: libvirt/libvirt-perl + job: x86_64-centos-stream-8 + ref: master + artifacts: true + variables: + # needed by libvirt-gitlab-executor + DISTRO: centos-stream-8 + tags: + - redhat-vm-host + +centos-stream-9-tests: + extends: .tests + needs: + - x86_64-centos-stream-9 + - project: libvirt/libvirt-perl + job: x86_64-centos-stream-9 + ref: master + artifacts: true + variables: + # needed by libvirt-gitlab-executor + DISTRO: centos-stream-9 + tags: + - redhat-vm-host + +fedora-34-tests: + extends: .tests + needs: + - x86_64-fedora-34 + - project: libvirt/libvirt-perl + job: x86_64-fedora-34 + ref: master + artifacts: true + variables: + # needed by libvirt-gitlab-executor + DISTRO: fedora-34 + tags: + - redhat-vm-host + +fedora-35-tests: + extends: .tests + needs: + - x86_64-fedora-35 + - project: libvirt/libvirt-perl + job: x86_64-fedora-35 + ref: master + artifacts: true + variables: + # needed by libvirt-gitlab-executor + DISTRO: fedora-35 + tags: + - redhat-vm-host --=20 2.34.1