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

Assets azure #121

Merged
merged 9 commits into from Dec 9, 2021
Merged

Assets azure #121

merged 9 commits into from Dec 9, 2021

Conversation

victorbenichoux
Copy link
Collaborator

In this PR I add support for assets stored in Azure blob storage. It's relatively simple, since I only need to correctly implement the driver in assets/drivers/azure.py.

The rest follows: I add an assets manager fixture in tests/assets/conftest.py, and then duplicate a bunch of tests using the same approach as for other drivers.

@victorbenichoux victorbenichoux force-pushed the assets-azure branch 2 times, most recently from f75729e to 9970d96 Compare December 9, 2021 12:20
@victorbenichoux
Copy link
Collaborator Author

victorbenichoux commented Dec 9, 2021

@antoinejeannot @tgenin I had to manually update requirements-dev.txt since pip-compile won't work here on an M1 mac (tensorflow does not exist). Could you run a pip-compile and push the diff (if any)

Let's wait until https://github.com/Cornerstone-OnDemand/modelkit/pull/120/files is merged first so I can correctly update requirements

@CyrilLeMat
Copy link
Collaborator

Nice!
Shouldn't we also update docs/assets/storage_provider.md ?

@victorbenichoux
Copy link
Collaborator Author

Nice! Shouldn't we also update docs/assets/storage_provider.md ?

Definitely, let me add this to the documentation!

Copy link
Member

@antoinejeannot antoinejeannot left a comment

Choose a reason for hiding this comment

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

Nice to see that more and more providers are available in modelkit!
A few remarks, but awesome as usual!

docs/assets/storage_provider.md Outdated Show resolved Hide resolved
modelkit/assets/drivers/azure.py Show resolved Hide resolved
modelkit/assets/drivers/azure.py Outdated Show resolved Hide resolved
tests/assets/conftest.py Outdated Show resolved Hide resolved
@victorbenichoux
Copy link
Collaborator Author

PTAL @antoinejeannot

@antoinejeannot
Copy link
Member

antoinejeannot commented Dec 9, 2021

Oops, seems like your forgot the local driver's get_object_uri join nevermind

@antoinejeannot antoinejeannot merged commit 595a20a into main Dec 9, 2021
@antoinejeannot antoinejeannot deleted the assets-azure branch December 9, 2021 15:38
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.

None yet

3 participants