Skip to content

Fix flaky test: test_mapped_task_upstream_removed_with_all_failed_trigger_rules #50474

@amoghrajesh

Description

@amoghrajesh

Body

  _ TestTriggerRuleDep.test_mapped_task_upstream_removed_with_all_failed_trigger_rules[True] _
  airflow-core/tests/unit/ti_deps/deps/test_trigger_rule_dep.py:1136: in test_mapped_task_upstream_removed_with_all_failed_trigger_rules
      _test_trigger_rule(ti=ti, session=session, flag_upstream_failed=flag_upstream_failed)
  airflow-core/tests/unit/ti_deps/deps/test_trigger_rule_dep.py:1647: in _test_trigger_rule
      assert ti.state == expected_ti_state
  E   AssertionError: assert equals failed
  E     <TaskInstanceState.UPSTREAM_FAI  None                            
  E     LED: 'upstream_failed'>

Have seen this to be occasionally flaky. Example: https://github.com/apache/airflow/actions/runs/14963291599

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CIAirflow's tests and continious integrationkind:metaHigh-level information important to the community

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions