-
Notifications
You must be signed in to change notification settings - Fork 13
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
raising a NonzeroReturnCode
when download fails
#81
Conversation
This addresses #77. |
Nonzero return code
when download failsNonzeroReturnCode
when download fails
@joshmoore any suggestions on the best way to test this? I'd need to at the very least restart the test server with new settings and run a second disjoint set of tests, I assume. |
Hmmm... good question, and interesting use case! And one which wasn't built into omero-test-infra from the start. I'm on a tiny iPad so I'll need to look into this more when I'm back at my desk, but my guess is that having multiple calls to the infrastructure in your GH actions is going to be the easiest way to go. That way you could override the docker-compose with the "bad-downloads" settings. |
I think this would be relatively easy to do using pytest markers, I'm just struggling right now on how to pass an extra pytest argument all the way into the call at |
ok, I think I found a way: from |
Previously, any failures of
omero download
when trying to download images (often due to binary permissions not allowing for them) were silent; a final pack would still be produced, only missing the relevant binary files. This PR implements checking return codes for allomero download
andomero export
operations, and fails/cleans up temp files in case any of them fails.