[
https://issues.apache.org/jira/browse/DERBY-7003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542282#comment-16542282
]
Rick Hillegas commented on DERBY-7003:
--------------------------------------
Here are some problems which still appear in the jacoco output after committing
the previous patch:
In case someone else wants to spend some time on jacoco, here are some
errors which I found in the jenkins pipeline tab (in addition to the tests
errors):
[Derby-JaCoCo] $ /bin/bash -xe /tmp/jenkins6682900521189757649.sh
+ echo 'JAVA_HOME: /home/jenkins/tools/java/latest1.9'
JAVA_HOME: /home/jenkins/tools/java/latest1.9
+ jacoco_version=0.7.9
+ jacoco_zip_sha1=1d56a66be0f4a6b529d8f983ab65cc77a52cccb6
+ jacocoant_sha1=87aa22de3854fd5a43e37a17c4b245b01a46de93
+ jacocoagent_sha1=a6ac9cca89d889222a40dab9dd5039bfd22a4cff
+ cat
+ sha1sum -c sha1sum.txt
sha1sum: trunk/tools/java/jacocoant.jar: No such file or directory
trunk/tools/java/jacocoant.jar: FAILED open or read
sha1sum: trunk/tools/java/jacocoagent.jar: No such file or directory
trunk/tools/java/jacocoagent.jar: FAILED open or read
sha1sum: WARNING: 2 listed files could not be read
----------------------
[junit] (net)derbynet.Utf8CcsidManagerClientTest.testInvalidCharacters
used 3 ms Tests run: 340, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
316.45 sec
[junit] Test
org.apache.derbyTesting.functionTests.tests.derbynet._Suite FAILED
[junit] Running org.apache.derbyTesting.functionTests.tests.tools._Suite
[junit]
----------------------
[junit]
[junit] used 4002 ms Tests run: 8015, Failures: 0, Errors: 8, Skipped:
0, Time elapsed: 1,563.687 sec
[junit] Test org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite
FAILED
[junit] Running org.apache.derbyTesting.functionTests.tests.store._Suite
[junit]
----------------------
[junit] (subprocess) at
junit.extensions.TestSetup.run(TestSetup.java:25)
[junit] (subprocess) 2)
testModifyThreadGroup(org.apache.derbyTesting.unitTests.junit.MissingPermissionsTest)java.lang.NullPointerException
[junit] (subprocess) at
org.apache.derby.iapi.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:136)
[junit] (subprocess) at
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:678)
----------------------
See
<https://builds.apache.org/job/Derby-JaCoCo/314/display/redirect?page=changes>
> Jacoco test run needs another permission
> ----------------------------------------
>
> Key: DERBY-7003
> URL: https://issues.apache.org/jira/browse/DERBY-7003
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.15.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Priority: Major
> Attachments: derby-7003-01-aa-extraJacocoPermission.diff,
> derby-7003-01-ab-extraJacocoPermission.diff
>
>
> When I run the jacoco-complete target, I see FilePermission errors because
> write permission has not been granted to trunk/jacoco.exec. Read/write
> permissions are granted to the user.dir directory, which is a directory tree
> parallel to jacoco.exec. The following permission needs to be granted to the
> jacoco jars:
> {noformat}
> permission java.io.FilePermission
> "${jacoco.active}${user.dir}${/}..${/}jacoco.exec", "read, write";
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)