You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/03/11 09:42:42 UTC

How to debug a Gump build problem? (was FW: [GUMP@lsd]: jakarta-cactus/jakarta-cactus-sample-servlet-12 failed)

Hi,

Below is a Gump build failure that has been going on for too long... I'd
like to solve it. However, I can't reproduce the test error it gives.
Everything runs fine here. Thus I think it can be caused either by a
different configuration or by the fact that it runs on a different OS.

My question is: What are the facilities given to projects to debug Gump
builds? 

More specifically: Do we have a shell account with read access to the
directory where Gump built the project?

Also, is there a ASP-like GUMP installation on an ASF machine where we
could have a shell account and execute Gump build on demand. Say for
example that I notice a problem. I need to turn debug on. I'd like to be
able to rerun Gump on that project immediately and not wait for the next
day. OTOH I do not want to have to install Gump on my machine as it is
quite difficult...

Thanks
-Vincent

> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@apache.org]
> Sent: 11 March 2004 06:04
> To: cactus-dev@jakarta.apache.org
> Subject: [GUMP@lsd]: jakarta-cactus/jakarta-cactus-sample-servlet-12
> failed
> 
> To whom it may engage...
> 
> This is an automated request, but not an unsolicited one. For help
> understanding the request please visit
> http://gump.apache.org/nagged.html,
> and/or contact general@gump.apache.org.
> 
> Project jakarta-cactus-sample-servlet-12 has an issue affecting it's
> community integration, and has been outstanding for 8 runs. The
current
> state is 'Failed', for reason 'Build Failed'
> 
> Full details are available at:
http://lsd.student.utwente.nl/gump/jakarta-
> cactus/jakarta-cactus-sample-servlet-12.html, however some snippets
> follow:
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> 
> Gump provided these annotations:
> 
>  - Info - Sole jar [/data3/gump/jakarta-cactus/samples/servlet/dist-
> 12/bin] identifier set to project name
>  - Info - Dependency on aspectj exists, no need to add for property
> aspectjrt.jar.
>  - Info - Dependency on jakarta-cactus-integration-ant-12 exists, no
need
> to add for property cactus.ant.jar.
>  - Info - Dependency on jakarta-tomcat exists, no need to add for
property
> cactus.home.tomcat3x.
>  - Info - Made directory [/data3/gump/jakarta-
> cactus/samples/servlet/target-12/test/classes/java]
>  - Info - Made directory [/data3/gump/jakarta-
> cactus/samples/servlet/target-12/test/classes/cactus]
>  - Error - Failed with reason build failed
> 
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> Gump performed this work:
> 
> Work Name: build_jakarta-cactus_jakarta-cactus-sample-servlet-12
(Type:
> Build)
> State: Failed
> Elapsed: 0 hours, 0 minutes, 28 seconds
> Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -
> Xbootclasspath/p:/data3/gump/xml-
> xerces2/java/build/xercesImpl.jar:/data3/gump/xml-
> xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -debug
-
> Dgump.merge=/data3/gump/gump-install/work/merge.xml -
> Dbuild.sysclasspath=only -Dlog4j.jar=/data3/gump/logging-log4j/log4j-
> 20040311.jar -Djunit.jar=/data3/gump/dist/junit/junit.jar -
> Dhttpunit.jar=/data3/gump/httpunit/lib/httpunit.jar -
> Dcommons.logging.jar=/data3/gump/jakarta-commons/logging/dist/commons-
> logging.jar -Dnekohtml.jar=/data3/gump/opt/nekohtml-0.9.1/nekohtml.jar
-
> Dcommons.httpclient.jar=/data3/gump/jakarta-
> commons/httpclient/dist/commons-httpclient.jar -Dcactus.port=8082 -
> Dcactus.home.tomcat3x=/data3/gump/jakarta-tomcat/build/tomcat -
> Dcactus.ant.jar=/data3/gump/jakarta-cactus/integration/ant/dist-
> 12/lib/cactus-ant-20040311.jar -Dservlet.jar=/data3/gump/jakarta-
> servletapi/dist/lib/servlet.jar -Dproject.version=20040311 -
> Daspectjrt.jar=/data3/gump/opt/aspectj1.1/lib/aspectjrt.jar -
> Dcactus.jar=/data3/gump/jakarta-cactus/framework/dist-12/lib/cactus-
> 20040311.jar -f samples/servlet/build.xml dist
> [Working Directory: /data3/gump/jakarta-cactus]
> ---------------------------------------------
> 
> BUILD FAILED
> /data3/gump/jakarta-cactus/samples/servlet/build.xml:330: The
following
> error occurred while executing this line:
>
/data3/gump/jakarta-cactus/samples/servlet/target-12/sample/build.xml:32
0:
> Test org.apache.cactus.sample.servlet.unit.TestBasicAuthentication
failed
> 	at
>
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe
lp
> er.java:536)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
> 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268)
> 	at org.apache.tools.ant.Task.perform(Task.java:363)
> 	at org.apache.tools.ant.Target.execute(Target.java:300)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:327)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1213)
> 	at
org.apache.tools.ant.Project.executeTargets(Project.java:1061)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:667)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
> 	at org.apache.tools.ant.Main.start(Main.java:151)
> 	at org.apache.tools.ant.Main.main(Main.java:234)
> Caused by: /data3/gump/jakarta-cactus/samples/servlet/target-
> 12/sample/build.xml:320: Test
> org.apache.cactus.sample.servlet.unit.TestBasicAuthentication failed
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.j
> ava:651)
> 	at
>
org.apache.cactus.integration.ant.CactusTask.executeInContainer(CactusTa
sk
> .java:449)
> 	at
>
org.apache.cactus.integration.ant.CactusTask.execute(CactusTask.java:213
)
> 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268)
> 	at org.apache.tools.ant.Task.perform(Task.java:363)
> 	at org.apache.tools.ant.Target.execute(Target.java:300)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:327)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1213)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:381)
> 	... 10 more
> --- Nested Exception ---
>
/data3/gump/jakarta-cactus/samples/servlet/target-12/sample/build.xml:32
0:
> Test org.apache.cactus.sample.servlet.unit.TestBasicAuthentication
failed
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
.j
> ava:651)
> 	at
>
org.apache.cactus.integration.ant.CactusTask.executeInContainer(CactusTa
sk
> .java:449)
> 	at
>
org.apache.cactus.integration.ant.CactusTask.execute(CactusTask.java:213
)
> 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268)
> 	at org.apache.tools.ant.Task.perform(Task.java:363)
> 	at org.apache.tools.ant.Target.execute(Target.java:300)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:327)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1213)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:381)
> 	at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268)
> 	at org.apache.tools.ant.Task.perform(Task.java:363)
> 	at org.apache.tools.ant.Target.execute(Target.java:300)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:327)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1213)
> 	at
org.apache.tools.ant.Project.executeTargets(Project.java:1061)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:667)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
> 	at org.apache.tools.ant.Main.start(Main.java:151)
> 	at org.apache.tools.ant.Main.main(Main.java:234)
> 
> Total time: 26 seconds
> ---------------------------------------------
> 
> 
> 
> 
> To subscribe to this information via syndicated feeds:
> RSS: http://lsd.student.utwente.nl/gump/jakarta-cactus/jakarta-cactus-
> sample-servlet-12.rss | Atom:
http://lsd.student.utwente.nl/gump/jakarta-
> cactus/jakarta-cactus-sample-servlet-12.atom
> 
> --
> Gump http://gump.apache.org/
> [lsd]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-dev-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> Uh, Adam and Antoine asked access to moof and I gave it to them. I
> didn't do anything else.
>
> Guys, status?

