Re: Add regression tests for COLLATE

Lists: pgsql-hackers
From: Robins Tharakan <tharakan(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Add regression tests for COLLATE
Date: 2013-04-11 07:14:55
Message-ID: CAEP4nAwSD8cEqpGSY9e5pp5YWwJe66subvaK=FjJZLbF=Jt8UQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

Please find attached a patch to take 'make check' code-coverage of COLLATE
(/src/backend/commands/collationcmds) from 0% to 96%.

Any feedback is more than welcome. Also posting this to Commitfest-next.
--
Robins Tharakan

Attachment Content-Type Size
regress_collate_v1.patch application/octet-stream 5.7 KB

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-04-12 03:58:14
Message-ID: CAB7nPqQuDd1bZxER=46o09cjo9W0CZsyhCHjkM1PkxQ83903dA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Apr 11, 2013 at 4:14 PM, Robins Tharakan <tharakan(at)gmail(dot)com> wrote:

> Hi,
>
> Please find attached a patch to take 'make check' code-coverage of COLLATE
> (/src/backend/commands/collationcmds) from 0% to 96%.
>
> Any feedback is more than welcome. Also posting this to Commitfest-next.
>
Just by having a quick look at the patch, using object names of the type cX
is too generic even if the tests are done in a private schema. Why not
using a name like collate_obj_X or similar?
--
Michael


From: Robins Tharakan <tharakan(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-09 00:59:59
Message-ID: CAEP4nAw8s2K5bpzd_FCxAWNVq988wmf6wsbyHgEZ5+n5=E81Vg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

Please find attached the updated patch.

Fabien pointed out that currently does not check for non-trivial locales. I
am still on the learning curve about LOCALEs and so, let me know if this is
a show-stopper. I guess I could look at it and get back in some time with
more tests as Fabien points out.

(Apologies for the delay though. An update to the patch was mostly done
back in April, but since most of the other Code-Coverage patches
(SCHEMA/ROLE/etc.) had no other feedback, I worked on all of them together
just this week).

--
Robins Tharakan

On 12 April 2013 09:28, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> wrote:

>
>
>
> On Thu, Apr 11, 2013 at 4:14 PM, Robins Tharakan <tharakan(at)gmail(dot)com>wrote:
>
>> Hi,
>>
>> Please find attached a patch to take 'make check' code-coverage of
>> COLLATE (/src/backend/commands/collationcmds) from 0% to 96%.
>>
>> Any feedback is more than welcome. Also posting this to Commitfest-next.
>>
> Just by having a quick look at the patch, using object names of the type
> cX is too generic even if the tests are done in a private schema. Why not
> using a name like collate_obj_X or similar?
> --
> Michael
>

Attachment Content-Type Size
regress_collate_v2.patch application/octet-stream 6.4 KB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-09 02:14:15
Message-ID: 6832.1368065655@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robins Tharakan <tharakan(at)gmail(dot)com> writes:
> Fabien pointed out that currently does not check for non-trivial locales. I
> am still on the learning curve about LOCALEs and so, let me know if this is
> a show-stopper. I guess I could look at it and get back in some time with
> more tests as Fabien points out.

You really can't, because there is no guarantee that any given machine
will have anything except "C" and "POSIX". But there's another problem:
I believe this test will fail on any machine where the database is
created with an encoding different from UTF8, because that encoding is
named in some of the error messages in the expected output.

This stuff is not easy to test in a portable way.

regards, tom lane


From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-09 06:35:59
Message-ID: alpine.DEB.2.02.1305090825570.1923@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> Fabien pointed out that currently does not check for non-trivial locales.

Indeed, but although it was not very from my point (my wish), and as
pointed out by Tom, it is not quite possible to test non trivial locales
because you cannot assume that a given locale is available on any test
machine.

Maybe some tests could be applied under some condition, say a given locale
is indeed available, but ISTM that it would require to change the test
infrastructure in a portable way to add such feature.

--
Fabien.


From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-09 07:19:39
Message-ID: alpine.DEB.2.02.1305090910360.1923@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> Maybe some tests could be applied under some condition, say a given locale is
> indeed available, but ISTM that it would require to change the test
> infrastructure in a portable way to add such feature.

I just noticed that there is a "src/test/locale" directory with some stuff
about german, greek and korean, so ISTM that the infrastructure is there,
and could be populated with other locales, especially something with UTF8
which is quite commonplace, would be nice.

However, it is not clear whether these tests run automatically or only if
they are explicitely called. The README seems to suggest that it is the
later. If so, maybe having them invoked automatically if possible would
ensure that they are run from time to time.

--
Fabien.


From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-09 11:45:44
Message-ID: CAB7nPqRdabGCb3U2huEP_GK=6JpBrbK36iUvSt6Tagq-RtOh8w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, May 9, 2013 at 4:19 PM, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> wrote:

> However, it is not clear whether these tests run automatically or only if
> they are explicitely called. The README seems to suggest that it is the
> later. If so, maybe having them invoked automatically if possible would
> ensure that they are run from time to time.
>
Only isolation and regress are run automatically inside the buildfarm.
--
Michael


From: Robins Tharakan <tharakan(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Add regression tests for COLLATE
Date: 2013-05-10 01:27:35
Message-ID: CAEP4nAwXU=5cWCXxXTTftBTS-672qGf=9_8LR1nxd8MU26EskA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

One workaround is to use DROP COLLATION IF EXISTS, that conveys the message
without UTF8 in the message string.

But three other tests use ALTER COLLATION and I see no way but to comment /
disable them. Currently have them disabled (with comments as to what they
do, and why they're disabled).

This updated patch doesn't have UTF8 string anywhere.
Let me know if you prefer to remove the commented out tests completely.

--
Robins Tharakan

On 9 May 2013 07:44, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Robins Tharakan <tharakan(at)gmail(dot)com> writes:
> > Fabien pointed out that currently does not check for non-trivial
> locales. I
> > am still on the learning curve about LOCALEs and so, let me know if this
> is
> > a show-stopper. I guess I could look at it and get back in some time with
> > more tests as Fabien points out.
>
> You really can't, because there is no guarantee that any given machine
> will have anything except "C" and "POSIX". But there's another problem:
> I believe this test will fail on any machine where the database is
> created with an encoding different from UTF8, because that encoding is
> named in some of the error messages in the expected output.
>
> This stuff is not easy to test in a portable way.
>
> regards, tom lane
>

Attachment Content-Type Size
regress_collate_v3.patch application/octet-stream 7.7 KB
unknown_filename text/plain 158 bytes

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Robins Tharakan <tharakan(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 16:36:26
Message-ID: CA+TgmobeYFaNmiWeFEGBQCtqRxy7ckC11vZs9CLTzc_=4oVK2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, May 9, 2013 at 9:27 PM, Robins Tharakan <tharakan(at)gmail(dot)com> wrote:
> One workaround is to use DROP COLLATION IF EXISTS, that conveys the message
> without UTF8 in the message string.
>
> But three other tests use ALTER COLLATION and I see no way but to comment /
> disable them. Currently have them disabled (with comments as to what they
> do, and why they're disabled).
>
> This updated patch doesn't have UTF8 string anywhere.
> Let me know if you prefer to remove the commented out tests completely.

I did remove those, plus made some other cleanups, and committed this.
I think that there's now some duplication between this and the
collate.linux.utf8 test that should be cleaned up by removing the
duplicative stuff from that test, assuming this holds up OK when the
buildfarm - and other developers - test it out. Could you prepare a
patch towards that end?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 17:11:00
Message-ID: 19785.1372871460@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I did remove those, plus made some other cleanups, and committed this.
> I think that there's now some duplication between this and the
> collate.linux.utf8 test that should be cleaned up by removing the
> duplicative stuff from that test, assuming this holds up OK when the
> buildfarm - and other developers - test it out.

I don't even need to test it:

regression=# CREATE COLLATION collate_coll2 FROM "C";
ERROR: nondefault collations are not supported on this platform

Please revert.

regards, tom lane


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 17:26:42
Message-ID: CA+Tgmoa7PiT9GkqyNVB_igyDJaug-UrZqov0LjNsXfiz32_X3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jul 3, 2013 at 1:11 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> I did remove those, plus made some other cleanups, and committed this.
>> I think that there's now some duplication between this and the
>> collate.linux.utf8 test that should be cleaned up by removing the
>> duplicative stuff from that test, assuming this holds up OK when the
>> buildfarm - and other developers - test it out.
>
> I don't even need to test it:
>
> regression=# CREATE COLLATION collate_coll2 FROM "C";
> ERROR: nondefault collations are not supported on this platform
>
> Please revert.

OK, sure, but just for my education and general enlightenment ... what
platform is that?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 17:29:18
Message-ID: CA+TgmobHsOKUsOiiQjV9bw8T2n63LbusbOgKn1dhLkz-Nh3AEQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jul 3, 2013 at 1:26 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> Please revert.
>
> OK, sure, but just for my education and general enlightenment ... what
> platform is that?

Ah, never mind. I see that the buildfarm is quickly turning red -
NetBSD, OmniOS, and HP/UX are all unhappy.

I think that's a killer blow for this particular patch. I'm going to
set this to rejected in the CF app.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 17:32:58
Message-ID: 20130703173258.GE5667@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 2013-07-03 13:29:18 -0400, Robert Haas wrote:
> On Wed, Jul 3, 2013 at 1:26 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> >> Please revert.
> >
> > OK, sure, but just for my education and general enlightenment ... what
> > platform is that?
>
> Ah, never mind. I see that the buildfarm is quickly turning red -
> NetBSD, OmniOS, and HP/UX are all unhappy.
>
> I think that's a killer blow for this particular patch. I'm going to
> set this to rejected in the CF app.

Can't we use a alternative expected file for those?

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 17:38:13
Message-ID: 20683.1372873093@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> On 2013-07-03 13:29:18 -0400, Robert Haas wrote:
>> I think that's a killer blow for this particular patch. I'm going to
>> set this to rejected in the CF app.

> Can't we use a alternative expected file for those?

Alternative expected files are a PITA to maintain, at least for
committers who don't have a platform that can reproduce the alternative
behavior. If this test were of somewhat higher value I'd be in favor of
fixing it that way, but given that it's been seriously constrained by
the portability issues that were already considered, I'm not sure it's
worth our trouble. (There's also no very strong reason to believe that
we found out all the remaining portability issues. Maybe we should have
left it in there for a day, just to see if the buildfarm would show any
other symptoms besides this one.)

regards, tom lane


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 18:17:20
Message-ID: CA+TgmobP8C4DtXuK=ENawZQ3FHojMTQ-W47xHPt4gu384PHiHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jul 3, 2013 at 1:38 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Andres Freund <andres(at)2ndquadrant(dot)com> writes:
>> On 2013-07-03 13:29:18 -0400, Robert Haas wrote:
>>> I think that's a killer blow for this particular patch. I'm going to
>>> set this to rejected in the CF app.
>
>> Can't we use a alternative expected file for those?
>
> Alternative expected files are a PITA to maintain, at least for
> committers who don't have a platform that can reproduce the alternative
> behavior. If this test were of somewhat higher value I'd be in favor of
> fixing it that way, but given that it's been seriously constrained by
> the portability issues that were already considered, I'm not sure it's
> worth our trouble. (There's also no very strong reason to believe that
> we found out all the remaining portability issues. Maybe we should have
> left it in there for a day, just to see if the buildfarm would show any
> other symptoms besides this one.)

I agree. I think it'd be a good idea to get the buildfarm to run the
existing collate.utf8.linux test regularly on platforms where it
passes, but this particular approach is valuable mostly because
(supposedly) it was going to work everywhere. However, it doesn't.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 19:00:11
Message-ID: 20130703190011.GF3592@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas escribió:

> I agree. I think it'd be a good idea to get the buildfarm to run the
> existing collate.utf8.linux test regularly on platforms where it
> passes,

+1

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-03 19:16:34
Message-ID: 51D47892.70508@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 07/03/2013 03:00 PM, Alvaro Herrera wrote:
> Robert Haas escribió:
>
>> I agree. I think it'd be a good idea to get the buildfarm to run the
>> existing collate.utf8.linux test regularly on platforms where it
>> passes,
> +1
>

I can probably whip up a module for it. (I created the buildfarm module
system so people could create their own addons, but sadly nobody seems
to have risen to the bait.)

cheers

andrew


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-05 23:44:31
Message-ID: 51D75A5F.2050008@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 07/03/2013 03:16 PM, Andrew Dunstan wrote:
>
> On 07/03/2013 03:00 PM, Alvaro Herrera wrote:
>> Robert Haas escribió:
>>
>>> I agree. I think it'd be a good idea to get the buildfarm to run the
>>> existing collate.utf8.linux test regularly on platforms where it
>>> passes,
>> +1
>>
>
> I can probably whip up a module for it. (I created the buildfarm
> module system so people could create their own addons, but sadly
> nobody seems to have risen to the bait.)
>

See
<https://github.com/PGBuildFarm/client-code/blob/626a537034f89022b133badf6093ba243f6072aa/PGBuild/Modules/TestCollateLinuxUTF8.pm>

I have added it to crake's set of modules to run, See
<http://www.pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=crake&dt=2013-07-05%2023%3A26%3A17&stg=FileTextArrayFDW-installcheck-en_US.utf8>,
and it will be in the next buildfarm client release.

cheers

andrew


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)2ndquadrant(dot)com>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-05 23:47:28
Message-ID: 51D75B10.9060803@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 07/05/2013 07:44 PM, Andrew Dunstan wrote:
>
> On 07/03/2013 03:16 PM, Andrew Dunstan wrote:
>>
>> On 07/03/2013 03:00 PM, Alvaro Herrera wrote:
>>> Robert Haas escribió:
>>>
>>>> I agree. I think it'd be a good idea to get the buildfarm to run the
>>>> existing collate.utf8.linux test regularly on platforms where it
>>>> passes,
>>> +1
>>>
>>
>> I can probably whip up a module for it. (I created the buildfarm
>> module system so people could create their own addons, but sadly
>> nobody seems to have risen to the bait.)
>>
>
>
> See
> <https://github.com/PGBuildFarm/client-code/blob/626a537034f89022b133badf6093ba243f6072aa/PGBuild/Modules/TestCollateLinuxUTF8.pm>
>
> I have added it to crake's set of modules to run, See
> <http://www.pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=crake&dt=2013-07-05%2023%3A26%3A17&stg=FileTextArrayFDW-installcheck-en_US.utf8>,
> and it will be in the next buildfarm client release.

Er I meant
<http://www.pgbuildfarm.org/cgi-bin/show_stage_log.pl?nm=crake&dt=2013-07-05%2023%3A26%3A17&stg=install-check-collate-en_US.utf8>

cheers

andrew


From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-05 23:56:48
Message-ID: 20130705235648.GA15764@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 2013-07-03 14:17:20 -0400, Robert Haas wrote:
> I agree. I think it'd be a good idea to get the buildfarm to run the
> existing collate.utf8.linux test regularly on platforms where it
> passes, but this particular approach is valuable mostly because
> (supposedly) it was going to work everywhere. However, it doesn't.

Hm. What about extending the existing resultmap logic to make that
possible in general? E.g. don't run the test if a file is mapped to an
empty expected file.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-06 13:12:15
Message-ID: CA+TgmoY_52_utCx=XOXPeGKBodz1+dAAgM2aOje=kDS8fd21Lw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jul 5, 2013 at 6:56 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> On 2013-07-03 14:17:20 -0400, Robert Haas wrote:
>> I agree. I think it'd be a good idea to get the buildfarm to run the
>> existing collate.utf8.linux test regularly on platforms where it
>> passes, but this particular approach is valuable mostly because
>> (supposedly) it was going to work everywhere. However, it doesn't.
>
> Hm. What about extending the existing resultmap logic to make that
> possible in general? E.g. don't run the test if a file is mapped to an
> empty expected file.

Not a bad thought.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-06 13:27:53
Message-ID: 51D81B59.3040200@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On 07/06/2013 09:12 AM, Robert Haas wrote:
> On Fri, Jul 5, 2013 at 6:56 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>> On 2013-07-03 14:17:20 -0400, Robert Haas wrote:
>>> I agree. I think it'd be a good idea to get the buildfarm to run the
>>> existing collate.utf8.linux test regularly on platforms where it
>>> passes, but this particular approach is valuable mostly because
>>> (supposedly) it was going to work everywhere. However, it doesn't.
>> Hm. What about extending the existing resultmap logic to make that
>> possible in general? E.g. don't run the test if a file is mapped to an
>> empty expected file.
> Not a bad thought.
>

Or maybe just invent a magic result file name such as "none" or
"do_not_run".

I'm not keen to have us build up a large patchwork of regression tests
that run on some platforms and not on others, though.

cheers

andrew


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robins Tharakan <tharakan(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add regression tests for COLLATE
Date: 2013-07-15 03:12:19
Message-ID: CA+TgmoZL7P-qcmR36sMqBUz+-LZUHFx0u4mSSeoXYyvFqESuCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jul 6, 2013 at 9:27 AM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Or maybe just invent a magic result file name such as "none" or
> "do_not_run".
>
> I'm not keen to have us build up a large patchwork of regression tests that
> run on some platforms and not on others, though.

Me, neither. But I don't really see a plausible alternative in this
particular case, since we're trying to test a feature that only works
in the presence of specific platform support. I don't think that
having no buildfarm testing of collation support is better.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company