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.94.2) (envelope-from ) id 1tzhVe-005QA4-J7 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 19:42:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tzhVb-005qU1-9C for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Apr 2025 19:42:51 +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.94.2) (envelope-from ) id 1tzhVa-005qTs-9t for pgsql-hackers@lists.postgresql.org; Tue, 01 Apr 2025 19:42:50 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzhVX-002PDp-2l for pgsql-hackers@postgresql.org; Tue, 01 Apr 2025 19:42:49 +0000 Received: from phl-compute-13.internal (phl-compute-13.phl.internal [10.202.2.53]) by mailfhigh.stl.internal (Postfix) with ESMTP id A5DC925401B9; Tue, 1 Apr 2025 15:42:45 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-13.internal (MEProxy); Tue, 01 Apr 2025 15:42:45 -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=1743536565; x=1743622965; bh=X1KsqsOuMx kSGKliekibnDyU46Jmqn7Il2tevDUwSEY=; b=kbLoEaXnwFOXJsqweTcPkZofMJ 7SGvuzMccrxUlfTFOdenTL1P4nfhEryHCpF7wMsuu9FW7OMJiTzUhvbo0WtPZUI/ ApOea1pjA8KzGZoFoC+f++NjoNShRB0ibwdab1OmUR87QCW92ouesUaDCdMBjNEe G3+vGD+PUYOHYB5D2R1i6jaKl2REuiuIGHYgjlUzzaNMxYyp1eqCi6sT55CFMyix B8IzSfZlgu049fFWopaznfbaGtc7havZL81hU28ZeyHURQUEoOtfmtgMHI39L05f 0rxFnF0WYYyje4YbN8j19QRvTM/x5h8bYnJY+QkmB9auCWhcZH5vt4eB4blA== 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= 1743536565; x=1743622965; bh=X1KsqsOuMxkSGKliekibnDyU46Jmqn7Il2t evDUwSEY=; b=W+mAjOPLCcD7BlyunC5h47WO37P85RDm4Abv+yfBjcAw7tjj2I0 DXrIiO8GB+UtcIwYIBs36j6SikjlD/JLXqbtY1WhzUvLBMpCJBfkVqzVVbdjvF1W WeDTdiG67TbbVDCx1KcCNueHcrDdeVHFsMxojj7n8p8x8S2gq3R9MFb13/WHp7XX vNQnT8MI69CsSIWldafnYKHt3DQ//v42htBdwRY43HFjQ3gRtv01zOWDVlCqjDfg bOI6NrL+jpPu9lj3QNHPxRw0sSeEuZ7yi4IP1P7wP3STPyNKd8AlNHD/dHiJf8HT O2qFLNDvzsK8t1xexvXlDP9LQw4VrHPC7zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddukeefieehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdttddt vdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrg iivghlrdguvgeqnecuggftrfgrthhtvghrnhephfdthfefheeggfettedvfeeufeegvdfh geelkeeifeettdevvddtueetffeiueeknecuffhomhgrihhnpehpohhsthhgrhgvshhqlh drohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrnhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepfedpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtoheptghoohhkthessghlrggtkhguuhgtkhdrtgho mhdprhgtphhtthhopehnohgrhheslhgvrggusghorghtrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Apr 2025 15:42:45 -0400 (EDT) Date: Tue, 1 Apr 2025 15:42:44 -0400 From: Andres Freund To: pgsql-hackers@postgresql.org Cc: cookt@blackduck.com, Noah Misch Subject: TEMP_CONFIG vs test_aio 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, I just committed the tests for AIO, and unfortunately they (so far) fail on one buildfarm animal: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bumblebee&dt=2025-04-01%2018%3A55%3A01 The reason for the failure is simple, the buildfarm animal specifies io_method=io_uring (thanks to "cookt" for setting that up so quickly, whoever you are :)) and the test is assuming that the -c io_method=... it passes to initdb is actually going to be used, but it's overwritten by the TEMP_CONFIG. I had hardened the test, with some pain, against PG_TEST_INITDB_EXTRA_OPTS containing -c io_method=...: # Want to test initdb for each IO method, otherwise we could just reuse # the cluster. # # Unfortunately Cluster::init() puts PG_TEST_INITDB_EXTRA_OPTS after the # options specified by ->extra, if somebody puts -c io_method=xyz in # PG_TEST_INITDB_EXTRA_OPTS it would break this test. Fix that up if we # detect it. local $ENV{PG_TEST_INITDB_EXTRA_OPTS} = $ENV{PG_TEST_INITDB_EXTRA_OPTS}; if (defined $ENV{PG_TEST_INITDB_EXTRA_OPTS} && $ENV{PG_TEST_INITDB_EXTRA_OPTS} =~ m/io_method=/) { $ENV{PG_TEST_INITDB_EXTRA_OPTS} .= " -c io_method=$io_method"; } $node->init(extra => [ '-c', "io_method=$io_method" ]); But somehow I didn't think about TEMP_CONFIG. The reason that the test passes -c io_method= to initdb is that I want to ensure initdb passes with all the supported io_methods. That still happens with TEMP_CONFIG specified, it's just afterwards over-written. I could just append io_method=$io_method again after $node->init(), but then I couldn't verify that initdb actually ran with the to-be-tested io method. Does anybody have a good suggestion for how to fix this? The least bad idea I can think of is for the test to check if PostgreSQL::Test::Utils::slurp_file($ENV{TEMP_CONFIG}) contains the string io_method and to append the io_method again to the config if it does. But that seems rather ugly. Does anybody have a better idea? Greetings, Andres Freund