-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
dagster_azure: do not import fake implementations by default #26754
Conversation
@dpeng817 Could you take a look at this pr? |
While I agree that these should probably exist in a separate namespace, it's unfortunately a breaking change. These are documented as public in the API docs under this namespace, and therefore it's not a change I think we can make in good conscience unfortunately. Curious why this is coming up as an issue for you. Is there a package or something which needs to be installed which is causing problems? |
No, as I've mentioned in #26733 it adds a bit more to startup time of each pod where you have to import definitions of ADLS2 including fakes (which I'm not interested in prod deployment). |
Okay @futurwasfree ; after discussing internally I think since this isn't a 1.0 library, and because we believe these APIs to be relatively low traffic, we're okay doing a breaking change in the next .0 release (1.10.0). What we need to do is the following:
Then, in 1.10.0, we can actually delete the original imports. In terms of issuing a warning, I think what you want to do is move the fakes to cc @maximearmstrong for future coordination here. |
Thanks @dpeng817 for looking into it and explanations. |
implementation. Issue a deprecation warning on imports of the code from the original path (subclassed ones)
I've re-read your message and did something ;) could you take a look please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, I'll merge when tests pass. Thanks!
You're very welcome! |
I'll fix test failures post-hoc @futurwasfree ; thanks again for your contribution. |
Great stuff @dpeng817, I'm really happy that you've accepted my changes! One last question maybe about 2nd act of our play, i.e. removal of old submodule prior to next minor release (1.10.0): will you ping me later to do it? or will you guys handle it on your own? |
@futurwasfree we'll handle that part on our own, unless you're particularly interested in doing it! |
@dpeng817 nope, I trust you 100% on this! |
Related to issue #26733
Summary & Motivation
Currently when I import the following symbols in my production setup:
I'm also getting all the fake_adls2_resources imported, as it's described in adls2/init.py:
How I Tested These Changes
python -X importtime definitions.py
before and after the change
Changelog