-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Adds missing python-ldap dependency to LDAP extra. #13308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like kerberos
and statsd
are also missing, can you add them too in this PR and rename it too "Adds missing extra dependencies" ?
Done. |
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
84af944
to
2c27472
Compare
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
2c27472
to
47ad00f
Compare
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
0597320
to
0c9a50a
Compare
Hey @kaxil I think this one should succeed :) |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
Should we add tests to detect if the library has installed correctly? As far as I can see, it has system dependencies, so there is a chance that updating the base image could cause problems that we could easily overlook. I am thinking of a code similar to the following. subprocess.run(['docker', '--rm', $DOCKER_IMAGE, 'python', '-c', 'import ldap']) |
I do not see a reason we should treat it differently. If we add it, we should add it for all packages not only for this library - we have plenty of other packages and possibly we should add them all this way. But that should be a separate change where we identify all such libraries and check if they can be imported/used? Maybe just create an issue for it with all such libraries. Maybe you can creat an issue for it ? UPDATE: I added an issue: #13315 |
ff8ed0d
to
eee5563
Compare
eee5563
to
f55846a
Compare
The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason. |
f55846a
to
55e3e19
Compare
Looks like it could be merged :) |
55e3e19
to
3017ace
Compare
Hey @kaxil - would love to merge it and get the images rebuilt (mostly from scratch for the ldap dependency). |
3017ace
to
5f9c282
Compare
I rebased the change on top of #13329 which re-enables more comprehensive verification (including checking imports for all added features). I've added LDAP check there. |
It seems that for quite some time (1.10.4) the "ldap" extra missed python-ldap dependency. https://issues.apache.org/jira/browse/AIRFLOW-5261 Also LDAP seems to be popular enough to be added as default extra in the production image. Fixes #13306
5f9c282
to
20ea56c
Compare
It seems that for quite some time (1.10.4) the "ldap" extra missed python-ldap dependency. https://issues.apache.org/jira/browse/AIRFLOW-5261 Also LDAP seems to be popular enough to be added as default extra in the production image. Fixes #13306 (cherry picked from commit d23ac9b)
It seems that for quite some time (1.10.4) the "ldap" extra missed python-ldap dependency. https://issues.apache.org/jira/browse/AIRFLOW-5261 Also LDAP seems to be popular enough to be added as default extra in the production image. Fixes apache#13306 (cherry picked from commit d23ac9b) (cherry picked from commit 047a197)
Please check only the last commit as this is based on #13329
It seems that for quite some time (1.10.4) the "ldap" extra
missed python-ldap dependency.
https://issues.apache.org/jira/browse/AIRFLOW-5261
Also LDAP seems to be popular enough to be added as default
extra in the production image.
Fixes #13306
^ 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.