Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw2cc-0006Ra-PD for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jun 2021 13:08:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lw2cb-0001U4-Ea for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jun 2021 13:08:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw2ca-0001Tw-Lf for pgsql-hackers@lists.postgresql.org; Wed, 23 Jun 2021 13:08:49 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw2cV-00081w-JW for pgsql-hackers@postgresql.org; Wed, 23 Jun 2021 13:08:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id AAA3F1435; Wed, 23 Jun 2021 09:08:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 23 Jun 2021 09:08:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=utbUHJ1NHww+mtdVaTYDV12lvxKvfXIzzStaidUIPAs=; b=XzXE5tqI wj3LCV8nn2Rna+Grp8hvyZ0bVZuYmcPKdtPXlOAAGDWgTAggVXBcu5Rkrfhzak0i dr8+nZBtCPBEsHo76/Fh2/BQqV8i2d0MIu2EEXtMGQESDQmoy1FdT5IZ4RlUnVbb UI2ClYgMA0IFe95OtiMGNnnUhevoBbFuFKexdgNsH5QcaqJlTJBpKB4xX2b5SPLw V1ZIgYSA9mz7pdWYdlftOYcADfLvk8m5YyLERpaHXfRrVhRxeLj3azobbbfxZdmJ 23T3n5Vc5I+bM7MjOl+VgYmFNa0bgbqTklJzT13ioB+ypoYhRkZb4AZd060IctYD URi8TcuBQxKPiw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegfedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttddunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeggeevveffveejffdutefhvddtgeeghffhgfeuhfefjeei gfevhfefleevtdduteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Jun 2021 09:08:38 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5069A2A0ADA; Wed, 23 Jun 2021 09:08:35 -0400 (-04) Date: Wed, 23 Jun 2021 09:08:35 -0400 From: Alvaro Herrera To: Fabien COELHO Cc: Michael Paquier , Andrew Dunstan , Thomas Munro , Gregory Smith , PostgreSQL-development , david.christensen@crunchydata.com Subject: Re: pgbench logging broken by time logic changes Message-ID: <202106231308.lxr26cahwxuc@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-23, Fabien COELHO wrote: > +# cool check that we are around 2 seconds > +# The rate may results in an unlucky schedule which triggers > +# an early exit, hence the loose bound. > +# > +# THIS TEST IS COMMENTED OUT BUT PLEASE LET IT THERE SO THAT > +# IT CAN BE ENABLED EASILY. > +# > +## ok(1.5 < $delay && $delay < 2.5, "-T 2 run around 2 seconds"); I think you should use Test::More's "skip" for this, perhaps something like this: SKIP: { skip "This test is unreliable"; # explain why ok(1.5 < $delay && $delay < 2.5, "-T 2 run around 2 seconds"); } ... or, actually, even better would be to use a TODO block, so that the test is run and reports its status, but if it happens not to succeed it will not cause the whole test to fail. That way you'll accumulate some evidence that may serve to improve the test in the future until it works fully: TODO: { local $TODO = "Ths test is unreliable"; ok(1.5 < $delay && $delay < 2.5, "-T 2 run around 2 seconds"); } -- Álvaro Herrera Valdivia, Chile "El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte" (Ijon Tichy en Viajes, Stanislaw Lem)