Re: new tests post-feature freeze (was pgsql: Add TAP tests for pg_dump)

From: Noah Misch <noah(at)leadboat(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new tests post-feature freeze (was pgsql: Add TAP tests for pg_dump)
Date: 2016-05-23 03:22:18
Message-ID: 20160523032218.GD4184@gust
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 08, 2016 at 12:29:27PM -0400, Stephen Frost wrote:
> * Robert Haas (robertmhaas(at)gmail(dot)com) wrote:
> > My suggestion is that, from this point forward, we add new tests to
> > 9.6 only if they are closely related to a bug that is getting fixed or
> > a feature that is new in 9.6. I think that's a reasonable compromise,
> > but what do others think?

+1. This is a natural extension of the well-established default that we
(back-)patch tests for a bug into all releases getting a fix for the bug.

> I'm willing to accept that compromise, but I'm not thrilled with it due
> to what it will mean for the process I'm currently going through. The
> approach I've been using has been to add tests to gain more code
> coverage of the code in pg_dump. That has turned up multiple
> pre-existing bugs in pg_dump but the vast majority of the tests come
> back clean. This compromise would mean that I'd continue to work
> through the code coverage tests, but would have to segregate out and
> commit only those tests which actually reveal bugs, once those bugs have
> been fixed (as to avoid turning the buildfarm red). The rest of the
> tests would still get written, but since they currently don't reveal
> bugs, they would be shelved until development is opened for 9.7.

Some or even most of the other tests would qualify under "closely related to
... a feature that is new in 9.6". Your 9.6 pg_dump changes affected object
selection and catalog extraction for most object types, so I think validating
those paths is in scope under Robert's suggestion. Testing "pg_dump
--encoding" or "pg_dump --jobs" probably wouldn't fall in scope, because those
features operate at arm's length from the 9.6 pg_dump changes. Expanding, for
example, tests of postgres_fdw query deparse would certainly fall out of
scope. That would have no apparent chance of catching a regression caused by
the 9.6 pg_dump changes.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2016-05-23 04:03:22 Re: [sqlsmith] Failed assertion in parallel worker (ExecInitSubPlan)
Previous Message Tom Lane 2016-05-23 02:18:58 Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer