JoaoJandre commented on PR #12758: URL: https://github.com/apache/cloudstack/pull/12758#issuecomment-4335396579
> > @JoaoJandre , I see a unit test failure: > > ``` > > 18:59:26 [ERROR] Failures: > > 18:59:26 [ERROR] LibvirtComputingResourceTest.mergeSnapshotIntoBaseFileTestMergeFailsThrowException Expected exception: com.cloud.utils.exception.CloudRuntimeException > > ``` > > > > > > > > > > > > > > > > > > > > > > > > I don’t know why it fails in the GHA. It should be running unit tests as well right? > > (ad. same failure on el as well as on ubuntu) > > Thanks, I'll fix it. > > I thought it was running all the tests on the build check. Weird. @DaanHoogland I have executed the tests locally and they look ok: ``` ❯ echo $(git log -1 --oneline) 82c9a0c8e4a Address reviews ❯ mvn test -Dtest=LibvirtComputingResourceTest [INFO] Scanning for projects... [INFO] [INFO] ---------< org.apache.cloudstack:cloud-plugin-hypervisor-kvm >---------- [INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.23.0.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-checkstyle-plugin:3.6.0:check (cloudstack-checkstyle) @ cloud-plugin-hypervisor-kvm --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-plugin-hypervisor-kvm --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cloud-plugin-hypervisor-kvm --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ cloud-plugin-hypervisor-kvm --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ cloud-plugin-hypervisor-kvm --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/joao/Documents/CloudstackOficial/cloudstack/plugins/hypervisors/kvm/src/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ cloud-plugin-hypervisor-kvm --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ cloud-plugin-hypervisor-kvm --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 09:45:42.747 [main] ERROR com.cloud.utils.script.Script - Error executing piped commands java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "rpm": error=2, No such file or directory at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:205) ~[?:?] at com.cloud.utils.script.Script.executePipedCommands(Script.java:817) ~[cloud-utils-4.23.0.0-SNAPSHOT.jar:4.23.0.0-SNAPSHOT] at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtReadyCommandWrapper.hostSupportsUefi(LibvirtReadyCommandWrapper.java:76) ~[classes/:?] at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtReadyCommandWrapper.execute(LibvirtReadyCommandWrapper.java:47) ~[classes/:?] at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtReadyCommandWrapper.execute(LibvirtReadyCommandWrapper.java:39) ~[classes/:?] at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78) ~[classes/:?] at com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testReadyCommand(LibvirtComputingResourceTest.java:1870) ~[test-classes/:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:569) ~[?:?] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) ~[junit-4.13.2.jar:4.13.2] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) ~[junit-4.13.2.jar:4.13.2] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) ~[junit-4.13.2.jar:4.13.2] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) ~[junit-4.13.2.jar:4.13.2] at org.mockito.internal.runners.DefaultInternalRunner$1$1.evaluate(DefaultInternalRunner.java:55) ~[mockito-core-5.16.1.jar:?] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) ~[junit-4.13.2.jar:4.13.2] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) ~[junit-4.13.2.jar:4.13.2] at org.mockito.internal.runners.DefaultInternalRunner$1.run(DefaultInternalRunner.java:100) ~[mockito-core-5.16.1.jar:?] at org.mockito.internal.runners.DefaultInternalRunner.run(DefaultInternalRunner.java:107) ~[mockito-core-5.16.1.jar:?] at org.mockito.internal.runners.StrictRunner.run(StrictRunner.java:42) ~[mockito-core-5.16.1.jar:?] at org.mockito.junit.MockitoJUnitRunner.run(MockitoJUnitRunner.java:163) ~[mockito-core-5.16.1.jar:?] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) ~[surefire-junit4-2.22.2.jar:2.22.2] at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) ~[surefire-junit4-2.22.2.jar:2.22.2] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) ~[surefire-junit4-2.22.2.jar:2.22.2] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) ~[surefire-junit4-2.22.2.jar:2.22.2] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) ~[surefire-booter-2.22.2.jar:2.22.2] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) ~[surefire-booter-2.22.2.jar:2.22.2] at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) ~[surefire-booter-2.22.2.jar:2.22.2] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) ~[surefire-booter-2.22.2.jar:2.22.2] Caused by: java.io.IOException: Cannot run program "rpm": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) ~[?:?] at java.lang.ProcessBuilder.startPipeline(ProcessBuilder.java:1298) ~[?:?] at com.cloud.utils.script.Script.lambda$executePipedCommands$0(Script.java:796) ~[cloud-utils-4.23.0.0-SNAPSHOT.jar:4.23.0.0-SNAPSHOT] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] Caused by: java.io.IOException: error=2, No such file or directory at java.lang.ProcessImpl.forkAndExec(Native Method) ~[?:?] at java.lang.ProcessImpl.<init>(ProcessImpl.java:314) ~[?:?] at java.lang.ProcessImpl.start(ProcessImpl.java:244) ~[?:?] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) ~[?:?] at java.lang.ProcessBuilder.startPipeline(ProcessBuilder.java:1298) ~[?:?] at com.cloud.utils.script.Script.lambda$executePipedCommands$0(Script.java:796) ~[cloud-utils-4.23.0.0-SNAPSHOT.jar:4.23.0.0-SNAPSHOT] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] [INFO] Tests run: 269, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.174 s - in com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 269, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.418 s [INFO] Finished at: 2026-04-28T09:45:48-03:00 [INFO] ------------------------------------------------------------------------ ``` Looking at the GHA build logs, it also ran the tests with success. Maybe BO is getting the wrong commit? Is there a way to check this? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
