Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] postgresql Junit Tests([CDO] postgresql Junit Tests)
[CDO] postgresql Junit Tests [message #1746689] Thu, 03 November 2016 09:32 Go to next message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
We have some issues with postgresql and cdo. I'd like to check and fix these issues. I have setup the CDO-Workspace with Oomph and I have run the tests for postgresql. Some tests get errors.

To simplify the postgresql server I have added a script for running a standalone instance of postgresql.

The standalone zips are located here:
- https://www.postgresql.org/download/windows/
- http://www.enterprisedb.com/products-services-training/pgbindownload

The postgresql-zip must be unzipped into the folder 'postgresql-standalone' from the attached and unzipped zipfile. After this, the folder pgsql should be renamed to postgresql-9.6.1-1. Finally you only need to run 'runme.bat'.

With an older version postgresql-9.2.2-1, the junit issues also occur.

Before I start I'd like to verify that there isn't any test-setup problem. The H2-Tests did all pass.

[Updated on: Thu, 03 November 2016 09:35]

Report message to a moderator

Re: [CDO] postgresql Junit Tests [message #1746718 is a reply to message #1746689] Thu, 03 November 2016 16:49 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6579
Registered: July 2009
Senior Member
That sounds very promising. I remember having spent a day or more to get the installation working on my Windows box. I wonder if we can extend the automation and even make the test suite execute the installation (if needed), start and stop of the server...

Re: [CDO] postgresql Junit Tests [message #1746730 is a reply to message #1746718] Thu, 03 November 2016 18:47 Go to previous messageGo to next message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
I have managed to setup a local Jenkins with a job for "emf-cdo-integration" like under https://hudson.eclipse.org/cdo/.

It works, quiet far but the baseline is missing. I found the page https://www.eclipse.org/cdo/downloads/ and https://sourceforge.net/projects/net4j/files/Baselines/. But "emf-cdo-4.5-baseline.zip" is missing. On the build-server it seems to be stored/cached in a folder.

For the automatic test environment postgresql could be spawned through docker or with a little script, which works with user rights.

The current job under https://hudson.eclipse.org/cdo/ took 155 minutes. For initial testing, it would surely be nice, to separate the testing of the other db-drivers to separate jobs.
Re: [CDO] postgresql Junit Tests [message #1746733 is a reply to message #1746730] Thu, 03 November 2016 19:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6579
Registered: July 2009
Senior Member
These days it would be much better to have a Tycho-based build. Especially for running local builds and testing changes to the build system. I would love to switch to Tycho, but I have no idea how to run the API checks, our version checks and the API evolution report generator (which is currently a custom Buckminstor actor). Are you experienced in this area and would like to help me? In any case I would appreciate that you contact me via private email. Then we could exchange Skype IDs or just phone numbers and discuss more efficiently...

Re: [CDO] postgresql Junit Tests [message #1746749 is a reply to message #1746730] Fri, 04 November 2016 07:41 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6579
Registered: July 2009
Senior Member
Per Sterner wrote on Thu, 03 November 2016 19:47
It works, quiet far but the baseline is missing. I found the page https://www.eclipse.org/cdo/downloads/ and https://sourceforge.net/projects/net4j/files/Baselines/. But "emf-cdo-4.5-baseline.zip" is missing. On the build-server it seems to be stored/cached in a folder.


Correct. The CDO.setup for 4.6 development uses the new APIBaselineFromTarget task, so that huge baseline archive is no longer needed for IDE setups. But I just published the 4.5 baseline archive at sf.net for you.


Re: [CDO] postgresql Junit Tests [message #1746761 is a reply to message #1746733] Fri, 04 November 2016 10:11 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi Eike,

Tycho can provision and run Eclipse/Equinox applications as part of the build, I guess that would be the easiest path for you to migrate your existing facility.

For exemple the following pom:
https://github.com/cbrun/acceleo-launcher-examples/blob/master/uml-to-java/pom.xml

launches the application "org.eclipse.acceleo.equinox.AcceleoLauncher" after having provisionned it using the specified update-sites

Technically that would mean for you to ship/release an Eclipse applications to run the API checks, the version checks and the API evolution report as part of CDO/releng on some update site. And then anybody who would like to launch it from tycho would just have to reference this update-site and specify the parameters like in the acceleo launcher example. This most likely would require very little change to your code as it would still run in an Equinox environnement.


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Re: [CDO] postgresql Junit Tests [message #1746885 is a reply to message #1746733] Mon, 07 November 2016 09:19 Go to previous message
Per Sterner is currently offline Per SternerFriend
Messages: 91
Registered: October 2011
Member
Eike Stepper wrote on Fri, 04 November 2016 08:41

Correct. The CDO.setup for 4.6 development uses the new APIBaselineFromTarget task, so that huge baseline archive is no longer needed for IDE setups. But I just published the 4.5 baseline archive at sf.net for you.


Rolling Eyes

[Updated on: Mon, 07 November 2016 09:30]

Report message to a moderator

Previous Topic:[CDO] Programmatically adding securityManager
Next Topic:Edit code when using Generics
Goto Forum:
  


Current Time: Sat Jun 19 23:58:30 GMT 2021

Powered by FUDForum. Page generated in 0.02066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top