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 1vdGJK-00G0T9-1J for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 23:17:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdGJH-00Aulq-26 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 23:17:56 +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 1vdGJG-00Aulh-2y for pgsql-hackers@lists.postgresql.org; Tue, 06 Jan 2026 23:17:56 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdGJG-004bnz-00 for pgsql-hackers@postgresql.org; Tue, 06 Jan 2026 23:17:54 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 14E481D00129; Tue, 6 Jan 2026 18:17:52 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 06 Jan 2026 18:17:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding: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=1767741471; x=1767827871; bh=kvOibWH46DJNBw0c9NmHPweGhgdJfudcb7tjAONadlE=; b= GSGL/dA407nQS2mILhcP1rDwyQECIJ38KYOqdACqlmyV71c0OtlHULv+fKP8SlB/ jT4BkIhW7BOuWWFtCHkAKkcUQkNTgnX8P7dSXzBgT/e2Qm1LtiZbeBynCkET61RY RlsoWZwgkLt36V9CVioJ34JvMotsKRqQkJWAGRkRtFXd5WuuYqM1m3uL/GeL8X+E wCfvu0PUpmOV0o5y/arusGu2Yo7xhV8/7Gp1kSmJt2ERAWw6S7J4Q8ZBV2v2QH/L xBDG7RVac5dqe3gv/k9qocUYsqNdQakBacVEIFLHM+jXfnUPX4+P6z037Yn0fsuK 3U7G41088phMO0+oKmi3Mw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1767741471; x= 1767827871; bh=kvOibWH46DJNBw0c9NmHPweGhgdJfudcb7tjAONadlE=; b=O 0LCx1g3ZOqfUmgJ7lIKnPLAwU0LzX5kiIrOuxsy3hUSxLybkAnwp/mhcGjtSkk3Q 7jZCsHM9Te2wIFx374ulMUEtgps680AC3lFYpwNQXeqYwkL8klvL8FZmiKmCkUiS a51MofD4tpXQ057TbyrhIXSbcNRbWYI+Ni2cC0uu9+j+EvutuNluSuKcIb2O6sMu 2WeuGQP+3HgCCpmkRPPU1HjIvnBFO9ZQsonYhi1R91KMG5MSFdXvmUf27tMiDYJA dGnKa0ArT/RCu7hptpyZn/+lg9ROFHOqmEeOAiXXmL6MmyKZA9iekfxqXr8+fh0F NfFQOnaLjeZ36KveX1dhA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddutddugeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggugfgjsehtkefstddttdejnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedtleelvdfgjedvffeiueekfeeuleffhfegfffhgfffkeevueehieehhfei gffhvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepkedpmhhouggv pehsmhhtphhouhhtpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorh hgpdhrtghpthhtohepjhgrtghosgdrtghhrghmphhiohhnsegvnhhtvghrphhrihhsvggu sgdrtghomhdprhgtphhtthhopegshigrvhhuiiekudesghhmrghilhdrtghomhdprhgtph htthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepphho shhtghhrvghssehjvghlthgvfhdrnhhlpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvg hrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhg hhdrphgrrdhushdprhgtphhtthhopegurghnihgvlheshigvshhqlhdrshgv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jan 2026 18:17:50 -0500 (EST) Date: Tue, 6 Jan 2026 18:17:50 -0500 From: Andres Freund To: Jelte Fennema-Nio Cc: Jacob Champion , PostgreSQL Hackers , Robert Haas , Daniel Gustafsson , Tom Lane , Peter Eisentraut , Nazir Bilal Yavuz Subject: Re: RFC: adding pytest as a supported test framework Message-ID: References: <2302192.1718380169@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 Hi, On 2026-01-06 20:07:22 +0100, Jelte Fennema-Nio wrote: > On Mon Jan 5, 2026 at 9:19 PM CET, Jacob Champion wrote: > > On Wed, Dec 17, 2025 at 8:10 AM Andres Freund wrote: > > Before it gets too far away from me: note that I have not yet been > > able to get up to speed with the combined refactoring+feature patch > > that Jelte added in v3, and it's now up to v7, > > Attached is v8. It simplifies the Cirrus CI yaml, because the > dependencies are now baked into the images. I also removed the optional > dependency on uv. Meson/autoconf now simply search for pytest binary in > the .venv directory too. Devs can then choose if they want to populate > .venv with pip or uv. Finally, if the pytest binary cannot be found, > there's a fallback attempt to use `python -m pytest`. I'm somewhat sceptical that the .venv support should be introduced together with the rest of this. > > > > -SUBDIRS = perl postmaster regress isolation modules authentication recovery subscription > > > > +SUBDIRS = \ > > > > + authentication \ > > > > + isolation \ > > > > + modules \ > > > > + perl \ > > > > + postmaster \ > > > > + pytest \ > > > > + recovery \ > > > > + regress \ > > > > + subscription > > > > > > I'm onboard with that, but we should do it separately and probably check for > > > other cases where we should do it at the same time. > > > > I'm not sure what context this is referring to? What are you on board with? > > If I understood Andres correctly this was about splitting the items > across multiple lines. Yep. > I moved this to a separate thread, and it was > cammitted by Michael in 9adf32da6b. So this has been resolved afaik. Yay. > > > I think it'd be a seriously bad idea to start with no central infrastructure, > > > we'd be force to duplicate that all over. > > > > Right, I just want central infra to be pulled out of the new tests > > that need them rather than the other way around. > I'm not sure how you expect that to work in practice. I believe (and I > think Andres too) that there's some infra that we already know we'll > need for many tests, e.g. starting/stopping nodes, running queries, > handling errors. Yes, I do indeed agree with that. > I don't think it makes sense to have those be pulled > out of new tests. You need some basics, otherwise no-one will want to > write tests. And even if they do, everyone ends up with different styles > of doing basic things. I'd rather coordinate on a bit of style upront so > that tests behave similarly for common usages. Indeed. I'm fairly fundamentally opposed to merging any of this without first having developed the basic infrastructure. Greetings, Andres Freund