The new git repo for rhino.commons is up

25 views
Skip to first unread message

Lorenzo Melato

unread,
Nov 1, 2009, 10:15:48 AM11/1/09
to Rhino Tools Dev
As promised last week, I did gardening on the old rhino tools solution
in order to extract only the rhino commons project

First I took the last buildable rhino commons r2200, extract it from
the huge rhino tools solution, change the project references with
binary references and switch from nant build tool to psake build tool
(like the others Ayende's rhino tools projects on github);

Then I have create a new repo on github for the new Rhino.Commons
project, you can find it here:

git://github.com/lorenzomelato/rhino-commons.git

For the next step the code should be patched to build against the
rhino dsl trunk, the Castle trunk and NHibernate 2.1ga.
I have a little experience with rhino commons so I ask for help to
reaching the goal.

@Paul Cowan: It would be wonderful if the new rhino.commons's
repository was added to the horn environment, it's possible?

--
Lorenzo Melato
http://blogs.ynnova.it/lorenzomelato

Paul Cowan

unread,
Nov 1, 2009, 10:17:34 AM11/1/09
to rhino-t...@googlegroups.com
Excellent work:


>>  It would be wonderful if the new rhino.commons's repository was added to the horn environment, it's possible?

It certainly is.  I will do that.

Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/



2009/11/1 Lorenzo Melato <lorenzo...@ynnova.it>

Lorenzo Melato

unread,
Nov 1, 2009, 12:53:43 PM11/1/09
to rhino-t...@googlegroups.com
It's great Paul. Thank you.

Paul Cowan

unread,
Nov 2, 2009, 9:36:23 AM11/2/09
to rhino-t...@googlegroups.com
HI Lorenzo,

I have just sent you a pull request. I have  updated the Shared libraries with the output from horn and fixed the binsor code to at least compile now.

There are 15 failing tests when I run the psake script.

I am having trouble getting MBUnit up and running to see what exactly is failing but at least it is a start.


Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/



2009/11/1 Lorenzo Melato <lorenzo...@ynnova.it>
It's great Paul. Thank you.

Lorenzo Melato

unread,
Nov 2, 2009, 9:59:30 AM11/2/09
to rhino-t...@googlegroups.com
Ciao Paul,

to run the tests you need SQLServer installed and you must create two dbs "Test" and "Test2", also you need to to assign the dbCreator right to the current user.
I have forget to copy the notes from the original rhino tools repo...

Paul Cowan

unread,
Nov 2, 2009, 10:03:15 AM11/2/09
to rhino-t...@googlegroups.com
That will be a problem with running from horn.

I think we need a switch or something to exclude running the tests.

I have never used psake but I assume this is possible.


Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/



2009/11/2 Lorenzo Melato <lorenzo...@ynnova.it>

Bart Reyserhove

unread,
Nov 2, 2009, 10:38:52 AM11/2/09
to rhino-t...@googlegroups.com
Can't we use SQLite to solve that?

Paul Cowan

unread,
Nov 2, 2009, 10:40:01 AM11/2/09
to rhino-t...@googlegroups.com
Sqllite would be good.


Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/



2009/11/2 Bart Reyserhove <bart.re...@gmail.com>

Bart Reyserhove

unread,
Nov 2, 2009, 12:17:18 PM11/2/09
to rhino-t...@googlegroups.com
Should be easy enough to do. I'll have a look tonigh but I need to get to know git first, otherwise I cannot access the source ;-)

sferrise

unread,
Nov 2, 2009, 11:29:06 AM11/2/09
to Rhino Tools Dev
I know this may not be the most appropriate place to post this, but if
someone can zip up the binaries for Rhino tools and e-mail them to me,
I'd be forever appreciative!

I'm trying to get some of this stuff implemented in a project and
cannot seem to get the Rhino.Commons to build.

Thanks

Sam Ferrise
sam.f...@fireflylogic.com

On Nov 2, 9:40 am, Paul Cowan <dag...@scotalt.net> wrote:
> Sqllite would be good.
>
> Cheers
>
> Paul Cowan
>
> Cutting-Edge Solutions (Scotland)
>
> http://thesoftwaresimpleton.blogspot.com/
>
> 2009/11/2 Bart Reyserhove <bart.reyserh...@gmail.com>
>
>
>
> > Can't we use SQLite to solve that?
>
> > On Mon, Nov 2, 2009 at 3:59 PM, Lorenzo Melato <lorenzo.mel...@ynnova.it>wrote:
>
> >> Ciao Paul,
>
> >> to run the tests you need SQLServer installed and you must create two dbs
> >> "Test" and "Test2", also you need to to assign the dbCreator right to the
> >> current user.
> >> I have forget to copy the notes from the original rhino tools repo...
>
> >> --
> >> Lorenzo Melato
> >>http://blogs.ynnova.it/lorenzomelato- Hide quoted text -
>
> - Show quoted text -

Simone Busoli

unread,
Nov 2, 2009, 3:50:58 PM11/2/09
to rhino-t...@googlegroups.com
I'm not sure, but I think some stuff use the With.Transaction in rhino commons which reads the db connection provider from the connectionStrings section in the configuration file which so far points to the SqlServer provider. I know for sure that Rhino.ETL needs some features specific to SqlServer, but I don't know if this is of any interest to you.

Lorenzo Melato

unread,
Nov 2, 2009, 4:13:53 PM11/2/09
to rhino-t...@googlegroups.com
@Paul: I think it's possible to insert a switch to exclude the execution of the tests. I will fix the psake script asap.

@Bart & Paul: I'm not sure but I think that the tests against SQLServer is needed due to some SQLServer specific features of Rhino Commons. I need to do some investigation on the code base. Ayende, if you are reading this post, can you help us?

Lorenzo Melato

unread,
Nov 2, 2009, 4:33:41 PM11/2/09
to rhino-t...@googlegroups.com
I have see now that some features and some tests in the Rhino Commons solution depends directly from System.Data.SqlClient so I think the only way to build with horn is to exclude the tests execution, or to sign with "ignore" the SQLServer dependent tests.

Bart Reyserhove

unread,
Nov 2, 2009, 4:38:43 PM11/2/09
to rhino-t...@googlegroups.com
I also think some tests specifically need Sql Server. I did not have the time to investigate it further. I still need to figure out how to run the psake thing. I've never used it and cannot find a lot of documentation on it.

Ayende Rahien

unread,
Nov 2, 2009, 5:56:16 PM11/2/09
to rhino-t...@googlegroups.com
There are some SQL specific stuff there, for sure.
SQLCommandSet, etc.
Nothing major, though.

Lorenzo Melato

unread,
Nov 3, 2009, 2:42:52 AM11/3/09
to rhino-t...@googlegroups.com
@Bart: Run the psake build script is very simple. You need to download and install the powershell environment first (if you use Win7 you have it already installed), then you must be sure you have enabled the environment to run the script with the command Set-ExecutionPolicy Unrestricted.
Now you can execute the build script with .\psake, it will, by default, run the default.ps1 script.

hope this help,

Lorenzo Melato

unread,
Nov 3, 2009, 2:44:37 AM11/3/09
to rhino-t...@googlegroups.com
@Ayende: Thanks, I think, in order to build in the horn environment, to ignore the SQL specific tests.

Paul Cowan

unread,
Nov 3, 2009, 3:39:15 AM11/3/09
to rhino-t...@googlegroups.com
>>  I think, in order to build in the horn environment, to ignore the SQL specific tests

The general approach I have taken with horn is to exclude all tests if possible.

I do not think it is the job of horn to run tests and that is more down to the CI environment of the relevant OSS.

I think having a switch to exclude testing is a good thing to have in any case.


Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/



2009/11/3 Lorenzo Melato <lorenzo...@ynnova.it>

Bart Reyserhove

unread,
Nov 3, 2009, 3:36:27 PM11/3/09
to rhino-t...@googlegroups.com
@Paul

I don't know how Horn builds this but in PowerShell I can do this:

".\psake default.ps1 compile" and that builds rhino commons but does not execute the tests.

@Lorenzo,

Thanks for the tip.

Paul Cowan

unread,
Nov 3, 2009, 3:56:02 PM11/3/09
to rhino-t...@googlegroups.com

Excellent I will set this up.

On 3 Nov 2009 20:36, "Bart Reyserhove" <bart.re...@gmail.com> wrote:

@Paul

I don't know how Horn builds this but in PowerShell I can do this:

".\psake default.ps1 compile" and that builds rhino commons but does not execute the tests.

@Lorenzo,

Thanks for the tip.

On Tue, Nov 3, 2009 at 9:39 AM, Paul Cowan <dag...@scotalt.net> wrote: > > >>  I think, in order t...

--~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...

Lorenzo Melato

unread,
Nov 3, 2009, 4:49:55 PM11/3/09
to rhino-t...@googlegroups.com
 @Bart & Paul: You can pass to psake the list of the tasks to execute. See the help: .\psake -help.

Lorenzo Melato

unread,
Nov 3, 2009, 5:04:34 PM11/3/09
to rhino-t...@googlegroups.com
@Paul: just pushed your patch. Build Ok. 11 tests don't pass, but it's Ok. ;-)

