From nobody Mon Feb 9 18:19:23 2026 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=1555495800; cv=none; d=zoho.com; s=zohoarc; b=b4t0IQPX767bj50Veg1V0UUgiG2Vi5UXW6Nxn6C8fauWgZpvxH5HVnRrBC04zFC1xLy5CUZNANARL9KGFqg2cghd9Ilj3xNEh8gfzd7GzHl2EQOcOzSy6bJCwLCtNObvYZunszWagcUz2YKqPh1mnfYlawcXVdcJMCiuTlVW9lY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555495800; h=Content-Type:Content-Transfer-Encoding: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:ARC-Authentication-Results; bh=H9M0HyhCDLPpb2mR35r8qRSKUPZj2Syo7xyb7OmLahE=; b=UIQK892DKn/4oUV7acmuoUywjYjbJaHz0M5TZlT2SUjdZGoUxu0hMoxOEIO6e5ttTVHmdl4Psez74WrbC5FXXEcSb4zXzk8Cc2MoMaycx0jNTCDbgo7dPb89nkM8MIGS0+oGi02YcZGnVLlf0HKZhUqz689UdWMiCwulWGz+Iwk= 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 1555495800149211.70282801034057; Wed, 17 Apr 2019 03:10:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9D503082128; Wed, 17 Apr 2019 10:09:58 +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 CC57D1001E98; Wed, 17 Apr 2019 10:09:58 +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 C35C0181AC45; Wed, 17 Apr 2019 10:09:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3HA9vKu013054 for ; Wed, 17 Apr 2019 06:09:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id 81EA260143; Wed, 17 Apr 2019 10:09:57 +0000 (UTC) Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7A928600CC for ; Wed, 17 Apr 2019 10:09:55 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 9B5936697A for ; Wed, 17 Apr 2019 10:09:54 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id w15so2844513wmc.3 for ; Wed, 17 Apr 2019 03:09:54 -0700 (PDT) Received: from donizetti.redhat.com ([2001:b07:6468:f312:ac27:aac4:c65c:6eb]) by smtp.gmail.com with ESMTPSA id c13sm4949719wrx.88.2019.04.17.03.09.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 03:09:52 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ctdIdb60/pW685uyYUC0xMS8IXid10kUUzixvX9hX/A=; b=PuzOB+HFfrNek8BbE6wu84NIiuSoMOMJI+8vgYQguy0dU3rehAqBD6BhONIMHSw5oE azr9asLmcEzmnSayDiJjP3Lg6efSx6aDdpTFnNPRqNlWUv/O8IaWrcJCTXfPTyxYls/g ghL2+JOczrHk+GrkAy+o9vOmQDVt8wwSwxaTeZo8R9Tgiph1Jtx+iz1PmLoWt0lG0Hbk v4XRHl1wqosV6Nj/qUYTbSho5fpAdSPzmeR5Nc2DY5poHAD+3bGgkK8AM1l5A2vmwZTY kQpWRUHgKI8YCZnZuX9xY1lCP5PD4RBnG9hJ/MSLSvQyta83xZ3e7A0g4bMT9VjhSfSx NZ9w== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=ctdIdb60/pW685uyYUC0xMS8IXid10kUUzixvX9hX/A=; b=Z9m2hB+K48yarvHSBzWwwE5INePdigSJn2T1ZHjX7qS7fsqtIlvya5GuvPwuW+X3Cg yD1R49V9ZoirhKP7j8QTSO5n72d3KXiFJ6G750ezzqbJaaqyVlOCAi/u/qM34Du80xlZ bRHDy9pSPPMJXuILT92FnWzIvnWN+tJxjKqWllUeL/C8/9U5373HCUDLoUX46acH0L6Z inApRcgtSF3JJ8hLNvHloKIXxIRxuuc7V/o0hGAxZS85J2d7D64lgFWa31Symn96FwDu JfUFYMsHaeMFYXh3HfKBdRh12Ka8rZTLVIfYCJAd3RUtQ+aDVE+jsEebjYuF1p+jRwzI 7Vtw== X-Gm-Message-State: APjAAAU9dXoMYMDxZb2drlmpKFtX9Y42rzTDUjJtHz8P1ul+1jKZcc9I 0bRlRt6u1MrS8tmCf2sIt6AJkpsE X-Google-Smtp-Source: APXvYqx1F43RxpxjQ+0BGNNbvNx7rhW/d8s6jqugTu/IhLlG2poRARTH8+/LtSeQ19ffSzkJkQtKBA== X-Received: by 2002:a1c:e085:: with SMTP id x127mr29779641wmg.87.1555495793008; Wed, 17 Apr 2019 03:09:53 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Wed, 17 Apr 2019 12:09:44 +0200 Message-Id: <20190417100948.8810-4-pbonzini@redhat.com> In-Reply-To: <20190417100948.8810-1-pbonzini@redhat.com> References: <20190417100948.8810-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.38]); Wed, 17 Apr 2019 10:09:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 17 Apr 2019 10:09:54 +0000 (UTC) for IP:'209.85.128.48' DOMAIN:'mail-wm1-f48.google.com' HELO:'mail-wm1-f48.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.24 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS) 209.85.128.48 mail-wm1-f48.google.com 209.85.128.48 mail-wm1-f48.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 3/7] testing: do not consult the testing.started property 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.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 17 Apr 2019 10:09:58 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" The right way to check whether to show reset links is to look for results that are in running/success/failure state, similar to what is done for messages. The testing.started property in fact does not exist anymore. Signed-off-by: Paolo Bonzini --- mods/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/testing.py b/mods/testing.py index 80f5cad..e390e30 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -405,7 +405,7 @@ class TestingModule(PatchewModule): self.check_active_testers(project) =20 if project.maintained_by(request.user) \ - and project.get_property("testing.started"): + and self.get_testing_results(project, ~Q(status=3DResult.P= ENDING)).exists(): project.extra_ops +=3D self._build_reset_ops(project) =20 def get_capability_probes(self, project): --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel