You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Steven A Rowe <sa...@syr.edu> on 2011/01/26 21:52:14 UTC
Nightly Hudson Maven builds
Robert Muir changed the Hudson scripts for the four builds that run "ant generate-maven-artifacts" (Lucene-3x, Solr-3x, Lucene-trunk, and Solr-trunk) so that the builds would not fail as a result of problems running "ant generate-maven-artifacts". This is a good thing.
A secondary effect of his change, though, is that the output from running "ant generate-maven-artifacts" doesn't end up in the console output for the Hudson jobs. It succeeds or fails silently. This is cool if you find yourself in the die-maven-die camp, but not so cool otherwise.
Separately, as things stand right now, there is no way to know if the Maven POMs go stale (structural change, upgraded and/or new dependencies, etc.). Given several committers' stated intent not to participate in maintenance of the Maven POM templates, I want to avoid the bit rot that plagued the previous iteration of the Maven POM templates, and I think one way to address some of the issues is to use Hudson to run regular Maven builds. These builds could also handle the Maven snapshot artifact generation and publishing, so that this functionality could be removed from the four existing builds that currently do this.
I plan on setting up two nightly builds on Hudson that do the following, once for trunk and once for branch_3x:
1. Check out/update Lucene/Solr source tree
2. Run "ant get-maven-poms"
3. Restore a saved local ~/.m2/repository/ so that maven doesn't have to download the entire world, removing org/apache/solr and .../lucene dirs
4. Run "mvn -N -P bootstrap install" to install the non-mavenized dependencies into the local repo
5. Run "mvn clean install" to test the Maven POMs (the "test" phase is included when you run the "install" phase, and inter-module dependencies are resolved through artifacts installed in the local repo)
6. Move ~/.m2/repository/ to a location from which it can be restored in step #3 of the next iteration
7. Run "ant clean generate-maven-artifacts"
8. Publish the maven artifacts
I also want to investigate using the ASF's maven snapshot repository instead of Hudson to host the generated artifacts.
Steve
RE: Nightly Hudson Maven builds
Posted by Steven A Rowe <sa...@syr.edu>.
I don't think I was looking at test-only console output.
I checked all of the Hudson console outputs for all four builds, from the day Robert committed his change until today, and I can't find what I saw. I *thought* I was looking at console output from one of the four Hudson builds when I saw something that looked like:
set +e
+ do something here
+ ant clean generate-maven-artifacts
+ mv something somewhere
+ do something else
That is, mixed in with regular Hudson build console output, following a "set +e" line, a series of 4-5 lines prepended with a "+" sign, where the remaining content of lines were drawn from one of the shell scripts used to drive the Hudson builds. There was no output from "ant clean generate-maven-artifacts". The following lines looked like the continuation of standard Hudson build output.
I can't find it anywhere. I should have double-checked before I said anything, obviously...
Steve
> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Wednesday, January 26, 2011 4:13 PM
> To: dev@lucene.apache.org
> Subject: RE: Nightly Hudson Maven builds
>
> Maybe you looked at one of the half-hourly builds? They don't build
> artifacts, only test.
>
> Uwe
>
>
>
> "Steven A Rowe" <sa...@syr.edu> schrieb:
>
> >On 1/27/2011 at 3:58 PM, Uwe Schindler wrote:
> >> > [...] output from running "ant generate-maven-artifacts" doesn't
> >end up in
> >> > the console output for the Hudson jobs. It succeeds or fails
> >silently.
> >> > This is cool if you find yourself in the die-maven-die camp, but
> >not so cool
> >> > otherwise.
> >>
> >> Ahm, I see the output! It's there, it's just not piped to /dev/null.
> >They
> >> simply don’t make it into emails!
> >
> >Yup, I'm totally wrong here. I could swear that right after Robert
> >made the change the output wasn't in there....
> >
> >This doesn't affect my larger point though.
> >
> >Steve
>
> --
> Uwe Schindler
> H.-H.-Meier-Allee 63, 28213 Bremen
> http://www.thetaphi.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
RE: Nightly Hudson Maven builds
Posted by Uwe Schindler <uw...@thetaphi.de>.
Maybe you looked at one of the half-hourly builds? They don't build artifacts, only test.
Uwe
"Steven A Rowe" <sa...@syr.edu> schrieb:
>On 1/27/2011 at 3:58 PM, Uwe Schindler wrote:
>> > [...] output from running "ant generate-maven-artifacts" doesn't
>end up in
>> > the console output for the Hudson jobs. It succeeds or fails
>silently.
>> > This is cool if you find yourself in the die-maven-die camp, but
>not so cool
>> > otherwise.
>>
>> Ahm, I see the output! It's there, it's just not piped to /dev/null.
>They
>> simply don’t make it into emails!
>
>Yup, I'm totally wrong here. I could swear that right after Robert
>made the change the output wasn't in there....
>
>This doesn't affect my larger point though.
>
>Steve
--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.thetaphi.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Nightly Hudson Maven builds
Posted by Steven A Rowe <sa...@syr.edu>.
On 1/27/2011 at 3:58 PM, Uwe Schindler wrote:
> > [...] output from running "ant generate-maven-artifacts" doesn't end up in
> > the console output for the Hudson jobs. It succeeds or fails silently.
> > This is cool if you find yourself in the die-maven-die camp, but not so cool
> > otherwise.
>
> Ahm, I see the output! It's there, it's just not piped to /dev/null. They
> simply don’t make it into emails!
Yup, I'm totally wrong here. I could swear that right after Robert made the change the output wasn't in there....
This doesn't affect my larger point though.
Steve
RE: Nightly Hudson Maven builds
Posted by Uwe Schindler <uw...@thetaphi.de>.
> Robert Muir changed the Hudson scripts for the four builds that run "ant
> generate-maven-artifacts" (Lucene-3x, Solr-3x, Lucene-trunk, and Solr-
> trunk) so that the builds would not fail as a result of problems running "ant
> generate-maven-artifacts". This is a good thing.
>
> A secondary effect of his change, though, is that the output from running
> "ant generate-maven-artifacts" doesn't end up in the console output for the
> Hudson jobs. It succeeds or fails silently. This is cool if you find yourself in
> the die-maven-die camp, but not so cool otherwise.
Ahm, I see the output! It's there, it's just not piped to /dev/null. They simply don’t make it into emails!
Uwe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org