Paul Cowan

unread,
Nov 3, 2009, 11:09:15 PM11/3/09
to rhino-t...@googlegroups.com

Hi,

Are we sure the failing tests are not failing for a critical reason?  I wonder if we could get city for this somehow?

On 3 Nov 2009 22:04, "Lorenzo Melato" <lorenzo...@ynnova.it> wrote:

@Paul: just pushed your patch. Build Ok. 11 tests don't pass, but it's Ok. ;-)

-- Lorenzo Melato http://blogs.ynnova.it/lorenzomelato --~--~---------~--~----~------------~----...

Paul Cowan

unread,
Nov 3, 2009, 11:57:40 PM11/3/09
to rhino-t...@googlegroups.com

Goddamn autocomplete, I meant ci as in continuous integration.

On 4 Nov 2009 04:09, "Paul Cowan" <dag...@scotalt.net> wrote:

Hi,

Are we sure the failing tests are not failing for a critical reason?  I wonder if we could get city for this somehow?

> > On 3 Nov 2009 22:04, "Lorenzo Melato" <lorenzo...@ynnova.it> wrote: > > @Paul: just pushed ...

Lorenzo Melato

unread,
Nov 4, 2009, 2:26:46 AM11/4/09
to rhino-t...@googlegroups.com
Ciao Paul,