I'd point you to a posting (yesterday) with a subject of 'gump on moof', but
our eyebrowse index seems dorked. Can you see it?

regards

Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefano Mazzocchi <st...@apache.org>.
Stefan Bodewig wrote:

> Currently Gump doesn't run on any ASF machine, unless Stefano's
> efforts on moof have come further along than I thought.

Uh, Adam and Antoine asked access to moof and I gave it to them. I 
didn't do anything else.

Guys, status?

-- 
Stefano.


Re: How to debug a Gump build problem?

Posted by Michael Davey <Mi...@coderage.org>.
Stefan Bodewig wrote:

>On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:
>  
>
>>The biggest problem is that Gump doesn't run the build in the same
>>than projects are running their builds! It's using sysclasspathonly
>>feature and that's not the way it's run by project.
>>    
>>
[snip]

>>Maybe an alternative would be for Gump to try to run the project
>>using sysclasspatonly first and then if it fails, it will run
>>"normally". The reports would show both outcomes. That would provide
>>useful feedback.
>>    
>>
>
>Sure.  This is part of the idea set on how to determine who is
>responsible for a failing build.
>  
>
I think a big part of the problem is that individual projects tend to either
include snapshots of their dependencies or profide a get-deps style
target that downloads snapshots of their dependencies from ibiblio.

While this is fine for a release, because the dependecies are effectively
hard-coded even for CVS HEAD, it is easy to forget to update the
dependencies over time.

I can see three possible solutions:

1.  provide some logic in Gump to understand both snapshots of
dependencies in CVS and the Ant <get tag; nag if it looks like the
hard-coded dependencies are falling behind. 

2.  encourage projects to provide an Ant target or Maven goal that
cvs checkout's and builds each dependancy.  This target would only
be used by developers to test integration. 

3.  Ask ibiblio to provide softlinks called "*latest*.jar" that point to
the latest version of each project in each directory.  Ask projects to
upload their latest jar to ibiblio as part of their release process.  Ask
projects to remove their dependencies from their CVS and provide
a get-deps target/goal instead.  Ask projects to use "*latest*" in
their get-deps target/goal in CVS HEAD, only changing them
to a specific version temporarily at release time.

(1)  may be difficult to acomplish with projects dependant on, for
example, xml-xerces1.

(2) would probably not be all that useful as there would be no
guarantee that cvs HEAD is buildable - as we see every day with
Gump.

(3) expects a lot of everyone.  If projects follow good practice by
tagging a release, it wouldn't take much work to get Gump to
monitor which projects are friends of solution 3.

-- 
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:

> Ok. First update: I've successfully run the servlet sample build on
> a unix machine (cvs.apache.apache) using Tomcat 3.3.2.

I've just re-checked my dump.  There is no Authorization header in the
requests at all.  I currently suspect that Basic-Auth support in
httpclient has been broken (or the interface changed).

Can you try running your servlet sample in a setup that works and just
replace httpclient with a CVS HEAD version (you'll likely also need
commons-codec).  Jars for both are available from
<http://gump.covalent.net/jars/latest/jakarta-commons/>.

> Stefan, do you think you could make available the content of the
> jakarta-tomcat/ build directory somewhere (i.e. the
> /data3/gump/jakarta-tomcat/build/tomcat/ dir)?

See my home dir on minotaur.  The contents of last night's build on
LSD.

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


RE: How to debug a Gump build problem?

Posted by Vincent Massol <vm...@pivolis.com>.
Ok. First update: I've successfully run the servlet sample build on a
unix machine (cvs.apache.apache) using Tomcat 3.3.2.

Thus I now suspect the gump command line (i.e. the way it points to a
possibly unfinished Tomcat install).

Stefan, do you think you could make available the content of the
jakarta-tomcat/ build directory somewhere (i.e. the
/data3/gump/jakarta-tomcat/build/tomcat/ dir)?

I'd like to try to run the samples by pointing to this Tomcat install
and see what happens.

Thanks
-Vincent

> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: 11 March 2004 15:08
> To: 'Gump code and data'
> Subject: RE: How to debug a Gump build problem?
> 
> Wow. Good debugging! Thanks Stefan for your help.
> 
> I'm trying to run the cactus build on cvs.apache.org to see if I can
> reproduce the problem. I'll let you know as I make progress.
> 
> Thanks
> -Vincent
> 
> > -----Original Message-----
> > From: Stefan Bodewig [mailto:bodewig@apache.org]
> > Sent: 11 March 2004 13:14
> > To: general@gump.apache.org
> > Subject: Re: How to debug a Gump build problem?
> >
> > Vincent,
> >
> > I've rerun the build with tcpdump running to get an idea of what is
> > actually happening:
> >
> > -> GET /cactus-sample-servlet-
> > cactified/ServletRedirector?Cactus_Service=RUN_TEST
> > <- 200 OK
> > -> GET /cactus-sample-servlet-
> > cactified/ServletRedirector?Cactus_Service=RUN_TEST
> > <- 200 OK
> > -> GET /cactus-sample-servlet-
> >
>
cactified/ServletRedirectorSecure?Cactus_TestMethod=testBasicAuthenticat
> io
> >
>
n&Cactus_TestClass=org.apache.cactus.sample.servlet.unit.TestBasicAuthen
> ti
> > cation&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
> > <- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
> > -> GET /cactus-sample-servlet-
> > cactified/ServletRedirectorSecure?Cactus_Service=GET_RESULTS
> > <- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
> > -> GET /cactus-sample-servlet-
> > cactified/ServletRedirector?Cactus_Service=RUN_TEST
> > <- 200 OK
> > -> GET /cactus-sample-servlet-
> > cactified/ServletRedirector?Cactus_Service=RUN_TEST
> > <- 200 OK
> >
> > To me it looks as if cactus never successfully authenticates and
fails
> > when it tries to collect the test results.
> >
> > So I've manually started Tomcat to see whether I could log in.  I
get
> > the login dialog box, use testuser/testpassword, accept a session-id
> > cookie and then I'm in.  If I then invoke GET_RESULTS I get
> >
> > <webresult/>
> >
> > So manually things seem to work fine, but I don't see cactus even
> > trying to authenticate.
> >
> > Let me know if I can do more tests.
> >
> > Stefan
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> > For additional commands, e-mail: general-help@gump.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


