Put two failing Gradle test to ignore list - #3298
Conversation
|
I haven't seen (continuous) failures of the
The test is using |
JaroslavTulach
left a comment
There was a problem hiding this comment.
Thanks for letting me know before removing my test. I placed it into Gradle modules to give the maintainers an early warning that a Gradle related functionality is broken. If that is causing problems (because not fully built IDE?), then I'd rather move test into commit validation elsewhere than disable it altogether.
|
That test fails for me, though I have to admit I only built the IDE with java cluster as target (as far as I know that should add the ide cluster as well which contains the freemarker engine). |
e.g. it works for me as well on my |
|
For example: See e.g. randomly chosen https://app.travis-ci.com/github/apache/netbeans/jobs/546271812 If there are steps to reproduce the failure +- reliably from the clean state, please file a bug. The test is not meaningless: it was created to check that if a project has been trusted, its files can be opened (e.g. Goto Type) with the correct classpath - that's done without UI-opening project in the IDE. |
|
Syncing for RC2 now, so whether this goes in or not, no merging for now! Thanks. |
|
So for me, the steps to reproduce: I'm going to test it with JDK 8 as well... |
|
The test passed with: |
|
I think the ScriptEngine behavior change between Java 8 and 11 could be the cause of this issue. |
|
There shall be a (Travis, Actions, Jenkins, etc.) job testing the Gradle modules also on JDK 11. As far as the e.g. there is no platform. That is likely caused by the diff --git a/platform/core.startup/src/org/netbeans/core/startup/Main.java b/platform/core.startup/src/org/netbeans/core/startup/Main.java
index 569fa9e182d3..5ef02aa4e052 100644
--- a/platform/core.startup/src/org/netbeans/core/startup/Main.java
+++ b/platform/core.startup/src/org/netbeans/core/startup/Main.java
@@ -204,7 +205,11 @@ public final class Main extends Object {
jdkHome = System.getProperty("java.home"); // NOI18N
if (!BaseUtilities.isMac()) {
- jdkHome += File.separator + ".."; // NOI18N
+ File jdkUp = new File(jdkHome).getParent(); // NOI18N
+ File bin = new File(jdkUp, "bin"); // NOI18N
+ if (new File(bin, "javac").exists() || new File(bin, "javac.exe").exists()) { // NOI18N
+ jdkHome = jdkUp.getPath();
+ }
}
System.setProperty("jdk.home", jdkHome); // NOI18NI think the real change is going to need a bit more love. Certainly more desirable than commenting tests out just because they haven't yet been tested on JDK-11 properly. |
JaroslavTulach
left a comment
There was a problem hiding this comment.
Let's run our tests also on JDK-11.
|
Flaky tests are a major PITA. I'm at a point where I mostly ignore failing unittests from travis when only the java modules show errors, as currently there is a 100% hit rate on false positives for me. So if noone steps up to fix a test, I think shooting it down is a valid option. Just my 2cents. |
Right, I encourage everyone to add
Yes, that's very annoying. Such a flaky tests should be executed only by "Java editor" guys, not everyone. We don't want to fix buggy Java editor code, we only want to know whether we cause regressions there by our own changes. Adding
Right. However this case isn't an example of randomly failing test. The test works reliably on JDK-8 and nobody bothered to execute it on JDK-11 yet. It is failing reliably on JDK-11 because of a bug in the platform. It should be fixed, not shoot down. We should have a CI executing the test on JDK-11 too. |
|
Moving off delivery and 12.6 so discussion can continue. 😄 |
|
@JaroslavTulach you are right, test should be fixed instead of ignored. I've filed this one in a frustration, when I found out that I missed a regression in #3293 due to failing tests. Created NETBEANS-6186 for that. Please do not be grumpy about that. (I've pictured you for a moment as Gandalf in the deep mine scene, shouting "You shall not remove my Tests!".) @sdedic We've changed something around the loading. I shall check it through. this test is failing and creating a web project results stack overflow. |
|
Closed as this was filed in order to help the 12.6 effort. |
These two tests seems to be failing, at least locally.
VerifyGradleProjectTemplatesTest.java has a missing template engine. That may need a better test classpath.
testCompilePreTrusted() it probably would be nice that one time this would pass. though right now we do nothing with non-opened project, even when it has cached information.
So this one is for making Travis happy.