You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by de...@geronimo.apache.org on 2004/09/16 23:46:37 UTC

[jira] Created: (GERONIMO-304) Nightly build/test on Windows

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-304

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-304
    Summary: Nightly build/test on Windows
       Type: Task

     Status: Open
   Priority: Minor

    Project: Apache Geronimo
 Components: 
             buildsystem

   Assignee: David Blevins
   Reporter: David Blevins

    Created: Thu, 16 Sep 2004 2:46 PM
    Updated: Thu, 16 Sep 2004 2:46 PM

Description:
Setup nightly/build tests on Windows


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (GERONIMO-304) Nightly build/test on Windows

Posted by Kristian Köhler <Kr...@gmx.de>.
Hi David

David Blevins wrote:

> If you are interested in moving us that direction, I can send you the
> existing scripts/stylesheets.
> 
> -David

If you send me the files I will have a look at them and will try to 
"rebuild" the sripts via cruisecontrol/maven.

Kristian


Re: [jira] Created: (GERONIMO-304) Nightly build/test on Windows

Posted by Jacek Laskowski <jl...@apache.org>.
David Blevins wrote:

> Anyway, if we can move all that over into any combination of
> cruisecontrol plugins/maven plugins/groovy, that would be ok with me.
> Would be incredible actually.

Well, let me add some to what you've just said, as I think it may be 
relevant ;)

To me, CruiseControl (CC for short) is just a software that at a given 
time checks a repository to see if there're new changes and invokes a 
script/build tool, afterwards (there's no limit on the number of the 
build tool execution, so if we do: maven, shell script, maven, ant it 
may be done either explicitly or via a shell script that will take care 
of it). Once the script/build invocation is done, CC merges the results 
into a nice-looking reports and can send it along to 
subscribers/developers and/or publish it online. The build artefacts may 
also be published.

There's a built-in support for Ant, Maven and a shell script.

Now, Geronimo has an bunch of scripts all of them invoked via Maven and 
it works and so will it in CC as CC invokes Maven the way people do. The 
advantage of using CC is the possibility to generate the reports without 
a human intervention.

> If you are interested in moving us that direction, I can send you the
> existing scripts/stylesheets.

I'd rather see Kristian to take care of "moving us that direction" as I 
don't have too much free time to work on it. However, I'm here and can 
help doing it, too.

Kristian, would that be ok for you?

> -David

Jacek



Re: [jira] Created: (GERONIMO-304) Nightly build/test on Windows

Posted by David Blevins <da...@visi.com>.
On Fri, Sep 17, 2004 at 08:02:33AM +0200, Kristian Köhler wrote:
> Hi
> 
> is there any plan to use the same script on all boxes?
> I suggest to use cruisecontrol (http://cruisecontrol.sourceforge.net/). 
> The "old" Windows2000 tests run with it.
> 
> Cruisecontrol itself is a java program triggering a checkout and rebuild 
> of the project. It is configured via xml files. So the same xml config 
> could be used on all boxes. The results will look the same in all cases 
> ;-) Cruisecontrol also supports publishing of the build result as HTML 
> files which could be published on the geronimo site (might be more 
> convenient then email). Only failure mails with a link to the published 
> results could be sent to the mailinglist.
> 
> Currently I'm testing the new config for the Windows2000 build with 
> subversion. I could post the config if this is an option.
> 

I took a look at cruisecontrol and the plugin side of it looks
promising.  We don't do a vanilla nightly build, so it would be a fair
amount of work to reproduce things in a combination of cruisecontrol
and maven plugins.  It could probably be done if you have the time.

Here is what I have in the current rev of my nightly build script,
which has yet to be hooked up.

  BUILD-AND-TEST
     checkout head/trunk from cvs/svn
     build, ignoring test failures, pipe output to file
     grep file for failed tests
     create xml of results and sys info
     pipe the xml over ssh into a file central server
     publish snapshot jars if test passed
    
  PUBLISH-RESULTS (once per night from central server)
     run xslt stylesheet on central xml file
     email output to scm list
     cat the central file into a file of all previous results
     empty cental file "cat /dev/null > central_file"

  NIGHTLY-RELEASE (run if build/test passed)
     checkout current date (cvs) or current rev (svn)
     (using 48765 as example svn rev for explanation)
     munge the etc/version-info.ent to 1.0-48765
     zip  geronimo-1.0-48765 dir into geronimo-1.0-48765-src.zip
     again for tar
     build with no tests
     zip modules/assembly/target/geronimo-1.0-48765 dir into geronimo-1.0-48765.zip
     again for tar
     create MD5 files for src/bin tars and zips with openssl
     again but with SHA instead of MD5
     create 1.0-48765 dir on nightly release server using ssh
     copy tar.gz, zip, md5, and sha files into 1.0-48765 using scp
     publish jars to remote maven repo

  OFFICIAL-RELEASE
     (same as nightly release with the following differences)
     version will be 1.0-M3 rather than date or svn rev
     munged etc/version-info.ent is checked in
     cvs/svn tag is created with v1_0_M3 as tag name
     tag is checked out from cvs/svn
     (tar/zip src, maven build, tar/zip binary -- same as before)
     create pgp signatures for tars/zips in addition to md5 and sha
     (create dir on release server, copy archives, publish maven jars)  

Anyway, if we can move all that over into any combination of
cruisecontrol plugins/maven plugins/groovy, that would be ok with me.
Would be incredible actually.

If you are interested in moving us that direction, I can send you the
existing scripts/stylesheets.

-David


Re: [jira] Created: (GERONIMO-304) Nightly build/test on Windows

Posted by Kristian Köhler <Kr...@gmx.de>.
Hi

is there any plan to use the same script on all boxes?
I suggest to use cruisecontrol (http://cruisecontrol.sourceforge.net/). 
The "old" Windows2000 tests run with it.

Cruisecontrol itself is a java program triggering a checkout and rebuild 
of the project. It is configured via xml files. So the same xml config 
could be used on all boxes. The results will look the same in all cases 
;-) Cruisecontrol also supports publishing of the build result as HTML 
files which could be published on the geronimo site (might be more 
convenient then email). Only failure mails with a link to the published 
results could be sent to the mailinglist.

Currently I'm testing the new config for the Windows2000 build with 
subversion. I could post the config if this is an option.

Kristian

dev@geronimo.apache.org wrote:
> Message:
> 
>   A new issue has been created in JIRA.
> 
> ---------------------------------------------------------------------
> View the issue:
>   http://issues.apache.org/jira/browse/GERONIMO-304
> 
> Here is an overview of the issue:
> ---------------------------------------------------------------------
>         Key: GERONIMO-304
>     Summary: Nightly build/test on Windows
>        Type: Task
> 
>      Status: Open
>    Priority: Minor
> 
>     Project: Apache Geronimo
>  Components: 
>              buildsystem
> 
>    Assignee: David Blevins
>    Reporter: David Blevins
> 
>     Created: Thu, 16 Sep 2004 2:46 PM
>     Updated: Thu, 16 Sep 2004 2:46 PM
> 
> Description:
> Setup nightly/build tests on Windows
> 
> 
> ---------------------------------------------------------------------
> JIRA INFORMATION:
> This message is automatically generated by JIRA.
> 
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> 
> If you want more information on JIRA, or have a bug to report see:
>    http://www.atlassian.com/software/jira
> 
> 


[jira] Updated: (GERONIMO-304) Nightly build/test on Windows

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-304?page=all ]

Aaron Mulder updated GERONIMO-304:
----------------------------------

    Fix Version: Wish List
    Environment: 

> Nightly build/test on Windows
> -----------------------------
>
>          Key: GERONIMO-304
>          URL: http://issues.apache.org/jira/browse/GERONIMO-304
>      Project: Geronimo
>         Type: Task
>   Components: buildsystem
>     Reporter: David Blevins
>     Assignee: David Blevins
>     Priority: Minor
>      Fix For: Wish List
>  Attachments: build-patch.zip, cruisecontrolGeronimo.xml
>
> Setup nightly/build tests on Windows

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-304) Nightly build/test on Windows

Posted by de...@geronimo.apache.org.
The following issue has been updated:

    Updater: Kristian Koehler (mailto:Kristian.Koehler@gmx.de)
       Date: Sun, 19 Sep 2004 11:26 PM
    Comment:
the cruisecontrol config file
    Changes:
             Attachment changed to cruisecontrolGeronimo.xml
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/GERONIMO-304?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-304

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-304
    Summary: Nightly build/test on Windows
       Type: Task

     Status: Open
   Priority: Minor

    Project: Apache Geronimo
 Components: 
             buildsystem

   Assignee: David Blevins
   Reporter: David Blevins

    Created: Thu, 16 Sep 2004 2:46 PM
    Updated: Sun, 19 Sep 2004 11:26 PM

