-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Update Azure storage version #805
Conversation
d5e4479
to
b77b963
Compare
It looks like the integration tests are the only checks failing, but now that the emulated mode is removed I’m not sure if those are fixable. Happy to address that however makes sense |
Is there a good way to assess how common the various Azure libraries are? Normally with these sorts of things the breaks are minimal and people just upgrade but this appears to be a larger one. |
I don't know of any ways to check usage numbers for specific library versions, and it doesn't seem like that's listed in the repo dependents page, but it is a pretty significant change. Would it make sense include this as a separate storage backend? |
What exactly is missing to merge this? I'd like to relax the pinning of the |
Making it Right now I'm looking into just vendoring this file (thanks for the work, btw!) since I'm using azure-storage-blob >= 12 for other things in my project. |
Need this please!!!!! Get_blob_to_stream bugging randomly for me.... |
Hello, guys, any update on this ? |
I'd have some time to work on this in the next days. @jschneier what's your proposal on how to proceed here:
Personally I'd be fine with simply replacing it. We're only using We're only using |
I think we should just replace it. |
I've got time to resolve the merge conflicts on this and make any changes if that works. I've been using this backend vendored for a while without any issues. Is it alright to remove the integration tests that rely on the emulated mode? As far as I can tell that isn't supported anymore, but I haven't looked in a while |
You should remove anything that doesn't work. It'd be good to have a reasonable set of tests, of course. |
Sounds good! Yeah this would only apply to the integration tests, and it looks like the Azure backend is the only one that has integration tests. I updated the other tests, and on the last CI run those all passed |
b77b963
to
314b94c
Compare
I cleaned up the merge conflicts and dropped the integration tests since they only seemed to be used for Azure, but updated the other tests. Let me know if I should make any other changes, thanks! |
Are there any migration steps to document? |
It should work without any other changes. The main things to note are the removed custom settings, one of which is only related to tests |
Thanks @pjsier for the great work on this - I just tried it out with a tiny project and ran into an issue however. The type of credential for ContainerClient has changed and now accepts I'm using a managed identity to avoid storing the access key in code or config, so my code looked like:
Which wraps the new azure identity SDK and generates the correct token credential, however this PR failed with the following error(s depending on what I used as
I had to update my code to remove the intermediate wrapper and just pass in the
I'm just adding this here in case it helps anyone else who is using a similar set up |
@jasoncabot thanks for the info! For this PR I was trying to match functionality from the previous client, but it does seem like that's worth including here even if it's in a separate PR |
I don't believe there's a way of automatically mapping between Is there somewhere (better than here?) that it could be documented? |
Ah I misunderstood, I see what you're saying now, and this would definitely be good to document. @jschneier would this make sense for the changelog? If so I can update that |
Any update on this? Is there any help needed? |
It would be great to get this merged! Any help needed? |
@pjsier thank you for your amazing work. I am using your fork (branch It returns space in URLs as "%2520" |
@AlBlanc thanks for catching that! I haven't used this in a while, so if you have any insight on where in the method that can be fixed that would be great |
Looking at this for the next release. It seems like there are two concerns
I'm inclined to focus on the first and to separately debug the second which is probably somewhere around the |
I'm fairly certain just removing the |
fb519de
to
6b128eb
Compare
Sounds great! I just cleaned up some conflicts and removed the |
2384873
to
a315cda
Compare
a315cda
to
56302e5
Compare
@pjsier please remove the |
@pjsier can you also update the extra requires for azure in |
I also noticed there is still a reference to |
Also |
@jschneier just pushed those updates! I think the extras requires in |
* Update azure storage version * remove integration tests for azure * remove extra azure filepath_to_uri call * cleanup conf, settings
Attempt to close #784. From what I can tell the updated version of
azure-storage-blob
doesn't have the same options for URL generation withis_emulated
andcustom_domain
, so I've removed options that won't work anymore.There's a lot in here, so any feedback is appreciated, thanks!