You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Wes Wannemacher <we...@wantii.com> on 2009/01/15 19:37:13 UTC
thoughts on CI
Okay, so I've got my account setup on the Apache Hudson instance. I've
also setup some struts builds. If you want to take a look, they are
running here -
http://hudson.zones.apache.org/hudson/view/Struts/
Right now, these builds are pretty much a vanilla setup. They are not
publishing snapshots or nightlies anywhere, they are building, so it's
like a "first step." Anyhow, there are a few items I want to get
feedback on.
First off, if anyone wants to help out and/or be able to manage/change
these builds you'll have to request an account on Hudson. The process is
painless, more info here - http://wiki.apache.org/general/Hudson
Now, my first question is more general. Hudson allows a few different
triggers for launching builds. Right now, I'm telling it to check SVN
once a day for changes. To me, this is sufficient, but not quite as
comprehensive as Bamboo. I'm thinking that since this is a shared
resource (and we're new to the neighborhood) I don't want to tax the
system with full builds as frequently as bamboo was getting hit. Does
anyone disagree with that frequency?
Next, I am currently doing what amounts to a `mvn -Pall clean install`
in the struts1 and struts2 directories. This give quite a few more
artifacts than the currently nightly builds. But, this does not include
the sandbox or maven. You'll notice there are two artifacts being built
from the maven directory, but these are both necessary for the
struts1/struts2 builds. I have nothing against adding more, but wanted
to start with the main builds and add others if requested. Any others
that people think we need?
Also, there are quite a few options for publishing, post-build. I was
thinking I would get this feedback and make any necessary changes to the
builds before I consider pushing the build results out into the world. I
am considering using the previous nightly builds as a model for where
the artifacts go. Any suggestions or concerns on this?
Lastly, since Musachy worked really hard to get the release process
documented and easily(at least easier) repeatable, he enhanced the
assembly module to zip up and grab the docs. I tried to help him with
this while he was working on it and we noticed quite a few gotchas.
First off, we already brought up that it is a nightly cron job to zip up
the confluence export. So, the assembly tries to wget them. This isn't
really optimum, since it runs as Ted and Ted must be really busy, so we
couldn't make changes to the job (or see if/why it was failing from
2.1.3-2.1.6). My thought was to just use wget to mirror 2.x/docs/ and
then zip as part of the assembly process. Not quite optimum, but doesn't
tax mino every night. But, the problem with this was that wget honors
the new robots.txt file which means wget refuses to pull it down.
The current solution is to ssh over to people and call the zip-it-up
script (which is /www/struts.apache.org/2.x/zip-docs2.sh, in case it's
not documented elsewhere). This way, the zip happens when we need it to.
Now, the downside to this is that if you do a `mvn -Pall clean install`
in the struts2 directory, this will run. The first problem with that is
that on the Building from source page in the docs, we tell users to do
this. Of course, it will fail since you have to have your ssh setup to
log into people.a.o. The next problem is for me trying to run this in
Hudson. My first thought was that I could skip this task, but then, the
assembly is a great way for me to generate nightlies, and it is sort of
a matter of eating our own dogfood. If the assembly doesn't do what we
want, we should make it do what we want...
Anyhow, thoughts?
-Wes
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Musachy Barroso <mu...@gmail.com>.
> Now, my first question is more general. Hudson allows a few different
> triggers for launching builds. Right now, I'm telling it to check SVN
> once a day for changes. To me, this is sufficient, but not quite as
> comprehensive as Bamboo. I'm thinking that since this is a shared
> resource (and we're new to the neighborhood) I don't want to tax the
> system with full builds as frequently as bamboo was getting hit. Does
> anyone disagree with that frequency?
>
A daily build is fine with me.
> Lastly, since Musachy worked really hard to get the release process
> documented and easily(at least easier) repeatable, he enhanced the
> assembly module to zip up and grab the docs. I tried to help him with
> this while he was working on it and we noticed quite a few gotchas.
> First off, we already brought up that it is a nightly cron job to zip up
> the confluence export. So, the assembly tries to wget them. This isn't
> really optimum, since it runs as Ted and Ted must be really busy, so we
> couldn't make changes to the job (or see if/why it was failing from
> 2.1.3-2.1.6). My thought was to just use wget to mirror 2.x/docs/ and
> then zip as part of the assembly process. Not quite optimum, but doesn't
> tax mino every night. But, the problem with this was that wget honors
> the new robots.txt file which means wget refuses to pull it down.
>
> The current solution is to ssh over to people and call the zip-it-up
> script (which is /www/struts.apache.org/2.x/zip-docs2.sh, in case it's
> not documented elsewhere). This way, the zip happens when we need it to.
> Now, the downside to this is that if you do a `mvn -Pall clean install`
> in the struts2 directory, this will run. The first problem with that is
> that on the Building from source page in the docs, we tell users to do
> this. Of course, it will fail since you have to have your ssh setup to
> log into people.a.o. The next problem is for me trying to run this in
> Hudson. My first thought was that I could skip this task, but then, the
> assembly is a great way for me to generate nightlies, and it is sort of
> a matter of eating our own dogfood. If the assembly doesn't do what we
> want, we should make it do what we want...
>
I just committed a change to it, so now you can pass the user name as
-Dusername=myname, and it will ssh to ${username}@p.a.o.
musachy
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Wes Wannemacher <we...@wantii.com>.
On Thu, 2009-01-15 at 12:02 -0700, Wendy Smoak wrote:
> On Thu, Jan 15, 2009 at 11:37 AM, Wes Wannemacher <we...@wantii.com> wrote:
>
> > Okay, so I've got my account setup on the Apache Hudson instance.
> ...
> > assembly is a great way for me to generate nightlies, and it is sort of
> > a matter of eating our own dogfood. If the assembly doesn't do what we
> > want, we should make it do what we want...
>
> Heh. On the subject of eating our own dogfood, just thought I'd
> mention that Apache Continuum is a Struts 2 app... ;)
>
Point taken :)
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
Re: thoughts on CI
Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Jan 15, 2009 at 11:37 AM, Wes Wannemacher <we...@wantii.com> wrote:
> Okay, so I've got my account setup on the Apache Hudson instance.
...
> assembly is a great way for me to generate nightlies, and it is sort of
> a matter of eating our own dogfood. If the assembly doesn't do what we
> want, we should make it do what we want...
Heh. On the subject of eating our own dogfood, just thought I'd
mention that Apache Continuum is a Struts 2 app... ;)
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Musachy Barroso <mu...@gmail.com>.
It sounds good, thanks for setting this up Wes.
musachy
On Sat, Jan 17, 2009 at 12:51 PM, Wes Wannemacher <we...@wantii.com> wrote:
> On Thursday 15 January 2009 13:57:39 Piero Sartini wrote:
>> > But, the problem with this was that wget honors
>> > the new robots.txt file which means wget refuses to pull it down.
>>
>> wget should ignore the robots.txt with the option
>> -erobots=off
>>
>
> Thanks Piero, using this argument, I was able to get wget to work. The build
> now pulls down the docs thru the web, then zips them up locally. The advantage
> is that users (read - non-committers) can still do full builds (mvn -Pall
> install clean), the only gotcha is that you have to have 'wget' in your path.
> I tested this on linux, which of course works, but it works on solaris running
> in hudson as well. I also tested on windows XP with cygwin installed and it
> worked there as well.
>
> This brings us to the next step. James's nightly script does a `mvn deploy`
> which puts all the artifacts in the snapshot repository. Unless someone has a
> problem with it, I am going to start having hudson deploy as well. I don't
> think it will be a problem since James' script runs at midnight and mine runs
> at 9AM (on whatever timezone the hudson zone uses). Assuming that goes well, I
> will next want to scp the zips generated by the assembly goal over to the
> nightly build area on people. At this point, we'll be able to disable James'
> nightly script. The easiest way I can see is to write a shell script and have
> Hudson call it after the build is complete.
>
> At this point, the nightly build process is irrelevant, so I can work with
> Martin or whoever to disable his cronjob on the Struts zone. But, I would also
> like to enhance this process further as I had talked about earlier. On the
> Struts zone, I'd like to setup various app servers (Tomcat, Jetty, JBoss, for
> starters). Then, setup a job that will deploy our apps like showcase, rest-
> showcase, etc. into these app servers. I think this would be a good use for
> the zone and it seems to have the resources to handle it. I am not sure how I
> am going to handle the various deployment tasks on the zone, whether I will
> have hudson do it or figure out a way to get it done with a job running on the
> zone.
>
> Does anyone have any suggestions or issues before I proceed?
>
> -Wes
>
>
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Wes Wannemacher <we...@wantii.com>.
On Thursday 15 January 2009 13:57:39 Piero Sartini wrote:
> > But, the problem with this was that wget honors
> > the new robots.txt file which means wget refuses to pull it down.
>
> wget should ignore the robots.txt with the option
> -erobots=off
>
Thanks Piero, using this argument, I was able to get wget to work. The build
now pulls down the docs thru the web, then zips them up locally. The advantage
is that users (read - non-committers) can still do full builds (mvn -Pall
install clean), the only gotcha is that you have to have 'wget' in your path.
I tested this on linux, which of course works, but it works on solaris running
in hudson as well. I also tested on windows XP with cygwin installed and it
worked there as well.
This brings us to the next step. James's nightly script does a `mvn deploy`
which puts all the artifacts in the snapshot repository. Unless someone has a
problem with it, I am going to start having hudson deploy as well. I don't
think it will be a problem since James' script runs at midnight and mine runs
at 9AM (on whatever timezone the hudson zone uses). Assuming that goes well, I
will next want to scp the zips generated by the assembly goal over to the
nightly build area on people. At this point, we'll be able to disable James'
nightly script. The easiest way I can see is to write a shell script and have
Hudson call it after the build is complete.
At this point, the nightly build process is irrelevant, so I can work with
Martin or whoever to disable his cronjob on the Struts zone. But, I would also
like to enhance this process further as I had talked about earlier. On the
Struts zone, I'd like to setup various app servers (Tomcat, Jetty, JBoss, for
starters). Then, setup a job that will deploy our apps like showcase, rest-
showcase, etc. into these app servers. I think this would be a good use for
the zone and it seems to have the resources to handle it. I am not sure how I
am going to handle the various deployment tasks on the zone, whether I will
have hudson do it or figure out a way to get it done with a job running on the
zone.
Does anyone have any suggestions or issues before I proceed?
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Wes Wannemacher <we...@wantii.com>.
On Thursday 15 January 2009 13:57:39 Piero Sartini wrote:
> > But, the problem with this was that wget honors
> > the new robots.txt file which means wget refuses to pull it down.
>
> wget should ignore the robots.txt with the option
> -erobots=off
>
> (or add the line robots=off in .wgetrc)
>
Oh, and I forgot to add, if you want to see the hudson builds in action, they
are available here -
http://hudson.zones.apache.org/hudson/view/Struts/
-Wes
--
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: thoughts on CI
Posted by Piero Sartini <li...@pierosartini.de>.
> But, the problem with this was that wget honors
> the new robots.txt file which means wget refuses to pull it down.
wget should ignore the robots.txt with the option
-erobots=off
(or add the line robots=off in .wgetrc)
Piero
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org