Commit 7fa6c2b
committed
P2ResolverImpl: Don't add implicit test deps to eclipse-test-plugin
In c6edec4 /
https://bugs.eclipse.org/bugs/show_bug.cgi?id=443396 implicit
dependencies were added to every 'eclipse-test-plugin' project to work
around a very special situation: When building the eclipse.platform.ui
repository the test harness is part of the same reactor build as well
and the tests do not explicitly depend on it.
The dependency resolution was then failing because, quote [1],
- Tycho sees that org.eclipse.ui.ide.application is part of the reactor,
and hence filters all other versions of this bundle from the external
target platform content.
- The afterProjectsRead dependency resolution doesn't find a dependency
between the eclipse-test-plugin module and the
org.eclipse.ui.ide.application module, so it doesn't add it to the
target platform for the eclipse-test-plugin module. (Adding only the
"needed" reactor modules instead of all previously built modules is
something which doesn't give us any benefits today, but it is a
prerequisite for allowing parallel builds in the future.)
- The resolution of the test runtime fails.
However, this had the undesired side-effect that these artificial
dependencies were added to every other 'eclipse-test-plugin' project as
well, which does not need it.
This caused every 'eclipse-test-plugin' to list all the UI hardness
dependencies in their dependencies tree, even ending up in things like
generated SBOMs, which is incorrect.
With recent improvements to Tycho, especially with #2092, the quoted
issue above is not an issue anymore: Instead of filtering out shadowed
units from the external target platform completely, it can now still
access them if needed.
Therefore, this change reverts implicit adding of UI harness
dependencies.
This results in a slight change of behavior when running tests in
'eclipse.platform.ui':
- Before this change, the *project / reactor' version of the test
harness was used when executing tests that did not themselves depend
on the workbench.
- After this change, the *external target* version of the test
harness is used + some warnings are logged.
- If this turns out to be a problem, Eclipse side has to adapt, e.g. by
adding <extraRequirements> to target-platform-configuration in
eclipse.platform.releng.aggregator/eclipse-platform-parent/pom.xml,
restoring the previous Tycho behavior - but only at the place where it
is actually needed.
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=443396#c8
Fixes #5349.1 parent 0bb68c0 commit 7fa6c2b
15 files changed
Lines changed: 131 additions & 108 deletions
File tree
- tycho-core/src
- main/java/org/eclipse/tycho
- core/resolver
- p2resolver
- test
- java/org/eclipse/tycho/p2resolver
- resources
- repositories/testHarnessExternalStub
- plugins
- resolver/bundle.uitestharness/META-INF
- tycho-its
- projects
- sbom
- example.testFragment
- META-INF
- example.testStandAlone
- META-INF
- surefire.bundleStart/implicit/ds.test/META-INF
- src/test/java/org/eclipse/tycho/test/reactor
- tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire
Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 110 | | |
119 | 111 | | |
120 | 112 | | |
| |||
466 | 458 | | |
467 | 459 | | |
468 | 460 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 461 | | |
483 | 462 | | |
484 | 463 | | |
| |||
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
204 | 211 | | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
211 | | - | |
212 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
213 | 229 | | |
214 | 230 | | |
215 | 231 | | |
| |||
516 | 532 | | |
517 | 533 | | |
518 | 534 | | |
519 | | - | |
| 535 | + | |
520 | 536 | | |
521 | 537 | | |
522 | 538 | | |
523 | 539 | | |
524 | | - | |
| 540 | + | |
525 | 541 | | |
526 | 542 | | |
527 | 543 | | |
528 | 544 | | |
529 | | - | |
| 545 | + | |
530 | 546 | | |
531 | 547 | | |
532 | 548 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
0 commit comments