Task #10560 (closed)
Bug: Integration test build for blitz has configuration troubles
| Reported by: | mtbcarroll | Owned by: | jamoore |
|---|---|---|---|
| Priority: | critical | Milestone: | 5.0.0-beta1 |
| Component: | Configuration | Version: | 4.4.8 |
| Keywords: | n.a. | Cc: | fs@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | FS demo 4.x |
Description
With a fresh build from current develop,
./build.py -f components/blitz/build.xml integration
fails with,
org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'maxPoolSize'; nested exception is java.lang.NumberFormatException: For input string: "${omero.db.poolsize}"
If into the suite macrodef in components/antlib/resources/lifecycle.xml one inserts,
<jvmarg value="-Domero.db.poolsize=${omero.db.poolsize}"/>
then the -verbose argument confirms that -Domero.db.poolsize=10 is passed but the NumberFormatException exception remains unchanged.
Annoyingly, -verbose also reveals that -Domero.data.dir=/OMERO/ is passed, which I bet causes some other bean creation to fail, because I don't have that directory, instead I have,
$ omero config get omero.data.dir /Users/mark/var/omero/
Change History (15)
comment:1 Changed 6 years ago by jamoore
- Milestone changed from Unscheduled to OMERO-5
- Remaining Time set to 0.25
- Sprint set to FS Demo 3
- Summary changed from Integration test build for blitz has configuration troubles to Bug: Integration test build for blitz has configuration troubles
comment:2 Changed 6 years ago by jamoore
- Cc fs@… added; bpindelski cblackburn removed
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 6 years ago by Josh Moore <josh@…>
(In [0a7029ca7690c4cd1d3c4b64e38377f8a2ec24ba/ome.git] on branch develop) Merge pull request #1000 from joshmoore/10560-blitz-itest
Initial clean up of blitz integration tests (Fix #10560)
comment:4 Changed 6 years ago by mtbcarroll
Should I file a separate ticket about integration tests failing miserably when /OMERO/ doesn't exist regardless of omero.data.dir's setting?
comment:5 Changed 6 years ago by jamoore
You can, or you can re-open this. I locally have omero.data.dir set for the tests, but that should happen far more automatically so that the tests work for anyone. (And importantly, so they don't overwrite any files,say, on gretzky)
comment:6 Changed 6 years ago by mtbcarroll
- Resolution fixed deleted
- Status changed from closed to reopened
The outstanding issue is that the Blitz integration tests require /OMERO/ to exist whatever omero.data.dir's configuration.
comment:7 Changed 6 years ago by jamoore
- Priority changed from minor to critical
- Sprint changed from FS Demo 3 to FS demo 4.x
Where have you tried setting it, Mark?
comment:8 Changed 6 years ago by mtbcarroll
omero config set omero.data.dir <whatever> before starting the server -- is that not the way to do it? Perhaps the developer docs on tests need adjustment.
comment:9 Changed 6 years ago by jamoore
The Java code knows nothing about the etc/grid/config.xml. That's processed solely by Python and icegridnode to pass a properties file to the Java processes. The two options which are possibly open to the server Java developer are: etc/local.properties.example (which yes, should be named default) and the ICE_CONFIG environment variable. (In Eclipse, I pass the values directly to the JVM via the "Installed JREs" dialog)
comment:10 Changed 6 years ago by jburel
- Sprint changed from FS demo 4.x to FS Demo 4.3
Moving the reopened ticket to 4.3 sprint
comment:11 Changed 6 years ago by jburel
- Sprint changed from FS Demo 4.3 to FS demo 4.x
Due to the time required to identify the issue, moving it back to 4.x
comment:12 Changed 6 years ago by mtbcarroll
On dev_4_4 ./build.py -f components/server/build.xml test presently gives me,
Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'maxPoolSize'; nested exception is java.lang.NumberFormatException: For input string: "${omero.db.poolsize}"
(Update: ah, yes, now I see PR 1000 is still in http://hudson.openmicroscopy.org.uk/view/Mgmt/job/SCC-unrebased-prs/lastSuccessfulBuild/console)
comment:13 Changed 6 years ago by jamoore
- Version set to 4.4.8
Rebased: https://github.com/openmicroscopy/openmicroscopy/pull/1502
@mtbc: if you think that covers this ticket, can you please re-close?
comment:14 Changed 6 years ago by mtbcarroll
- Resolution set to fixed
- Status changed from reopened to closed
Blazej's improvements to developers/testing.txt address the outstanding issues here.
comment:15 Changed 6 years ago by Josh Moore <josh@…>
(In [216438686cd1245e90babd82142b31fc836d3ae7/ome.git]on branches master, dev_4_4) Merge pull request #1502 from joshmoore/rebased/dev_4_4/10560-blitz-itest
Initial clean up of blitz integration tests (Fix #10560) (rebased onto dev_4_4)
https://github.com/openmicroscopy/openmicroscopy/pull/1000
Integration tests are not yet passing, but the omero.db.poolsize issue is taken care of. We'll need to decide how far we want to go with respect to getting that particular ant target passing as a part of PR 1000.