Dev-iL commented on PR #53580:
URL: https://github.com/apache/airflow/pull/53580#issuecomment-3096268468
Let's take a look at one example:
```none
____________________________________________________________________ ERROR
at setup of test_get_airflow_health_metadatabase_unhealthy
____________________________________________________________________
devel-common/src/tests_common/pytest_plugin.py:411: in
initialize_airflow_tests
_initialize_airflow_db(request.config.option.db_init, airflow_home)
devel-common/src/tests_common/pytest_plugin.py:436: in _initialize_airflow_db
initial_db_init()
devel-common/src/tests_common/test_utils/db.py:105: in initial_db_init
db.downgrade(to_revision="5f2621c13b39")
airflow-core/src/airflow/utils/session.py:100: in wrapper
return func(*args, session=session, **kwargs)
airflow-core/src/airflow/utils/db.py:1065: in downgrade
dbm.initdb()
airflow-core/src/airflow/utils/db_manager.py:125: in initdb
self.create_db_from_orm()
providers/fab/src/airflow/providers/fab/auth_manager/models/db.py:60: in
create_db_from_orm
_get_flask_db(settings.SQL_ALCHEMY_CONN).create_all()
providers/fab/src/airflow/providers/fab/auth_manager/models/db.py:43: in
_get_flask_db
db = SQLAlchemy(flask_app)
/usr/local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py:758: in
__init__
_include_sqlalchemy(self, query_class)
/usr/local/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py:112: in
_include_sqlalchemy
for key in module.__all__:
E AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you
mean: '__file__'?
```
So FAB is trying to load flask-sqlalchemy, which uses SQLA in some
incompatible manner. What's the correct approach in this case? Disable
FAB-related tests? Uninstall FAB in these CI jobs? Ensure
`flask-sqlalchemy>=3.0.2` is installed [where this bug was
fixed](https://github.com/pallets-eco/flask-sqlalchemy/issues/1122)?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]