Description:
Setup nightly/build tests on Windows


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-304) Nightly build/test on Windows

Posted by de...@geronimo.apache.org.
The following issue has been updated:

    Updater: Kristian Koehler (mailto:Kristian.Koehler@gmx.de)
       Date: Tue, 28 Sep 2004 6:38 AM
    Comment:
The attached file is the first step in the direction of nightly maven/cruisecontrol builds.

---

The patch includes:
* FileDigester class for calculating digest values for archives.
* SVNRevisionReplaceBootstrapper class for extracting and replacing the current revision number in a given file
* DeletionPublisher helper class for cruisecontrol
* Eclipse Project for the cruisecontrol helper classes
* JAR file with the cruisecontrol helper classes
* example cruisecontrol config file for the "new functionality"

And this is how it should work:

Cruisecontrol is used to update the geronimo subversion modul. After bootstrapping (update) the project the version-info.ent file is updated to the current svn revision number. This is done via the SVNRevisionReplaceBootstrapper class which is included in the patch. 

Now cruisecontrol triggers maven to build the project ('rebuild' and 'dist' goals). There are pre- and postGoals added to the assembly maven.xml file. They are used to build the correct bin distribution and to calculate the digest values for the 'generated' files. This is done via the FileDigester class (also included).

After all (no publishing is yet configured) cruisecontrol cleans the (geronimo) repository and deletes the modified version-info.ent file. Repository cleaning is needed because every build generates new jar files with different names (the 'keyword' SNAPSHOT is replaced with the actual revision number). 

Next step should be a publishing mechanism as David Blevins described on the mailing list.

Kristian
    Changes:
             Attachment changed to build-patch.zip
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/GERONIMO-304?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-304

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-304
    Summary: Nightly build/test on Windows
       Type: Task

     Status: Open
   Priority: Minor

    Project: Apache Geronimo
 Components: 
             buildsystem

   Assignee: David Blevins
   Reporter: David Blevins

    Created: Thu, 16 Sep 2004 2:46 PM
    Updated: Tue, 28 Sep 2004 6:38 AM

Description:
Setup nightly/build tests on Windows


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-304) Nightly build/test on Windows

Posted by de...@geronimo.apache.org.
The following comment has been added to this issue:

     Author: Kristian Koehler
    Created: Sun, 19 Sep 2004 11:23 PM
       Body:
Hi

is there any plan to use the same script on all boxes?
I suggest to use cruisecontrol (http://cruisecontrol.sourceforge.net/). The "old" Windows2000 tests run with it.

Cruisecontrol itself is a java program triggering a checkout and rebuild of the project. It is configured via xml files. So the same xml config could be used on all boxes. The results will look the same in all cases ;-) Cruisecontrol also supports publishing of the build result as HTML files which could be published on the geronimo site (might be more convenient then email). Only failure mails with a link to the published results could be sent to the mailinglist.

Currently I'm testing the new config for the Windows2000 build with subversion. I could post the config if this is an option.

Kristian 
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/GERONIMO-304?page=comments#action_53222

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-304

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-304
    Summary: Nightly build/test on Windows
       Type: Task

     Status: Open
   Priority: Minor

    Project: Apache Geronimo
 Components: 
             buildsystem

   Assignee: David Blevins
   Reporter: David Blevins

    Created: Thu, 16 Sep 2004 2:46 PM
    Updated: Sun, 19 Sep 2004 11:23 PM

Description:
Setup nightly/build tests on Windows


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (GERONIMO-304) Nightly build/test on Windows

Posted by "David Blevins (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-304?page=all ]

David Blevins reassigned GERONIMO-304:
--------------------------------------

    Assignee:     (was: David Blevins)

> Nightly build/test on Windows
> -----------------------------
>
>                 Key: GERONIMO-304
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-304
>             Project: Geronimo
>          Issue Type: Task
>          Components: buildsystem
>            Reporter: David Blevins
>            Priority: Minor
>             Fix For: Wish List
>
>         Attachments: build-patch.zip, cruisecontrolGeronimo.xml
>
>
> Setup nightly/build tests on Windows

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira