-
1. Re: Tests log output under cruisecontrol
ryan.campbell Nov 18, 2005 3:50 PM (in response to ovidiu.feodorov)The build artifacts page is just a dumb directory listing. For the appserver, we copy in all **/*.log under build & testsuite. We could do the same for your build, ie, just copy all the .logs. Would this work? This way, you could add logs arbitrarily to Build Artifacts without any coordination on our side.
-
2. Re: Tests log output under cruisecontrol
ovidiu.feodorov Nov 18, 2005 5:58 PM (in response to ovidiu.feodorov)Yes, that's perfect.
Thanks. -
3. Re: Tests log output under cruisecontrol
ovidiu.feodorov Nov 19, 2005 3:11 PM (in response to ovidiu.feodorov)What is the current directory in which the junit process runs?
I configured my log4j to dump logging into ./messaging-tests.trace.log, which is relative to the current junit process directory, but it doesn't look like the file it's found when creating the artifacts page.<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> ... <param name="File" value="./messaging-tests.trace.log"/> ...
Just tell me where you want me to create that file so your artifact page generatig process finds. I don't use a "build" directory, neither a "testsuite" directory. -
4. Re: Tests log output under cruisecontrol
ryan.campbell Nov 27, 2005 5:42 PM (in response to ovidiu.feodorov)Ovidiu,
It looks like we aren't changing setting the "dir" attribute of the exec task when we call your build, so it outputs to the working directory. Rajesh will fix this.
Nevertheless, can you put the logs from your tests in output/logs? I see several things in the build script directory:
debug_output.log
messaging-tests.trace.log
jms.log
C:/dev/jboss-head/jms/tests/etc
The last one looks like it has a hard coded windows path?
All of these should go to output/logs or output/whatever. -
5. Re: Tests log output under cruisecontrol
ovidiu.feodorov Dec 5, 2005 2:57 PM (in response to ovidiu.feodorov)Setting the "dir" attribute shouldn't be necessary. I will create the log directory relative to ${module.output}. What value is this property set to during a test run?
-
6. Re: Tests log output under cruisecontrol
ryan.campbell Dec 5, 2005 3:22 PM (in response to ovidiu.feodorov)It looks like using module.output will work, as it defaults like this in buildmagic.ent:
<property name="module.root" value="${basedir}"/> <property name="module.output" value="${module.root}/output"/>
-
7. Re: Tests log output under cruisecontrol
ovidiu.feodorov Dec 5, 2005 3:32 PM (in response to ovidiu.feodorov)Yes, but I need to know what value it defaults to during a cruiscontrol run. Is it jboss-head/jms/output or jboss-head/jms/tests/output?
If I go to the "tests" directory and I ./build.sh report, the module.output defaults to jboss-head/jms/tests/output, which is something I don't think we want to use.
What's the ${basedir} value during a cruisecontrol run? -
8. Re: Tests log output under cruisecontrol
ryan.campbell Dec 5, 2005 5:44 PM (in response to ovidiu.feodorov)The {basedir} would be jms/tests/output, just like if you exec it yourself.
What's bad about this? We'll just copy **/*.log anyway. It will catch it either way. -
9. Re: Tests log output under cruisecontrol
ryan.campbell Dec 5, 2005 5:45 PM (in response to ovidiu.feodorov)We don't override basedir, it is an ant builtin property.
-
10. Re: Tests log output under cruisecontrol
ovidiu.feodorov Dec 5, 2005 9:28 PM (in response to ovidiu.feodorov)Nothing id bad. Just wanted to make sure, since I don't have access to the cc machine so I can test it myself.
-
11. Re: Tests log output under cruisecontrol
ovidiu.feodorov Dec 5, 2005 10:26 PM (in response to ovidiu.feodorov)I've checked in changes that'll make the test run create its logging file under ${module.output}/logs. Looking forward to see log files linked under the Build Artifacts page.
Thanks