Skip to content

Document DAG.test() behavior change in 2.7.0 release notes - #72485

Merged
potiuk merged 1 commit into
apache:mainfrom
dheerenmohta:fix-issue-34490
Sep 8, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
dheerenmohta:fix-issue-34490

Conversation

@dheerenmohta

Copy link
Copy Markdown
Contributor

The Airflow 2.7.0 changelog never documented a real behavior change to DAG.test() introduced by #32820: it now returns the executed DagRun instead of None, and a task failure no longer aborts the whole test run — remaining tasks keep running per their trigger rules, matching real scheduled-run behavior. This lets DAG.test() exercise DAGs with expected-to-fail tasks (trigger-rule branches, parallel mapped task groups) without falling back to the DebugExecutor.

A prior attempt (#58418) got explicit changes-requested from a maintainer: the wording read as AI-generated boilerplate, it used a newsfragment even though newsfragments are only for future releases (this needs to land directly in the already-published 2.7.0 section), and it cited the issue number instead of the PR that actually changed the behavior. This addresses all three: hand-edited the historical "Airflow 2.7.0" section of RELEASE_NOTES.rst directly with a plain-prose entry citing #32820.

closes: #34490


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Sonnet 5)

Generated-by: Claude Code (Sonnet 5) following the guidelines

PR apache#32820 (Airflow 2.7.0) changed DAG.test() to return the executed
DagRun instead of None, and to keep running remaining tasks after one
fails instead of aborting the whole run immediately. Neither change
was called out in the 2.7.0 release notes, even though it is a
positive, user-visible improvement (it lets DAG.test() exercise DAGs
with expected-to-fail tasks and trigger-rule branches without falling
back to the DebugExecutor).

A newsfragment is not the right vehicle here since newsfragments only
feed the *next*, not-yet-released changelog section; this instead adds
the missing note directly to the already-published 2.7.0 section of
RELEASE_NOTES.rst, per maintainer guidance on the prior attempt at this
issue (apache#58418).

Closes: apache#34490
@potiuk potiuk added this to the Airflow 3.3.2 milestone Sep 8, 2026
@potiuk
potiuk merged commit bb9cc30 into apache:main Sep 8, 2026
70 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker bb9cc30 v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

vatsrahul1001 added a commit that referenced this pull request Sep 9, 2026
#72485) (#72777)

PR #32820 (Airflow 2.7.0) changed DAG.test() to return the executed
DagRun instead of None, and to keep running remaining tasks after one
fails instead of aborting the whole run immediately. Neither change
was called out in the 2.7.0 release notes, even though it is a
positive, user-visible improvement (it lets DAG.test() exercise DAGs
with expected-to-fail tasks and trigger-rule branches without falling
back to the DebugExecutor).

A newsfragment is not the right vehicle here since newsfragments only
feed the *next*, not-yet-released changelog section; this instead adds
the missing note directly to the already-published 2.7.0 section of
RELEASE_NOTES.rst, per maintainer guidance on the prior attempt at this
issue (#58418).

Closes: #34490
(cherry picked from commit bb9cc30)

Co-authored-by: Dheeren Mohta <[email protected]>
regarmukesh3g pushed a commit to regarmukesh3g/airflow that referenced this pull request Sep 27, 2026
apache#72485)

PR apache#32820 (Airflow 2.7.0) changed DAG.test() to return the executed
DagRun instead of None, and to keep running remaining tasks after one
fails instead of aborting the whole run immediately. Neither change
was called out in the 2.7.0 release notes, even though it is a
positive, user-visible improvement (it lets DAG.test() exercise DAGs
with expected-to-fail tasks and trigger-rule branches without falling
back to the DebugExecutor).

A newsfragment is not the right vehicle here since newsfragments only
feed the *next*, not-yet-released changelog section; this instead adds
the missing note directly to the already-published 2.7.0 section of
RELEASE_NOTES.rst, per maintainer guidance on the prior attempt at this
issue (apache#58418).

Closes: apache#34490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants