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 1sIx3e-001XYR-Dw for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jun 2024 21:05:02 +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 1sIx3a-009sAa-IZ for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Jun 2024 21:04:59 +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 1sIx3a-009sAR-6O for pgsql-hackers@lists.postgresql.org; Sun, 16 Jun 2024 21:04:59 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sIx3Y-001e6G-BE for pgsql-hackers@postgresql.org; Sun, 16 Jun 2024 21:04:57 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a6ef8bf500dso416522466b.0 for ; Sun, 16 Jun 2024 14:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718571894; x=1719176694; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=thVFTLzQKpopLagOxhNWr4EMi4pthPYEOnHHgzAHmxs=; b=jYbZsoX8E9YYUgK+iV2qaHDijwFsF47upBqKbSBgGZCc/BW3o3RUATz6/oSi52Blnw NJAkoAZEvuoeAvImnjnbCFk+1hV84jgfLDaebdgM+dGLZwBdVc4pSbRRQ+qc3J9qeQEp SHunJ9e/2Sp4jhu9/w9zFMkq8XjZX+qNtA8BJaXyt+fSr/E9rPc8RXJ7E5YKbUaJ8kP/ vKMxiyl6SOttnHEjg3ibQIosIXl9xOAJOfn8905XokGgoDih1Od3moLnqHNVw1fkXrvo jDx2UFambZtWFNHt2Icrjp06SMGtOg1HjoqQcJof9ptrJGQ4SA9WIk5I5rkK5PT1IQQO TP5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718571894; x=1719176694; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=thVFTLzQKpopLagOxhNWr4EMi4pthPYEOnHHgzAHmxs=; b=qhJnHnQvbsEqmEa346+NWD93Yy6yheKIwF2TMK8iPDZ8KP4hp4zmAB5FIttzZmZEC4 IkAECrCLm5MJa6UMTK3ToCUbqjMj4uqeAYOba2iU5se+DcIgDhcryezn7ayrvhBObC3t yvuB8gr8Vo+9ndPI2lw62SP/bn+jcFaRG7g3WwtAFqzCW9fxqtW7Hzp+2az7KkkVDw8b AdXQTthzSlEkQ2TK4PXMnaFVOhyhBrJ0DrgIxLZYTRzVbLpn2486vqrkhBO0+tC17sEy 5BF6/GYrIT82tRO3GBzC/UhTwyakCVCnRRjY/HsN9qtzFWA9GxAdqI4AV3by58aF3WHA +o2Q== X-Forwarded-Encrypted: i=1; AJvYcCX51nPBpCUmS0XUFKvoysAEMMlSSOZ+pNkNsoK+EtKrEI5iw1ItnrBmgikY/CqNRBy7uS0oa/cocs04CIhZe5BFWiL0xRYrJ2nQL/Ra X-Gm-Message-State: AOJu0YySgbLgcQR5bCZJeqloNsiQ0ZrHMl6c0h2vdBaSM3b5GfBb46oi BLjiOVvqtwHScu8kQcoeEDl0IsRJBXLCoY6vOO8XGQUEiv5m3yUyHDds6ngn8EpTsKB/cN2NVVE yTzdVIz9T6ccoqOn0MQlSmQxWtGo= X-Google-Smtp-Source: AGHT+IHaU87GsOACFbCKbwxRmm36giiXc7O9MUG+akjmgN+dkt36ylZ7CioqVEv342cXarM7Ig2xZFyAN9ZcjVk9o3s= X-Received: by 2002:a17:906:1c09:b0:a6f:53a7:adb3 with SMTP id a640c23a62f3a-a6f60cefddemr535054666b.9.1718571894193; Sun, 16 Jun 2024 14:04:54 -0700 (PDT) MIME-Version: 1.0 References: <20240612155040.u6cvatdb5tiwcxci@awork3.anarazel.de> <2302192.1718380169@sss.pgh.pa.us> In-Reply-To: From: Robert Haas Date: Sun, 16 Jun 2024 17:04:41 -0400 Message-ID: Subject: Re: RFC: adding pytest as a supported test framework To: Melanie Plageman Cc: Greg Sabino Mullane , Jelte Fennema-Nio , Andrew Dunstan , Tom Lane , Jacob Champion , Daniel Gustafsson , Andres Freund , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jun 15, 2024 at 6:00=E2=80=AFPM Melanie Plageman wrote: > > Those young-uns are also the same group who hold their nose when coding= in C, and are always clamoring for rewriting Postgres in Rust. And before = that, C++. And next year, some other popular language that is clearly bette= r and more popular than C. > > Writing a new test framework in a popular language that makes it more > likely that more people will write more tests and test infrastructure > is such a completely different thing than suggesting we rewrite > Postgres in Rust that I feel that this comparison is unfair and, > frankly, a distraction from the discussion at hand. I don't really agree with this. We have been told before that we would attract more developers to our community if only we allowed backend code to be written in C++ or Rust, and that is not altogether a different thing than saying that we would attract more test developers if only we allowed test code to be written in Python or whatever. The difference is one of degree rather than of kind. We have a lot more backend code than we do test code, I'm fairly sure, and our tests are more self-contained: it's not *as* problematic if some tests are written in one language and others in another as it would be if different parts of the backend used different languages, and it wouldn't be *as* hard if at some point we decided we wanted to convert all remaining code to the new language. So, I have a much harder time imagining that we would start allowing a new language for backend code than that we would start allowing a new language for tests, but I don't think the issues are fundamentally different. But that said, I'm not sure the programming language is the real issue. If I really wanted to participate in an open source project, I'd probably be willing to learn a new programming language to do that. Maybe some people wouldn't, but I had to learn a whole bunch of them in college, and learning one more doesn't sound like the biggest of deals. But, would I feel respected and valued as a participant in that project? Would I have to use weird tools and follow arcane and frustrating processes? If I did, *that* would make me give up. I don't want to say that the choice of programming language doesn't matter at all, but it seems to me that it might matter more because it's a symptom of being unwilling to modernize things rather than for its own sake. --=20 Robert Haas EDB: http://www.enterprisedb.com