I will review the not-passed tests asap. At the moment I think it's not a big problem.

Paul Cowan

unread,
Nov 4, 2009, 3:42:08 AM11/4/09
to rhino-t...@googlegroups.com
I have add rhino.commons to horn:

horn -install:rhino.commons will get the latest version + the latest dependenices e.g. the 2.1.1 nhibernate binaries.

2009/11/4 Lorenzo Melato <lorenzo...@ynnova.it>

Lorenzo Melato

unread,
Nov 4, 2009, 5:46:08 AM11/4/09
to rhino-t...@googlegroups.com
Great news Paul, thank you very much.
A little question: the actual rhino commons build corectly with nhibernate 2.1.1?

Wayne Douglas

unread,
Nov 4, 2009, 6:20:00 AM11/4/09
to rhino-t...@googlegroups.com
nice one!!

cheers :)
--
Cheers,

w://

dagda1

unread,
Nov 4, 2009, 4:38:52 PM11/4/09
to Rhino Tools Dev
Hi Lorenzo,

I have updated rhino.commons with the new nhibernate 2.1.1 .dlls and
changed the breaking code.

I have sent you a pull request or at least I think I have, I am still
getting my head around git.

Cheers

Paul

christianacca

unread,
Nov 16, 2009, 4:22:43 PM11/16/09
to Rhino Tools Dev
Guys I'm not sure whether all the Castle binaries are up to date in
the new git repo. This may be intentional on your part as its possible
that the satalite castle projects in SharedLibs (eg
Castle.Facilities.Logging) may not be in scope?

More significantly the NHibernate.ByteCode.Castle.dll is out of date
in SharedLibs (2.1.0.4000) against the offical NHibernate 2.1.1GA
release (2.1.1.4000).

Christian

Lorenzo Melato

unread,
Nov 17, 2009, 2:29:14 AM11/17/09
to rhino-t...@googlegroups.com
Thank you Christian,

I will check asap.

christianacca

unread,
Nov 17, 2009, 3:12:04 AM11/17/09
to Rhino Tools Dev
Cool.

Having just downloaded the trunk for Castle, it looks like the
NHibernate.ByteCode.Castle.dll and NHibernate.dll that in the Castle
\SharedLibs folder is 2.1.0.4000. This may have something to do with
the problem...?

C

Lorenzo Melato

unread,
Nov 17, 2009, 4:59:51 PM11/17/09
to rhino-t...@googlegroups.com
Just pushed an update to the nhibernate binaries to 2.1.1ga (2.1.1.4000).

christianacca

unread,
Nov 19, 2009, 4:30:24 AM11/19/09
to Rhino Tools Dev
Cool, thanks for that.

I recompiled Castle.Facilities.Logging.dll against the Castle trunk 2
days ago. This ensures that its references to Castle.Core, etc are
assembly version compatible with the assemblies in SharedLibs\Castle.

It would be nice if I / you could commit these as well. I can
obviously zip the files up and send them over if this is easier?

Christian

Lorenzo Melato

unread,
Nov 19, 2009, 4:48:29 AM11/19/09
to rhino-t...@googlegroups.com
Christian,

I think could be useful for you to see and evaluate the horn tool.
This tool can autoMAGICALLY download and build for you the trunk or a specific version of most open source tool like castle, nhibernate, rhino commons etc.

You can go to my blog post and find useful informations (in italian, but you can find some link to the original resource):

http://blogs.ynnova.it/lorenzomelato/archive/2009/11/01/horn-web-live.aspx
http://blogs.ynnova.it/lorenzomelato/archive/2009/10/06/horn-finiragrave-lincubo-delle-interdipendenze.aspx

hope this help,

christianacca

unread,
Nov 20, 2009, 12:01:02 PM11/20/09
to Rhino Tools Dev
Will try and give it a go over the weekend.

Thanks
C

On Nov 19, 9:48 am, Lorenzo Melato <lorenzo.mel...@ynnova.it> wrote:
> Christian,
>
> I think could be useful for you to see and evaluate the horn tool.
> This tool can autoMAGICALLY download and build for you the trunk or a
> specific version of most open source tool like castle, nhibernate, rhino
> commons etc.
>
> You can go to my blog post and find useful informations (in italian, but you
> can find some link to the original resource):
>
> http://blogs.ynnova.it/lorenzomelato/archive/2009/11/01/horn-web-live...http://blogs.ynnova.it/lorenzomelato/archive/2009/10/06/horn-finiragr...
Reply all
Reply to author
Forward
0 new messages