Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9jxf-001hUk-1Z for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 13:25:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9jxd-008ctc-3A for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 13:25:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9jxd-008ctU-2F for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 13:25:50 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9jxc-00000000rDO-0qfK for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 13:25:49 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 2DF791D001C8; Mon, 6 Apr 2026 09:25:47 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 06 Apr 2026 09:25:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1775481946; x=1775568346; bh=p2TyCY2gM/ lVGF0dDot2D7599neCntqVqMGCMERwVkI=; b=Sm//JqnjhuQKCxewkehMY5CCZB 4TqRMIlH+Tzfgd2KPcKsNipR9yeMyHhRe3j1b+RWJo1WPk6y1mAYx48MGMcaeLTm FSZ2H33MwyFm120nm1rlQuUh8G7GfZcmTR34/C7xttPYmORMIIwld4YfBYbRaXjt O/46IqnVZuywVqNPFRGO+ahJYvKdl3+ermT71pJcbVLpGCGRJSZ8sjsWWgjfb9C3 FovLc//PPtQaod30fMT0rDz+QNzLxUBB1Q+bW2rtXMapTgnXs1jmTRm1uefX6aC/ ixt0sSDue6magu7Dv2XIbQQlRSuvXZRtpuKcMp1gWGvlqIepijgMGMrz4+GA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1775481946; x=1775568346; bh=p2TyCY2gM/lVGF0dDot2D7599neCntqVqMG CMERwVkI=; b=WC2tAWykguT7IaXBLIdb2syFOBJxsUEvuUHaeIM4GNOi4OUjNYc 9h1mpPZTGrDOodebRPW3nAbLuv2UaL4ZtFQs2mPUcL3hbS3Z3rJjCoRTQS6zy7th Zu3tTZh58u7EuNRN4yLuU/P8ufcushJyEXgwdngqLx77/SGJma5tMrIwWR+TialN gIyOOj4T53mEOmKrXO7ybR0tO78/pHCi46f9eqGhHt5eMREg6bSY6Jc2g7ImDhCk izG8XW1C7UQbd6n0CXv7DdUUZuJ9wz71XbQo5jMz4/mObcj9E/hsmPVnbrv8+ETx NSBA7b1uX9MCf5q9qhVF0y+Rjo7VXYH0EpA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddujeekgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdttd dtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghr rgiivghlrdguvgeqnecuggftrfgrthhtvghrnhepfeffgfelvdffgedtveelgfdtgefghf dvkefggeetieevjeekteduleevjefhueegnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggvpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsvghrthhr rghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqh hlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Apr 2026 09:25:46 -0400 (EDT) Date: Mon, 6 Apr 2026 09:25:46 -0400 From: Andres Freund To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org Subject: Re: meson: Adjust test timeout for Valgrind builds Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-04-03 14:53:15 +0000, Bertrand Drouvot wrote: > When building with -DUSE_VALGRIND, tests run significantly slower due > to Valgrind's instrumentation overhead, causing the default 1000s test's timeout > to be exceeded. Example when running the regress test suite: > > " > $ meson test -C build -q --print-errorlogs --setup running --suite regress-running > regress-running - postgresql:regress-running/regress time out (After 1000 seconds) > > Summary of Failures: > > 1/1 regress-running - postgresql:regress-running/regress TIMEOUT 1000.01s > > Ok: 0 > Fail: 0 > Timeout: 1 > " > > PFA a patch that detects Valgrind builds using a compiler check, which correctly > handles USE_VALGRIND being passed via -Dc_args, CPPFLAGS or CFLAGS and increases > the test timeout to 10000s in that case. > > I don't have a strong opinion on the new value. In practice, the regress > suite runs in about 30 seconds without Valgrind and in about 46 minutes with > Valgrind on my setup. Note that the timeout is per test, not for the entire > suite so that 10000s looks large enough (I tested to run the entire suite with > the patch and it did not produce any timeout). > > Another option could be to disable the timeout on a Valgrind build (set timeout > to 0) but then a test could block forever. > > Note that there are no changes needed for autoconf as it does not set a timeout > for the tests. The usual way to deal with that is to pass --timeout-multiplier=100 or something like that to meson test. Greetings, Andres