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 1w9zZw-001xrL-2a for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 06:06:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9zZu-00EoQJ-29 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 06:06:23 +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 1w9zZu-00EoQB-1E for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 06:06:22 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9zZs-00000000yvO-3C5o for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 06:06:21 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-488a041eae5so20358905e9.1 for ; Mon, 06 Apr 2026 23:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775541979; x=1776146779; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PU22zwLE8ueesqEN/g2x+33/Tm++PQkPO48HRrKPx7Y=; b=nG7hjlaIDLLgqjQXyG3F5s2SzeQ13wLL/LHpypPsKpLeGOJn1uF8fgneiTY+3+js+2 8My477Csh+p+3QD2CtRjBiEt+964mdtWuDOx4Zs94yCVu3WsG9Z8YnZkVrDrX49D5+rv YisBepK2pA2Dp3h9i7NcNK7KK7lmRu5h9zhj77hq+SOs9Fm1KtU3meblXV5uDTPzD2aT eNUe3M+gAHnMepT1eF1jjSOAVvB/IYly7kFyEtGcgy1JNT7LXZkOEVSptMmDWOzwxyQc /aZYAjMMREYkYS6cCbnXuNkPEb6r8SYEe7vePEPYgNuM3nuHWTnnOqk9xpX01sMWTTDJ Vbvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775541979; x=1776146779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PU22zwLE8ueesqEN/g2x+33/Tm++PQkPO48HRrKPx7Y=; b=ASCUS+xE0D2ex+wVqAeEUFY4pCdFN6fRkoG/PgmLvwk8u9xaPg8b4lmd4ZbctGgkAZ d7sZlcnwTgXh0DBJLFfuq5LOR6btXsZoCE0o8gjZ3RgDfa2izynXM4iumyBMgucVDjT3 x0gbLw5IfYG7kDBiwDUoYcJLTy1aSiK9XBhuCYfGdfNd7AMw11VfNDPDLglB1vYz3SnJ FnDT0uyCMDyM6hL++MLquCbofgwmz4aVHhqRuqKH8GQYzNElpMdVpPYkU4tTd3eY3CQT POeQLTzIm/XhTgz4HRK32vV7Vw2qrO7ECz7R5OEAtFBD5POZRh0TX71k07MX2Qx7JtAh CoUg== X-Gm-Message-State: AOJu0YynZfQTlFJjKNQiNYT9qZ0PUPPJX9DENwsYxt7wDvefiw/D1o6Z xLxI/zh+cki6a4NjuQCPvgmVR3A+2tjcqwevNAokNApm5InXdaO0kju0 X-Gm-Gg: AeBDieuCWO/ksz0MbQDT2HVcKOhj6Ecf4H31x+/CYNJtDBJQZoDvJF+2tAvrJFs8AxO fweMnRFagDl9ZNrFiAuSYJT5L6W7XzF2DxVbFOttauJLv+6eVGeMUFV1po97rTgjlYBBr4DdsDg HYZN7TIaD2g3dgEonL0FK4CpmX2m3qJVPcmX0MR22OaTqzQGbBKJj0upEh0+7rq4/mKoW9JulPD c/xEFZ7QyGvaC2dGfNtd6OT3FkfuXjG/Qyqv83LdALGpgfTg4XeTteCF99tWIcr5hgH1BaF1KDH lFUjIT2tpogcsk7BCTUqPAUdvQr0qWq1f1xdVlMZ2tjLeU7aTlR+V7ei5Xj4pSjIcjJeVmUN47S KbH+GDayY8bOFhFK5LRYCUka6HW2WBgAa00Rq4ftPtNVvttYEukNmL+QK7t0BXzBf/SvKOR0WEQ sO0pFWZ21OTaTeyRedre730RY+M8RHa0HKSSqqg3pwFwM7+7TZaguYgNWEupbaXrHQbMR1l4DMY GFjhoPW5zsTu/pIgkay4/ohIqH1T2HbKRGkXf4gGALujSS8WFjQSj5cFQ== X-Received: by 2002:a05:600c:6085:b0:488:b239:77ec with SMTP id 5b1f17b1804b1-488b2397962mr75721495e9.17.1775541979187; Mon, 06 Apr 2026 23:06:19 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e4f5294sm43910633f8f.35.2026.04.06.23.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2026 23:06:18 -0700 (PDT) Date: Tue, 7 Apr 2026 06:06:17 +0000 From: Bertrand Drouvot To: Andres Freund 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 Mon, Apr 06, 2026 at 09:25:46AM -0400, Andres Freund wrote: > 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. Yeah, that's another option but I see it as an extra step if the patched version still time out. Currently we know for sure that some tests will time out so I thought that was more use friendly to try to prevent that in the first place and use the multiplier if it's still not enough for any reasons. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com