Skip to content

Changelog omits important change to dag.test() behavior in 2.7.0 #34490

Closed

Description

@benbuckman

What do you see as an issue?

See my comment #32820 (comment):

This PR appears to have unintentionally(?), or at least without being documented in the changelog, changed the way dag.test() handles exceptions.
(See this line for example – https://github.com/apache/airflow/pull/32820/files#diff-62c8e300ee91e0d59f81e0ea5d30834f04db71ae74f2e155a10b51056b00b59bR2677 – dag.test() now returns a DagRun not None.)

This might actually help with writing unit tests for exceptions in DAGs – #32831 – I'm exploring that now.

Can this be added retroactively to the changelog for clarity?

I did explore the impact on #32831, and it's positive: I can now test a DAG in which a task fails, but other tasks continue – either because of their trigger rules, or because of parallel mapped task groups. Previously we had to use DebugExecutor for this, and it was very slow. This is a good change, and a significant one, and it should be documented in the changelog.

Solving the problem

Describe the perhaps-unintentional(?) effects of #32820 on dag.test() and specifically on testing DAG runs with failing tasks.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Sep 19, 2023
  2. added and removed
    kind:bug
    needs-triage
    on Sep 19, 2023
  3. benbuckman commented on Oct 26, 2023

    @benbuckman
    Author

    Bump
    Thanks

  4. themadcoder23 commented on Nov 15, 2025

    @themadcoder23
    Contributor

    Hi! If this issue is still unassigned, I’d like to take it over and work on it. @benbuckman

  5. potiuk commented on Nov 15, 2025

    @potiuk
    Member

    Quite doubt after so long time - but feel free. @themadcoder23

  6. themadcoder23 commented on Nov 18, 2025

    @themadcoder23
    Contributor

    Another PR added!! Check it out - #58418 @potiuk

  7. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @themadcoder23 We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  8. added a commit that references this issue on Sep 8, 2026
    bb9cc30
  9. added a commit that references this issue on Sep 9, 2026
    2fd54e5
  10. added a commit that references this issue on Sep 27, 2026
    acd8c82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions