Repository navigation
Document DAG.test() behavior change in 2.7.0 release notes - #72485
Merged
Merged
Conversation
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
approved these changes
Sep 8, 2026
Contributor
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker bb9cc30 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
1 task done
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Airflow 2.7.0 changelog never documented a real behavior change to
DAG.test()introduced by #32820: it now returns the executedDagRuninstead ofNone, 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 letsDAG.test()exercise DAGs with expected-to-fail tasks (trigger-rule branches, parallel mapped task groups) without falling back to theDebugExecutor.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.rstdirectly with a plain-prose entry citing #32820.closes: #34490
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Sonnet 5) following the guidelines