Uh oh!
There was an error while loading. Please reload this page.
Upgrade moto library to version 3.0 - #22005
Conversation
moto library to version 3.0moto library to version 3.0potiuk
commented
Mar 5, 2022
This is fine - but it requires constraints to get regenerated. The failure there indicates that. I will need to manually update constraints and merge it at about the same time to accomodate ! |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
uranusjr
commented
Mar 5, 2022
Is it impossible to support both 2.x and 3.0+? |
kazanzhy
commented
Mar 5, 2022
Good question @uranusjr. I think it's not possible. |
potiuk
commented
Mar 5, 2022
I think it does not really matter, moto is really a devel-only dependency - only used in tests, so it is just used for tests only. Once it works and constraints are updated - it will work. But I agree with @uranusjr, it might be a bit easier for us to just remove the limit (and it will get upgraded automatically). According to our newly agreed rules it should not be upper-bound (and this is even more so as this is test dependency only) I will slightly modify it and see if it will pass (and use moto > 3) - it should. |
Uh oh!
There was an error while loading. Please reload this page.
potiuk
commented
Mar 5, 2022
UPDATE. Ah I see that we shoudl anyway have > 3.0.3 so I will just remove the ~ (and update the constraints as planned) |
kazanzhy
commented
Mar 5, 2022
I had many problems with the "latest version" in my projects If we are not fixing the version of |
potiuk
commented
Mar 5, 2022
This is what our constraint mechanism provides. All "regular" PRs if they do not change setup.py/setup.cfg use the constraints to run the PR - i.e. latest "good" version of dependencies. Only in This way:
So - getting a failure in If want to see more - my talk about it from November: https://youtu.be/_SjMdQLP30s?t=2519 |
potiuk
commented
Mar 5, 2022
And here is our (agreed in the community after recent discussion) approach on how we treat dependencies: https://github.com/apache/airflow#approach-to-dependencies-of-airflow |
potiuk
commented
Mar 5, 2022
I rebuilt the constraints and merged :). All Good! |
kazanzhy
commented
Mar 5, 2022
Thanks for the information. |
Ah yeah. With 580 deps we have ~ 20 new released dep versions every week :). Hard to keep up without the automation :) |
Some of the RDS functionality was added to
motorecently.Therefore, there are needed to upgrade version of the library