ramitkataria commented on code in PR #72060:
URL: https://github.com/apache/airflow/pull/72060#discussion_r3876882638


##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_deadlines.py:
##########


Review Comment:
   Should this fixture also call `clear_db_dag_bundles()` and 
`clear_db_teams()`? Claude says:
   Both exist in `tests_common.test_utils.db`).`attach_dag_to_team` commits the 
team/bundle rows before yielding, so a run killed inside the context manager 
leaves them behind, and on a persistent DB (e.g. breeze without `--db-reset`) 
every later run then fails inside `attach_dag_to_team` with a duplicate-PK 
error until the rows are removed by hand. Clearing them here (after 
`clear_db_dags()`, since Dags reference bundles) would make the new tests 
self-healing.



-- 
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]

Reply via email to