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

Switch to non-vendored latest connexion library #20910

Merged
merged 1 commit into from Jan 18, 2022

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jan 17, 2022

The connexion library has been vendored in because of requests
library that used to have non-optional chardet LGPL dependency,
however requests library had since released a version (which we
helped to provide and convince the requests maintainer to merge)
where chardet is an optional dependency (with mandatory
charset_normalizer). This means that we do not need to vendor-in
connexion any more.

Also connexion after being somewhat abandoned, has been
"revived" and there are active community now that maintains it -
they released several new versions since 2.7.0 we used (2.10.0 is
now the latest version, so we can upgrade to that version instead)


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

setup.cfg Show resolved Hide resolved
@potiuk potiuk force-pushed the connexion-not-vendored-in branch 2 times, most recently from 95afcf9 to 5929a04 Compare January 17, 2022 19:33
setup.cfg Show resolved Hide resolved
@potiuk potiuk closed this Jan 17, 2022
@potiuk potiuk reopened this Jan 17, 2022
@potiuk
Copy link
Member Author

potiuk commented Jan 17, 2022

Right. Looks like the tests are all green when I replace vendored-in connexion with the latest version from PyPI (the failure was caused by temporary problem with GPG key when building PROD image). Is there anything else (besides running airflow + running some API calls and looking at the Swagger/API docs? Any other tests/expecrations for the connexion/API ?

WDYT @mik-laj @uranusjr @ephraimbuddy ?

@potiuk
Copy link
Member Author

potiuk commented Jan 17, 2022

BTW the prod image failure is actually due to this one #20889 - once this is merged, prod image should correctly use CI image with "connexion" installed from the PR rather than from "latest" main

@mik-laj
Copy link
Member

mik-laj commented Jan 18, 2022

Any other tests/expecrations for the connexion/API ?

I think this part of the project has pretty good test coverage and we can rely on it.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jan 18, 2022
@github-actions
Copy link

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.

The `connexion` library has been vendored in because of requests
library that used to have non-optional chardet LGPL dependency,
however requests library had since released a version (which we
helped to provide and convince the requests maintainer to merge)
where chardet is an optional dependency (with mandatory
charset_normalizer). This means that we do not need to vendor-in
connexion any more.

Also connexion after being somewhat abandoned, has been
"revived" and there are active community now that maintains it -
they released several new versions since 2.7.0 we used (2.10.0 is
now the latest version, so we can upgrade to that version instead)
@potiuk
Copy link
Member Author

potiuk commented Jan 18, 2022

Cool. I also tested some basic API calls with the released client, as well as SWAGGER/Redoc and the manual testing also "looks good",

@potiuk potiuk merged commit 2c761cc into apache:main Jan 18, 2022
@potiuk potiuk deleted the connexion-not-vendored-in branch January 18, 2022 14:18
@potiuk potiuk added this to the Airflow 2.2.4 milestone Jan 20, 2022
potiuk added a commit that referenced this pull request Jan 22, 2022
The `connexion` library has been vendored in because of requests
library that used to have non-optional chardet LGPL dependency,
however requests library had since released a version (which we
helped to provide and convince the requests maintainer to merge)
where chardet is an optional dependency (with mandatory
charset_normalizer). This means that we do not need to vendor-in
connexion any more.

Also connexion after being somewhat abandoned, has been
"revived" and there are active community now that maintains it -
they released several new versions since 2.7.0 we used (2.10.0 is
now the latest version, so we can upgrade to that version instead)

(cherry picked from commit 2c761cc)
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Jan 25, 2022
jedcunningham pushed a commit that referenced this pull request Jan 27, 2022
The `connexion` library has been vendored in because of requests
library that used to have non-optional chardet LGPL dependency,
however requests library had since released a version (which we
helped to provide and convince the requests maintainer to merge)
where chardet is an optional dependency (with mandatory
charset_normalizer). This means that we do not need to vendor-in
connexion any more.

Also connexion after being somewhat abandoned, has been
"revived" and there are active community now that maintains it -
they released several new versions since 2.7.0 we used (2.10.0 is
now the latest version, so we can upgrade to that version instead)

(cherry picked from commit 2c761cc)
@potiuk potiuk restored the connexion-not-vendored-in branch April 26, 2022 20:49
@potiuk potiuk deleted the connexion-not-vendored-in branch July 29, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full tests needed We need to run full set of tests for this PR to merge type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants