uschindler edited a comment on pull request #119:
URL: https://github.com/apache/lucene/pull/119#issuecomment-830618797


   Hi,
   I tested with jenkins, works fine. For Jenkins it is enough to run tests 
with `tests.coverage=true` and configure the jenkins plugin to create the 
reports and save them inside jenkins. The task `jacocoTestReport` is obsolete 
for Jenkins.
   
   I only had to tweak the settings a bit, because our build does not have 
default filenames (`*.exec`) or source location (`src/main/java`):
   
   
![image](https://user-images.githubusercontent.com/1005388/116781282-3533f500-aa82-11eb-9899-69486cf15343.png)
   
   While running the jenkins Job, the replicator module produced a strange 
error with security manager:
   
   ```
   > Task :lucene:replicator:test FAILED
   Exception in thread "main" java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
   Caused by: java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.jacoco.agent.rt.internal_f3994fa.core.runtime.InjectedClassRuntime$Lookup.privateLookupIn(InjectedClassRuntime.java:118)
        at 
org.jacoco.agent.rt.internal_f3994fa.core.runtime.InjectedClassRuntime.startup(InjectedClassRuntime.java:54)
        at org.jacoco.agent.rt.internal_f3994fa.PreMain.premain(PreMain.java:53)
        ... 6 more
   Caused by: java.security.AccessControlException: access denied 
("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
        at 
java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at 
java.base/java.security.AccessController.checkPermission(AccessController.java:897)
        at 
java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
        at 
java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:189)
        ... 13 more
   FATAL ERROR in native method: processing of -javaagent failed
   ```
   
   So the replicator reports zero coverage. When this is fixed, I will disable 
the "Always run coverage creation, also on ABORTED or FAILED" setting. When 
this is merged, please remind me to change the job to use Apache Gitbox and 
main branch.
   
   Here are the results of first successful run on your PR's branch:
   - Main build page: 
https://ci-builds.apache.org/job/Lucene/job/Lucene-Coverage-main/4/
   - Go to the coverage reports on left ("Testabdeckung" in German, I got crazy 
to find this): 
https://ci-builds.apache.org/job/Lucene/job/Lucene-Coverage-main/4/jacoco/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to