From: | Noah Misch <noah(at)leadboat(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, hlinnaka <hlinnaka(at)iki(dot)fi> |
Subject: | Re: Race condition in recovery? |
Date: | 2021-06-02 13:01:31 |
Message-ID: | 20210602130131.GB98498@rfd.leadboat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jun 01, 2021 at 04:45:52PM -0400, Robert Haas wrote:
> On Fri, May 28, 2021 at 2:05 AM Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote:
> > Agreed. I often annoyed by a long-lasting TAP script when I wanted to
> > do one of the test items in it. However, I was not sure which is our
> > policy here, consolidating all related tests into one script or having
> > separate scripts containing tests up to a "certain" number or a set of
> > tests that would take a certain time, or limiting by number the of
> > lines. I thought that we are on the first way as I have told several
> > times to put new tests into an existing script.
>
> Different people might have different opinions about this, but my
> opinion is that when it's possible to combine the test cases in a way
> that feels natural, it's good to do. For example if I have two tests
> that require the same setup and teardown but do different things in
> the middle, and if those things seem related, then it's great to set
> up once, try both things, and tear down once. However I don't support
> combining test cases where it's just concatenating them one after
> another, because that sort of thing seems to have no benefit. Fewer
> files in the source tree is not a goal of itself.
I agree, particularly for the recovery and subscription TAP suites. When one
of those tests fails on the buildfarm, it's often not obvious to me which log
messages are relevant to the failure. Smaller test files simplify the
investigation somewhat.
From | Date | Subject | |
---|---|---|---|
Next Message | Matthias van de Meent | 2021-06-02 13:03:41 | Re: pg_stat_progress_create_index vs. parallel index builds |
Previous Message | Joel Jacobson | 2021-06-02 12:46:08 | Re: security_definer_search_path GUC |