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 1wASsp-002PPs-17 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 13:23: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 1wASsn-007GLg-0N for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 13:23:49 +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 1wASsm-007GLW-2E for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 13:23:49 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wASsk-00000001DsS-2HiM for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 13:23:47 +0000 Received: by mail-qk1-x743.google.com with SMTP id af79cd13be357-8d4ba1518afso95462985a.0 for ; Wed, 08 Apr 2026 06:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20251104.gappssmtp.com; s=20251104; t=1775654625; x=1776259425; darn=lists.postgresql.org; h=in-reply-to:autocrypt:content-language:from:references:cc:to :subject:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=zbXTdwUFlfNLUKVjARiA2+V0Pv+zZmsA5CXM98gxAbc=; b=nH8M97aaTV8YJ6cYO4LzjGB13hWDsemcxNMvBUluIq4CLZ1r1K/oDBk4933PslySV3 dRYISvvFfNX+/F6O83QogTtbnum11WMytkd36V4eE1qhtNSdRLhASxvnJPkCCyW+eTiZ vCwEDXTp88IqhvhH5c433C4WnhjIR5gXr4Fch4y9bRT0SX8h0nIf7FjvWihVtakak+sQ /30bGAMfAuIdvfVlDk6VxW2Z9OfyaH7XAPvpRKge/It7xRFf4pCe4SNZ6lZtN2gFo6WX Ad5XtXVPJBLTF+x8D4/Ao9RX3rxpGv5nQOTjzTKVXoA7MMhbFuGKxwndaOoEfXKAVUB2 Bw4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775654625; x=1776259425; h=in-reply-to:autocrypt:content-language:from:references:cc:to :subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zbXTdwUFlfNLUKVjARiA2+V0Pv+zZmsA5CXM98gxAbc=; b=U/HDCmzfkDV8g5x7lRPPG9mTllNWuyTyCHDNddFsNH1LJ2JrPTQiIy1jAq/6QZC/0G YRwJ4EWG+7S6Lbz4FCbRC9D0qbXVSTue+yYZhNP7LrcaK+lQeaZPO2bRJbY116dXKGmv P05jY9gzlUc947cjBav2mLbEsECStOg2kRgNYoR3vX/UjN0Dvb4X0bPuPH61R7XIlzxn lHCLvSUwX0IWgY7lMK/U+9MicOKL1MOUMp9j2u5/EjY8ZmJq0zPyzxqA8PoKNDePjjj9 S59Z4HIvYBsrG4On2AHuGQqY6LTVcdtsmDWwveldKjMxq4MkwRNne0qS/I2vWNI6rmEn LLIQ== X-Gm-Message-State: AOJu0Yz57GMKYaim7eJSZWsqSmEShkrxL959fGVfsJN5gd0BEjfS8Sox NPfbkmYORX2cvtEf8TlKTGeVAAdlpu2Td7rS+fASQCq4kaQe8K9ICm1b0JbNYu+5BBk= X-Gm-Gg: AeBDietrdQAin/F9lkhp/3SNR3NxhNlSAK4BdqGFYXEBk2GyP/cA9bwfLN24X40STNq jeCxpLCWsU7B/nolwzVXyu2KLyeMtptxwYzczXQXLKU2Tveh4D3BulvqGuNxbsnl2QNVQOjRSuX yB/tnOtsSNxjvZMx+LSppjl4is8aZWGSpsbl5CF6QIN9JSktWhNgWd1QZKWDiOZzkURFbv5hnzo zeETbA3NyMGqFmK+dLTlnHLyYq9Tq7RLZXunIeAcJSmbFiaLJKn9oE/crA3oVBdZhPOzNSPddE+ RpOK8jwDjpfT91wawOLcdd+fzYqX6r3GrWukzI1qWJG0flBy/8UYEDxfnj6nxX0kaFnjKFP0bA0 1PD6AR0nAHdxcj/eElja0Sz0h3ipDOqW+qBKXhzsyw9yipA/JYRdjpRAzb5vFuYivvRNhnlIMeb kbbeY4v3Vmka99dUCNs59bGa0omN9wCw== X-Received: by 2002:a05:6214:c85:b0:8a4:b884:886f with SMTP id 6a1803df08f44-8a703939adamr286721116d6.9.1775654624801; Wed, 08 Apr 2026 06:23:44 -0700 (PDT) Received: from ?IPV6:2605:a601:a6b0:500::1cb? ([2605:a601:a6b0:500::1cb]) by smtp.googlemail.com with ESMTPSA id 6a1803df08f44-8a5900d6db0sm171308136d6.0.2026.04.08.06.23.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2026 06:23:44 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------hBI9q0Ida2KqltcRQefO2DNp" Message-ID: <38d567be-344a-4128-ad3e-bc66d9e3103e@dunslane.net> Date: Wed, 8 Apr 2026 09:23:43 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BF client script runs src/test/modules TAP tests multiple times To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Robert Haas References: <2996768.1775624451@sss.pgh.pa.us> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptA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YhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNI2BQkd EODdAAoJEJn6f8tZ/DuBfw0IAKTsfD40teP/pp+bsLLMSxPXUYrrprTj7WFB5v61p6dkpSr/ qXmMlyahdxQFaPmfVgVirB1Vk/kHiWNnnGjfUV9nB2Zg9LI0Xb9/ts3LsUiRWXzG3tkMY6XL vsVOxW4XFRND9l2q+WW93aZ1DZl+fqWfYgMvsusFRhmGFOKTRfKPta2Pkv+AhA24N4+PrR5p bU4k2MO8PAGiK8eaYKGFG1bHKuAvoDoF7WXJ3FHxuWqLnKEt4dfOLm5pAe3zq1Lt6q8azT9i QWGpSAK5vQUWQHBHpiDjdPeqKZ6HiAXIIKfSmb+jrvXBqoP+D6/K7rUjG2aXiRtTIAXms9sm VRu7cmw= In-Reply-To: <2996768.1775624451@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------hBI9q0Ida2KqltcRQefO2DNp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2026-04-08 We 1:00 AM, Tom Lane wrote: > I spent some more time poking into why my buildfarm animals seemed > to have gotten markedly slower in the past month or so. One > particular inflection point was the introduction of test_plan_advice. > We knew that would be expensive, since it invokes an extra run of > the core regression tests. On my animal indri, which can do > install-check-C in about 10 or 11 seconds, you'd have expected that > to add ten-ish seconds to the total cycle time. But it added more > than 30 seconds. Investigation shows that what you'd guess from > simple arithmetic is the truth: the BF client script is invoking > that test *three times*. Once from make_misc_check, once from > make_testmodules_install_check with locale "C", and once from > make_testmodules_install_check with locale "en_US.utf8", since > that animal is set up with > locales => [ 'C', 'en_US.UTF-8' ], > > I do not think we need this. We should apply the same policy to > src/test/modules as we do to contrib, namely that TAP tests are > run just once during the "make check" phase, not during the "make > installcheck" phases. I've applied the attached to my animals > and it makes for a significant drop in cycle time. > > (I've not looked into whether the meson side has a similar issue.) > > Ok, I will try to rationalize this. cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------hBI9q0Ida2KqltcRQefO2DNp Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2026-04-08 We 1:00 AM, Tom Lane wrote:
I spent some more time poking into why my buildfarm animals seemed
to have gotten markedly slower in the past month or so.  One
particular inflection point was the introduction of test_plan_advice.
We knew that would be expensive, since it invokes an extra run of
the core regression tests.  On my animal indri, which can do
install-check-C in about 10 or 11 seconds, you'd have expected that
to add ten-ish seconds to the total cycle time.  But it added more
than 30 seconds.  Investigation shows that what you'd guess from
simple arithmetic is the truth: the BF client script is invoking
that test *three times*.  Once from make_misc_check, once from
make_testmodules_install_check with locale "C", and once from
make_testmodules_install_check with locale "en_US.utf8", since
that animal is set up with
	locales => [ 'C', 'en_US.UTF-8' ],

I do not think we need this.  We should apply the same policy to
src/test/modules as we do to contrib, namely that TAP tests are
run just once during the "make check" phase, not during the "make
installcheck" phases.  I've applied the attached to my animals
and it makes for a significant drop in cycle time.

(I've not looked into whether the meson side has a similar issue.)

			


Ok, I will try to rationalize this.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------hBI9q0Ida2KqltcRQefO2DNp--