bugraoz93 commented on PR #66261:
URL: https://github.com/apache/airflow/pull/66261#issuecomment-4615583951

   Checked one of them but error seems self explanatory in CI
   
   ```shell
   (Background on this error at: https://sqlalche.me/e/20/gkpj) (Background on 
this error at: https://sqlalche.me/e/20/7s2a)
   ERROR 
airflow-core/tests/unit/cli/commands/test_dag_command.py::TestCliDags::test_delete_dag_existing_file
 - sqlalchemy.exc.PendingRollbackError: This Session's transaction has been 
rolled back due to a previous exception during flush. To begin a new 
transaction with this Session, first issue Session.rollback(). Original 
exception was: (sqlite3.IntegrityError) UNIQUE constraint failed: dag.dag_id
   [SQL: INSERT INTO dag (dag_id, is_paused, is_stale, 
exceeds_max_non_backfill, last_parsed_time, last_parse_duration, last_expired, 
fileloc, relative_fileloc, bundle_name, bundle_version, owners, 
dag_display_name, description, timetable_type, timetable_summary, 
timetable_description, max_active_tasks, max_active_runs, 
max_consecutive_failed_dag_runs, has_task_concurrency_limits, 
has_import_errors, fail_fast, next_dagrun, next_dagrun_data_interval_start, 
next_dagrun_data_interval_end, next_dagrun_partition_key, 
next_dagrun_partition_date, next_dagrun_create_after) VALUES (?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING 
timetable_partitioned, timetable_periodic]
   [parameters: ('my_dag_id', 0, 1, 0, None, None, None, 
'/tmp/pytest-of-root/pytest-0/test_delete_dag_existing_file0/testfile', None, 
'dags-folder', None, None, None, None, '', None, None, 16, 16, 0, 1, 0, 0, 
None, None, None, None, None, None)]
   (Background on this error at: https://sqlalche.me/e/20/gkpj) (Background on 
this error at: https://sqlalche.me/e/20/7s2a)
   ```
   
   You are trying to insert something already exists in the database in the 
tests so we should either expect for specific test case for this violation. It 
seems before delete we are trying to insert which is already there


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