Uh oh!
There was an error while loading. Please reload this page.
Add support of Pendulum 3 - #36281
Conversation
bolkedebruin
commented
Dec 18, 2023
What happens if serialization (serde) encounters a OLD version of a pendulum timezone? I havent verified it myself but I assume the class names have changed? |
Full qualified path is the same. The main difference how UTC timezone works:
|
Taragolis
commented
Dec 18, 2023
Anyway It is a good point to add this kind of tests. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bolkedebruin
commented
Dec 21, 2023
I like it :-) |
Seems like it close to backcompat with 2, just need to resolve remaining static checks |
Uh oh!
There was an error while loading. Please reload this page.
Taragolis
commented
Dec 24, 2023
Seems like all major stuff are resolved, so this PR could be reviewed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
potiuk
commented
Dec 30, 2023
Looks green. Does it mean we have it ?? |
bolkedebruin
commented
Jan 6, 2024
I think we should bite the bullet and start fixing stuff that might be affected. So yes we should have it. |
Taragolis
commented
Jan 9, 2024
I will rebase and add release notes today if I feel better |
Taragolis
commented
Jan 10, 2024
Just wondering shall we merge it or better to wait for someone else review? |
ab31119 to
3caa58dCompareTaragolis
commented
Jan 11, 2024
Fortunately All failures after latest rebase not relevant to changes from this PR and should be fixed by #36728 |
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
potiuk
commented
Jan 12, 2024
🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 |
* Add support of Pendulum 3 * Add backcompat to pendulum 2 * Update airflow/serialization/serialized_objects.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * Add newsfragments --------- Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> (cherry picked from commit 2ffa6e4)
* Add support of Pendulum 3 * Add backcompat to pendulum 2 * Update airflow/serialization/serialized_objects.py Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> * Add newsfragments --------- Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> (cherry picked from commit 2ffa6e4)
Related: #35798,
the differences is bump to min pendulum 3As suggestion in https://lists.apache.org/thread/5b3xw87ntl0m00d8jwcz13vnvxhybjdp keep support pendulum 2 for a while, even if it has some problem it might help users to migrate to pendulum 3.
Add
--downgrade-pendulumby the same way as it implements into the--downgrade-sqlalchemyso we could also run tests against pendulum 2 for a while.The only one version of pendulum supported -
2.1.2with older versions such as2.0.0I had a problem with initialised Airflow, there is should not be a big problem because we have2.1.2for a long period of time in constraints, and I guess for all Airflow 2.x but I do not checked all constraints only latests.There is some different behaviour with pendulum 3 vs pendulum 2:
String representation:
Pendulum 2
Has
Tseparator between date and timePendulum 3
Has
(1 whitespace) separator between date and time, same asdatetime.datetimeUTC serialised for timezone in REST API
Pendulum 2
Pendulum 3
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.