From nobody Mon Feb 9 07:39:25 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=1665747015; cv=none; d=zohomail.com; s=zohoarc; b=Xku5LnGwHOq2xv3i7enUYJjRLxwR0jRVEd9fONyKdcvIOujCkn3w1em+h0R1L3BjIcojwGFQdyOM5zU54VkP4NeE4Uq4D3D4mOyccfyVHHU1tdG2i0yCIsBYiyEfFDp9/xoc7+YZ5JdIT5UlXN3aJuUc/H8qoYi+t6sQP5E6R9k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665747015; 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=oojmzOsYjXto9SDgBX838o9vzJwGyXGpKpgAT0uPdhU=; b=ihYsDaWpKZ+X7o5kpCJyE7TZiTOGNvh5i4wwIQIqKmmUbemz/xK2y5Y2gtfTD5e27pE2mBc7UeciKRToUJvNZdEgHBVwW8xFy40iI0k3DeVs/5I1kxzmOis+CU0GxelUmhqMaUvXIvB+x0nXLNdonqCKGLYsLLNKRGznzaiLr7g= 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 16657470156341020.0464027853892; Fri, 14 Oct 2022 04:30:15 -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-547-mdHyg_MCMEm5SxoTitB4KA-1; Fri, 14 Oct 2022 07:28:56 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A3568185A7A3; Fri, 14 Oct 2022 11:28:53 +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 8AB0940974DF; Fri, 14 Oct 2022 11:28:53 +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 807BD19465A0; Fri, 14 Oct 2022 11:28:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 88977194658F for ; Fri, 14 Oct 2022 11:28:51 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6D14B208DDB6; Fri, 14 Oct 2022 11:28:51 +0000 (UTC) Received: from ridgehead.redhat.com (unknown [10.43.2.1]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAF06207B31A; Fri, 14 Oct 2022 11:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665747013; 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=oojmzOsYjXto9SDgBX838o9vzJwGyXGpKpgAT0uPdhU=; b=fBV7zFGtN/VzEqcMs9XnhcfRZgBXLcZC2BGxJwOxVt/37GaQJuZti1OZD7ocJKoKUz11KA E7ody15k704Hqg+mPI7gm2NQRw0zaeyeD70BVmZ6Sz0TDkqKjQCmspOpThPFArEQKKdcyf 0khL69DATuNSzrp3qyAg75l1zHiBFzg= X-MC-Unique: mdHyg_MCMEm5SxoTitB4KA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 7/7] ci: integration: Bundle only failed Avocado test results Date: Fri, 14 Oct 2022 13:28:45 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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: Erik Skultety Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1665747016048100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Latest versions of Avocado create 'by-status' symlink shortcuts to test results, IOW: # this is the main test results directory containing all data $ ls /avocado/job-results/latest/test-results/ 01-scripts_networks_050-transient-lifecycle.t 02-scripts_networks_051-transient-autostart.t ... 22-scripts_networks_400-guest-bandwidth.t by_status/ # list only the failed tests $ ls -l /avocado/job-results/latest/test-results/by-status/FAIL 19-scripts_networks_360-guest-network-vepa.t -> /avocado/job-results/latest/test-results/19-scripts_networks_360-= guest-network-vepa.t Therefore, let's bundle only the failed ones, it's going to make the log artifacts more obvious when looking for libvirt errors. Signed-off-by: Erik Skultety --- ci/integration-template.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/integration-template.yml b/ci/integration-template.yml index 48e71e2dd9..f01de7845d 100644 --- a/ci/integration-template.yml +++ b/ci/integration-template.yml @@ -56,10 +56,16 @@ =20 .collect-logs: &collect-logs - set +e + - shopt -s nullglob - mkdir logs - test -d "$SCRATCH_DIR"/avocado && mkdir logs/avocado - sudo coredumpctl &>/dev/null && sudo coredumpctl info --no-pager > log= s/coredumpctl.txt - sudo mv /var/log/libvirt logs/libvirt + # filter only the failed tests, omitting successful job logs + - for test_log in "$SCRATCH_DIR"/avocado/latest/test-results/by-status/{= ERROR,FAIL}/*; + do + sudo mv "$(realpath $test_log)" logs/avocado; + done; - sudo chown -R $(whoami):$(whoami) logs # rename all Avocado stderr/stdout logs to *.log so that GitLab's web = UI doesn't mangle the MIME type - find logs/avocado/ -type f ! -name "*.log" -exec --=20 2.37.3