potiuk commented on code in PR #44221:
URL: https://github.com/apache/airflow/pull/44221#discussion_r1864896547
##########
tests_common/test_utils/db.py:
##########
@@ -73,7 +73,12 @@ def initial_db_init():
from airflow.www.extensions.init_appbuilder import init_appbuilder
from airflow.www.extensions.init_auth_manager import get_auth_manager
+ from tests_common.test_utils.compat import AIRFLOW_V_3_0_PLUS
+
db.resetdb()
+ if AIRFLOW_V_3_0_PLUS:
+ db.downgrade(to_revision="5f2621c13b39")
+ db.upgradedb(to_revision="head")
Review Comment:
BTW. We should indeed optimize some of the fixtures I think - but I'd say we
should measure the impact and optimise those that are really slowing things
down: see https://github.com/apache/airflow/issues/43488 -> otherwise
`premature optimisation is the root of all evil (and complexity in the code)`
--
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]