From nobody Mon Apr 29 05:53:32 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521895980784411.28101385760385; Sat, 24 Mar 2018 05:53:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 97D4419CBE9; Sat, 24 Mar 2018 12:52:59 +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 8DAB287DC; Sat, 24 Mar 2018 12:52:59 +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 121BE181B9FB; Sat, 24 Mar 2018 12:52:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2OCqwta019321 for ; Sat, 24 Mar 2018 08:52:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id 11F19176DE; Sat, 24 Mar 2018 12:52:58 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B4C0174B1 for ; Sat, 24 Mar 2018 12:52:56 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) (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 378AC81DE3 for ; Sat, 24 Mar 2018 12:52:55 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id z73so14622607wrb.0 for ; Sat, 24 Mar 2018 05:52:55 -0700 (PDT) Received: from donizetti.lan (94-36-194-48.adsl-ull.clienti.tiscali.it. [94.36.194.48]) by smtp.gmail.com with ESMTPSA id v66sm8714227wmd.15.2018.03.24.05.52.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Mar 2018 05:52:51 -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; bh=gensdGFex7aAzvicvy0o8IONXDqO+LM0XIlnKfbUoPY=; b=gJ6bKQ5btiTyR+eYqL7pwNWll1nKCBG35O2hD32qsKJ7MikxeWUMkyaAnFvlqRSTBP miPrqZ8jiixJ4KSEoXsj9VTToxQDCnC5fytkiVTf0BtbL6tnFDrdrzvXmM52qh84kApB t5iGIK+/e8JWPq6qkrF0414CXrVyBLPr0QtLFB8UasmVvLCd/0JWCFpbaclz9c3ULnrL qixI5eyfb20zh8SwnghOVXtHuwN/hRTSqSOJ3QfqKcPiTTiHEp+SEZ2O19IxmWkXsQL8 wUk2E8S/sXTST2nhoythzMggKdUPXFAqlxaIR+HIlHKCEssua6vvcwJyxPbasijHN566 HZKw== 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; bh=gensdGFex7aAzvicvy0o8IONXDqO+LM0XIlnKfbUoPY=; b=CZyKe08b5By1zExMo+8jOOXcjIzvUaIiTpB0ouUYilgpnQ1nkJboAEY8qOkfCUiDwp 0UTcDrVh2AR+Vfu95WrXSHxcHF6s+s9yeWOphHmC/FYjBaUSLZREhydEfRR0vwrHrCx/ FIsykZMmX7oi5eGoSs7LaYwZDYOC9cHM10LNzNBbLYGDEOtT13kOlkXjeoUZOUfdF7nC VmsKMAfmj6qqzlglgas0H4YCFLS5T1Yg+TdCVtqpV3sgzFrIEj7s6eab59jLeNQmL2PV vZ6L1CsidFkFqwcIb6X3oqEhfCMjX0URTTOR3zTgUeXOOjOfJxZ1Eg7EFVP2eehUAK4b KrKw== X-Gm-Message-State: AElRT7EWixOKdmo7RX9fNTkkEJ5P9/S9ZHZwJR1cAzP7FaMYYScei0e+ A6/2EVtNjACI+pFkwd+YG7F4qctV X-Google-Smtp-Source: AG47ELu9uPdmDgpTcXzH6nTgB8/8mpAnR5wvsuXdbGNIBQ72m/4vvMKjMFvco9NDUpUF9Shq6w2nog== X-Received: by 10.223.135.83 with SMTP id 19mr11554222wrz.150.1521895973388; Sat, 24 Mar 2018 05:52:53 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sat, 24 Mar 2018 13:52:51 +0100 Message-Id: <20180324125251.27144-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 24 Mar 2018 12:52:55 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 24 Mar 2018 12:52:55 +0000 (UTC) for IP:'209.85.128.180' DOMAIN:'mail-wr0-f180.google.com' HELO:'mail-wr0-f180.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.488 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.180 mail-wr0-f180.google.com 209.85.128.180 mail-wr0-f180.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] set testing.ready when requesting retest 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sat, 24 Mar 2018 12:52:59 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" testing.ready should be set not just when the git repository is updated, but also when the user or API client requests a rerun. --- mods/testing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/testing.py b/mods/testing.py index 1217f6f..7e15f56 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -119,11 +119,9 @@ class TestingModule(PatchewModule): and old_value is None \ and obj.get_property("git.tag") and obj.get_property("git.repo= "): self.remove_testing_properties(obj) - obj.set_property("testing.ready", 1) elif isinstance(obj, Project) and name =3D=3D "git.head" \ and old_value !=3D value: self.remove_testing_properties(obj) - obj.set_property("testing.ready", 1) =20 def remove_testing_properties(self, obj, test=3D""): for k in list(obj.get_properties().keys()): @@ -135,6 +133,7 @@ class TestingModule(PatchewModule): k.startswith("testing.report." + test) or \ k.startswith("testing.log." + test): obj.set_property(k, None) + obj.set_property("testing.ready", 1) =20 def www_view_testing_reset(self, request, project_or_series): if not request.user.is_authenticated: --=20 2.16.2 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel