Reviewing the matrix I notice on ValidateClassLinkageTest there seem to be some classes not found on any and Gradle dependencies. Is an updated dependency missing or not successfully downloaded in some way?
https://bits.netbeans.org/matrix/unit/qa/jdk_1.8_latest/platform/html/org/netbeans/core/validation/7_ValidateClassLinkageTest.html 246) ... 16 more Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/Task at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:287) at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:246) ... 23 more Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task starting from ModuleCL@6016d1d0[org.netbeans.modules.cordova] with possible defining loaders null and declared parents [ModuleCL@5c2e0338[org.netbeans.modules.project.ant], ModuleCL@4b085b2f[org.netbeans.modules.extexecution], ModuleCL@5389cf4d[org.netbeans.api.debugger], ModuleCL@5869dc7a[org.netbeans.modules.project.libraries], ModuleCL@448bc7c8[org.netbeans.api.progress.nb], ModuleCL@5c097a22[org.netbeans.modules.queries], org.netbeans.MainImpl$BootClassLoader@11028347, ModuleCL@42ef768e[org.netbeans.modules.web.common], org.netbeans.JarClassLoader@530a13e1, ModuleCL@1aa30e9d[org.netbeans.libs.json_simple], ...21 more] at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:211) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 27 more Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:209) ... 29 more >From org.netbeans.modules.gradle.tooling.NetBeansExplodedWarPlugin in /home/jenkins/jenkins-agent/workspace/Netbeans/netbeans-matrix/netbeans/netbeans/extide/modules/gradle/netbeans-gradle-tooling.jar: java.lang.NoClassDefFoundError: org/gradle/api/Plugin while loading org.netbeans.modules.gradle.tooling.NetBeansExplodedWarPlugin; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:250) at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:174) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125) at org.netbeans.ModuleManager$SystemClassLoader.loadClass(ModuleManager.java:769) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.netbeans.core.validation.ValidateClassLinkageTest.testClassLinkage(ValidateClassLinkageTest.java:114) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at junit.framework.TestCase.runTest(TestCase.java:177) at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77) at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476) at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: org/gradle/api/Plugin at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:287) at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:246) On Tue, May 31, 2022 at 12:02 PM Eric Barboni <[email protected]> wrote: > Hi, > I've tested locally on the master branch. > Once built with jdk 11 I run 20 time commit-validation on jdk 11 and 8 > but it pass every time. > > It seems hard to fix. The logs show lots of activation module issue + NPE > but at the end it pass. > > If this test is excluded from commit-validation can standard qa-test in > the matric job replace them ? > https://bits.netbeans.org/matrix/unit/qa/jdk_1.8_latest/platform/html/org/netbeans/core/validation/package-summary.html > Or they lack some context ? > > Regards > > Eric > > -----Message d'origine----- > De : Matthias Bläsing <> > Envoyé : dimanche 29 mai 2022 19:20 > À : [email protected] > Objet : Kill ValidateLayerConsistencyTest? > > Hi all, > > for me the testing of NetBeans shows its ugly dark side and I'm seriously > thinking about killing the ValidateLayerConsistencyTest. It is flaky and > causes untraceable errors. > > This is the PR: > > https://github.com/apache/netbeans/pull/4058 > > The flakiness can be observed when comparing the commit validation runs. 1 > fails whiel 3 work ok. In this instance the failing instance is JDK8, but I > saw others. > > I use this PR to try to fix this: > > https://github.com/apache/netbeans/tree/try_fix_commit_validation2 > > One problem could be tracked down, that the maven module has a entry in > the configuration, that is a template, but is checked for instablility. > Fixed here: > > > https://github.com/apache/netbeans/commit/40a60e311000977b490935c6bf762464d3ddaa96 > > Currently it fails with an error that also seems to be a race condition > (line 23766-2769): > > > https://pipelines.actions.githubusercontent.com/serviceHosts/3cf2747f-b5d6-4e8e-a999-150ff8ae61e1/_apis/pipelines/1/runs/14001/signedlogcontent/7?urlExpires=2022-05-29T17%3A16%3A59.2143803Z&urlSigningMethod=HMACV1&urlSignature=f%2B%2BJVlE0n3fHCqA4wJkq4iKPdD%2B502hC2csZJFs5keE%3D > > 2022-05-29T17:06:31.9092439Z [junit] java.lang.AssertionError: Has to > be NbRepository: org.openide.filesystems.Repository@744b325b > 2022-05-29T17:06:31.9093232Z [junit] at > org.netbeans.core.startup.Main.start(Main.java:298) > 2022-05-29T17:06:31.9094120Z [junit] at > org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) > 2022-05-29T17:06:31.9094571Z [junit] at > java.lang.Thread.run(Thread.java:750) > 2022-05-29T17:06:31.9095235Z [junit] > ------------------------------------------------------------------------------- > 2022-05-29T17:06:31.9095602Z [junit] >Log Session: Sunday, May 29, > 2022 5:06:31 PM UTC > 2022-05-29T17:06:31.9095875Z [junit] >System Info: > 2022-05-29T17:06:31.9096375Z [junit] Product Version = > Apache NetBeans Platform Dev (Build > dev-40a60e311000977b490935c6bf762464d3ddaa96) > > Given that I changed code in the JS area, this does not seem to related to > my changes. > > So at this point this Test does harm and so is a candidate to be removed. > > I would like to fix this tough, but I put literally days into this and am > at the end of my ideas. Anyone wants to chime in? > > Greetings > > Matthias > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > -- Eric Bresie [email protected]
