Bug 526167 - [releng] Build fails resolving the TP
Summary: [releng] Build fails resolving the TP
Status: ASSIGNED
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: releng (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal
Target Milestone: 1.0.1   Edit
Assignee: Ernesto Posse CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 526274 526327 526169
Blocks: 526168
  Show dependency tree
 
Reported: 2017-10-17 12:18 EDT by Ernesto Posse CLA
Modified: 2017-10-20 17:32 EDT (History)
1 user (show)

See Also:


Attachments
Plugin differences between Papyrus 3.0 and 3.2 (5.17 KB, text/plain)
2017-10-17 12:27 EDT, Ernesto Posse CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernesto Posse CLA 2017-10-17 12:18:44 EDT
The Codegen, Cpp and Migration jobs:
- https://hudson.eclipse.org/papyrus-rt/job/Papyrus-RT-Gerrit-Codegen/413/
- https://hudson.eclipse.org/papyrus-rt/job/Papyrus-RT-Gerrit-Cpp/191/
- https://hudson.eclipse.org/papyrus-rt/job/Papyrus-RT-Gerrit-Migration/167/ 

fail with:

[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.papyrus.junit.feature.feature.group 2.0.0.201710030257
[ERROR]   Missing requirement: org.eclipse.papyrus.junit.utils 2.1.0.201710030257 requires 'bundle org.eclipse.papyrus.infra.nattable.common [4.0.0,5.0.0)' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.papyrus.junit.feature.feature.group 2.0.0.201710030257 depends on: org.eclipse.papyrus.junit.utils [2.1.0.201710030257]

This is because the unit tests rely on the Papyrus JUnit feature and there is no stable update site that contains an older version of this Papyrus JUnit feature, so the feature's dependencies are now in-line with the Papyrus master branch and include bundles like nattable.common [4.0.0,5.0.0), rather than the Oxygen bundles in the range [3.0.0,4.0.0).
Comment 1 Ernesto Posse CLA 2017-10-17 12:27:55 EDT
Created attachment 271038 [details]
Plugin differences between Papyrus 3.0 and 3.2

The bundles required by the Papyrus JUnit feature have been back-ported to the Papyrus streams/3.0-maintenance branch and have now been published to http://download.eclipse.org/modeling/mdt/papyrus/updates/milestones/3.2/.

The attached file includes a list of the blugins whose version has changed from Papyrus 3.0 to 3.2.
Comment 2 Ernesto Posse CLA 2017-10-17 12:31:41 EDT
Updating the target platform to point to this 3.2 update site and increasing the upper bound of the version ranges in our plugins (gerrit https://git.eclipse.org/r/#/c/106163/5) is not enough. There is a compilation error shown in the Tooling job (https://hudson.eclipse.org/papyrus-rt/job/Papyrus-RT-Gerrit-Tooling/941/):



[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.25.0:compile (default-compile) on project org.eclipse.papyrusrt.umlrt.tooling.diagram.statemachine: Compilation failure: Compilation failure:
[ERROR] /jobs/genie.papyrus-rt/Papyrus-RT-Gerrit-Tooling/workspace/source/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.diagram.statemachine/src/org/eclipse/papyrusrt/umlrt/tooling/diagram/statemachine/internal/editpolicies/RTStateConnectionPointsCreationEditPolicy.java:[139]
[ERROR] return pseudostateHelper.getPositionLocator(
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The method getPositionLocator(Function<? super Pseudostate,OptionalDouble>, Supplier<? extends PortPositionLocator>) in the type BorderItemHelper<Pseudostate> is not applicable for the arguments (Function<? super Pseudostate,OptionalDouble>, super::getPositionLocator)
[ERROR] /jobs/genie.papyrus-rt/Papyrus-RT-Gerrit-Tooling/workspace/source/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.diagram.statemachine/src/org/eclipse/papyrusrt/umlrt/tooling/diagram/statemachine/internal/editpolicies/RTStateConnectionPointsCreationEditPolicy.java:[141]
[ERROR] super::getPositionLocator);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The type of getPositionLocator() from the type SideAffixedNodesCreationEditPolicy is ISideAffixedNodeBorderItemLocator, this is incompatible with the descriptor's return type: PortPositionLocator
Comment 3 Ernesto Posse CLA 2017-10-19 12:00:16 EDT
Patch https://git.eclipse.org/r/#/c/106163/6 fixes the compilation error, but there are now failures in the JUnit tests; see Bug 526169 and Bug 526274.