RE: How to debug a Gump build problem?

Posted by Vincent Massol <vm...@pivolis.com>.
Wow. Good debugging! Thanks Stefan for your help. 

I'm trying to run the cactus build on cvs.apache.org to see if I can
reproduce the problem. I'll let you know as I make progress.

Thanks
-Vincent

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: 11 March 2004 13:14
> To: general@gump.apache.org
> Subject: Re: How to debug a Gump build problem?
> 
> Vincent,
> 
> I've rerun the build with tcpdump running to get an idea of what is
> actually happening:
> 
> -> GET /cactus-sample-servlet-
> cactified/ServletRedirector?Cactus_Service=RUN_TEST
> <- 200 OK
> -> GET /cactus-sample-servlet-
> cactified/ServletRedirector?Cactus_Service=RUN_TEST
> <- 200 OK
> -> GET /cactus-sample-servlet-
>
cactified/ServletRedirectorSecure?Cactus_TestMethod=testBasicAuthenticat
io
>
n&Cactus_TestClass=org.apache.cactus.sample.servlet.unit.TestBasicAuthen
ti
> cation&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
> <- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
> -> GET /cactus-sample-servlet-
> cactified/ServletRedirectorSecure?Cactus_Service=GET_RESULTS
> <- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
> -> GET /cactus-sample-servlet-
> cactified/ServletRedirector?Cactus_Service=RUN_TEST
> <- 200 OK
> -> GET /cactus-sample-servlet-
> cactified/ServletRedirector?Cactus_Service=RUN_TEST
> <- 200 OK
> 
> To me it looks as if cactus never successfully authenticates and fails
> when it tries to collect the test results.
> 
> So I've manually started Tomcat to see whether I could log in.  I get
> the login dialog box, use testuser/testpassword, accept a session-id
> cookie and then I'm in.  If I then invoke GET_RESULTS I get
> 
> <webresult/>
> 
> So manually things seem to work fine, but I don't see cactus even
> trying to authenticate.
> 
> Let me know if I can do more tests.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefan Bodewig <bo...@apache.org>.
Vincent,

I've rerun the build with tcpdump running to get an idea of what is
actually happening:

-> GET /cactus-sample-servlet-cactified/ServletRedirector?Cactus_Service=RUN_TEST
<- 200 OK
-> GET /cactus-sample-servlet-cactified/ServletRedirector?Cactus_Service=RUN_TEST
<- 200 OK
-> GET /cactus-sample-servlet-cactified/ServletRedirectorSecure?Cactus_TestMethod=testBasicAuthentication&Cactus_TestClass=org.apache.cactus.sample.servlet.unit.TestBasicAuthentication&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
<- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
-> GET /cactus-sample-servlet-cactified/ServletRedirectorSecure?Cactus_Service=GET_RESULTS
<- 401 Unauthorized\r\nWWW-Authenticate: Basic realm="myrealm"
-> GET /cactus-sample-servlet-cactified/ServletRedirector?Cactus_Service=RUN_TEST
<- 200 OK
-> GET /cactus-sample-servlet-cactified/ServletRedirector?Cactus_Service=RUN_TEST
<- 200 OK

To me it looks as if cactus never successfully authenticates and fails
when it tries to collect the test results.

So I've manually started Tomcat to see whether I could log in.  I get
the login dialog box, use testuser/testpassword, accept a session-id
cookie and then I'm in.  If I then invoke GET_RESULTS I get

<webresult/>

So manually things seem to work fine, but I don't see cactus even
trying to authenticate.

Let me know if I can do more tests.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


RE: How to debug a Gump build problem?

Posted by Vincent Massol <vm...@pivolis.com>.
Thanks Stefan. I've had a look but there's nothing wrong I can see
unfortunately... The Tomcat users file is there (it could have been the
cause).

