[jbosstools-issues] [JBoss JIRA] (JBIDE-24873) Add management itests to eap jbds compatibility jenkins job

Martin Malina (JIRA) issues at jboss.org
Tue Aug 29 05:50:00 EDT 2017


    [ https://issues.jboss.org/browse/JBIDE-24873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455174#comment-13455174 ] 

Martin Malina edited comment on JBIDE-24873 at 8/29/17 5:49 AM:
----------------------------------------------------------------

I managed to get the maven call to work to the extent that it actually starts the tests. But the tests fail.
First issue is that they're looking for java 7 which they shouldn't:
{code}
09:12:35 testJava7HomeSet(org.jboss.tools.as.management.itests.VerifyJREFlagsTest)  Time elapsed: 0.398 sec  <<< FAILURE!
09:12:35 junit.framework.AssertionFailedError: Java 7 version string must start with 1.7: 1.8.0_121
09:12:35 	at junit.framework.Assert.fail(Assert.java:57)
09:12:35 	at junit.framework.Assert.assertTrue(Assert.java:22)
09:12:35 	at junit.framework.TestCase.assertTrue(TestCase.java:192)
09:12:35 	at org.jboss.tools.as.management.itests.VerifyJREFlagsTest.testJava7HomeSet(VerifyJREFlagsTest.java:59)
{code}

Also, for some reason it's looking for jboss-as-7 for example:
{code}
09:12:35 junit.framework.AssertionFailedError: /home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/as/itests/org.jboss.tools.as.management.itests/target/requirements/jboss-as-7.0.0.Final does not exist.
09:12:35 	at junit.framework.Assert.fail(Assert.java:57)
09:12:35 	at junit.framework.Assert.assertTrue(Assert.java:22)
09:12:35 	at org.jboss.tools.as.management.itests.AS7ManagementServicePreReqTest.verifyCorrectService(AS7ManagementServicePreReqTest.java:37)
{code}

This was the maven call used:
{code}
mvn -f /home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/as/itests/org.jboss.tools.as.management.itests/pom.xml -DDEVSTUDIO_REPO=https://devstudio.redhat.com/11/stable/updates/ "-DMVN_ADDITIONAL_PARAMS=-s /home/hudson/.m2/settings_jbds.xml" -Djdk=oracle-java-1.8 -DEAP_VERSION=7.1.0.CR1 -DJBDS_VERSION=11_x "-Dlabel=RHEL7 && x86_64" -Djbosstools.test.jboss.home.7.1=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Djbosstools.test.singleruntime.location=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Ddownload.cache.directory=/home/hudson/static_build_env/jbds/download-cache -Djbosstools.test.jboss-eap-7.x.md5=14e4f8853111086962fa042a4d3cf1d2 -Dswtbot.test.skip=false -Djbosstools.test.jboss-eap-7.x.home=jboss-eap-7.1 -DskipRequirements=false -DdevstudioRepository=https://devstudio.redhat.com/11/stable/updates/ -Djbosstools.test.jboss-eap-7.x.url=file:///home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/eap7.zip -DadditionalProperties="-Djbosstools.test.single.runtime.location="/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Djbosstools.test.jre.8=/qa/tools/opt/x86_64/jdk1.8.0_last -Dtest.profile=eap7x-compatibility -Dusage_reporting_enabled=false -Dmaven.test.failure.ignore=true -Dmaven.repo.local=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/.repository clean verify -PITests,download-devstudio -e -s /home/hudson/.m2/settings_jbds.xml
{code}

Some of the parameters are redundant there - there are copied from the other maven call. I can remove some later. But I do have the parameters that you said were needed.

[~rob.stryker], can you take a look?

The job is here:
https://eap-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/

The results are green because I haven't configure the job to look for these new test results yet.


was (Author: mmalina):
I managed to get the maven call to work to the extent that it actually starts the tests. But the tests fail.
First issue is that they're looking for java 7 which they shouldn't:
{code}
09:12:35 testJava7HomeSet(org.jboss.tools.as.management.itests.VerifyJREFlagsTest)  Time elapsed: 0.398 sec  <<< FAILURE!
09:12:35 junit.framework.AssertionFailedError: Java 7 version string must start with 1.7: 1.8.0_121
09:12:35 	at junit.framework.Assert.fail(Assert.java:57)
09:12:35 	at junit.framework.Assert.assertTrue(Assert.java:22)
09:12:35 	at junit.framework.TestCase.assertTrue(TestCase.java:192)
09:12:35 	at org.jboss.tools.as.management.itests.VerifyJREFlagsTest.testJava7HomeSet(VerifyJREFlagsTest.java:59)
{code}

Also, for some reason it's looking for jboss-as-7 for example:
{code}
09:12:35 junit.framework.AssertionFailedError: /home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/as/itests/org.jboss.tools.as.management.itests/target/requirements/jboss-as-7.0.0.Final does not exist.
09:12:35 	at junit.framework.Assert.fail(Assert.java:57)
09:12:35 	at junit.framework.Assert.assertTrue(Assert.java:22)
09:12:35 	at org.jboss.tools.as.management.itests.AS7ManagementServicePreReqTest.verifyCorrectService(AS7ManagementServicePreReqTest.java:37)
{code}

This was the maven call used:
{code}
mvn -f /home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/as/itests/org.jboss.tools.as.management.itests/pom.xml -DDEVSTUDIO_REPO=https://devstudio.redhat.com/11/stable/updates/ "-DMVN_ADDITIONAL_PARAMS=-s /home/hudson/.m2/settings_jbds.xml" -Djdk=oracle-java-1.8 -DEAP_VERSION=7.1.0.CR1 -DJBDS_VERSION=11_x "-Dlabel=RHEL7 && x86_64" -Djbosstools.test.jboss.home.7.1=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Djbosstools.test.singleruntime.location=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Ddownload.cache.directory=/home/hudson/static_build_env/jbds/download-cache -Djbosstools.test.jboss-eap-7.x.md5=14e4f8853111086962fa042a4d3cf1d2 -Dswtbot.test.skip=false -Djbosstools.test.jboss-eap-7.x.home=jboss-eap-7.1 -DskipRequirements=false -DdevstudioRepository=https://devstudio.redhat.com/11/stable/updates/ -Djbosstools.test.jboss-eap-7.x.url=file:///home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/eap7.zip -DadditionalProperties="-Djbosstools.test.single.runtime.location="/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af"/as/itests/org.jboss.tools.as.ui.bot.itests/target/requirements/"jboss-eap-7.1 -Djbosstools.test.jre.8=/qa/tools/opt/x86_64/jdk1.8.0_last -Dtest.profile=eap7x-compatibility -Dusage_reporting_enabled=false -Dmaven.test.failure.ignore=true -Dmaven.repo.local=/home/hudson/hudson_workspace/workspace/eap-7x-jbds-compatibility-jbosstools-4.5.x-RHEL/f96458af/.repository clean verify -PITests,download-devstudio -e -s /home/hudson/.m2/settings_jbds.xml
{code}

Some of the parameters are redundant there - there are copied from the other maven call. I can remove some later. But I do have the parameters that you said were needed.

[~rob.stryker], can you take a look?

> Add management itests to eap jbds compatibility jenkins job
> -----------------------------------------------------------
>
>                 Key: JBIDE-24873
>                 URL: https://issues.jboss.org/browse/JBIDE-24873
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: server
>    Affects Versions: 4.5.0.Final
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>             Fix For: 4.5.x
>
>
> The EAP team would like us to add this test
> org.jboss.tools.as.management.itests
> to their compatibility job:
> https://eap-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/EAP7/view/EAP7-JBDS/job/eap-7x-jbds-compatibility-jbosstools-4.4.3-RHEL/
> details here: EAP7-194
> The test to be added is run here:
> https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstudio/view/devstudio_master/job/jbosstools-server-Run-Unit-and-ITests_master/
> Cc: [~rob.stryker]



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list