Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New wavelength changes #2163

Merged
merged 18 commits into from
Mar 21, 2014
Merged

New wavelength changes #2163

merged 18 commits into from
Mar 21, 2014

Conversation

qidane
Copy link
Contributor

@qidane qidane commented Mar 12, 2014

No description provided.

@sbesson
Copy link
Member

sbesson commented Mar 13, 2014

Added breaking and exclude labels. Note the --breaking strategy does not work for this PRs.

@qidane
Copy link
Contributor Author

qidane commented Mar 13, 2014

This PR will be in the breaking line but I wanted it excluded from that for the moment as @aleksandra-tarkowska has an incompatible breaking PR that needs to go in first.
#1742 - 11591 user ip

@qidane
Copy link
Contributor Author

qidane commented Mar 13, 2014

Totally untested, but at least it now compiles!

@jburel
Copy link
Member

jburel commented Mar 13, 2014

@qidane: if we renamed the method in the Pojos class(typo fix), we will have to mark them deprecated in the 5.0 line and add the new ones so we can remove them in 5.1

@sbesson
Copy link
Member

sbesson commented Mar 13, 2014

@qidane: want to add a --depends-on comment to the PR and remove the hardcoded submodule bump to let Travis compile?

@qidane
Copy link
Contributor Author

qidane commented Mar 13, 2014

--depends-on ome/bioformats#881

@sbesson
Copy link
Member

sbesson commented Mar 14, 2014

Restarted the Travis build (to account for the dependency comment). 👍
Once #1742 is in, we will need to merge origin/develop into this PR to get the latest upgrade script.

@qidane
Copy link
Contributor Author

qidane commented Mar 14, 2014

I need to rework the commits and group the changes in a more logical manner. I will do this as part of the rebase where I fix the Database version/patch and upgrade script.

@sbesson sbesson removed the exclude label Mar 14, 2014
@qidane
Copy link
Contributor Author

qidane commented Mar 14, 2014

Now builds, tests compile and run, not all unit tests pass.

We could run the ci builds while I look to see that the unit test problems are.

@sbesson
Copy link
Member

sbesson commented Mar 14, 2014

👍 this went through the OMERO breaking pipeline. Note all integration tests did not fully pass, see http://ci.openmicroscopy.org/view/Breaking/job/OMERO-5.1-breaking-integration-java/5/.

@sbesson
Copy link
Member

sbesson commented Mar 14, 2014

Also do we need an upgrade script from 5.1DEV__0 to 5.1DEV__1 ?

@jburel
Copy link
Member

jburel commented Mar 14, 2014

@sbesson: The original plan was not to have an upgrade script between 5.1DEV_x versions but one from 5.0.x to 5.1Dev

@jburel
Copy link
Member

jburel commented Mar 14, 2014

After discussion with @sbesson, it might difficult complicate with the actual set-up not to have an upgrade script.
so it is probably good to have one in place between 5.1DEV__(x-1) to 5.1DEV__x

@joshmoore
Copy link
Member

I'd also agree that having the individual scripts keeps us honest and long-term makes our lives easier.

@sbesson
Copy link
Member

sbesson commented Mar 17, 2014

http://ci.openmicroscopy.org/job/OMERO-5.1-breaking-upgrade/22/ is green with the last commit.

setChannelColor(channel, channelIndex,
ColorsFactory.determineColor(value));
ColorsFactory.determineColor(new java.lang.Double(valueFilter)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need the java.lang. bit. Actually, valueFilter.doubleValue() would suffice. Same below.

@mtbc
Copy link
Member

mtbc commented Mar 17, 2014

Still some copyrights to update, like ChannelProcessor.

if (lightSettings == null) lightSettings = new LightSettingsI();
lightSettings.setAttenuation(omero.rtypes.rdouble(value));
}

/**
* Returns the wavelength of the light source.
* Sets the wavelength of the light source.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch (-:

@joshmoore
Copy link
Member

Travis is unhappy:

MetadataRetrieve

public PositiveFloat getChannelExcitationWavelength(int imageIndex,

^

return type PositiveFloat is not compatible with PositiveInteger

/home/travis/build/openmicroscopy/openmicroscopy/components/blitz/src/ome/services/blitz/impl/OmeroMetadata.java:697: error: getChannelEmissionWavelength(int,int) in OmeroMetadata cannot implement getChannelEmissionWavelength(int,int) in MetadataRetrieve

public PositiveFloat getChannelEmissionWavelength(int imageIndex,

@sbesson
Copy link
Member

sbesson commented Mar 18, 2014

Restarted Travis build after @qidane pushed his bioformats changes.

@qidane
Copy link
Contributor Author

qidane commented Mar 19, 2014

Integration test failed due to timeout elsewhere in code.
http://ci.openmicroscopy.org/job/OMERO-5.1-breaking-integration-java/8/testngreports/?

Reruning test.

@sbesson sbesson added develop and removed breaking labels Mar 20, 2014
@sbesson
Copy link
Member

sbesson commented Mar 20, 2014

Removing breaking label

@sbesson
Copy link
Member

sbesson commented Mar 20, 2014

Saved and upgraded the merge DB

[hudson@ome-c6100-3 ~]$ pg_dump -U omero -Fc -f ~/OMERO-5.1-merge-deploy-20032013.db.dump OMERO-5.1-merge-deploy
[hudson@ome-c6100-3 ~]$ file ~/OMERO-5.1-merge-deploy-20032013.db.dump 
/home/hudson/OMERO-5.1-merge-deploy-20032013.db.dump: PostgreSQL custom database dump - v1.12-0
[hudson@ome-c6100-3 ~]$ psql -U omero OMERO-5.1-merge-deploy < /opt/hudson/workspace/OMERO-5.1-breaking-upgrade/VERSION/LAST_DEV/label/ome-c6100-3/OMERO.server/sql/psql/OMERO5.1DEV__1/OMERO5.1DEV__0.sql 
BEGIN
CREATE FUNCTION
 omero_assert_db_version 
-------------------------

(1 row)

DROP FUNCTION
INSERT 0 1
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
UPDATE 1
                                 status                                 
------------------------------------------------------------------------
                                                                       +
                                                                       +
                                                                       +
 YOU HAVE SUCCESSFULLY UPGRADED YOUR DATABASE TO VERSION OMERO5.1DEV__1+
                                                                       +
                                                                       +

(1 row)

COMMIT
[hudson@ome-c6100-3 ~]$ 

@sbesson
Copy link
Member

sbesson commented Mar 21, 2014

No blocker found at this point. Small fixes will be addressed in subsequent PRs. Merging.

sbesson added a commit that referenced this pull request Mar 21, 2014
@sbesson sbesson merged commit 1ac4751 into ome:develop Mar 21, 2014
@sbesson
Copy link
Member

sbesson commented Mar 21, 2014

Upgraded the latest DB trout

[hudson@ome-c6100-3 ~]$ pg_dump -U omero -Fc -f ~/OMERO-5.1-latest-deploy-21032014.db.dump OMERO-5.1-latest-deploy
[hudson@ome-c6100-3 ~]$ file ~/OMERO-5.1-latest-deploy-21032014.db.dump 
/home/hudson/OMERO-5.1-latest-deploy-21032014.db.dump: PostgreSQL custom database dump - v1.12-0
[hudson@ome-c6100-3 ~]$ psql -U omero OMERO-5.1-latest-deploy < /opt/hudson/workspace/OMERO-5.1-breaking-upgrade/VERSION/LAST_DEV/label/ome-c6100-3/OMERO.server/sql/psql/OMERO5.1DEV__1/OMERO5.1DEV__0.sql
BEGIN
CREATE FUNCTION
 omero_assert_db_version 
-------------------------

(1 row)

DROP FUNCTION
INSERT 0 1
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
UPDATE 1
                                 status                                 
------------------------------------------------------------------------
                                                                       +
                                                                       +
                                                                       +
 YOU HAVE SUCCESSFULLY UPGRADED YOUR DATABASE TO VERSION OMERO5.1DEV__1+
                                                                       +
                                                                       +

(1 row)

COMMIT
[hudson@ome-c6100-3 ~]$

@qidane qidane deleted the new-wavelength branch March 21, 2014 12:15
@qidane
Copy link
Contributor Author

qidane commented Mar 25, 2014

--no-rebase

@sbesson sbesson added this to the 5.1.0-m1 milestone Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants