-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test fails with I20230615-1800 #1150
Comments
I'll have a look and report possible remediations. |
|
during testAddExternalLibFolder6 the p.build(IncrementalProjectBuilder.FULL_BUILD, null); sets options to compliance
but later in org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.tearDown() defaultOptions are assumed |
FWIW, as this issue has been worked around with eclipse-jdt/eclipse.jdt.ui@f575dff , I don't plan to work on it further so it may be closed. |
It can't, there are still test failures. I will check them later today.
I tried to understand this comment but failed. If there is something one can fix, please push a PR. |
Ah OK. I overlooked and only saw the successful tests on repo-specific CI, let's wait for I-Build outcome then. |
Already there: https://download.eclipse.org/eclipse/downloads/drops4/I20230618-1800/testResults.php APIDocumentationTests still fails, I wonder it is not visible in Jenkins, but might be the execution order matters. |
JavaProjectTests.testAddExternalLibFolder6 still fails. see for example https://github.com/eclipse-jdt/eclipse.jdt.core/pull/1119/checks?check_run_id=14325578340 |
You have to rebase on top of master. |
it is - still failing |
Then it is probably caused by your PR, because other PR's don't see this fail. |
you can see in the build history that 1st build succeed. i.e. it is random. Also you have seen the error in other PRs -> it's unrelated. |
Looks like
The test reads default JavaOptions and compares it with expected values in the JavaCore.java file. The default JDT core options do not contain
Means two things:
I'm looking for a suitable fix. |
|
For you entertainment there's loads of investigations regarding undesired initialization sequences of JDT/Core options in https://bugs.eclipse.org/bugs/show_bug.cgi?id=482991. A little quote from that bug:
Sounds familiar? |
Yes, same problem again. I haven't dig deeper to understand why all this dancing with this one extra jdt launching property was done at all, and why it couldn't be just a core default in first place. Probably some ancient compatibility issue or the like. |
I'm seeing that same failure locally, with jdt.{core,ui,debug} at current head of master. Looking at the fix here, it tells me, that only builds are fixed but not local test launches in Eclipse. Needing to add the system property to every test launch that is potentially affected doesn't look like a good option. So, I'm re-opening this issue. To my own surprise adding this to the static initializer of the affected test class fixes the failure for me:
But I'm not convinced, that a system property is a good way to control this in the first place. At least we'd need to find the best suitable location for this kludge. Perhaps jdt.core needs an extension point for plugins wishing to initialize stuff after jdt.core is fully initialized, rather than activators launching initialization jobs to run at unknown point in time? Or an explicit callback for updating (compliance) options at a point in time that's suitable for jdt.core (i.e., after JavaCorePreferenceInitializer has run)? |
Exact. That was the goal of this ticket, and it was done / closed. Created new one #1190 |
I'm fine with having this solved in a new issue, but now nobody involved in creating the regression will have it on their radar any more :) |
We have new reproducible test fails on all platform in JDT with I20230615-1800 build.
jdt.apt.tests
AptReconcileTests | testGeneratedFile
complains about workspace settings:Workspace options should be back to their default.
jdt.core.tests.model
JavaProjectTests.testAddExternalLibFolder6
complains about workspace settings:Workspace options should be back to their default.
APIDocumentationTests.testJavaCoreAPI
: some strange failjdt.text.tests
PluginsNotLoadedTest | pluginsNotLoaded
some bundle loading issueThere were not many changes in last build, most notable:
I assume (but have not verified that yet) eclipse-jdt/eclipse.jdt.debug#231 could be the one who caused the fails above, since it may affect which JVM is selected a s default, or some platform change.
The text was updated successfully, but these errors were encountered: