-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Guard 2 to 3+ migration against custom Dag bundle configs using startup-based initialization #63185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ephraimbuddy
merged 11 commits into
apache:main
from
jason810496:fix/migration/respect-dag-bundle-when-make-bundle-name-not-nullable
Aug 3, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1b72b0d
Reassign Dags from unconfigured bundles at DFP startup
jason810496 2f8a208
Add newsfragment and mention the workaround
jason810496 4f832a0
Clarify bundle path matching and NULL relative_fileloc handling
jason810496 351e9b9
Use plain Path.relative_to for bundle fileloc routing
jason810496 e967cbf
Add critial regression guard test case
jason810496 98dec4d
Order reassignment scan by bundle name instead of re-sorting logs
jason810496 32a824d
Combine the top create_session for the fast prob path
jason810496 a55c691
Rename _best_bundle_for_fileloc to _guess_best_bundle_for_fileloc and…
jason810496 202795a
Shorten significant.rst
jason810496 5506667
Guard Dag bundle reassignment so a failure can't crash DFP startup
jason810496 7f7fc9d
Experiment: drop redundant session.flush() from sync_bundles_to_db
jason810496 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Fix 2.x to 3.0+ upgrade failure when a custom Dag bundle is configured | ||
|
|
||
|
ephraimbuddy marked this conversation as resolved.
|
||
| The ``0082_3_1_0_make_bundle_name_not_nullable`` migration assigned every legacy row ``bundle_name='dags-folder'``, so triggering a DagRun raised ``Requested bundle 'dags-folder' is not configured.`` on any deployment that uses a bundle other than the default ``dags-folder``. ``DagFileProcessorManager`` now runs a one-shot, best-effort backfill at startup that routes each affected Dag to the correct bundle based on its file path; unmatched Dags self-heal on the next successful parse (or run ``airflow dags reserialize`` to force it immediately). | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.