You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Bryan Pendleton (JIRA)" <ji...@apache.org> on 2018/04/15 17:15:00 UTC

[jira] [Commented] (DERBY-6976) Update JaCoCo Jenkins artifacts for Java 9 support

    [ https://issues.apache.org/jira/browse/DERBY-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16438778#comment-16438778 ] 

Bryan Pendleton commented on DERBY-6976:
----------------------------------------

I see that we are now using JaCoCo 0.7.9, but the code coverage builds still appear to be failing:


{noformat}
version_check:

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/Derby-JaCoCo/trunk/build.xml:66: FATAL ERROR:  The running Ant version, 1.10.1, is too old.
{noformat}

https://builds.apache.org/view/A-D/view/Derby/job/Derby-JaCoCo/297/console

> Update JaCoCo Jenkins artifacts for Java 9 support
> --------------------------------------------------
>
>                 Key: DERBY-6976
>                 URL: https://issues.apache.org/jira/browse/DERBY-6976
>             Project: Derby
>          Issue Type: Bug
>          Components: Build tools
>    Affects Versions: 10.15.0.0
>         Environment: Apache Jenkins
>            Reporter: Bryan Pendleton
>            Assignee: Rick Hillegas
>            Priority: Major
>
> > https://builds.apache.org/view/A-D/view/Derby/job/Derby-trunk-JaCoCo/49/
> This build correctly used Java 9.
> But it did not run successfully. The output said things like:
>      [java] Java Result: 134
>     [junit] Exception in thread "main" java.lang.reflect.InvocationTargetException
>     [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [junit] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     [junit] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     [junit] at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:500)
>     [junit] at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:512)
>     [junit] Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
> Here, I see that to support Java 9, we need JaCoCo 0.7.8:
> https://groups.google.com/forum/#!msg/jacoco/Zf0Cwj13G2g/wpyrYAEECAAJ
> But it looks like the Jenkins job is using 0.7.6:
> ++ cat jacocoversion.txt
> + echo 'JaCoCo version: 0.7.6.201602180812'
> JaCoCo version: 0.7.6.201602180812
> Rick, this one you probably have to track as a separate issue in JIRA; I don't think I can control the JaCoCo version by just changing a Jenkins configuration. Below is what we do in our build, but obviously it didn't automatically move from 0.7.6 to 0.7.8:
> # The files here are supposed to be updated automatically twice a month.
> JACOCO_URL=http://people.apache.org/~kristwaa/derby/jacoco-jars
> #wget -q -O trunk/tools/java/jacocoagent.jar $JACOCO_URL/jacocoagent.jar
> #wget -q -O trunk/tools/java/jacocoant.jar $JACOCO_URL/jacocoant.jar
> #wget -q -O jacocoversion.txt $JACOCO_URL/jacocoversion.txt
> curl $JACOCO_URL/jacocoagent.jar > trunk/tools/java/jacocoagent.jar 
> curl $JACOCO_URL/jacocoant.jar > trunk/tools/java/jacocoant.jar
> curl $JACOCO_URL/jacocoversion.txt > jacocoversion.txt
> thanks,
> bryan



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)