Validate that a JUnit 5 launch has no dependencies to JUnit 6 bundles#2101
Validate that a JUnit 5 launch has no dependencies to JUnit 6 bundles#2101trancexpress wants to merge 2 commits intoeclipse-pde:masterfrom
Conversation
|
@laeubi do you mean something like this? Coming from your comment here: #2092 (comment) Or we report errors in some way instead of removing the candidate? We do enter the new code with this in the But removing the JUnit 6 bundle doesn't seem to fix the launch. There is no error dialog but still no tests are executed. |
Test Results 623 files - 148 623 suites - 148 51m 38s ⏱️ - 7m 58s For more details on these failures, see this check. Results for commit e2ae6c4. ± Comparison against base commit df29a67. ♻️ This comment has been updated with latest results. |
2ad2daa to
84cefb2
Compare
|
If I don't skip |
...rg.eclipse.pde.launching/src/org/eclipse/pde/launching/JUnitLaunchConfigurationDelegate.java
Outdated
Show resolved
Hide resolved
84cefb2 to
21afe75
Compare
...lipse.pde.launching/src/org/eclipse/pde/launching/JUnitEclipsePluginValidationOperation.java
Outdated
Show resolved
Hide resolved
...lipse.pde.launching/src/org/eclipse/pde/launching/JUnitEclipsePluginValidationOperation.java
Outdated
Show resolved
Hide resolved
...lipse.pde.launching/src/org/eclipse/pde/launching/JUnitEclipsePluginValidationOperation.java
Outdated
Show resolved
Hide resolved
b5694f1 to
a675712
Compare
...lipse.pde.launching/src/org/eclipse/pde/launching/JUnitEclipsePluginValidationOperation.java
Outdated
Show resolved
Hide resolved
...lipse.pde.launching/src/org/eclipse/pde/launching/JUnitEclipsePluginValidationOperation.java
Outdated
Show resolved
Hide resolved
b19fd69 to
4be4962
Compare
6638c00 to
ce96f32
Compare
|
With The dialog is:
With removing the optional resolution check and running
@laeubi WDYT? |
ce96f32 to
397833e
Compare
|
The text might be a bit improved but that's something that can be done later, beside that it looks good and will allow the user to identify the issue. What do you think about
I think we should just state this as is and not add "may" .. from the second picture we maybe like to record the offending resource only once, I assume the same bundle has two requirements that can cause problems. |
397833e to
0b9a130
Compare
5544b96 to
e1584df
Compare
e1584df to
c52035b
Compare
|
We'll probably miss the release with the changes here. |
f690a67 to
4430925
Compare
|
The Windows fail is: |
af16082 to
c1a5507
Compare
|
Fail in Linux tests is: |
|
I've discussed with @iloveeclipse , we'll delay this until the next release cycle. Its safer that way. |
|
On the topic of the optional package imports in We have a bundle (our central tests bundle) that depends on We started seeing those errors when moving to JLS 25 / required execution |
|
Of course ant's package requirement on |
Unfortunately we are not seeing this all the time and in particular didn't see this when moving to 4.38 platform. And we do use ant code that itself uses JUnit jupiter code (we extend one of the ant result formatters, which itself is an execution listener). So I'm not sure what was being used for the ant bundle so far and why it wasn't JUnit 6, as you say it should be. Even when launching tests from the Eclipse SDK, we don't see this issue. Its when we launch our test application, that itself discovers and launches our tests. Though the conflict is also sometimes reported when running the p2 application from our built platform... Anyway, I wanted only to mention this. We are still investigating our problem; we will anyway be updating to JUnit 6. |
c1a5507 to
1c55484
Compare
To update on this, it should be an artifact from how we build our test product (we put together folders on the file system and then run a p2 application). Starting the test session with |
This change introduces support for custom OSGi ResolverHooks in the PDE launch and validation workflow, specifically enabling exclusion of JUnit 6 bundles when running JUnit 5 tests. The changes add a mechanism to inject a ResolverHook into the bundle validation process and implement a hook that filters out JUnit 6 bundles, improving compatibility and reliability of JUnit 5 plug-in test launches. Fixes: eclipse-pde#2045
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
|
Fail on Mac is: |
|
I can't construct a bad case anymore; I do see mixed JUnit 5 and 6 dependencies (even But the JUnit plug-in test launch works fine, both for JUnit 5 and 6. Maybe some fixes in |
|
Since I can no longer construct a case that runs into the error, closing this. We can always come back to this if some issue is opened with such problems. |



This pull request introduces support for custom OSGi
ResolverHooks in the PDE launch and validation workflow, specifically enabling exclusion of JUnit 6 bundles when running JUnit 5 tests. The changes add a mechanism to inject aResolverHookinto the bundle validation process and implement a hook that filters out JUnit 6 bundles, improving compatibility and reliability of JUnit 5 plug-in test launches.