From nobody Fri Apr 26 04:44:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1570526155; cv=none; d=zoho.com; s=zohoarc; b=M42zHCp8eKO/GUqL+H/mtlscaDTaZqTi2kmLOJPMe85M/5QCSNmzFFwOuVjRaF1LDP3RmwcuOVHYDS9NsVAGexyfXTt1uRL3FphKl8Y4RUALdRVVD/affjemyL1/AwfjF+ld5ABXQMfAeOm6PvNKmsofUltkGw3ctOW4eX3FKQE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570526155; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=yisOQFNMT3LU3xHRMq4PBFOwFpOxF53+n+F+mP3F+uY=; b=aMXJgMsy92yf8W2S1DPSlu9Hsh7YC8aKD0nqw0TYniGOPBAa8KAHKdynVfg3MFb+9tqKMLTCpBcXyk/LZjQ9F1GFviuQQjvl6kZK/1VNqidZ0Aj9hKIKs5TS98KVIjAieiOEH1VUm/uagEAMQWAP187ordMuamNKVUIeogHigVg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1570526155822906.4516974763428; Tue, 8 Oct 2019 02:15:55 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F3E6307DA31; Tue, 8 Oct 2019 09:15:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5234919D70; Tue, 8 Oct 2019 09:15:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4743A18089C8; Tue, 8 Oct 2019 09:15:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x989FqMg015450 for ; Tue, 8 Oct 2019 05:15:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id D8DAD19D70; Tue, 8 Oct 2019 09:15:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D2ADFF6C5 for ; Tue, 8 Oct 2019 09:15:50 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B4FA7300DA6E for ; Tue, 8 Oct 2019 09:15:47 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id m18so2321408wmc.1 for ; Tue, 08 Oct 2019 02:15:47 -0700 (PDT) Received: from donizetti.lan ([2001:b07:6468:f312:c419:feee:57d:5b72]) by smtp.gmail.com with ESMTPSA id 90sm25054173wrr.1.2019.10.08.02.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 02:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Z8sfTTPa+7GPVLEBNdE+KTk9E4p0B4836V36bTBgNlw=; b=ab6zqAEoD5+b5FpZPAK35iZveG9hx/U4ZnnWtndjM0IzNWmGJy1x+3N3bZsQJwbX/G bS+K8NV9xmbroEs1tEp74Oz+EZ4iMgiy181ycBoSuB2uSnDiSNqNBsfLiez9xbnUvm0r JukACwh1i2XFtoxinSjnSrJrhjItlbLyOd5xPtcYrkne/cxmsNavjDox1yn60CS6f/YM 3ZIIWZywcRt1UyrojejldbnlS3VRFPj2Ravc9PBaCupARAJoxuw47WMIROou5PKmMxwb gDNDEntcvzvCZ2tIvN36A99iiW8ScMQbmp8D/VsnSJoxWhJ1Gkv69WuJ+YAMOTqNAgYu fDuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=Z8sfTTPa+7GPVLEBNdE+KTk9E4p0B4836V36bTBgNlw=; b=gMNoHPzs+GB0gZlA0jnVZ7GGZzmvZ3r0fTuzjeDW3y1QFltPuhnrq66ozAaxj2hjeG mhPll9WQF+9h0Dv03Nm2i99/y8gMcx//wks0bAbtXfdds0UJAKqkVHwvkcCdOSdFXFSK mlQLVN45PbTZ0PO8GqAzClB9FLCNR9bZtP9SEyytvgmknMjUa1baPMYK6XBEJYkyHUGo zdDiWDVOgof06L9CDKq3vyXOfyos6M0KTdTob4Nb0/OIAHubIyhXPtda90r66EqZwwNm 70QS+u1SmSCiVG7NRhpOSwMcR2UU0dEnAYQdgrfNWqbS3wTT+EjCD9e/Gh0Eqyj1iBvI /12Q== X-Gm-Message-State: APjAAAV2MWw9qsq01Ebmmq5C9icbxcvEwchAL62HrOi8yFMnDgRxlYGG 47FzYMdAI2M1RaeiGzGFfGIy3A3M X-Google-Smtp-Source: APXvYqzSUkxAhNIfanfgYq35pcQy4UCzp8UFTSRunkJWNjEM2FYoYa73sjGEbNO6QuRwy0I0wReyLQ== X-Received: by 2002:a7b:c156:: with SMTP id z22mr3105080wmi.142.1570526145979; Tue, 08 Oct 2019 02:15:45 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Tue, 8 Oct 2019 11:15:44 +0200 Message-Id: <20191008091544.5416-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 08 Oct 2019 09:15:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 08 Oct 2019 09:15:47 +0000 (UTC) for IP:'209.85.128.43' DOMAIN:'mail-wm1-f43.google.com' HELO:'mail-wm1-f43.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.25 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.128.43 mail-wm1-f43.google.com 209.85.128.43 mail-wm1-f43.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.45 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] testing: update failures when the set of tests changes X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Tue, 08 Oct 2019 09:15:54 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Failures for the project HEAD are cached in a property in order to generate the project badge quickly. However, when a test was disabled it was still being recorded as a failure, causing the badge to show up as red even after all CI failures were cleaned up. Fix this. Signed-off-by: Paolo Bonzini --- mods/testing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/testing.py b/mods/testing.py index b155dc6..7955ca8 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -222,6 +222,14 @@ class TestingModule(PatchewModule): def project_recalc_pending_tests(self, project): self.recalc_pending_tests(project) =20 + # Delete failures if their corresponding results do not exist anym= ore + test_dict =3D self.get_tests(obj) + failures =3D obj.get_property("testing.failures") + failures =3D [r.name + for r in self.get_testing_results(obj) + if r.name in failures and v.get("enabled", False)] + obj.set_property("testing.failures", failures) + # Only operate on messages for which testing has not completed yet. message_ids =3D self.filter_testing_results( MessageResult.objects, message__project=3Dproject, status=3DRe= sult.PENDING --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel