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

Fix pass through adapter when using minio (s3) #132

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Conversation

cjcolvar
Copy link
Member

A couple of changes were needed to make the pass through adapter usable with minio inside avalon:

  • Convert s3 url to a presigned http url for use in mediainfo
  • Use the download_file method supplied by aws-sdk-s3 for transferring derivative to working directory

Copy link
Contributor

@masaball masaball left a comment

Choose a reason for hiding this comment

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

These changes look good to me. I do agree that there should be tests for this though.

Looking at the test suite, I don't think the ffmpeg adapter has tests for the s3 case either. Maybe we make a new issue to circle back and add s3 test cases for both adapters? But it can be harder adding proper test cases in isolation of tweaking the main code...

If you feel like you have the cycles it would be good to add tests for this but I'm okay with merging this as is and circling back for that when we are not trying to prep an Avalon release.

@cjcolvar
Copy link
Member Author

cjcolvar commented Feb 1, 2024

I created #133 to cycle back to creating these tests later.

@cjcolvar cjcolvar merged commit cad5ced into main Feb 1, 2024
7 checks passed
@cjcolvar cjcolvar deleted the s3_mediainfo branch February 1, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants