This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 526334 - support building with Tycho 1.0
Summary: support building with Tycho 1.0
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Brian Vosburgh CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-21 08:43 EDT by Nick Boldt CLA
Modified: 2017-12-07 12:57 EST (History)
4 users (show)

See Also:


Attachments
patch to support building w/ Tycho 1.0 and remove test plugin error (1.95 KB, patch)
2017-10-21 08:50 EDT, Nick Boldt CLA
no flags Details | Diff
patch to support building w/ Tycho 1.0 and remove test plugin error (cleaned up formatting) (1.38 KB, patch)
2017-11-18 13:57 EST, Nick Boldt CLA
no flags Details | Diff
log of running dali tests with Tycho 1.0 (23.68 MB, text/plain)
2017-11-20 22:08 EST, Nick Boldt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2017-10-21 08:43:16 EDT
Quick hack to support Tycho 1.0 (instead of <= 0.26.0) is to enable tycho-compiler-plugin's useProjectSettings=false [1] so that things like API restrictions that SHOULD fail the build are allowed. 

Ultimately, these API violation should be fixed, but if your Eclipse settings are allowing these to be ignored as warnings instead of errors, then so too should Tycho do the same.

Thus we need to add this to the root pom:

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-compiler-plugin</artifactId>
        <version>${tycho.version}</version>
        <configuration>
          <useProjectSettings>false</useProjectSettings>
        </configuration>
      </plugin>
    </plugins>
  </build>

[1] https://wiki.eclipse.org/Tycho/Release_Notes/1.0.0#Compiler
Comment 1 Nick Boldt CLA 2017-10-21 08:50:29 EDT
Created attachment 271133 [details]
patch to support building w/ Tycho 1.0 and remove test plugin error

I was running with these flags, which I realize are contradictory:

tv=1.0.0; mvn clean install -V -B \
       -Dmaven.test.skip=true -DskipWithIssues=false
       -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true \
       -Dsurefire.timeout=1800 -Dplatform-repo.url=http://download.eclipse.org/eclipse/updates/4.8-I-builds/ -Dwebtools.buildSite=http://download.eclipse.org/webtools/downloads/drops/R3.10.0/I-3.10.0-20171004000115/ -Dtycho.version=${tv} -Dtycho-extras.version=${tv} -Pintegration -ff | tee log${tv}.txt

So I removed the -DskipWithIssues=false flag and also removed the mapping in the jpa/tests/org.eclipse.jpt.jpa.core.tests/pom.xml as it was failing to build too.
Comment 2 Nick Boldt CLA 2017-10-21 08:53:45 EDT
BTW I would have submitted this via gerrit but alas, Dali is still gerrit-free. :(
Comment 3 Nick Boldt CLA 2017-11-18 13:46:47 EST
FYI, the releng.aggregator build is still failing due to jpa not being ready to build with Tycho 1.0:

[INFO] org.eclipse.jpt.jpa.core.tests ..................... FAILURE [02:39 min]


https://hudson.eclipse.org/webtools/job/WTP-R3_10_Integration_tycho1.0/22/

If we could get this fixed, we could start taking advantage of Tycho 1.0 features when building Dali and the rest of the wtp stack. 

@Shaurn or @Neil, can I get some help getting this merged?
Comment 4 Nick Boldt CLA 2017-11-18 13:57:43 EST
Created attachment 271543 [details]
patch to support building w/ Tycho 1.0 and remove test plugin error (cleaned up formatting)
Comment 5 Nick Boldt CLA 2017-11-20 12:23:35 EST
Hey @Brian, can you push this change into Dali? I see you helped Mickael get a change [1] pushed back in May, which seems to be the last time anyone's committed anything to Dali.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=492323
http://git.eclipse.org/c/dali/webtools.dali.git/

Also, would you be interested in working with me to get Gerrit enabled on the repo? (By way of introduction, I'm the new releng guy for WTP, trying to improve the way/speed WTP is built, including getting the tests running again and being able to take advantage for Tycho 1.x fixes/features.
Comment 6 Brian Vosburgh CLA 2017-11-20 14:29:15 EST
(In reply to Nick Boldt from comment #5)
> Hey @Brian, can you push this change into Dali? I see you helped Mickael get
> a change [1] pushed back in May, which seems to be the last time anyone's
> committed anything to Dali.
> 
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=492323
> http://git.eclipse.org/c/dali/webtools.dali.git/
> 
> Also, would you be interested in working with me to get Gerrit enabled on
> the repo? (By way of introduction, I'm the new releng guy for WTP, trying to
> improve the way/speed WTP is built, including getting the tests running
> again and being able to take advantage for Tycho 1.x fixes/features.

I just pushed your patch. But you should verify. :-)

Also: Yes, I would be happy to work with you enabling Gerrit for Dali. Let me know what I can do.
Comment 7 Nick Boldt CLA 2017-11-20 15:22:07 EST
Thanks, Brian - should have pinged you ages ago. :)

As to getting Gerrit enabled, please talk to Neil Hauge as he's also agreed to get Gerrit enabled this week (in an email thread).

FYI, here's the wiki on how to enable Gerrit. 

https://wiki.eclipse.org/Gerrit#Enabling_Gerrit_for_your_Eclipse.org_Project

If you have more cycles this week than him and can tackle it sooner (or don't live in the US and aren't AFK on PTO for Black Friday / US Thanksgiving) feel free to contact him to coordinate the attack. :)
Comment 8 Nick Boldt CLA 2017-11-20 22:08:08 EST
Created attachment 271565 [details]
log of running dali tests with Tycho 1.0

Using:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T03:58:13-04:00)

Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.fc24.x86_64/jre

$ mvn clean install -Pintegration -fn -e -Dtycho.version=1.0.0 -Dtycho-extras.version=1.0.0 | tee log_tycho1.0.0_tests_run.txt

These tests/features fail:

[INFO] org.eclipse.jpt.jaxb.core.tests .................... FAILURE [  2.801 s]
[INFO] org.eclipse.jpt.jaxb.eclipselink.core.tests ........ SKIPPED
[INFO] org.eclipse.jpt.jaxb.eclipselink.tests.feature ..... SKIPPED
[INFO] org.eclipse.jpt.jaxb.tests.feature ................. SKIPPED
[INFO] org.eclipse.jpt.jpa.core.tests ..................... FAILURE [  3.717 s]
[INFO] org.eclipse.jpt.jpa.eclipselink.core.tests ......... SKIPPED
[INFO] org.eclipse.jpt.jpa.eclipselink.tests.feature ...... SKIPPED
[INFO] org.eclipse.jpt.jpa.tests.feature .................. SKIPPED
[INFO] org.eclipse.jpt.tests.assembly.feature ............. SKIPPED
Comment 9 Nick Boldt CLA 2017-11-29 09:06:27 EST
This PR will disable the tests that don't currently work, until someone has time to update them to run with Tycho 1.0.

Since they are currently BUILT but not RUN as part of the webtools.releng.aggregator job, I figure this isn't a problem.

https://git.eclipse.org/r/#/c/112514/1/pom.xml
Comment 10 Nick Boldt CLA 2017-11-29 15:32:17 EST
A couple more PRs to merge as part of revamping Dali to run with Tycho 1.0:

https://git.eclipse.org/r/#/c/112579/ < fix tests which end too fast in Hudson?
https://git.eclipse.org/r/#/c/112571/ - add update site to Dali build reactor
https://git.eclipse.org/r/#/c/112515/ - disable tests and add repo refs to resolve upstream wtp.parent pom, common, servertools, etc.
Comment 11 Nick Boldt CLA 2017-12-05 17:35:09 EST
More PRs for Dali:

https://git.eclipse.org/r/#/c/112904/ - comment out all the 'finished a bit too early' tests since the 'reasonable guess' is turning out to be unreasonable [merged] 

https://git.eclipse.org/r/#/c/112906/ - disable org.eclipse.jpt.jpa.eclipselink.core.tests and org.eclipse.jpt.jpa.eclipselink.tests.feature since they require org.eclipse.jpt.jpa.core.tests, which is also disabled
Comment 12 Nick Boldt CLA 2017-12-07 12:57:06 EST
All PRs merged and build is green, without the need for -Pintegration workaround flag.

https://hudson.eclipse.org/webtools/view/webtools_R3_10/job/webtools-dali_R3_10/

Resolving.