Might be an OS thingie. I'll need to find some time to try it on a unix
system (which I don't have at home).

Thanks
-Vincent

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: 11 March 2004 11:21
> To: general@gump.apache.org
> Subject: Re: How to debug a Gump build problem?
> 
> On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:
> 
> > What would be very useful is to check the /tmp directory.
> 
> tomcat3x.zip in my home dir.
> 
> Cheers
> 
>         Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:

> What would be very useful is to check the /tmp directory.

tomcat3x.zip in my home dir.

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


RE: How to debug a Gump build problem?

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: 11 March 2004 10:45
> To: general@gump.apache.org
> Subject: Re: How to debug a Gump build problem?
> 
> On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:
> 
> > It's a pity that
> >
http://lsd.student.utwente.nl/gump/jakarta-cactus/jakarta-cactus-sample-
> > servlet-13.html has a pre-req failure as we would have been able to
> > see if it passed the tests fine (it's using Tomcat 4.x and not
> > Tomcat 3.3.x).
> 
> Fails on my machine as well.
> 
> I wonder why jstl-jsp-12 builds for me but not on LSD, wait, it also
> fails on "traditional" Gump but the jar is created before the build
> fails and thus the depending projects can use it.  Does Gumpy discard
> the generated jars of a failed build?
> 
> > The biggest problem is that Gump doesn't run the build in the same
> > than projects are running their builds! It's using sysclasspathonly
> > feature and that's not the way it's run by project.
> 
> If this really turns out to be the problem, than it indicates that one
> of the components you depend on has broken its contracts.

Or that there is a configuration issue (coming either from Cactus or
from Tomcat)...
 
> 
> > Maybe an alternative would be for Gump to try to run the project
> > using sysclasspatonly first and then if it fails, it will run
> > "normally". The reports would show both outcomes. That would provide
> > useful feedback.
> 
> Sure.  This is part of the idea set on how to determine who is
> responsible for a failing build.

cool

> 
> But "ParsingException: Not a valid response [401 Unauthorized]" looks
> strange, I'll try to debug this a little further.

No this is normal. This comes from Cactus itself and indicates the
Cactus client side parts has not successfully authorized itself against
the server side (running inside Tomcat 3.3.x). As part of the its test
Cactus provides a tomcat users file for authorizations.

What would be very useful is to check the /tmp directory. There should a
cactus/ directory containing useful information to know what happened.
This is where cactus installs a temporary Tomcat instance.

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:

> It's a pity that
> http://lsd.student.utwente.nl/gump/jakarta-cactus/jakarta-cactus-sample-
> servlet-13.html has a pre-req failure as we would have been able to
> see if it passed the tests fine (it's using Tomcat 4.x and not
> Tomcat 3.3.x).

Fails on my machine as well.

I wonder why jstl-jsp-12 builds for me but not on LSD, wait, it also
fails on "traditional" Gump but the jar is created before the build
fails and thus the depending projects can use it.  Does Gumpy discard
the generated jars of a failed build?

> The biggest problem is that Gump doesn't run the build in the same
> than projects are running their builds! It's using sysclasspathonly
> feature and that's not the way it's run by project.

If this really turns out to be the problem, than it indicates that one
of the components you depend on has broken its contracts.

> Maybe an alternative would be for Gump to try to run the project
> using sysclasspatonly first and then if it fails, it will run
> "normally". The reports would show both outcomes. That would provide
> useful feedback.

Sure.  This is part of the idea set on how to determine who is
responsible for a failing build.

But "ParsingException: Not a valid response [401 Unauthorized]" looks
strange, I'll try to debug this a little further.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


RE: How to debug a Gump build problem?

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Stefan,

Thanks for your help. However, I don't see how I can debug this without
having access to a gump install. There's nothing wrong in the build
itself. It just fails on one test. 

I believe the error might be due to the fact that Cactus is supposed to
be executed on a machine where containers are already installed (in our
case at hand, Tomcat 3.3.x). When I run the build locally I have the
cactus.home.tomcat3x point to where Tomcat 3.3.x is installed. Whereas
in the gump build I'm not sure it's pointing to a real install
directory. I think it's point to the directory where Tomcat 3.3.x was
built and it may happen that Tomcat build does not have all
configuration files set up correctly? I'm really shooting in the dark.

It's a pity that
http://lsd.student.utwente.nl/gump/jakarta-cactus/jakarta-cactus-sample-
servlet-13.html has a pre-req failure as we would have been able to see
if it passed the tests fine (it's using Tomcat 4.x and not Tomcat
3.3.x).

The other possible reason for failure is because it's running on unix
whereas I'm running on windows. I'd need to set up my shell account on
cvs.apache.org to try running it there. That'll take me a while to
setup.

The only issue with all this is that it's quite difficult to do so you
have to be really motivated :-) What I mean by this is that most of the
time there's a problem with the Cactus build on Gump it's not a problem
of Cactus, it's a problem of the Gump build setup itself (at least this
is my experience from the past few years Cactus has been building with
Gump). Thus I know Cactus is building fine. I just need to make it build
with Gump...

The biggest problem is that Gump doesn't run the build in the same than
projects are running their builds! It's using sysclasspathonly feature
and that's not the way it's run by project. Thus lots of Gump build
failures are due to this different setup. While I can see the benefit of
it, I still also value the simple fact that the build is working.

Maybe an alternative would be for Gump to try to run the project using
sysclasspatonly first and then if it fails, it will run "normally". The
reports would show both outcomes. That would provide useful feedback.

Thanks
-Vincent

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: 11 March 2004 10:06
> To: general@gump.apache.org
> Subject: Re: How to debug a Gump build problem?
> 
> On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:
> 
> > Everything runs fine here. Thus I think it can be caused either by a
> > different configuration or by the fact that it runs on a different
> > OS.
> 
> It fails on lsd as well as gump.covalent.net, so it fails using Gumpy
> or traditional Gump and it fails on Linux as well as Solaris.
> 
> Ooops, I just realized that it hasn't built on the covalent machine.
> I think this was due to the fact that the configuration was stalled.
> Should build in a few minutes.
> 
> > More specifically: Do we have a shell account with read access to
> > the directory where Gump built the project?
> 
> Currently Gump doesn't run on any ASF machine, unless Stefano's
> efforts on moof have come further along than I thought.
> 
> Once we have such a beast, things should become fairly easy.
> 
> I'm not in the position to give you access to any of the machines
> currently running Gump, not even my private installation, sorry.
> 
> I'm willing to lend a hand and execute whatever you need in my
> installation,
> <http://cvs.apache.org/~bodewig/gump/jakarta-cactus-sample-servlet-
> 12.html>
> is the result from last night's run on my machine and in my home dir
> on minotaur is a zipped up version of
> jakarta-cactus/samples/servlet/target-12.
> 
> Let me know if you need anything else.
> 
> Cheers
> 
>         Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
> For additional commands, e-mail: general-help@gump.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 11 Mar 2004, Vincent Massol <vm...@pivolis.com> wrote:

> Everything runs fine here. Thus I think it can be caused either by a
> different configuration or by the fact that it runs on a different
> OS.

It fails on lsd as well as gump.covalent.net, so it fails using Gumpy
or traditional Gump and it fails on Linux as well as Solaris.

Ooops, I just realized that it hasn't built on the covalent machine.
I think this was due to the fact that the configuration was stalled.
Should build in a few minutes.

> More specifically: Do we have a shell account with read access to
> the directory where Gump built the project?

Currently Gump doesn't run on any ASF machine, unless Stefano's
efforts on moof have come further along than I thought.

Once we have such a beast, things should become fairly easy.

I'm not in the position to give you access to any of the machines
currently running Gump, not even my private installation, sorry.

I'm willing to lend a hand and execute whatever you need in my
installation,
<http://cvs.apache.org/~bodewig/gump/jakarta-cactus-sample-servlet-12.html>
is the result from last night's run on my machine and in my home dir
on minotaur is a zipped up version of
jakarta-cactus/samples/servlet/target-12.

Let me know if you need anything else.

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: How to debug a Gump build problem?

Posted by Leo Simons <ls...@jicarilla.org>.
Vincent Massol wrote:
> My question is: What are the facilities given to projects to debug Gump
> builds? 

not that much, at the moment. The main gumpy runs on a machine in our 
flat's living room.

> More specifically: Do we have a shell account with read access to the
> directory where Gump built the project?

some people have accounts on my machine (Adam, Stefan, Sam, ...). Want 
one? Send me your public key privately :-D

> Also, is there a ASP-like GUMP installation on an ASF machine where we
> could have a shell account and execute Gump build on demand.

not yet. It's in the works.

-- 
cheers,

- Leo Simons

-----------------------------------------------------------------------
Weblog              -- http://leosimons.com/
IoC Component Glue  -- http://jicarilla.org/
Articles & Opinions -- http://articles.leosimons.com/
-----------------------------------------------------------------------
"We started off trying to set up a small anarchist community, but
  people wouldn't obey the rules."
                                                         -- Alan Bennett



---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org