uranusjr commented on pull request #17719:
URL: https://github.com/apache/airflow/pull/17719#issuecomment-912219603


   ```
     ____________ ERROR at setup of TestSentryHook.test_add_breadcrumbs 
_____________
     
     self = <test_sentry.TestSentryHook object at 0x7fadb2918160>
     dag_maker = <tests.conftest.dag_maker.<locals>.DagFactory object at 
0x7fadb80762e0>
     
         @pytest.fixture
         def task_instance(self, dag_maker):
             # Mock the Dag
             with dag_maker(DAG_ID):
                 task = PythonOperator(task_id=TASK_ID, python_callable=int)
         
     >       dr = dag_maker.create_dagrun(execution_date=EXECUTION_DATE)
   
     tests/core/test_sentry.py:68: 
     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ 
     tests/conftest.py:543: in create_dagrun
         self.dag_run = dag.create_dagrun(**kwargs)
     airflow/utils/session.py:67: in wrapper
         return func(*args, **kwargs)
     airflow/models/dag.py:2178: in create_dagrun
         run.verify_integrity(session=session)
     airflow/utils/session.py:67: in wrapper
         return func(*args, **kwargs)
     airflow/models/dagrun.py:683: in verify_integrity
         session.flush()
   ...
   sqlalchemy.orm.exc.FlushError: New instance <TaskInstance at 0x7fadb29727f0> 
with identity key (<class 'airflow.models.taskinstance.TaskInstance'>, 
('test_task', 'test_dag', 'test'), None) conflicts with persistent instance 
<TaskInstance at 0x7fadb22b6e50>
   ```
   
   This probably needs to be fixed. I’m suspecting this is due to some test now 
cleaning up the db properly.


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