Replies: 1 comment
-
I can reproduce this and the behavior has indeed changed with In the normal use-cases this is intended: target platforms contains every possible IU, then the later stages (publish-products, etc.) decide what to actually consume from that set of available IUs. However, in this surefire scenario the target platform resolver is also used to create the test environment. In this case the additional source IUs are not required. The target platform resolver should probably get a switch to control the behavior of I'll look into it when I am back from my vacation in a few weeks. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I just want to ask about new behavior introduced in tycho 4.0.6 which potentially can cause test failures for existing projects (it happened for our project).
I think it is related to following issue #3635, but I'm not sure if it can be considered as issue in surefire as well.
I'm attaching minimal reproducer (inspired from one existing tycho ITs - surefire.bundleResources), so you can check old and new behavior locally.
Steps to reproduce:
mvn clean verify
(it runs tests with tycho 4.0.5 by default)mvn clean verify
againBoth bundles can contain same resources, thus once installed into osgi runtime, they are duplicated.
Since tycho 4.0.6, the surefire mojo can install also source bundles into test runtime which can cause resource duplications during runtime. It can negatively affect existing tests as resources are duplicated, these resources can be e.g. definitions of internal platform to be started, but once it is duplicated it is started twice.
According to surefire testRuntime description, it says following:
but can be source bundles be considered to constitute minimal test runtime even where there is no transitive dependency to source bundles?
Minimal reproducer: surefire.testDependencies.zip
Thanks
Beta Was this translation helpful? Give feedback.
All reactions