Add S3 integration tests - #2067
PeterDowdy wants to merge 2 commits into
Conversation
… running these tests against minio and added a ci step Signed-off-by: Peter Dowdy <peter.dowdy@gmail.com> Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Peter Dowdy <peter.dowdy@gmail.com> Assisted-by: Claude:claude-sonnet-5
|
Thank you for this. I won't have time to look at it for the next few weeks but I will get round to it. |
No rush! |
|
Looking at this I have a some comments: Firstly (and most importantly) is looks like minio is not longer in development and has been archived. The tests get the latest docker image, if the project is no longer maintained it should probably get a specific image (just in case someone replaces the latest image with something nefarious). Secondly, the copyright mentions the Broad Institute. From your profile you do not appear to work for them so that needs changing. Thirdly (and this one is more subjective) your test file itself seems large and wordy. It is going to make it harder to check and maintain. All that being said we are thinking about using it for our maintenance checks (rather than the regular ones). |
This PR adds S3 integration tests through minIO as a mocked S3 provider. It covers most of the happy and sad paths in the project, with moderate rigour. It doesn't check transient errors (since the library just dies on them anyways), TLS verification (since that seems like it's drifting out of testing S3), or very large synthetic files (to keep runtime short).
The minIO test depends on an env var so developers without minIO can safely bypass it.
This effort surfaced a few fairly small gaps in S3 file-handling that could be filled:
Assisted-by: Claude:claude-sonnet-5