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.gnu.org (lists.gnu.org [209.51.188.17]) (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 A6C81C636CC for ; Wed, 15 Feb 2023 15:46:49 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSJz1-0002UW-79; Wed, 15 Feb 2023 10:46:11 -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 1pSJyy-0002TP-Jr for qemu-devel@nongnu.org; Wed, 15 Feb 2023 10:46:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSJyt-0007HP-Nh for qemu-devel@nongnu.org; Wed, 15 Feb 2023 10:46:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676475961; h=from:from: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; bh=iebs9VEng/uZpr/fSdZFqxWPJYbNgG/TrZxZjRUe3/4=; b=Er/+XO6dDMh01IB5xc6FhEq0ncT+G3Pqr0tEAbLp0EAb7iMOf18+V1WSTFiGHDD3PEBQWa Rjxhd7c2QCM4Jyaei/ZN14t5Py+c0734LI4j/CfPwqJPN83oVIVjbLkqtvt6I1tB7JQpV5 cFVBXXPLYMchtnrLoEEAAuVL5pe6Jpo= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-548-bVBCdOnAO6Ck6s2ktEAwJw-1; Wed, 15 Feb 2023 10:45:57 -0500 X-MC-Unique: bVBCdOnAO6Ck6s2ktEAwJw-1 Received: by mail-qv1-f69.google.com with SMTP id c10-20020a05621401ea00b004c72d0e92bcso10742669qvu.12 for ; Wed, 15 Feb 2023 07:45:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iebs9VEng/uZpr/fSdZFqxWPJYbNgG/TrZxZjRUe3/4=; b=JAg/gbaH/alyos/cubUFcyuXXgqzOwsUTdgFiOu+iCgWM7ImYdMPTtz6ByQkMXmJjA D3qsYkoYWpmj6cccfgksI0Xm4cj71+lq3n/o4tEG/LhZ+M8BEFQf/KuuDTfuhiCZXaT/ TBZgnkTPzXBZjaHnspfZgrhcBshYb4XTe63VutR2IrYXIytv74a/5rqsF2WAJ/cj4yDl XzeHZZ6cOWNJRSpcCb+3G31WBDsrWM4Y9J2Gbo+81bOhaiAULUR/dKuba7haQejZJthl 0hs9tTjwj8e96X/5Fupb0+L8Kwwk6TMYPNs5zlNcYxZ4XLjrPGFoKR4kTHaKuCD5Pz3h vObA== X-Gm-Message-State: AO0yUKV5f0rB1HtxYu9xPKVHM+sLiSMvOjT1EDQpw9wZnc9DxSKh7iDA NicEEQr59nuysu6YrrWbf9XTwh0akoFNV+j0TXAb84WDPqDrgLbNjG4n2BfpLGu8KSAKBVQBZAM mo51sdULIRn8om+c= X-Received: by 2002:a05:6214:e6e:b0:56c:2ee:2641 with SMTP id jz14-20020a0562140e6e00b0056c02ee2641mr4965655qvb.22.1676475957479; Wed, 15 Feb 2023 07:45:57 -0800 (PST) X-Google-Smtp-Source: AK7set/PQ9jPl/Hu2IStmU3EP6eIJy3lEz8SkEI9J+xMv5oroIwJ5od5NIomcqqeL6Ow0LDUY/Pcsg== X-Received: by 2002:a05:6214:e6e:b0:56c:2ee:2641 with SMTP id jz14-20020a0562140e6e00b0056c02ee2641mr4965630qvb.22.1676475957251; Wed, 15 Feb 2023 07:45:57 -0800 (PST) Received: from [192.168.0.2] (ip-109-43-176-79.web.vodafone.de. [109.43.176.79]) by smtp.gmail.com with ESMTPSA id j190-20020a37b9c7000000b0073912c099cesm11113993qkf.73.2023.02.15.07.45.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Feb 2023 07:45:56 -0800 (PST) Message-ID: <4ba57bbf-3712-8958-e7c6-b164854e35ce@redhat.com> Date: Wed, 15 Feb 2023 16:45:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] gitlab-ci: Use artifacts instead of dumping logs in the Cirrus-CI jobs Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Laurent Vivier , Peter Maydell , =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Daniel_P_=2e_Berrang=c3=a9?= References: <20230215142503.90660-1-thuth@redhat.com> <32f0a378-2ae9-c711-19c8-837397c87c4a@linaro.org> From: Thomas Huth In-Reply-To: <32f0a378-2ae9-c711-19c8-837397c87c4a@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 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, NICE_REPLY_A=-0.257, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 15/02/2023 15.57, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 15/2/23 15:25, Thomas Huth wrote: >> The meson log files can get very big, especially if running the tests in >> verbose mode. So dumping those logs to the console was a bad idea, since >> gitlab truncates the output if it is getting too big. Let's publish the >> logs as artifacts instead. This has the disadvantage that you have to >> look up the logs on cirrus-ci.com now instead, but that's still better >> than not having the important part of the log at all since it got >> truncated. >> >> Fixes: 998f334722 ("gitlab: show testlog.txt contents ...") >> Signed-off-by: Thomas Huth >> --- >>   Note: I also tried to publish the junit xml files as artifacts >>   instead, but while the cirrus-ci docs claim to support it, I only >>   got unreadable XML output in my browser that way, so the .txt >>   files look like the better option to me. >> >>   .gitlab-ci.d/cirrus/build.yml | 7 +++++-- >>   1 file changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml >> index 7ef6af8d33..a9444902ec 100644 >> --- a/.gitlab-ci.d/cirrus/build.yml >> +++ b/.gitlab-ci.d/cirrus/build.yml >> @@ -32,6 +32,9 @@ build_task: >>       - $MAKE -j$(sysctl -n hw.ncpu) >>       - for TARGET in $TEST_TARGETS ; >>         do >> -        $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 >> -        || { cat meson-logs/testlog.txt; exit 1; } ; >> +        $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 ; >>         done >> +  always: >> +    build_result_artifacts: >> +      path: build/meson-logs/*log.txt >> +      type: text/plain > > How long is that log kept available? No clue, I haven't seen anything related in the docs: https://cirrus-ci.org/guide/writing-tasks/#artifacts-instruction ... but I assume they will at least be available for a couple of days so you've got enough time to look at them in case a job failed. Thomas