Skip to main content



      Home
Home » Modeling » EMF » [CDO] postgresql Junit Tests([CDO] postgresql Junit Tests)
[CDO] postgresql Junit Tests [message #1746689] Thu, 03 November 2016 05:32 Go to next message
Eclipse UserFriend
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 05:35] by Moderator

Re: [CDO] postgresql Junit Tests [message #1746718 is a reply to message #1746689] Thu, 03 November 2016 12:49 Go to previous messageGo to next message
Eclipse UserFriend
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 14:47 Go to previous messageGo to next message
Eclipse UserFriend
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 15:24 Go to previous messageGo to next message
Eclipse UserFriend
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 03:41 Go to previous messageGo to next message
Eclipse UserFriend
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 06:11 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: [CDO] postgresql Junit Tests [message #1746885 is a reply to message #1746733] Mon, 07 November 2016 04:19 Go to previous message
Eclipse UserFriend
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 04:30] by Moderator

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


Current Time: Wed Jul 23 01:51:47 EDT 2025

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

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

Back to the top