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

fix: use offset-naive datetime in _CredentialsToken #37539

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

m1racoli
Copy link
Contributor

@m1racoli m1racoli commented Feb 19, 2024

The field access_token_acquired_at is specific to gcloud-aio's Token class and will be used on subsequent calls of get with an offset-naive datetime insternally. Therefore we cannot use offset-aware instances of datetime here.

related: #37138

@Taragolis


^ 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.rst or {issue_number}.significant.rst, in newsfragments.

The field `access_token_acquired_at` is specific to gcloud-aio's Token
class and will be used on subsequent calls of `get` with an offset-naive
datetime insternally. Therefore we cannot use offset-aware instances of
datetime here.
m1racoli and others added 2 commits February 19, 2024 12:21
Co-authored-by: Andrey Anshin <Andrey.Anshin@taragol.is>
Let others know about things to consider when upgrading the major
version of gcloud-aio-auth.
@uranusjr uranusjr merged commit 011cd3d into apache:main Feb 20, 2024
58 checks passed
@@ -89,6 +89,12 @@ dependencies:
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.7.2
- asgiref>=3.5.2
# When upgrading the major version of gcloud-aio-auth we want to make sure to
Copy link
Contributor

Choose a reason for hiding this comment

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

Is something block us from upgrading version now?

Copy link
Contributor Author

@m1racoli m1racoli Feb 20, 2024

Choose a reason for hiding this comment

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

Generally speaking, no. I suppose a bit more care is needed when doing so, as it affects a range of async code of the provider. Also not sure yet how it affects the other gcloud-aio packages.

@m1racoli m1racoli deleted the fix-acquire-access-token branch February 20, 2024 07:53
sunank200 pushed a commit to astronomer/airflow that referenced this pull request Feb 21, 2024
Co-authored-by: Andrey Anshin <Andrey.Anshin@taragol.is>
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
Co-authored-by: Andrey Anshin <Andrey.Anshin@taragol.is>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants