Add test for conn.getObjects('Annotations', opts={...}) - #6458
will-moore wants to merge 20 commits into
Conversation
There was a problem hiding this comment.
The testGetObjectsAnnotation(self) added in this PR is consistently failing on merge-ci. It might be a case of the migration (of merge-ci) to NFS, but I have not seen it passing on the old merge-ci either. Could you please check @will-moore ? Especialy please comment on workflows which need I/O on the disk -> these might be influenced by the NFS migration.
Edit: The NFS migration has nothing to do with this. The test is failing locally for me as well (non-FS local test setup).
|
Note, the test is failing for me locally (I have only added some printouts so that I know that indeed an new user, group and 0 annotations are the starting point) with following error: The test is not ready imho. Adding Exclude label. |
|
@pwalczysko Thanks for looking at this... This PR adds tests for ome/omero-py#489 so without that PR these tests will fail. I don't know if that PR got merged when the tests were failing above (not sure which build that was) but the PR seems to be merged in latest at https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-python-superbuild-push/12/console So hopefully the exclude isn't needed, but fine to leave it till I'm back. |
This is easy to see - that test never passed (on the new merge-ci). These are 12 runs which are encompassing the one which you and I am citing :), namely https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/12/#showFailuresLink - this is the testintegration build 12 which matches the python-superbuild 12 which you are citing. There IS a problem. |
|
Ah, OK, I see that in that failure (run 12), the test fails at and this seems to be due to a couple of older |
Yes, @will-moore and please when you are at it, could you have a look also at https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/16/testReport/ ? I have summarized the problem in #6468. |
|
@will-moore Please see also #6470 |
ef27199 to
c34a89d
Compare
| tagAnns = list(tag.listAnnotations()) | ||
| assert len(tagAnns) == 2 | ||
| # Since obj._loadAnnotationLinks() doesn't load child annotations | ||
| # for AnootationAnnotationLink ?? (unexpected) the anns are |
There was a problem hiding this comment.
really not sure about the clarity of this comment -> do we have an issue if there is such suprisingly unexpected behaviour of the API ?
There was a problem hiding this comment.
In case the lack of loading of child annotations is less shocking/surprising than the comment is suggesting, then I would actually remove the comment and also the commented out assert ?
pwalczysko
left a comment
There was a problem hiding this comment.
00:28:11 2026-09-21 23:28:11,651 [ scc.merge] INFO Merged PRs:
00:28:11 2026-09-21 23:28:11,651 [ scc.merge] INFO - PR 6423 jburel 'Use \d'
00:28:11 2026-09-21 23:28:11,651 [ scc.merge] INFO - PR 6458 will-moore 'Add test for conn.getObjects('Annotations', opts={...})'
00:28:11 2026-09-21 23:28:11,651 [ scc.merge] INFO - PR 6459 will-moore 'JSON API annotations tests'
00:28:11 2026-09-21 23:28:11,651 [ scc.merge] INFO - PR 6478 dominikl 'Add omero-zarr-pixel-buffer'
Tests from the first file edited here https://github.com/will-moore/openmicroscopy/blob/7cdea5403c719700bd3f7d60ac74e41b071d0ca8/components/tools/OmeroPy/test/integration/gatewaytest/test_annotation.py passing, see https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/96/testReport/OmeroPy.test.integration.gatewaytest/test_annotation/.
Tests from the second file edited here https://github.com/will-moore/openmicroscopy/blob/7cdea5403c719700bd3f7d60ac74e41b071d0ca8/components/tools/OmeroPy/test/integration/gatewaytest/test_get_objects.py are also passing, see https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/96/testReport/OmeroPy.test.integration.gatewaytest.test_get_objects/.
lgtm except for my comment Re: comment inside the test #6458 (comment) (I guess this could be better formulated or, better, removed ?
What this PR does
Adding tests for ome/omero-py#489
All tests are passing: https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/68/testReport/
New test passing now: https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/lastCompletedBuild/testReport/OmeroPy.test.integration.gatewaytest.test_get_objects/TestGetObject/testGetObjectsAnnotation/history/