Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3045144rdh; Thu, 28 Sep 2023 00:18:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFr2jvMJLABl+xGxkNlOXs+DE329bFoywmjySQ6H2k6pcld5qm9S36eDpizBlqtMLlCcMew X-Received: by 2002:a05:6a20:9743:b0:13d:ac08:6b79 with SMTP id hs3-20020a056a20974300b0013dac086b79mr361705pzc.60.1695885494369; Thu, 28 Sep 2023 00:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695885494; cv=none; d=google.com; s=arc-20160816; b=LOdYF+q2t2PQ8BLjhw5XkQcSAzvLqXZAYoCv+dE0kTkhHdYs9aJFq3i0Fe1StSjKBK ssryuueLOV+H78vQANtZHu3r2G1tBboDW54XnrNzCCwLmPa2jDh6KGZYOGiTda4jNLb/ sTlfDRvsb+nDWn2H9BZuHCLs5kFhZkzJYhlm9G4fQYY7gp4T4eXDOVYcalCjfrjE6Yrg /Zk/eqcqiCJ2OwyqtRwH3svjvB+LXY3PNyncnWQRRs7SJ6stIcE8GZL6pE44LsQsOvNR yuCf5H6tIzfDu7UnHq37kqtbn7mnn5bX5wJUVrs7ubuci4c7XeNH4zspAVQ1rFhyOy4g E/dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=32T81fKvUycfKAhnCTiHsDbfmXmo2fIN4PHbMCuJ0bs=; fh=YfHNLPWHB+zkCgHvajYxYEg+JSDew+cfytTM7brJREA=; b=cTEYJbhq791DFrPx5waaNLZe2cnCK0kPfdV3/SzCNvI3YGiuMoiylUsX8mUSDae70k I1yQG6DWCKcme5rOxtIMX4DsF8mm4sM4JZvNZkWEVHree+eX+yTrKJ0MkLBvm31C+9/o NMKYBhDcW9e3+D4JbVdRiaZhgAvF5Ks4EQd6bkhcFLd6+e74i6VsjXPS5qPIiE3lR+VK JwALLtKpaZ7QBavrjOgCYhBVsh1c6incKOs9DfzOQ5gfwkU72ZUKN8+FAjv69ZObcg96 VXVol0tRdIw93ngMqRtjGay/QOzpy7whm4An830NdO7lYDz/VTaHnDLXZEOKn8VF5+01 y0Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HuS2Rykr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d12-20020a170902654c00b001bf88e777f9si16753733pln.33.2023.09.28.00.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 00:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HuS2Rykr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 30AA2807AC72; Thu, 28 Sep 2023 00:13:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231511AbjI1HNC (ORCPT + 99 others); Thu, 28 Sep 2023 03:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbjI1HMs (ORCPT ); Thu, 28 Sep 2023 03:12:48 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD3455AA for ; Thu, 28 Sep 2023 00:11:15 -0700 (PDT) Received: from verdu-eth.calcurco.cat.235.168.192.in-addr.arpa (unknown [93.176.144.0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sergi) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3E0DC6607327; Thu, 28 Sep 2023 08:11:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695885074; bh=32T81fKvUycfKAhnCTiHsDbfmXmo2fIN4PHbMCuJ0bs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=HuS2RykrdK0vM5nrbTCy64Xc2ZB6qNUhKxlqtqFcqXi8x3JpQb6FIfbQ0H9vhZkyU cJJq2Lr8PSlC2GDs3B4TPSVCz0FZhgEn8wMU1PlUBd9MpQ0mLcDShZIdg392kv0Gk6 Lp0XceWupnpVs8OwCkKW8UNCEpAtA4swFiH16gr4CWm1TpV6/pQZav7gAfocw/ZY5k Lz27QcV/QIPjtJdRhaNyOaYC8asYLqMCWcEyFgJ0YvVw1vGAdHaRTWzn0iHP/qhEl5 pb1S+7809Y8Ug6AFS3OYgXolpJpjoxtsayVRf6G6q9vpv00halZBmXLlyQWI6Ql72k Y+sr/Y2h2o9XA== Message-ID: Subject: Re: [RFC PATCH] drm/ci: add helper script update-xfails.py From: Sergi Blanch Torne To: Helen Koike , dri-devel@lists.freedesktop.org Cc: airlied@gmail.com, daniel@ffwll.ch, linux-kernel@vger.kernel.org, robdclark@gmail.com, daniel@fooishbar.org, vignesh.raman@collabora.com, jani.nikula@linux.intel.com, mripard@kernel.org, michel.daenzer@mailbox.org, quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, david.heidelberg@collabora.com, guilherme.gallo@collabora.com Date: Thu, 28 Sep 2023 09:10:58 +0200 In-Reply-To: <785cbfee-f4d3-3d53-a3e6-2f9af8fa05fb@collabora.com> References: <20230925195556.106090-1-helen.koike@collabora.com> <8f946d0a5632d580b593cf731091126d59feb77f.camel@collabora.com> <785cbfee-f4d3-3d53-a3e6-2f9af8fa05fb@collabora.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 00:13:17 -0700 (PDT) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Helen, On Wed, 2023-09-27 at 19:28 -0300, Helen Koike wrote: > > > +def get_unit_test_name_and_results(unit_test): > > > +=C2=A0=C2=A0=C2=A0 if "Artifact results/failures.csv not found" in u= nit_test: > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return None, None > > > +=C2=A0=C2=A0=C2=A0 unit_test_name, unit_test_result =3D > > > unit_test.strip().split(",") > > > +=C2=A0=C2=A0=C2=A0 return unit_test_name, unit_test_result > >=20 > > Suggestion: it is not managing empty lines or comments. By now, > > there > > aren't, but they could be found. >=20 > Indeed. Just add a new if statement to discard if the strings start with # or strip the line and check the length. Perhaps we can think of other assertions to sanitise the string. > > Suggestion: Sometimes tests fails with different status ("Fail" to > > "Crash" for example) and the expectations should be updated with > > the > > newer status. >=20 > The status is only present in the fails and not in the flakes list, > so I=20 > update it with add_unit_test_or_update_result_to_fails_if_present()=20 > function below, make sense? Absolutely, sorry that I didn't see this was a process included in the last if statement. If it is present in the fails' file (that includes the test name and its state) you do exactly what's necessary: add if not present, update if it was already in the file. >=20 Regards, - --=20 Sergi Blanch Torn=C3=A9 Senior Software Engineer Collabora Ltd. Platinum Building, St John's Innovation Park, Cambridge CB4 0DS, UK Registered in England & Wales, no. 5513718 -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwWRK68l+taJfhwqAto5bHyTm9RwUCZRUnAgAKCRAto5bHyTm9 R53NAP9T2OCiwbnEjv+H0CQg/eK1xGe7yS/3cqjaPFRvvZPp1wD/V1H9NuhpRR6M 8+QZgbsS/swSPdwYABtcz+75CKpuJwo=3D =3DXRRO -----END PGP SIGNATURE-----