pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: TAP testing for psql's tab completion code
Date: Sun, 29 Dec 2019 12:13:42 -0500
Message-ID: <28327.1577639622@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.21.1912290748020.889@pseudo>
References: <10967.1577562752@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912282212060.24861@pseudo>
	<7904.1577573534@sss.pgh.pa.us>
	<alpine.DEB.2.21.1912290748020.889@pseudo>

Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> on the machines I have handy, the only one in which [Expect] appears in the 
>> default Perl installation is macOS.  (Huh, what's Apple doing out ahead 
>> of the pack?)  I'm pretty sure that Expect also relies on IO::Pty,

> Indeed, it does.

>> so it's a strictly worse dependency than what I've got here.

> If you have to install IO::Pty anyway, ISTM you can also install Expect.

My point is precisely that buildfarm owners *won't* have to install
IO::Pty; it comes in a default Perl install almost everywhere.
I'm afraid that's not true of Expect.

Now in both cases we could avoid raising the bar by allowing the
script to "skip" if the module isn't there.  But I think we'd end up
with less coverage if we do that with Expect than with IO::Pty.

> IO::Pty documentation says that it is "mainly used by Expect", which is a 
> clue that IO::Pty is not much better than Expect as a dependency.

You're just guessing, not looking at facts on the ground.  I have looked
at RHEL, Fedora, Debian, FreeBSD, NetBSD, and OpenBSD.  The only one
in which IO::Pty isn't in the standard Perl install is OpenBSD.

Well, actually, it's possible that on some of these boxes it was pulled
in by the IPC::Run package, as I have that installed on all of them.
But the point remains the same: almost nowhere will IO::Pty be a new
dependency for a buildfarm owner, whereas Expect will be a new dependency
almost everywhere.

(One reason I'm interested to push this sooner not later is to find
out what fraction of the TAP-test-running buildfarm critters do have
IO::Pty already.  If it turns out not to be almost all of them, then
my assumptions are wrong and we could revisit this discussion.)

> For installation, "apt install libexpect-perl" did the trick for me. "cpan 
> install Expect" should work as well on most setup.

I'm well aware of the mechanisms for installing nonstandard Perl modules,
thanks.  It's a pain, as a general rule.  The fact that the buildfarm
requires IPC::Run is a large barrier to entry, and I don't want to double
the pain by adding a second far-off-the-beaten-track dependency.

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <28327.1577639622@sss.pgh.pa.us>
Permalink:  ../28327.1577639622@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28327.1577639622@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr
  Subject: Re: TAP testing for psql's tab completion code
  In-Reply-To: <28327.1577639622@sss.pgh.pa.us>
  References: <10967.1577562752@sss.pgh.pa.us> <alpine.DEB.2.21.1912282212060.24861@pseudo> <7904.1577573534@sss.pgh.pa.us> <alpine.DEB.2.21.1912290748020.889@pseudo> <28327.1577639622@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox