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 1sHV1l-008J1y-FQ for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 20:57:05 +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 1sHV1i-0070Ie-V1 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 20:57:03 +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 1sHV1i-0070IV-LL for pgsql-hackers@lists.postgresql.org; Wed, 12 Jun 2024 20:57:03 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sHV1g-0010sj-L0 for pgsql-hackers@postgresql.org; Wed, 12 Jun 2024 20:57:01 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5b97b5822d8so162574eaf.3 for ; Wed, 12 Jun 2024 13:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1718225820; x=1718830620; darn=postgresql.org; h=user-agent: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=tp+dflPt+PLSD/F0XHiIRD+MHRKyIZgKlKVRyi9Tu24=; b=X2j7CHzml8Tdw6+65ohKCzKEYOk1+Xs332HKjeYZYSlfhgfCdUDI6OtO+U6n7fM+Il W1YbkA4RHo+/oJVITRxhcMO3INYN61BYwgdU5l2uf8DO+R32fOjTKcOt5DT1J4s53wDa /f1Ng783UmeeBLkGw6JeusQbi7MUTuY7EPI7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718225820; x=1718830620; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tp+dflPt+PLSD/F0XHiIRD+MHRKyIZgKlKVRyi9Tu24=; b=pjME22A+DYnqfXb931W+zrUuemdynR+NJhU5AncKMwNxlCRYYPFWw9fP0Q5qXP8x6P TlvS3G9ZlUKKo24ATWdJMKzIioQt53wxSDumAD0VLJ4omjkRB5vFpl3ExSD7aqzJgAGc +nhIZ6XNoQeVCHEYCdrVHCuMqfJnelCvNiuSfbSkbK9umyA0/4M8Ki2prKiz/KlZ9AK3 SZTOga7iLh6SogRisoFdr3Uz82vpZhhnQQRdT6aWrbTmCNZJmTnC65qu4TJ5K+2jwkDg 7tsWEIArMXPoX+kuxty6cvlO29cSjYBklkAl55pLnX2Bd9IStoe3OeNxokolFtl3nSJH t6bA== X-Forwarded-Encrypted: i=1; AJvYcCW+UzXMfp51WevOtP2QEdQUWPCdnIjVNbbBs+uSqwlwDzZgUM7m7EtvomlQm+YyN3dQ+BjiqwmEt72pGgY5QM39DGILCb3LEwLyO88u X-Gm-Message-State: AOJu0YzCPY09YjMtVW5NxqKOho9l3BhCAPmCJwdYP5d9xi1DzdDDC0PV VAS6v4Pht3AmbZ13ayZEjymKwo0SwCXDx+vPKBE0pErQN2talkgRLJdnQQYOppwisHfagAv2LBU = X-Google-Smtp-Source: AGHT+IF+A7McqCjKjcK2owxQTWKTcHXcedxZGzMxTlgr9hyJBG/wnyHK/L0rTqqDLeMxxR88en2ghA== X-Received: by 2002:a05:6820:2b89:b0:5b9:de1d:38ef with SMTP id 006d021491bc7-5bb3baf5209mr2445578eaf.9.1718225819842; Wed, 12 Jun 2024 13:56:59 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5bae9f61bb1sm1369778eaf.19.2024.06.12.13.56.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2024 13:56:59 -0700 (PDT) Date: Wed, 12 Jun 2024 13:56:57 -0700 From: Noah Misch To: Jelte Fennema-Nio Cc: Andres Freund , Andrew Dunstan , Jacob Champion , PostgreSQL Hackers Subject: Re: RFC: adding pytest as a supported test framework Message-ID: <20240612205657.2c@rfd.leadboat.com> References: <20240610200411.byj6sv2vpgol6wcf@awork3.anarazel.de> <00c5efe6-1abb-42f8-a9a7-ed3a055c4b92@dunslane.net> <20240611014911.khxuai5fy2ssbmiw@awork3.anarazel.de> <20240611234829.9d@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jun 12, 2024 at 01:40:30PM +0200, Jelte Fennema-Nio wrote: > On Wed, 12 Jun 2024 at 01:48, Noah Misch wrote: > > I also want the initial scope to be the new language coexisting with the > > existing Perl tests. If a bulk translation ever happens, it should happen > > long after the debut of the new framework. That said, I don't much trust a > > human-written bulk language translation to go through without some tests > > accidentally ceasing to test what they test in Perl today. > > I definitely don't think we should rewrite all the tests that we have > in Perl today into some other language. But I do think that whatever > language we choose, that language should make it as least as easy to > write tests, as easy to read them and as easy to see that they are > testing the intended thing, as is currently the case for Perl. > Rewriting a few Perl tests into the new language, even if not merging > the rewrite, is a good way of validating that imho. Agreed. > PS. For PgBouncer I actually hand-rewrote all the tests that we had in > bash (which is the worst testing language ever) in Python and doing so > actually found more bugs in PgBouncer code that our bash tests > wouldn't catch. So it's not necessarily the case that you lose > coverage by rewriting tests. Yep.