Re: Windows Vista support (Buildfarm Vaquita)

Lists: pgsql-hackers
From: Dave Page <dpage(at)postgresql(dot)org>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 08:21:59
Message-ID: 464184A7.1030300@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

I asked about this before, but the thread got hijacked to discuss
another buildfarm failure :-(. Currently our only Windows Vista
buildfarm member (Vaquita) fails every time (assuming it gets that far)
on ECPG's dt_test and update tests.

I've checked the FS permissions, and see no obvious reason why the tests
would fail, and I've tried running the tests manually and see them fail
as well.

Can someone suggest what I might try next to resolve this? I don't
really have the spare time to spend figuring out ECPG at the moment.

http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=vaquita&dt=2007-05-07%2020:00:05

Regards, Dave.


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 09:01:17
Message-ID: 20070509090117.GA18105@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 09, 2007 at 09:21:59AM +0100, Dave Page wrote:
> I asked about this before, but the thread got hijacked to discuss
> another buildfarm failure :-(. Currently our only Windows Vista
> buildfarm member (Vaquita) fails every time (assuming it gets that far)
> on ECPG's dt_test and update tests.

Dave, could you please run

insert into date_test ( d , ts ) values ( date '1966-01-17' ,
timestamp '2000-07-12 17:34:29' );

on the Vista system and then select * from date_test;?

According to the logs the insert runs successfully but the select gives
an invalid date format. Interestingly the date argument is displayed
correctly but the timestamp argument throws the invalid date error,
which does not really make sense.

Unfortunately I do not have access to a Vista system I could use to test
and track this one down.

As far as the other message is concerned I'm at a loss. It simply
refuses to run the sql/update script. No idea why.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


From: Dave Page <dpage(at)postgresql(dot)org>
To: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 11:46:52
Message-ID: 4641B4AC.40600@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Michael Meskes wrote:
> Dave, could you please run
>
> insert into date_test ( d , ts ) values ( date '1966-01-17' ,
> timestamp '2000-07-12 17:34:29' );
>
> on the Vista system and then select * from date_test;?
>
> According to the logs the insert runs successfully but the select gives
> an invalid date format. Interestingly the date argument is displayed
> correctly but the timestamp argument throws the invalid date error,
> which does not really make sense.

I had to create the table manually of course, so copying what the code
seems to do, I get:

regress1=# create table date_test (d date, ts timestamp);
CREATE TABLE
regress1=# set datestyle to iso;
SET
regress1=# insert into date_test(d, ts) values (date '1966-01-17',
timestamp '2000-07-12 17:34:29');
INSERT 0 1
regress1=# select * from date_test;
d | ts
------------+---------------------
1966-01-17 | 2000-07-12 17:34:29
(1 row)

Which looks OK to me :-(

> Unfortunately I do not have access to a Vista system I could use to test
> and track this one down.

I'm happy to run any tests you like.

> As far as the other message is concerned I'm at a loss. It simply
> refuses to run the sql/update script. No idea why.

Oh, hang on... Vista's new 'security' features include popups that ask
permission from the user before running any installers. One of the more
basic checks they use is the filename - *anything* called setup.exe will
cause user confirmation to be required before it will run. I believe for
non-interactive sessions it'll just refuse to run. I just tried running
update.exe myself, and yes, you guessed it, a user confirmation dialog
popped up :-(

Can we rename the test please?

Regards, Dave.


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Dave Page <dpage(at)postgresql(dot)org>, meskes(at)postgresql(dot)org
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 12:20:44
Message-ID: 200705091420.45255.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Am Mittwoch, 9. Mai 2007 13:46 schrieb Dave Page:
> Can we rename the test please?

I'm thinking no. Brain-dead systems should produce brain-dead test results.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Dave Page <dpage(at)postgresql(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, meskes(at)postgresql(dot)org
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 12:23:30
Message-ID: 4641BD42.7090602@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut wrote:
> Am Mittwoch, 9. Mai 2007 13:46 schrieb Dave Page:
>> Can we rename the test please?
>
> I'm thinking no. Brain-dead systems should produce brain-dead test results.
>

And that helps us how exactly, on what will probably be the most widely
used OS in the world within a few years?

Regards, Dave.


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Dave Page <dpage(at)postgresql(dot)org>, meskes(at)postgresql(dot)org
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 12:40:24
Message-ID: 4641C138.4040703@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut wrote:
> Am Mittwoch, 9. Mai 2007 13:46 schrieb Dave Page:
>
>> Can we rename the test please?
>>
>
> I'm thinking no. Brain-dead systems should produce brain-dead test results.
>
>

Not doing this would seem like sheer bloody-mindedness. We have
workarounds for craziness on many systems. Not providing for this will
mean that we have to disable the ECPG tests for Vista. I don't see how
that helps anyone.

More seriously, we need to get the ECPG regression test rewritten in C,
as was done for the main line regression tests. Maybe we need to factor
out some of that into a library so the common code can be used in both
programs. At any rate, until this is done we can't run the ECPG tests on
MSVC builds.

cheers

andrew


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Dave Page <dpage(at)postgresql(dot)org>, meskes(at)postgresql(dot)org
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 12:52:20
Message-ID: 20070509125220.GB14957@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 09, 2007 at 08:40:24AM -0400, Andrew Dunstan wrote:
>
>
> Peter Eisentraut wrote:
> >Am Mittwoch, 9. Mai 2007 13:46 schrieb Dave Page:
> >
> >>Can we rename the test please?
> >>
> >
> >I'm thinking no. Brain-dead systems should produce brain-dead test
> >results.
> >
> >
>
> Not doing this would seem like sheer bloody-mindedness. We have
> workarounds for craziness on many systems. Not providing for this will
> mean that we have to disable the ECPG tests for Vista. I don't see how
> that helps anyone.

Agreed.

> More seriously, we need to get the ECPG regression test rewritten in C,
> as was done for the main line regression tests. Maybe we need to factor
> out some of that into a library so the common code can be used in both
> programs. At any rate, until this is done we can't run the ECPG tests on
> MSVC builds.

IIRC, Joachim has at least started work on that. (Unrelated to vista - ecpg
tests are broken on both mingw and msvc for vista)

//Magnus


From: Ned Lilly <ned(at)nedscape(dot)com>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: PostgreSQL wants to install, cancel or allow? (was Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 12:55:23
Message-ID: 4641C4BB.50403@nedscape.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 5/9/2007 7:46 AM Dave Page wrote:

> Oh, hang on... Vista's new 'security' features include popups that ask
> permission from the user before running any installers. One of the more
> basic checks they use is the filename - *anything* called setup.exe will
> cause user confirmation to be required before it will run. I believe for
> non-interactive sessions it'll just refuse to run. I just tried running
> update.exe myself, and yes, you guessed it, a user confirmation dialog
> popped up :-(

You can just disable that "feature" by turning off "User Account Control" under the Windows Security Center...


From: Dave Page <dpage(at)postgresql(dot)org>
To: Ned Lilly <ned(at)nedscape(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostgreSQL wants to install, cancel or allow? (was Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-09 13:01:56
Message-ID: 4641C644.7020901@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Ned Lilly wrote:
> On 5/9/2007 7:46 AM Dave Page wrote:
>
>> Oh, hang on... Vista's new 'security' features include popups that ask
>> permission from the user before running any installers. One of the
>> more basic checks they use is the filename - *anything* called
>> setup.exe will cause user confirmation to be required before it will
>> run. I believe for non-interactive sessions it'll just refuse to run.
>> I just tried running update.exe myself, and yes, you guessed it, a
>> user confirmation dialog popped up :-(
>
> You can just disable that "feature" by turning off "User Account
> Control" under the Windows Security Center...

Yeah, I know, but that's not really a solution we can live with.

Regards, Dave.


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-10 09:54:36
Message-ID: 20070510095436.GA409@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 09, 2007 at 12:46:52PM +0100, Dave Page wrote:
> Oh, hang on... Vista's new 'security' features include popups that ask
> permission from the user before running any installers. One of the more
> basic checks they use is the filename - *anything* called setup.exe will
> cause user confirmation to be required before it will run. I believe for
> non-interactive sessions it'll just refuse to run. I just tried running
> update.exe myself, and yes, you guessed it, a user confirmation dialog
> popped up :-(

Seems to be a little bit braindead to me. But anyway, I renamed it and
just committed the changes. Let's see if this works.

Michael

P.S.: More on the other problem later.
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


From: Dave Page <dpage(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>, meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-10 10:05:39
Message-ID: 4642EE73.6040805@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Michael Meskes wrote:
> On Wed, May 09, 2007 at 12:46:52PM +0100, Dave Page wrote:
>> Oh, hang on... Vista's new 'security' features include popups that ask
>> permission from the user before running any installers. One of the more
>> basic checks they use is the filename - *anything* called setup.exe will
>> cause user confirmation to be required before it will run. I believe for
>> non-interactive sessions it'll just refuse to run. I just tried running
>> update.exe myself, and yes, you guessed it, a user confirmation dialog
>> popped up :-(
>
> Seems to be a little bit braindead to me.

Yeah - according to Microsoft we should include a manifest with the
executable these days that can prevent the check by specifying that
administrative privileges won't be needed by the executable - but that
involves us adding version resources to the exe, and generating the
manifest during build which seems somewhat over the top for a quick
regression test.

> But anyway, I renamed it and
> just committed the changes. Let's see if this works.

Thanks.

> P.S.: More on the other problem later.

OK.

Regards, Dave.


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-10 14:33:27
Message-ID: 20070510143327.GA24617@trantor.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, May 10, 2007 at 11:05:39AM +0100, Dave Page wrote:
> > P.S.: More on the other problem later.
>
> OK.

Dave, I just committed some small changes to get additional error
logging. Hopefully this enables me to find out where exactly the error
is coming up. If possible could you please restart a run on vista?

Thanks

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


From: Dave Page <dpage(at)postgresql(dot)org>
To: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-10 15:56:10
Message-ID: 4643409A.1070105@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Michael Meskes wrote:
> On Thu, May 10, 2007 at 11:05:39AM +0100, Dave Page wrote:
>>> P.S.: More on the other problem later.
>> OK.
>
> Dave, I just committed some small changes to get additional error
> logging. Hopefully this enables me to find out where exactly the error
> is coming up. If possible could you please restart a run on vista?

Running now - I won't have access to the machine again until Monday now
though.

Regards, Dave


From: Dave Page <dpage(at)postgresql(dot)org>
To: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-10 19:52:51
Message-ID: 46437813.90501@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Dave Page wrote:
> Michael Meskes wrote:
>> On Thu, May 10, 2007 at 11:05:39AM +0100, Dave Page wrote:
>>>> P.S.: More on the other problem later.
>>> OK.
>> Dave, I just committed some small changes to get additional error
>> logging. Hopefully this enables me to find out where exactly the error
>> is coming up. If possible could you please restart a run on vista?
>
> Running now - I won't have access to the machine again until Monday now
> though.

It's passing what was the update test now which is good - thanks :-).

Here's the results of the run, showing just the dt_test failure:
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=vaquita&dt=2007-05-10%2015:55:16

Regards, Dave.


From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-15 10:34:21
Message-ID: 20070515103421.GA23063@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 09, 2007 at 12:46:52PM +0100, Dave Page wrote:
> >Unfortunately I do not have access to a Vista system I could use to test
> >and track this one down.
>
> I'm happy to run any tests you like.

Dave, could you please apply this small patch to pgtypeslib/datetime.c.
I still have no clue where the error code is comming from and I'm trying
to narrow it down a bit.

Thanks.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

Attachment Content-Type Size
vista.patch text/x-diff 769 bytes

From: Dave Page <dpage(at)postgresql(dot)org>
To: Dave Page <dpage(at)postgresql(dot)org>, meskes(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows Vista support (Buildfarm Vaquita)
Date: 2007-05-16 08:26:47
Message-ID: 464AC047.7040606@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Michael Meskes wrote:
> On Wed, May 09, 2007 at 12:46:52PM +0100, Dave Page wrote:
>>> Unfortunately I do not have access to a Vista system I could use to test
>>> and track this one down.
>> I'm happy to run any tests you like.
>
> Dave, could you please apply this small patch to pgtypeslib/datetime.c.
> I still have no clue where the error code is comming from and I'm trying
> to narrow it down a bit.

Hi Michael,

The results are attached. Please let me know if I can do anything more.

Regards, Dave

Attachment Content-Type Size
pgtypeslib-dt_test.stderr text/plain 1.7 KB
pgtypeslib-dt_test.stdout text/plain 3.4 KB
regression.diffs text/plain 5.7 KB