From nobody Mon May 13 21:08:21 2024 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=1647951090; cv=none; d=zohomail.com; s=zohoarc; b=bznSbzSmN470XIesSUjr6Q4SOKrAqMQ72mZcC/47nh4bqSB45+2N8CbZ2x4TGIbZpX2Qdeu4iPWFEzN/oGlxNS2NJtobA3/MZbY5HGXr7RggJWsoSA+DsSzYD47YoM/z4pesy9UtmUMXfc2Y2O7FDNiwmlYPZ1srXGsd4brE5+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1647951090; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=QjgDWnyxIYXUBeOQkBzVZJrVZOLCdhltDNZHlkzYtkg=; b=K5YwY0ryu2STEBUpa8VE+QnkusdtlxXdDnbkafClOnHeT19xIpfAOiDFHo6vZqcxfC2gj1vsNvx9zT5dcceL9hT24RYK/sObuanDqMejz4ekchb0LHIcG/IUzAyIJ+PfoCYz4XT7WX3hczsoJYrTwICU9MO/upfEYJRvxRAD4IE= 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 1647951090532743.9125075696489; Tue, 22 Mar 2022 05:11:30 -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-173-qLuwSdsbOLuvdQhAKbwbSg-1; Tue, 22 Mar 2022 08:11:28 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1E324811E76; Tue, 22 Mar 2022 12:11:26 +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 6F0D9141DC5F; Tue, 22 Mar 2022 12:11:25 +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 4EBA91949762; Tue, 22 Mar 2022 12:11:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 41EC41947BBC for ; Tue, 22 Mar 2022 12:11:24 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id DEF4B401E89; Tue, 22 Mar 2022 12:11:23 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.192.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E682401E86; Tue, 22 Mar 2022 12:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647951089; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QjgDWnyxIYXUBeOQkBzVZJrVZOLCdhltDNZHlkzYtkg=; b=YDDM2ylLEbtI5Yu2Pjb6y9tT/8BPuPsUXk2ShgDz4rC10zjOhJPHD3eVB7wJ4TFyVwOWtk flK0t/y1RUxvHRWqUoWklwjvFz+eNs82yGSmfVRmgoa7DOgguN9p0qNYshIqLmOoXbtc8L KH3r4rGLMQX8FcyqNHP9BkG9Fzl3P+M= X-MC-Unique: qLuwSdsbOLuvdQhAKbwbSg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH] ci: integration: Rename all Avocado standard stream log files to *.log Date: Tue, 22 Mar 2022 13:11:22 +0100 Message-Id: <71c69d7427168f52e95a1b58d9cd97a9eff4535f.1647950915.git.eskultet@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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: eskultet@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 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: 1647951091579100001 Content-Type: text/plain; charset="utf-8" By default, stdout/stderr Avocado test log files do not have any file extension which confuses GitLab's web UI to mangle the MIME type for these and so the browser will never offer the option to open such file from in a text editor rather than dowloading it. Since GitLab sets a proper MIME for .txt and .log file extensions, rename all Avocado log files without an extension to *.log . This pairs nicely with the coredumpctl info file which we already name as 'coredumpctl.txt' because of this. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- Here are 2 artifact web UI views on a failed job which you can try yourself= in your browser: Before this patch: https://gitlab.com/eskultety/libvirt/-/jobs/2232852413/artifacts/br= owse/logs/avocado/02-._scripts_hooks_052-domain-hook.t/ After this patch: https://gitlab.com/eskultety/libvirt/-/jobs/2234111527/artifacts/br= owse/logs/avocado/02-._scripts_hooks_052-domain-hook.t/ ci/integration.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/integration.yml b/ci/integration.yml index 519494cfd5..2808e829ef 100644 --- a/ci/integration.yml +++ b/ci/integration.yml @@ -36,6 +36,9 @@ - sudo coredumpctl info --no-pager > logs/coredumpctl.txt - sudo mv /var/log/libvirt logs/libvirt - sudo chown -R $(whoami):$(whoami) logs + # rename all Avocado stderr/stdout logs to *.log so that GitLab's we= b UI doesn't mangle the MIME type + - find logs/avocado/ -type f ! -name "*.log" -exec + sh -c 'DIR=3D$(dirname {}); NAME=3D$(basename {}); mv $DIR/$NAME{,= .log}' \; variables: SCRATCH_DIR: "/tmp/scratch" artifacts: --=20 2.34.1