[jira] [Commented] (SLING-12234) Commons Log builds fail on Windows

2024-03-16 Thread Oliver Lietz (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-12234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17827713#comment-17827713
 ] 

Oliver Lietz commented on SLING-12234:
--

[~rombert], [~joerghoh], I've changed the temp directory for the store and 
switched back to default Jenkins configuration on {{{}master{}}}.

The integration test [{{ITPackagingData}} gets executed 
successfully|https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-commons-log/job/master/218/execution/node/70/ws/jdk_17_latest/target/failsafe-reports/org.apache.sling.commons.log.logback.integration.ITPackagingData.txt]:
{noformat}
---
Test set: org.apache.sling.commons.log.logback.integration.ITPackagingData
---
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.392 s - in 
org.apache.sling.commons.log.logback.integration.ITPackagingData
{noformat}
Looks more like an issue with Jenkins and/or Windows because Jenkins tells 
something different:
{noformat}
[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 17.673 
s <<< FAILURE! - in 
org.apache.sling.commons.log.logback.integration.ITPackagingData
[ERROR] 
org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking
  Time elapsed: 5.963 s  <<< ERROR!
java.io.IOException: Access is denied
at 
org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking(ITPackagingData.java:148)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   ITPackagingData.packageDataWorking:148 Ā» IO Access is denied
[INFO] 
[ERROR] Tests run: 25, Failures: 0, Errors: 1, Skipped: 0
{noformat}
[~sseifert], Can you run the build successful on your local Windows?

Can you all please double check the log outputs and the build configuration? 
The value for {{timeĀ elapsed}} is different which is really strange. Are there 
maybe multiple builds running in parallel in the same workspace?

> Commons Log builds fail on Windows
> --
>
> Key: SLING-12234
> URL: https://issues.apache.org/jira/browse/SLING-12234
> Project: Sling
>  Issue Type: Bug
>  Components: Commons
>Reporter: Robert Munteanu
>Priority: Major
> Fix For: Commons Log 5.5.2
>
>
> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-commons-log/detail/master/205/pipeline:
> {noformat}
> [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 19.585 s <<< FAILURE! - in 
> org.apache.sling.commons.log.logback.integration.ITPackagingData
> [ERROR] 
> org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking
>   Time elapsed: 6.929 s  <<< ERROR!
> java.io.IOException: Access is denied
>   at java.base/java.io.WinNTFileSystem.createFileExclusively(Native 
> Method)
>   at java.base/java.io.File.createTempFile(File.java:2129)
>   at java.base/java.io.File.createTempFile(File.java:2175)
>   at org.ops4j.store.StoreFactory.anonymousStore(StoreFactory.java:100)
>   at 
> org.ops4j.pax.tinybundles.core.TinyBundles.getDefaultStore(TinyBundles.java:104)
>   at 
> org.ops4j.pax.tinybundles.core.TinyBundles.bundle(TinyBundles.java:50)
>   at 
> org.apache.sling.commons.log.logback.integration.PackagingDataTestUtil.createTestBundle(PackagingDataTestUtil.java:44)
>   at 
> org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking(ITPackagingData.java:148)
>   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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runLeafWithRetry(ContainerTestRunner.java:97)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
>   at 
> 

[jira] [Commented] (SLING-12234) Commons Log builds fail on Windows

2024-03-16 Thread Oliver Lietz (Jira)


[ 
https://issues.apache.org/jira/browse/SLING-12234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17827687#comment-17827687
 ] 

Oliver Lietz commented on SLING-12234:
--

[~rombert], TinyBundles is using 
[Store|https://github.com/ops4j/org.ops4j.base/blob/master/ops4j-base-store/src/main/java/org/ops4j/store/StoreFactory.java]
 (from OPS4J Base) which allows you to override the temp directory. Have you 
tried that?
Or have you tried to set the system property {{java.io.tmpdir}} to a directory 
inside Maven's build directory (e.g. {{{}target/temp{}}}) ?

TinyBundles 4.0 contains major changes and you would have to adjust some 
imports at least. Next Pax Exam and Sling Testing PaxExam releases will use 
TinyBundles 4.0. The [TinyBundles CI builds are running fine on Linux and 
Windows on 
GitHub|https://github.com/ops4j/org.ops4j.pax.tinybundles/actions/workflows/maven.yml].
 And don't use Pax Exam greater 4.13.3 as they contain regressions only fixed 
in the upcoming 4.14 release.

> Commons Log builds fail on Windows
> --
>
> Key: SLING-12234
> URL: https://issues.apache.org/jira/browse/SLING-12234
> Project: Sling
>  Issue Type: Bug
>  Components: Commons
>Reporter: Robert Munteanu
>Priority: Major
> Fix For: Commons Log 5.5.2
>
>
> https://ci-builds.apache.org/blue/organizations/jenkins/Sling%2Fmodules%2Fsling-org-apache-sling-commons-log/detail/master/205/pipeline:
> {noformat}
> [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 19.585 s <<< FAILURE! - in 
> org.apache.sling.commons.log.logback.integration.ITPackagingData
> [ERROR] 
> org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking
>   Time elapsed: 6.929 s  <<< ERROR!
> java.io.IOException: Access is denied
>   at java.base/java.io.WinNTFileSystem.createFileExclusively(Native 
> Method)
>   at java.base/java.io.File.createTempFile(File.java:2129)
>   at java.base/java.io.File.createTempFile(File.java:2175)
>   at org.ops4j.store.StoreFactory.anonymousStore(StoreFactory.java:100)
>   at 
> org.ops4j.pax.tinybundles.core.TinyBundles.getDefaultStore(TinyBundles.java:104)
>   at 
> org.ops4j.pax.tinybundles.core.TinyBundles.bundle(TinyBundles.java:50)
>   at 
> org.apache.sling.commons.log.logback.integration.PackagingDataTestUtil.createTestBundle(PackagingDataTestUtil.java:44)
>   at 
> org.apache.sling.commons.log.logback.integration.ITPackagingData.packageDataWorking(ITPackagingData.java:148)
>   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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runLeafWithRetry(ContainerTestRunner.java:97)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>   at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>   at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
>   at 
> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
>   at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
>