You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2009/10/09 19:17:31 UTC

[jira] Commented: (CAY-1228) Hudson automated testing against multiple databases

    [ https://issues.apache.org/jira/browse/CAY-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764104#action_12764104 ] 

Andrey Razumovsky commented on CAY-1228:
----------------------------------------

It would also be great if Hudson tested with jdk6 as well as jdk5. Is that possible?

> Hudson automated testing against multiple databases
> ---------------------------------------------------
>
>                 Key: CAY-1228
>                 URL: https://issues.apache.org/jira/browse/CAY-1228
>             Project: Cayenne
>          Issue Type: Task
>          Components: Cayenne Core Library
>            Reporter: Ari Maniatis
>            Assignee: Ari Maniatis
>             Fix For: Short term future
>
>
> I need to get a variety of databases installed in the Cayenne Solaris zone so we can run Hudson tests against them all for each commit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (CAY-1228) Hudson automated testing against multiple databases

Posted by Lachlan Deck <la...@gmail.com>.
On 11/10/2009, at 12:48 AM, Aristedes Maniatis wrote:

> On 10/10/09 4:17 AM, Andrey Razumovsky (JIRA) wrote:
>> Andrey Razumovsky commented on CAY-1228:
>> ----------------------------------------
>>
>> It would also be great if Hudson tested with jdk6 as well as jdk5.  
>> Is that possible?
>
> Well, I've made the change. However we got bitten by this bug: http://jira.codehaus.org/browse/SUREFIRE-551 
> . It has been fixed, but in June 2009. The last release of the  
> plugin is 2.4.3 in May 2008. Is it easy for us to move to a snapshot  
> of that plugin? Andrey, if you understand the magic of maven, is  
> that a simple change for you to make?

http://repository.sonatype.org/index.html#nexus-search;quick~maven-surefire-plugin
latest snapshot version == 2.5-SNAPSHOT

So you could simply add <version>2.5-SNAPSHOT</version> to the build/ 
plugins/plugin:maven-surefire-plugin definition. (the groupId is left  
out as its assumed to be org.apache.maven.plugins).

However, I'd suggest if this is just a bug for your test machine using  
a profile within a pluginManagement section to make this optional:
<profiles>
	...
	<profile>
		<id>hudson.testing</id>
		<activation>
			<activeByDefault>false</activeByDefault>
			<property>
				<name>cayenne.test.hudson</name>
				<value>true</value>
			</property>
		</activation>
		<build>
			<pluginManagement>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.5-SNAPSHOT</version>
					</plugin>
				</plugins>
			</pluginManagement>
		</build>
	</profile>
	...
</profiles>

Then pass in the property -Dcayenne.test.hudson=true from your hudson  
build.

> Here is the failure:
> http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/jdk=JDK%201.5%20%28latest%29/lastFailedBuild/console
>
> Once that error is passed, it should build on both 1.5 and 1.6. Plus  
> we get to test on multiple databases within the same Hudson job. But  
> first, I have to find an infra person who will agree to run a few  
> databases...
>
> Ari
>
> -- 
>
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

with regards,
--

Lachlan Deck




Re: [jira] Commented: (CAY-1228) Hudson automated testing against multiple databases

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 10/10/09 4:17 AM, Andrey Razumovsky (JIRA) wrote:
> Andrey Razumovsky commented on CAY-1228:
> ----------------------------------------
>
> It would also be great if Hudson tested with jdk6 as well as jdk5. Is that possible?

Well, I've made the change. However we got bitten by this bug: http://jira.codehaus.org/browse/SUREFIRE-551. It has been fixed, but in June 2009. The last release of the plugin is 2.4.3 in May 2008. Is it easy for us to move to a snapshot of that plugin? Andrey, if you understand the magic of maven, is that a simple change for you to make?

Here is the failure:
http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/jdk=JDK%201.5%20%28latest%29/lastFailedBuild/console

Once that error is passed, it should build on both 1.5 and 1.6. Plus we get to test on multiple databases within the same Hudson job. But first, I have to find an infra person who will agree to run a few databases...

Ari

-- 

-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A