Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6958

Fix Intermittent CI failure

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: ci
    • Labels:
      None

      Description

      CI is failing because list can have different order
      https://travis-ci.org/kaxil/airflow/jobs/656542706#L1883-L1892

              ti_to_schedule = []
              dag_file_processor._process_task_instances(dag, task_instances_list=ti_to_schedule)
          
      >       assert ti_to_schedule == [
                  (dag.dag_id, dag_task1.task_id, DEFAULT_DATE, TRY_NUMBER),
                  (dag.dag_id, dag_task2.task_id, DEFAULT_DATE, TRY_NUMBER),
              ]
      E       AssertionError: assert [('test_sched...0, STD]>), 1)] == [('test_sched...e [UTC]>), 1)]
      E         At index 0 diff: ('test_scheduler_process_execute_task_depends_on_past', 'dummy2', datetime.datetime(2016, 1, 1, 0, 0, tzinfo=<TimezoneInfo [UTC, GMT, +00:00:00, STD]>), 1) != ('test_scheduler_process_execute_task_depends_on_past', 'dummy1', datetime.datetime(2016, 1, 1, 0, 0, tzinfo=<Timezone [UTC]>), 1)
      E         Use -v to get the full diff

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kaxilnaik Kaxil Naik
                Reporter:
                kaxilnaik Kaxil Naik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: