Re: Testing on windows

2015-04-08 Thread Gabriel Samfira
Yes, thats due to how the testing suite checks if mongo exited cleanly, which 
on windows differs. Its not a real error, just spam. I will look into 
submitting a patch for that.

It should have no inpact on test results


- Reply message -
From: "John Meinel" 
To: "Gabriel Samfira" 
Cc: "juju-dev@lists.ubuntu.com" 
Subject: Testing on windows
Date: Wed, Apr 8, 2015 09:40

With the last version of mongod, I'm seeing "mongodb has exited without being 
killed".
The Juju test suite assumes that it has to kill mongo during teardown and I 
think checks the exit code to make sure it was juju killing mongo rather than 
mongo exiting for some other reason.
The actual error log looks like it just was shutting down cleanly. See the 
attached log.

John
=:->

On Tue, Apr 7, 2015 at 5:44 PM, John Meinel 
mailto:j...@arbash-meinel.com>> wrote:
I should note that I'm still seeing an awful lot of failures, but I haven't had 
time to dig into it right now. I'll try to get back into it later. It might 
just be something wrong with how I have things set up.

John
=:->

On Tue, Apr 7, 2015 at 5:30 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Thanks for testing and pointing this out :).

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Tuesday, April 07, 2015 4:11 PM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

Yep. dumpbin is happy, and moving libeay.dll out of the way and it still seems 
to work. So it seems you've fixed the dependencies. Thanks for that.

John
=:->


On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
It appears that the binary version of OpenSSL only had stubs for static 
linking. I had to compile openSSL as well. On my system, mongo was picking up 
the openssl library from tortoiseHG.

The binary in the wiki has been updated. Please give it one last try. You 
should see output identical to:

PS C:\bin> .\mongod.exe --version
db version v2.6.3
2015-04-07T15:35:03.872-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T15:35:03.872-0700 OpenSSL version: OpenSSL 1.0.1m 19 Mar 2015

For future reference if anyone tries to statically compile mongod on windows:

scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64 
--extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib


Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Tuesday, April 07, 2015 11:09 AM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

So the file I downloaded from you last week had:

C:\dev\bin>.\mongod.exe --version
db version v2.6.3
2015-04-07T12:07:20.956+0400 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015

And dumpbin says it needs the dll:
C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file mongod.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

WS2_32.dll
KERNEL32.dll
ADVAPI32.dll
PSAPI.DLL
dbghelp.dll
WINMM.dll
LIBEAY32.dll
SSLEAY32.dll

  Summary

  441000 .data
   B1000 .pdata
  457000 .rdata
   12000 .reloc
  C7 .text
1000 .tls

I just downloaded the mongo-static.zip again and extracted the .exe. It says 
the same thing.
The link I'm following is on this page: http://wiki.cloudbase.it/juju-testing
and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip

John
=:->



On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
I updated the wiki. The Start-BitsTransfer step downloaded the old archive.

The mongo-static.zip contains a statically built mongo with ssl enabled. I 
installed a system from scratch and after following the steps on the wiki, and 
got to mongo the result was:

PS C:\Users\Administrator> .\mongod.exe --version
db version v2.6.3
2015-04-03T11:56:04.678-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011

If its not too much trouble, can you give it another shot? (if you have a 
snapshot of a vanilla windows install and time of course)

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 9:55 PM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev

Re: Testing on windows

2015-04-07 Thread John Meinel
With the last version of mongod, I'm seeing "mongodb has exited without
being killed".
The Juju test suite assumes that it has to kill mongo during teardown and I
think checks the exit code to make sure it was juju killing mongo rather
than mongo exiting for some other reason.
The actual error log looks like it just was shutting down cleanly. See the
attached log.

John
=:->

On Tue, Apr 7, 2015 at 5:44 PM, John Meinel  wrote:

> I should note that I'm still seeing an awful lot of failures, but I
> haven't had time to dig into it right now. I'll try to get back into it
> later. It might just be something wrong with how I have things set up.
>
> John
> =:->
>
> On Tue, Apr 7, 2015 at 5:30 PM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>>  Thanks for testing and pointing this out :).
>>
>> Cheers,
>> Gabriel
>>  --
>> *From:* John Meinel [j...@arbash-meinel.com]
>> *Sent:* Tuesday, April 07, 2015 4:11 PM
>>
>> *To:* Gabriel Samfira
>> *Cc:* juju-dev@lists.ubuntu.com
>> *Subject:* Re: Testing on windows
>>
>>   Yep. dumpbin is happy, and moving libeay.dll out of the way and it
>> still seems to work. So it seems you've fixed the dependencies. Thanks for
>> that.
>>
>>  John
>> =:->
>>
>>
>> On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira <
>> gsamf...@cloudbasesolutions.com> wrote:
>>
>>>  It appears that the binary version of OpenSSL only had stubs for
>>> static linking. I had to compile openSSL as well. On my system, mongo was
>>> picking up the openssl library from tortoiseHG.
>>>
>>> The binary in the wiki has been updated. Please give it one last try.
>>> You should see output identical to:
>>>
>>> PS C:\bin> .\mongod.exe --version
>>> db version v2.6.3
>>> 2015-04-07T15:35:03.872-0700 git version:
>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>> 2015-04-07T15:35:03.872-0700 OpenSSL version: *OpenSSL 1.0.1m 19 Mar
>>> 2015*
>>>
>>> For future reference if anyone tries to statically compile mongod on
>>> windows:
>>>
>>> scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64
>>> --extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib
>>>
>>>
>>> Cheers,
>>> Gabriel
>>>  --
>>> *From:* John Meinel [j...@arbash-meinel.com]
>>> *Sent:* Tuesday, April 07, 2015 11:09 AM
>>>
>>> *To:* Gabriel Samfira
>>> *Cc:* juju-dev@lists.ubuntu.com
>>> *Subject:* Re: Testing on windows
>>>
>>>So the file I downloaded from you last week had:
>>>
>>>  C:\dev\bin>.\mongod.exe --version
>>> db version v2.6.3
>>> 2015-04-07T12:07:20.956+0400 git version:
>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>> 2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015
>>>
>>>  And dumpbin says it needs the dll:
>>>  C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio
>>> 12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
>>> Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>
>>>
>>>  Dump of file mongod.exe
>>>
>>>  File Type: EXECUTABLE IMAGE
>>>
>>>Image has the following dependencies:
>>>
>>>  WS2_32.dll
>>> KERNEL32.dll
>>> ADVAPI32.dll
>>> PSAPI.DLL
>>> dbghelp.dll
>>> WINMM.dll
>>> LIBEAY32.dll
>>> SSLEAY32.dll
>>>
>>>Summary
>>>
>>>441000 .data
>>>B1000 .pdata
>>>   457000 .rdata
>>>12000 .reloc
>>>   C7 .text
>>> 1000 .tls
>>>
>>>  I just downloaded the mongo-static.zip again and extracted the .exe.
>>> It says the same thing.
>>> The link I'm following is on this page:
>>> http://wiki.cloudbase.it/juju-testing
>>> and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip
>>>
>>>  John
>>> =:->
>>>
>>>
>>>
>>> On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira <
>>> gsamf...@cloudbasesolutions.com> wrote:
>>>
>>>>  I updated the wiki. The Start-BitsTransfer step downloaded the old
>>>> archive.
>>>>
>>>> 

Re: Testing on windows

2015-04-07 Thread John Meinel
I should note that I'm still seeing an awful lot of failures, but I haven't
had time to dig into it right now. I'll try to get back into it later. It
might just be something wrong with how I have things set up.

John
=:->

On Tue, Apr 7, 2015 at 5:30 PM, Gabriel Samfira <
gsamf...@cloudbasesolutions.com> wrote:

>  Thanks for testing and pointing this out :).
>
> Cheers,
> Gabriel
>  --
> *From:* John Meinel [j...@arbash-meinel.com]
> *Sent:* Tuesday, April 07, 2015 4:11 PM
>
> *To:* Gabriel Samfira
> *Cc:* juju-dev@lists.ubuntu.com
> *Subject:* Re: Testing on windows
>
>   Yep. dumpbin is happy, and moving libeay.dll out of the way and it
> still seems to work. So it seems you've fixed the dependencies. Thanks for
> that.
>
>  John
> =:->
>
>
> On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>>  It appears that the binary version of OpenSSL only had stubs for static
>> linking. I had to compile openSSL as well. On my system, mongo was picking
>> up the openssl library from tortoiseHG.
>>
>> The binary in the wiki has been updated. Please give it one last try. You
>> should see output identical to:
>>
>> PS C:\bin> .\mongod.exe --version
>> db version v2.6.3
>> 2015-04-07T15:35:03.872-0700 git version:
>> 255f67a66f9603c59380b2a389e386910bbb52cb
>> 2015-04-07T15:35:03.872-0700 OpenSSL version: *OpenSSL 1.0.1m 19 Mar
>> 2015*
>>
>> For future reference if anyone tries to statically compile mongod on
>> windows:
>>
>> scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64
>> --extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib
>>
>>
>> Cheers,
>> Gabriel
>>  --
>> *From:* John Meinel [j...@arbash-meinel.com]
>> *Sent:* Tuesday, April 07, 2015 11:09 AM
>>
>> *To:* Gabriel Samfira
>> *Cc:* juju-dev@lists.ubuntu.com
>> *Subject:* Re: Testing on windows
>>
>>So the file I downloaded from you last week had:
>>
>>  C:\dev\bin>.\mongod.exe --version
>> db version v2.6.3
>> 2015-04-07T12:07:20.956+0400 git version:
>> 255f67a66f9603c59380b2a389e386910bbb52cb
>> 2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015
>>
>>  And dumpbin says it needs the dll:
>>  C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio
>> 12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
>> Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>
>>
>>  Dump of file mongod.exe
>>
>>  File Type: EXECUTABLE IMAGE
>>
>>Image has the following dependencies:
>>
>>  WS2_32.dll
>> KERNEL32.dll
>> ADVAPI32.dll
>> PSAPI.DLL
>> dbghelp.dll
>> WINMM.dll
>> LIBEAY32.dll
>> SSLEAY32.dll
>>
>>Summary
>>
>>441000 .data
>>B1000 .pdata
>>   457000 .rdata
>>12000 .reloc
>>   C7 .text
>> 1000 .tls
>>
>>  I just downloaded the mongo-static.zip again and extracted the .exe. It
>> says the same thing.
>> The link I'm following is on this page:
>> http://wiki.cloudbase.it/juju-testing
>> and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip
>>
>>  John
>> =:->
>>
>>
>>
>> On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira <
>> gsamf...@cloudbasesolutions.com> wrote:
>>
>>>  I updated the wiki. The Start-BitsTransfer step downloaded the old
>>> archive.
>>>
>>> The mongo-static.zip contains a statically built mongo with ssl enabled.
>>> I installed a system from scratch and after following the steps on the
>>> wiki, and got to mongo the result was:
>>>
>>> PS C:\Users\Administrator> .\mongod.exe --version
>>> db version v2.6.3
>>> 2015-04-03T11:56:04.678-0700 git version:
>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>> 2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011
>>>
>>> If its not too much trouble, can you give it another shot? (if you have
>>> a snapshot of a vanilla windows install and time of course)
>>>
>>> Cheers,
>>> Gabriel
>>>  --
>>> *From:* John Meinel [j...@arbash-meinel.com]
>>> *Sent:* Wednesday, April 01, 2015 9:55 PM
>>>
>>> *To:* Gabriel Sam

RE: Testing on windows

2015-04-07 Thread Gabriel Samfira
Thanks for testing and pointing this out :).

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com]
Sent: Tuesday, April 07, 2015 4:11 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

Yep. dumpbin is happy, and moving libeay.dll out of the way and it still seems 
to work. So it seems you've fixed the dependencies. Thanks for that.

John
=:->


On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
It appears that the binary version of OpenSSL only had stubs for static 
linking. I had to compile openSSL as well. On my system, mongo was picking up 
the openssl library from tortoiseHG.

The binary in the wiki has been updated. Please give it one last try. You 
should see output identical to:

PS C:\bin> .\mongod.exe --version
db version v2.6.3
2015-04-07T15:35:03.872-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T15:35:03.872-0700 OpenSSL version: OpenSSL 1.0.1m 19 Mar 2015

For future reference if anyone tries to statically compile mongod on windows:

scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64 
--extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib


Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Tuesday, April 07, 2015 11:09 AM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

So the file I downloaded from you last week had:

C:\dev\bin>.\mongod.exe --version
db version v2.6.3
2015-04-07T12:07:20.956+0400 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015

And dumpbin says it needs the dll:
C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file mongod.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

WS2_32.dll
KERNEL32.dll
ADVAPI32.dll
PSAPI.DLL
dbghelp.dll
WINMM.dll
LIBEAY32.dll
SSLEAY32.dll

  Summary

  441000 .data
   B1000 .pdata
  457000 .rdata
   12000 .reloc
  C7 .text
1000 .tls

I just downloaded the mongo-static.zip again and extracted the .exe. It says 
the same thing.
The link I'm following is on this page: http://wiki.cloudbase.it/juju-testing
and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip

John
=:->



On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
I updated the wiki. The Start-BitsTransfer step downloaded the old archive.

The mongo-static.zip contains a statically built mongo with ssl enabled. I 
installed a system from scratch and after following the steps on the wiki, and 
got to mongo the result was:

PS C:\Users\Administrator> .\mongod.exe --version
db version v2.6.3
2015-04-03T11:56:04.678-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011

If its not too much trouble, can you give it another shot? (if you have a 
snapshot of a vanilla windows install and time of course)

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 9:55 PM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB in size. 
(mongo-static.zip is 6,934 KB).

John
=:->

On Wed, Apr 1, 2015 at 10:54 PM, John Meinel 
mailto:j...@arbash-meinel.com>> wrote:
I did get it from the wiki, and the link said "static", however, it did still 
complain that I didn't have OpenSSL. Perhaps a build step was missed on the 
latest one and it wasn't noticed because the OpenSSL library was on the machine 
you were testing on?

John
=:->


On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hi John,

OpenSSL was needed for mongo, but I have since recompiled mongo statically. So 
if you got the binary from the wiki, OpenSSL should no longer be needed as a 
mandatory dependency.

I will not be able to try and reproduce the error today, but I will have a look 
at that particular test tomorrow.

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 1:46 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

...
I did end up getting some tests running (t

Re: Testing on windows

2015-04-07 Thread John Meinel
Yep. dumpbin is happy, and moving libeay.dll out of the way and it still
seems to work. So it seems you've fixed the dependencies. Thanks for that.

John
=:->


On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira <
gsamf...@cloudbasesolutions.com> wrote:

>  It appears that the binary version of OpenSSL only had stubs for static
> linking. I had to compile openSSL as well. On my system, mongo was picking
> up the openssl library from tortoiseHG.
>
> The binary in the wiki has been updated. Please give it one last try. You
> should see output identical to:
>
> PS C:\bin> .\mongod.exe --version
> db version v2.6.3
> 2015-04-07T15:35:03.872-0700 git version:
> 255f67a66f9603c59380b2a389e386910bbb52cb
> 2015-04-07T15:35:03.872-0700 OpenSSL version: *OpenSSL 1.0.1m 19 Mar 2015*
>
> For future reference if anyone tries to statically compile mongod on
> windows:
>
> scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64
> --extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib
>
>
> Cheers,
> Gabriel
>  --
> *From:* John Meinel [j...@arbash-meinel.com]
> *Sent:* Tuesday, April 07, 2015 11:09 AM
>
> *To:* Gabriel Samfira
> *Cc:* juju-dev@lists.ubuntu.com
> *Subject:* Re: Testing on windows
>
>   So the file I downloaded from you last week had:
>
>  C:\dev\bin>.\mongod.exe --version
> db version v2.6.3
> 2015-04-07T12:07:20.956+0400 git version:
> 255f67a66f9603c59380b2a389e386910bbb52cb
> 2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015
>
>  And dumpbin says it needs the dll:
>  C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
> Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>
>  Dump of file mongod.exe
>
>  File Type: EXECUTABLE IMAGE
>
>Image has the following dependencies:
>
>  WS2_32.dll
> KERNEL32.dll
> ADVAPI32.dll
> PSAPI.DLL
> dbghelp.dll
> WINMM.dll
> LIBEAY32.dll
> SSLEAY32.dll
>
>Summary
>
>441000 .data
>B1000 .pdata
>   457000 .rdata
>12000 .reloc
>   C7 .text
> 1000 .tls
>
>  I just downloaded the mongo-static.zip again and extracted the .exe. It
> says the same thing.
> The link I'm following is on this page:
> http://wiki.cloudbase.it/juju-testing
> and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip
>
>  John
> =:->
>
>
>
> On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>>  I updated the wiki. The Start-BitsTransfer step downloaded the old
>> archive.
>>
>> The mongo-static.zip contains a statically built mongo with ssl enabled.
>> I installed a system from scratch and after following the steps on the
>> wiki, and got to mongo the result was:
>>
>> PS C:\Users\Administrator> .\mongod.exe --version
>> db version v2.6.3
>> 2015-04-03T11:56:04.678-0700 git version:
>> 255f67a66f9603c59380b2a389e386910bbb52cb
>> 2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011
>>
>> If its not too much trouble, can you give it another shot? (if you have a
>> snapshot of a vanilla windows install and time of course)
>>
>> Cheers,
>> Gabriel
>>  --
>> *From:* John Meinel [j...@arbash-meinel.com]
>> *Sent:* Wednesday, April 01, 2015 9:55 PM
>>
>> *To:* Gabriel Samfira
>> *Cc:* juju-dev@lists.ubuntu.com
>> *Subject:* Re: Testing on windows
>>
>>The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB
>> in size. (mongo-static.zip is 6,934 KB).
>>
>> John
>> =:->
>>
>> On Wed, Apr 1, 2015 at 10:54 PM, John Meinel 
>> wrote:
>>
>>> I did get it from the wiki, and the link said "static", however, it did
>>> still complain that I didn't have OpenSSL. Perhaps a build step was missed
>>> on the latest one and it wasn't noticed because the OpenSSL library was on
>>> the machine you were testing on?
>>>
>>> John
>>> =:->
>>>
>>>
>>> On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira <
>>> gsamf...@cloudbasesolutions.com> wrote:
>>>
>>>>  Hi John,
>>>>
>>>> OpenSSL was needed for mongo, but I have since recompiled mongo
>>>> statically. So if you got the binary from the wiki, OpenSSL should no
>>>> longer be need

RE: Testing on windows

2015-04-07 Thread Gabriel Samfira
It appears that the binary version of OpenSSL only had stubs for static 
linking. I had to compile openSSL as well. On my system, mongo was picking up 
the openssl library from tortoiseHG.

The binary in the wiki has been updated. Please give it one last try. You 
should see output identical to:

PS C:\bin> .\mongod.exe --version
db version v2.6.3
2015-04-07T15:35:03.872-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T15:35:03.872-0700 OpenSSL version: OpenSSL 1.0.1m 19 Mar 2015

For future reference if anyone tries to statically compile mongod on windows:

scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64 
--extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib


Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com]
Sent: Tuesday, April 07, 2015 11:09 AM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

So the file I downloaded from you last week had:

C:\dev\bin>.\mongod.exe --version
db version v2.6.3
2015-04-07T12:07:20.956+0400 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015

And dumpbin says it needs the dll:
C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file mongod.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

WS2_32.dll
KERNEL32.dll
ADVAPI32.dll
PSAPI.DLL
dbghelp.dll
WINMM.dll
LIBEAY32.dll
SSLEAY32.dll

  Summary

  441000 .data
   B1000 .pdata
  457000 .rdata
   12000 .reloc
  C7 .text
1000 .tls

I just downloaded the mongo-static.zip again and extracted the .exe. It says 
the same thing.
The link I'm following is on this page: http://wiki.cloudbase.it/juju-testing
and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip

John
=:->



On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
I updated the wiki. The Start-BitsTransfer step downloaded the old archive.

The mongo-static.zip contains a statically built mongo with ssl enabled. I 
installed a system from scratch and after following the steps on the wiki, and 
got to mongo the result was:

PS C:\Users\Administrator> .\mongod.exe --version
db version v2.6.3
2015-04-03T11:56:04.678-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011

If its not too much trouble, can you give it another shot? (if you have a 
snapshot of a vanilla windows install and time of course)

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 9:55 PM

To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB in size. 
(mongo-static.zip is 6,934 KB).

John
=:->

On Wed, Apr 1, 2015 at 10:54 PM, John Meinel 
mailto:j...@arbash-meinel.com>> wrote:
I did get it from the wiki, and the link said "static", however, it did still 
complain that I didn't have OpenSSL. Perhaps a build step was missed on the 
latest one and it wasn't noticed because the OpenSSL library was on the machine 
you were testing on?

John
=:->


On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hi John,

OpenSSL was needed for mongo, but I have since recompiled mongo statically. So 
if you got the binary from the wiki, OpenSSL should no longer be needed as a 
mandatory dependency.

I will not be able to try and reproduce the error today, but I will have a look 
at that particular test tomorrow.

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 1:46 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

...
I did end up getting some tests running (though I did get a "charm not found" 
failure). It did end up getting killed with "test ran to long" after 10 min.

For those following along it was cmd/juju 
DeploySuite.TestUpgradeCharmDir<https://bugs.launchpad.net/juju-core/+bug/1439112>
 that failed.

John
=:->


So it seems the doc is slightly incomplete, but mostly there.

John
=:->

On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hello folks,

It has come to my attention that there may be some confusion in regards
to some Windows testing. There have been a coup

Re: Testing on windows

2015-04-07 Thread John Meinel
So the file I downloaded from you last week had:

C:\dev\bin>.\mongod.exe --version
db version v2.6.3
2015-04-07T12:07:20.956+0400 git version:
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015

And dumpbin says it needs the dll:
C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio
12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file mongod.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

WS2_32.dll
KERNEL32.dll
ADVAPI32.dll
PSAPI.DLL
dbghelp.dll
WINMM.dll
LIBEAY32.dll
SSLEAY32.dll

  Summary

  441000 .data
   B1000 .pdata
  457000 .rdata
   12000 .reloc
  C7 .text
1000 .tls

I just downloaded the mongo-static.zip again and extracted the .exe. It
says the same thing.
The link I'm following is on this page:
http://wiki.cloudbase.it/juju-testing
and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip

John
=:->



On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira <
gsamf...@cloudbasesolutions.com> wrote:

>  I updated the wiki. The Start-BitsTransfer step downloaded the old
> archive.
>
> The mongo-static.zip contains a statically built mongo with ssl enabled. I
> installed a system from scratch and after following the steps on the wiki,
> and got to mongo the result was:
>
> PS C:\Users\Administrator> .\mongod.exe --version
> db version v2.6.3
> 2015-04-03T11:56:04.678-0700 git version:
> 255f67a66f9603c59380b2a389e386910bbb52cb
> 2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011
>
> If its not too much trouble, can you give it another shot? (if you have a
> snapshot of a vanilla windows install and time of course)
>
> Cheers,
> Gabriel
>  --
> *From:* John Meinel [j...@arbash-meinel.com]
> *Sent:* Wednesday, April 01, 2015 9:55 PM
>
> *To:* Gabriel Samfira
> *Cc:* juju-dev@lists.ubuntu.com
> *Subject:* Re: Testing on windows
>
>   The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB
> in size. (mongo-static.zip is 6,934 KB).
>
> John
> =:->
>
> On Wed, Apr 1, 2015 at 10:54 PM, John Meinel 
> wrote:
>
>> I did get it from the wiki, and the link said "static", however, it did
>> still complain that I didn't have OpenSSL. Perhaps a build step was missed
>> on the latest one and it wasn't noticed because the OpenSSL library was on
>> the machine you were testing on?
>>
>> John
>> =:->
>>
>>
>> On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira <
>> gsamf...@cloudbasesolutions.com> wrote:
>>
>>>  Hi John,
>>>
>>> OpenSSL was needed for mongo, but I have since recompiled mongo
>>> statically. So if you got the binary from the wiki, OpenSSL should no
>>> longer be needed as a mandatory dependency.
>>>
>>> I will not be able to try and reproduce the error today, but I will have
>>> a look at that particular test tomorrow.
>>>
>>> Cheers,
>>> Gabriel
>>>  --
>>> *From:* John Meinel [j...@arbash-meinel.com]
>>> *Sent:* Wednesday, April 01, 2015 1:46 PM
>>> *To:* Gabriel Samfira
>>> *Cc:* juju-dev@lists.ubuntu.com
>>> *Subject:* Re: Testing on windows
>>>
>>> ...
>>>
>>>>  I did end up getting some tests running (though I did get a "charm
>>>> not found" failure). It did end up getting killed with "test ran to long"
>>>> after 10 min.
>>>>
>>>
>>>  For those following along it was cmd/juju
>>> DeploySuite.TestUpgradeCharmDir
>>> <https://bugs.launchpad.net/juju-core/+bug/1439112> that failed.
>>>
>>>  John
>>> =:->
>>>
>>>
>>>>
>>>>  So it seems the doc is slightly incomplete, but mostly there.
>>>>
>>>>  John
>>>> =:->
>>>>
>>>> On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
>>>> gsamf...@cloudbasesolutions.com> wrote:
>>>>
>>>>> Hello folks,
>>>>>
>>>>> It has come to my attention that there may be some confusion in regards
>>>>> to some Windows testing. There have been a couple of branches that have
>>>>> merged which break windows tests in juju-core.
>>>>>
>>>>> I would like to remind everyone that there is a guide available at:
>>>>>
>>>>> http://wiki.cloudbase.it/juju-testing
>>>>>
>>>>> that will help you set up a testing environment on Windows. Also, if
>>>>> there are any questions regarding Windows weirdness, please feel free
>>>>> to
>>>>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>>>>> happy to help you navigate any Windows issues you might have.
>>>>>
>>>>>
>>>>> Kind regards,
>>>>> Gabriel
>>>>> --
>>>>> Juju-dev mailing list
>>>>> Juju-dev@lists.ubuntu.com
>>>>> Modify settings or unsubscribe at:
>>>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>>>>
>>>>
>>>>
>>>
>>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


RE: Testing on windows

2015-04-03 Thread Gabriel Samfira
I updated the wiki. The Start-BitsTransfer step downloaded the old archive.

The mongo-static.zip contains a statically built mongo with ssl enabled. I 
installed a system from scratch and after following the steps on the wiki, and 
got to mongo the result was:

PS C:\Users\Administrator> .\mongod.exe --version
db version v2.6.3
2015-04-03T11:56:04.678-0700 git version: 
255f67a66f9603c59380b2a389e386910bbb52cb
2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011

If its not too much trouble, can you give it another shot? (if you have a 
snapshot of a vanilla windows install and time of course)

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com]
Sent: Wednesday, April 01, 2015 9:55 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB in size. 
(mongo-static.zip is 6,934 KB).

John
=:->

On Wed, Apr 1, 2015 at 10:54 PM, John Meinel 
mailto:j...@arbash-meinel.com>> wrote:
I did get it from the wiki, and the link said "static", however, it did still 
complain that I didn't have OpenSSL. Perhaps a build step was missed on the 
latest one and it wasn't noticed because the OpenSSL library was on the machine 
you were testing on?

John
=:->


On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hi John,

OpenSSL was needed for mongo, but I have since recompiled mongo statically. So 
if you got the binary from the wiki, OpenSSL should no longer be needed as a 
mandatory dependency.

I will not be able to try and reproduce the error today, but I will have a look 
at that particular test tomorrow.

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com<mailto:j...@arbash-meinel.com>]
Sent: Wednesday, April 01, 2015 1:46 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com<mailto:juju-dev@lists.ubuntu.com>
Subject: Re: Testing on windows

...
I did end up getting some tests running (though I did get a "charm not found" 
failure). It did end up getting killed with "test ran to long" after 10 min.

For those following along it was cmd/juju 
DeploySuite.TestUpgradeCharmDir<https://bugs.launchpad.net/juju-core/+bug/1439112>
 that failed.

John
=:->


So it seems the doc is slightly incomplete, but mostly there.

John
=:->

On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hello folks,

It has come to my attention that there may be some confusion in regards
to some Windows testing. There have been a couple of branches that have
merged which break windows tests in juju-core.

I would like to remind everyone that there is a guide available at:

http://wiki.cloudbase.it/juju-testing

that will help you set up a testing environment on Windows. Also, if
there are any questions regarding Windows weirdness, please feel free to
contact me on irc (gsamfira) or bogdanteleaga. We will be more then
happy to help you navigate any Windows issues you might have.


Kind regards,
Gabriel
--
Juju-dev mailing list
Juju-dev@lists.ubuntu.com<mailto:Juju-dev@lists.ubuntu.com>
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev




-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-04-01 Thread John Meinel
The one I have says it was "Date Modified" 2015-03-22 and is 18,136KB in
size. (mongo-static.zip is 6,934 KB).

John
=:->

On Wed, Apr 1, 2015 at 10:54 PM, John Meinel  wrote:

> I did get it from the wiki, and the link said "static", however, it did
> still complain that I didn't have OpenSSL. Perhaps a build step was missed
> on the latest one and it wasn't noticed because the OpenSSL library was on
> the machine you were testing on?
>
> John
> =:->
>
>
> On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>>  Hi John,
>>
>> OpenSSL was needed for mongo, but I have since recompiled mongo
>> statically. So if you got the binary from the wiki, OpenSSL should no
>> longer be needed as a mandatory dependency.
>>
>> I will not be able to try and reproduce the error today, but I will have
>> a look at that particular test tomorrow.
>>
>> Cheers,
>> Gabriel
>>  --
>> *From:* John Meinel [j...@arbash-meinel.com]
>> *Sent:* Wednesday, April 01, 2015 1:46 PM
>> *To:* Gabriel Samfira
>> *Cc:* juju-dev@lists.ubuntu.com
>> *Subject:* Re: Testing on windows
>>
>>...
>>
>>>  I did end up getting some tests running (though I did get a "charm not
>>> found" failure). It did end up getting killed with "test ran to long" after
>>> 10 min.
>>>
>>
>>  For those following along it was cmd/juju
>> DeploySuite.TestUpgradeCharmDir
>> <https://bugs.launchpad.net/juju-core/+bug/1439112> that failed.
>>
>>  John
>> =:->
>>
>>
>>>
>>>  So it seems the doc is slightly incomplete, but mostly there.
>>>
>>>  John
>>> =:->
>>>
>>> On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
>>> gsamf...@cloudbasesolutions.com> wrote:
>>>
>>>> Hello folks,
>>>>
>>>> It has come to my attention that there may be some confusion in regards
>>>> to some Windows testing. There have been a couple of branches that have
>>>> merged which break windows tests in juju-core.
>>>>
>>>> I would like to remind everyone that there is a guide available at:
>>>>
>>>> http://wiki.cloudbase.it/juju-testing
>>>>
>>>> that will help you set up a testing environment on Windows. Also, if
>>>> there are any questions regarding Windows weirdness, please feel free to
>>>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>>>> happy to help you navigate any Windows issues you might have.
>>>>
>>>>
>>>> Kind regards,
>>>> Gabriel
>>>> --
>>>> Juju-dev mailing list
>>>> Juju-dev@lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>>>
>>>
>>>
>>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-04-01 Thread John Meinel
I did get it from the wiki, and the link said "static", however, it did
still complain that I didn't have OpenSSL. Perhaps a build step was missed
on the latest one and it wasn't noticed because the OpenSSL library was on
the machine you were testing on?

John
=:->


On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira <
gsamf...@cloudbasesolutions.com> wrote:

>  Hi John,
>
> OpenSSL was needed for mongo, but I have since recompiled mongo
> statically. So if you got the binary from the wiki, OpenSSL should no
> longer be needed as a mandatory dependency.
>
> I will not be able to try and reproduce the error today, but I will have a
> look at that particular test tomorrow.
>
> Cheers,
> Gabriel
>  --
> *From:* John Meinel [j...@arbash-meinel.com]
> *Sent:* Wednesday, April 01, 2015 1:46 PM
> *To:* Gabriel Samfira
> *Cc:* juju-dev@lists.ubuntu.com
> *Subject:* Re: Testing on windows
>
>...
>
>>  I did end up getting some tests running (though I did get a "charm not
>> found" failure). It did end up getting killed with "test ran to long" after
>> 10 min.
>>
>
>  For those following along it was cmd/juju DeploySuite.TestUpgradeCharmDir
> <https://bugs.launchpad.net/juju-core/+bug/1439112> that failed.
>
>  John
> =:->
>
>
>>
>>  So it seems the doc is slightly incomplete, but mostly there.
>>
>>  John
>> =:->
>>
>> On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
>> gsamf...@cloudbasesolutions.com> wrote:
>>
>>> Hello folks,
>>>
>>> It has come to my attention that there may be some confusion in regards
>>> to some Windows testing. There have been a couple of branches that have
>>> merged which break windows tests in juju-core.
>>>
>>> I would like to remind everyone that there is a guide available at:
>>>
>>> http://wiki.cloudbase.it/juju-testing
>>>
>>> that will help you set up a testing environment on Windows. Also, if
>>> there are any questions regarding Windows weirdness, please feel free to
>>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>>> happy to help you navigate any Windows issues you might have.
>>>
>>>
>>> Kind regards,
>>> Gabriel
>>> --
>>> Juju-dev mailing list
>>> Juju-dev@lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>>
>>
>>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


RE: Testing on windows

2015-04-01 Thread Gabriel Samfira
Hi John,

OpenSSL was needed for mongo, but I have since recompiled mongo statically. So 
if you got the binary from the wiki, OpenSSL should no longer be needed as a 
mandatory dependency.

I will not be able to try and reproduce the error today, but I will have a look 
at that particular test tomorrow.

Cheers,
Gabriel

From: John Meinel [j...@arbash-meinel.com]
Sent: Wednesday, April 01, 2015 1:46 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

...
I did end up getting some tests running (though I did get a "charm not found" 
failure). It did end up getting killed with "test ran to long" after 10 min.

For those following along it was cmd/juju 
DeploySuite.TestUpgradeCharmDir<https://bugs.launchpad.net/juju-core/+bug/1439112>
 that failed.

John
=:->


So it seems the doc is slightly incomplete, but mostly there.

John
=:->

On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira 
mailto:gsamf...@cloudbasesolutions.com>> wrote:
Hello folks,

It has come to my attention that there may be some confusion in regards
to some Windows testing. There have been a couple of branches that have
merged which break windows tests in juju-core.

I would like to remind everyone that there is a guide available at:

http://wiki.cloudbase.it/juju-testing

that will help you set up a testing environment on Windows. Also, if
there are any questions regarding Windows weirdness, please feel free to
contact me on irc (gsamfira) or bogdanteleaga. We will be more then
happy to help you navigate any Windows issues you might have.


Kind regards,
Gabriel
--
Juju-dev mailing list
Juju-dev@lists.ubuntu.com<mailto:Juju-dev@lists.ubuntu.com>
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-04-01 Thread John Meinel
...

> I did end up getting some tests running (though I did get a "charm not
> found" failure). It did end up getting killed with "test ran to long" after
> 10 min.
>

For those following along it was cmd/juju DeploySuite.TestUpgradeCharmDir
 that failed.

John
=:->


>
> So it seems the doc is slightly incomplete, but mostly there.
>
> John
> =:->
>
> On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>> Hello folks,
>>
>> It has come to my attention that there may be some confusion in regards
>> to some Windows testing. There have been a couple of branches that have
>> merged which break windows tests in juju-core.
>>
>> I would like to remind everyone that there is a guide available at:
>>
>> http://wiki.cloudbase.it/juju-testing
>>
>> that will help you set up a testing environment on Windows. Also, if
>> there are any questions regarding Windows weirdness, please feel free to
>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>> happy to help you navigate any Windows issues you might have.
>>
>>
>> Kind regards,
>> Gabriel
>> --
>> Juju-dev mailing list
>> Juju-dev@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>
>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-04-01 Thread John Meinel
I started working through this today and ran into the trouble of having
no/wrong version of OpenSSL. The instructions say " If you get errors of
any kind regarding SSL, downgrade the OpenSSL version to an earlier one."
But nowhere in the instructions so far (that I saw) was there a step to
install OpenSSL that I would re-run with a downgraded version.

I don't know if that means nobody else has tried this, or what. I did end
up going to openssl which links to a Win32 OpenSSL site, and installed
their 64-bit version (not the light version, in case I would need to
compile something against it in the future).

I did end up getting some tests running (though I did get a "charm not
found" failure). It did end up getting killed with "test ran to long" after
10 min.

So it seems the doc is slightly incomplete, but mostly there.

John
=:->

On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
gsamf...@cloudbasesolutions.com> wrote:

> Hello folks,
>
> It has come to my attention that there may be some confusion in regards
> to some Windows testing. There have been a couple of branches that have
> merged which break windows tests in juju-core.
>
> I would like to remind everyone that there is a guide available at:
>
> http://wiki.cloudbase.it/juju-testing
>
> that will help you set up a testing environment on Windows. Also, if
> there are any questions regarding Windows weirdness, please feel free to
> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
> happy to help you navigate any Windows issues you might have.
>
>
> Kind regards,
> Gabriel
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Eric Snow
That would we awesome!  I was thinking along the same lines.

-eric

On Thu, Mar 19, 2015 at 8:51 AM, Gabriel Samfira
 wrote:
> That is actually a great idea :). We can try and do this in Nuremberg next 
> month ;). We have some tooling to do an unattended install. We can use that 
> to create the base qcow2 image, and install dependencies.
>
> for testing we can simply use the base image as a qcow2 backing file, and use 
> WinRM to run commands inside it from a simple python script.
>
> We can implement this during the sprint :D.
> 
> From: Eric Snow [eric.s...@canonical.com]
> Sent: Thursday, March 19, 2015 4:33 PM
> To: Gabriel Samfira
> Cc: juju-dev@lists.ubuntu.com
> Subject: Re: Testing on windows
>
> Thanks for bringing this up.  And thanks to Bogdan (and anyone else
> involved) for writing up that great walkthrough!  I had expected it to
> be more complicated.  I'm going to be running the unit tests on
> windows from now on. :)  I'm sure I've broken then a bunch in the last
> couple weeks.
>
> What would be nice is a script that does the following:
>
> * start up a KVM with windows
> * pull a specified branch from a github juju repo (and run godeps)
> * run the test suite (and show me the results)
> * shut down the KVM
>
> Bonus points for optionally setting up a fresh KVM each time and for
> optionally running other provided commands (e.g. to test bootstrap,
> deploy).
>
> If I get a chance I'll write something up.  (I have so much free time. )
>
> -eric
>
> On Wed, Mar 18, 2015 at 7:40 PM, Gabriel Samfira
>  wrote:
>> Hello folks,
>>
>> It has come to my attention that there may be some confusion in regards
>> to some Windows testing. There have been a couple of branches that have
>> merged which break windows tests in juju-core.
>>
>> I would like to remind everyone that there is a guide available at:
>>
>> http://wiki.cloudbase.it/juju-testing
>>
>> that will help you set up a testing environment on Windows. Also, if
>> there are any questions regarding Windows weirdness, please feel free to
>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>> happy to help you navigate any Windows issues you might have.
>>
>>
>> Kind regards,
>> Gabriel
>> --
>> Juju-dev mailing list
>> Juju-dev@lists.ubuntu.com
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


RE: Testing on windows

2015-03-19 Thread Gabriel Samfira
That is actually a great idea :). We can try and do this in Nuremberg next 
month ;). We have some tooling to do an unattended install. We can use that to 
create the base qcow2 image, and install dependencies.

for testing we can simply use the base image as a qcow2 backing file, and use 
WinRM to run commands inside it from a simple python script.

We can implement this during the sprint :D.

From: Eric Snow [eric.s...@canonical.com]
Sent: Thursday, March 19, 2015 4:33 PM
To: Gabriel Samfira
Cc: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

Thanks for bringing this up.  And thanks to Bogdan (and anyone else
involved) for writing up that great walkthrough!  I had expected it to
be more complicated.  I'm going to be running the unit tests on
windows from now on. :)  I'm sure I've broken then a bunch in the last
couple weeks.

What would be nice is a script that does the following:

* start up a KVM with windows
* pull a specified branch from a github juju repo (and run godeps)
* run the test suite (and show me the results)
* shut down the KVM

Bonus points for optionally setting up a fresh KVM each time and for
optionally running other provided commands (e.g. to test bootstrap,
deploy).

If I get a chance I'll write something up.  (I have so much free time. )

-eric

On Wed, Mar 18, 2015 at 7:40 PM, Gabriel Samfira
 wrote:
> Hello folks,
>
> It has come to my attention that there may be some confusion in regards
> to some Windows testing. There have been a couple of branches that have
> merged which break windows tests in juju-core.
>
> I would like to remind everyone that there is a guide available at:
>
> http://wiki.cloudbase.it/juju-testing
>
> that will help you set up a testing environment on Windows. Also, if
> there are any questions regarding Windows weirdness, please feel free to
> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
> happy to help you navigate any Windows issues you might have.
>
>
> Kind regards,
> Gabriel
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/juju-dev

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Eric Snow
Thanks for bringing this up.  And thanks to Bogdan (and anyone else
involved) for writing up that great walkthrough!  I had expected it to
be more complicated.  I'm going to be running the unit tests on
windows from now on. :)  I'm sure I've broken then a bunch in the last
couple weeks.

What would be nice is a script that does the following:

* start up a KVM with windows
* pull a specified branch from a github juju repo (and run godeps)
* run the test suite (and show me the results)
* shut down the KVM

Bonus points for optionally setting up a fresh KVM each time and for
optionally running other provided commands (e.g. to test bootstrap,
deploy).

If I get a chance I'll write something up.  (I have so much free time. )

-eric

On Wed, Mar 18, 2015 at 7:40 PM, Gabriel Samfira
 wrote:
> Hello folks,
>
> It has come to my attention that there may be some confusion in regards
> to some Windows testing. There have been a couple of branches that have
> merged which break windows tests in juju-core.
>
> I would like to remind everyone that there is a guide available at:
>
> http://wiki.cloudbase.it/juju-testing
>
> that will help you set up a testing environment on Windows. Also, if
> there are any questions regarding Windows weirdness, please feel free to
> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
> happy to help you navigate any Windows issues you might have.
>
>
> Kind regards,
> Gabriel
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/juju-dev

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


RE: Testing on windows

2015-03-19 Thread Gabriel Samfira
Hey Aaron,

I was unable to replicate the huge number of errors regarding temporary files 
already existing. Can you make sure you %TMP% directory is clean when you start 
testing? If its a fresh instance, it should have no files in %TMP%.

Or have the testing job simply clean the entire directory before running:

go test ./...

You will have some failures (addressed by the branches I mentioned), but not as 
many as you currently see.

Gabriel

From: juju-dev-boun...@lists.ubuntu.com [juju-dev-boun...@lists.ubuntu.com] on 
behalf of Aaron Bentley [aaron.bent...@canonical.com]
Sent: Thursday, March 19, 2015 3:38 PM
To: juju-dev@lists.ubuntu.com
Subject: Re: Testing on windows

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-03-19 06:07 AM, Michael Foord wrote:
> Do all tests pass (or skip) on Windows now? Do we have a CI job
> running them?

We do have a job.  It does not gate merges.

http://juju-ci.vapour.ws/job/run-unit-tests-win2012-amd64

Aaron
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJVCtFEAAoJEK84cMOcf+9h51UIAKNZX9movxP0zL/BMdeDz9B4
sZvmbaNBH4kt/Uu8K4rzToPd2eY5axGBByDFSIOL1cnqdzNNcCYoslrjTI7JnUEZ
CEBKSrTeMvvJYwdmRVcrYFx1H3npN3KNS4/gl3TgMJVchYe9ilG/kn/XlXM3JZVC
lN7hkKM1sJKDyMuoO/GMFLoNuP7q9+5PoTrI1oN+19c09jVjuZG1IgVoIKn+xGcV
7X3HWo10x1Mu49mUxC/dsT5IsgysMUlps35G5TsSOP+IuaRz2anxhtIsx/s9ONl9
+dLQl7SncOYbWec9oU0hPS+9w3q+wMB4gnzGw8oqcRtXE8UbhH/Dv98a9m0v8xI=
=LR+k
-END PGP SIGNATURE-

--
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Aaron Bentley
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-03-19 06:07 AM, Michael Foord wrote:
> Do all tests pass (or skip) on Windows now? Do we have a CI job
> running them?

We do have a job.  It does not gate merges.

http://juju-ci.vapour.ws/job/run-unit-tests-win2012-amd64

Aaron
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJVCtFEAAoJEK84cMOcf+9h51UIAKNZX9movxP0zL/BMdeDz9B4
sZvmbaNBH4kt/Uu8K4rzToPd2eY5axGBByDFSIOL1cnqdzNNcCYoslrjTI7JnUEZ
CEBKSrTeMvvJYwdmRVcrYFx1H3npN3KNS4/gl3TgMJVchYe9ilG/kn/XlXM3JZVC
lN7hkKM1sJKDyMuoO/GMFLoNuP7q9+5PoTrI1oN+19c09jVjuZG1IgVoIKn+xGcV
7X3HWo10x1Mu49mUxC/dsT5IsgysMUlps35G5TsSOP+IuaRz2anxhtIsx/s9ONl9
+dLQl7SncOYbWec9oU0hPS+9w3q+wMB4gnzGw8oqcRtXE8UbhH/Dv98a9m0v8xI=
=LR+k
-END PGP SIGNATURE-

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Gabriel Samfira
Yes it has :).


On 19.03.2015 13:30, David Cheney wrote:
> It is clear that we need blocking CI jobs for Windows and CentOS --
> has this been added to the Nuremberg agenda ?
>
> On Thu, Mar 19, 2015 at 10:24 PM, Gabriel Samfira
>  wrote:
>> On 19.03.2015 12:07, Michael Foord wrote:
>>> Do all tests pass (or skip) on Windows now? Do we have a CI job
>>> running them?
>> There is a PR under review, and one other fix pending that will make all
>> tests pass in juju core again. There is no job yet in the CI that blocks
>> master if tests fail on Windows. We should be able to turn it on once:
>> http://reviews.vapour.ws/r/1119/ merges and one other fix lands in
>> github.com/juju/testing.
>>
>> Until then, it is still useful to test on Windows before pushing, to
>> limit the risk of breaking anything else. Its also good practice, as
>> windows does offer some differences from Linux, and we need to be aware
>> of them when writing code. We also need to get accustomed to writing new
>> features with multiple platforms in mind. It would really be bad to
>> create a bigger gap between the platforms then already exists (playing
>> catch up is never a good thing).
>>
>> A set of branches for CentOS support will soon be proposed, and soon
>> after that Debian (Jessie), so testing on windows should be good
>> practice for when that happens :).
>>
>> Cheers,
>> Gabriel
>>
>>
>>
>>
>>
>> --
>> Juju-dev mailing list
>> Juju-dev@lists.ubuntu.com
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread David Cheney
It is clear that we need blocking CI jobs for Windows and CentOS --
has this been added to the Nuremberg agenda ?

On Thu, Mar 19, 2015 at 10:24 PM, Gabriel Samfira
 wrote:
> On 19.03.2015 12:07, Michael Foord wrote:
>>
>> Do all tests pass (or skip) on Windows now? Do we have a CI job
>> running them?
> There is a PR under review, and one other fix pending that will make all
> tests pass in juju core again. There is no job yet in the CI that blocks
> master if tests fail on Windows. We should be able to turn it on once:
> http://reviews.vapour.ws/r/1119/ merges and one other fix lands in
> github.com/juju/testing.
>
> Until then, it is still useful to test on Windows before pushing, to
> limit the risk of breaking anything else. Its also good practice, as
> windows does offer some differences from Linux, and we need to be aware
> of them when writing code. We also need to get accustomed to writing new
> features with multiple platforms in mind. It would really be bad to
> create a bigger gap between the platforms then already exists (playing
> catch up is never a good thing).
>
> A set of branches for CentOS support will soon be proposed, and soon
> after that Debian (Jessie), so testing on windows should be good
> practice for when that happens :).
>
> Cheers,
> Gabriel
>
>
>
>
>
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/juju-dev

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Gabriel Samfira
On 19.03.2015 12:07, Michael Foord wrote:
>
> Do all tests pass (or skip) on Windows now? Do we have a CI job 
> running them?
There is a PR under review, and one other fix pending that will make all 
tests pass in juju core again. There is no job yet in the CI that blocks 
master if tests fail on Windows. We should be able to turn it on once: 
http://reviews.vapour.ws/r/1119/ merges and one other fix lands in 
github.com/juju/testing.

Until then, it is still useful to test on Windows before pushing, to 
limit the risk of breaking anything else. Its also good practice, as 
windows does offer some differences from Linux, and we need to be aware 
of them when writing code. We also need to get accustomed to writing new 
features with multiple platforms in mind. It would really be bad to 
create a bigger gap between the platforms then already exists (playing 
catch up is never a good thing).

A set of branches for CentOS support will soon be proposed, and soon 
after that Debian (Jessie), so testing on windows should be good 
practice for when that happens :).

Cheers,
Gabriel





-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: Testing on windows

2015-03-19 Thread Michael Foord



On 19/03/15 01:40, Gabriel Samfira wrote:

Hello folks,

It has come to my attention that there may be some confusion in regards
to some Windows testing. There have been a couple of branches that have
merged which break windows tests in juju-core.

I would like to remind everyone that there is a guide available at:

http://wiki.cloudbase.it/juju-testing

that will help you set up a testing environment on Windows. Also, if
there are any questions regarding Windows weirdness, please feel free to
contact me on irc (gsamfira) or bogdanteleaga. We will be more then
happy to help you navigate any Windows issues you might have.



Do all tests pass (or skip) on Windows now? Do we have a CI job running 
them?


Michael


Kind regards,
Gabriel



--
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev