-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Don't install SQLAlchemy/Pendulum adapters for other DBs #18745
Don't install SQLAlchemy/Pendulum adapters for other DBs #18745
Conversation
Where have the checks gone 🤔 |
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.
I wonder if this would break some PythonOperator edge cases where people depend on these adapters. But even if so it's OK to break those.
Github can take some time to trigger the start of the action sometimes, and until it does it just show Green with no pending checks. It's a bit annoying in that regard. |
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. |
There was a github Actions outage - that's why it took longer than usual, but yeah - I even have a ticket opened to GH to fix this "green even if we know there are other checks to be scheduled" case. |
Good idea with the mysql thingie. I was wondering where it came from, but now I know |
ahaha. It did:
|
The same problem people are reporting in that thread is happening in this CI build now, and also for me locally
|
OOOH. Nice! REPRODUCIBILITY! I will take a look as soon as take are of some urgent stuff! |
Hey @ashb - I have an idea and need your help - if you can reproduce it locally. Can you please try:
and then:
This is what runs on CI and generates this error. However when I run it locally, I get NO PROBLEM. If you can reproducibly get failure for it on your machine, then I believe I know the root cause. My Hypothesis is that I have some CPU extension or more likely kernel feature (kernel is shared between host and container), that you do not have, and it makes compilation go different route and use the TLS for optimisation - but then it might behave differently (and crash) when that CPU extension/kernel feature is not available. If we can consistently reproduce it, we can compare our CPU extensions/kernel versions and possibly we will be able to disable it when I generate the image. |
I'll see if I can still reproduce it |
I can't reproduce this with that image, but my locally built Python 3.8 image does have that. |
Can you please push that image somewhere so that I can take a look :) ? I'd love to get to the bottom of it |
@potiuk Pushing up It seems to fairly relibably happen for the first time I run this command in the image
(Tested against psql 9.6, but I don't think that is relevant.) |
Used your image, and I cannot reproduce it on my PC. I will try on the EC2 instance, but in the meantime I have this:
My theory is that this will only show up for newer kernels for the host, that's why we started to get reports recently (nothing really changed in those libraries and compilations). Others reported such errors with higher kelner versions: https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1633680297064600?thread_ts=1633442559.410900&cid=CCQ7EGB1P - 5.4.120 |
Kernel on our runner's instance's is newer (and we saw it happening there): |
I could not reproduce it with Ash's image but the good news I have it nicely reproducible on our Runner EC2 instance 🤞 |
|
2057b5b
to
6f05853
Compare
For reference my current kernel is |
Do you think I should add |
I would like to continue to try to find a more 'neutral' fix for it later today - now i can reproduce it and will try to do it later today. LD_PRELOAD has the side effect that it slows down loading of everything |
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can.
6f05853
to
e90ed55
Compare
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can. (cherry picked from commit d75cf4d)
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can. (cherry picked from commit d75cf4d)
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can.
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can. (cherry picked from commit d75cf4d)
This stops the MySQL libs being imported "unnecessarily" when Postgres is in use -- and there have been a few confusing reports of the mysql client libs causing problems in rare cases, so lets avoid the import if we can.
This doesn't fix the underlying problem causing #17546 but it might stop it affecting users who aren't using mysql. (Our docker image contains mysql lib, so the import is successful.)
^ 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.