Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 2, 2023

The "google-auth" 2.16.2 just released, removed the _HELP_MESSAGE that was imported by google provider auth util thus failing the imports in canary builds of ours attempting to upgrade to newver versions of released libraries.

This PR inlines the original help message into our code to make it independent from google-auth package version used.


^ 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.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Mar 2, 2023
@potiuk
Copy link
Member Author

potiuk commented Mar 2, 2023

Should fix failing "canary" main build.

@potiuk potiuk closed this Mar 2, 2023
@potiuk potiuk reopened this Mar 2, 2023
@uranusjr
Copy link
Member

uranusjr commented Mar 3, 2023

I wonder if we should just move all the underscore variables.

@potiuk potiuk closed this Mar 3, 2023
@potiuk potiuk reopened this Mar 3, 2023
@potiuk
Copy link
Member Author

potiuk commented Mar 3, 2023

I wonder if we should just move all the underscore variables.

Yeah. I was on the fence with this one, but I realized this is far more than our test's problem. Right now if anyone uses old google provider with the new google auth, it will miserably fail, so the risk of having the imports are far bigger than inlining all the imports there. cc: @eladkal - this one SHOULD be included in the new wave of providers, as soon we might be flooded with "google provider stopped working" and we will have no other workarounds for those users but "downgrade google-auth package to 2.16.1. When we release this in the provider, we will also be able to tell them "upgrade google provider".

@potiuk potiuk force-pushed the replace-imported-help-message-in-google-auth branch from c0fe753 to 6c61d56 Compare March 3, 2023 07:56
@potiuk
Copy link
Member Author

potiuk commented Mar 3, 2023

inlined all the constants now.

@eladkal
Copy link
Contributor

eladkal commented Mar 3, 2023

cc: @eladkal - this one SHOULD be included in the new wave of providers

Ok waiting for merge

The "google-auth" 2.16.2 just released, removed the _HELP_MESSAGE
that was imported by google provider auth util thus failing the
imports in canary builds of ours attempting to upgrade to
newver versions of released libraries.

This PR inlines the original help message into our code to make
it independent from google-auth package version used.
@potiuk potiuk force-pushed the replace-imported-help-message-in-google-auth branch from 6c61d56 to f2a9a1e Compare March 3, 2023 08:41
@potiuk potiuk merged commit 47ab0ca into apache:main Mar 3, 2023
@potiuk potiuk deleted the replace-imported-help-message-in-google-auth branch March 3, 2023 10:11
@potiuk
Copy link
Member Author

potiuk commented Mar 3, 2023

merged @eladkal

@potiuk
Copy link
Member Author

potiuk commented Mar 3, 2023

Oups. I merged a bit too much. Will remove the code from _vendor that was accidentally added here

potiuk added a commit to potiuk/airflow that referenced this pull request Mar 3, 2023
The apache#29888 had merged accidentally some of the code that belonged
to a different PR and the code should be removed.
@potiuk
Copy link
Member Author

potiuk commented Mar 3, 2023

#29895 removes the accidental additions

potiuk added a commit that referenced this pull request Mar 3, 2023
The #29888 had merged accidentally some of the code that belonged
to a different PR and the code should be removed.
ephraimbuddy pushed a commit that referenced this pull request Mar 9, 2023
The "google-auth" 2.16.2 just released, removed the _HELP_MESSAGE
that was imported by google provider auth util thus failing the
imports in canary builds of ours attempting to upgrade to
newver versions of released libraries.

This PR inlines the original help message into our code to make
it independent from google-auth package version used.

(cherry picked from commit 47ab0ca)
ephraimbuddy pushed a commit that referenced this pull request Mar 10, 2023
The "google-auth" 2.16.2 just released, removed the _HELP_MESSAGE
that was imported by google provider auth util thus failing the
imports in canary builds of ours attempting to upgrade to
newver versions of released libraries.

This PR inlines the original help message into our code to make
it independent from google-auth package version used.

(cherry picked from commit 47ab0ca)
@ephraimbuddy ephraimbuddy added this to the Airflow 2.5.2 milestone Mar 10, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Mar 10, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 23, 2023
The #29888 had merged accidentally some of the code that belonged
to a different PR and the code should be removed.

(cherry picked from commit 06b5854)
pierrejeambrun pushed a commit that referenced this pull request Mar 24, 2023
The #29888 had merged accidentally some of the code that belonged
to a different PR and the code should be removed.

(cherry picked from commit 06b5854)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants