Repository navigation
Discover a bundle's Dag definitions through the importer registry - #73728
Merged
Merged
Conversation
SameerMesiah97
left a comment
Contributor
There was a problem hiding this comment.
Just had a look at the diff and traced the execution flow for list_dag_definitions and saw one potential issue.
shahar1
reviewed
Sep 26, 2026
Dag processing needs every definition in a bundle paired with the importer that should import it: a composite importer's members, such as zip members, cannot be routed back to it by extension. An importer whose extensions were all overridden, for example by a bundle's own ZipImporter, kept listing its definitions and discovered them twice.
dilnazanlid
force-pushed
the
aip-85-registry
branch
from
September 27, 2026 21:08
97aa0d4 to
402def6
Compare
shahar1
approved these changes
Sep 28, 2026
1 task done
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.
sdk/importers: prepares the Task SDK importer registry so Dag processing can discover definitions through importers instead of by file path.Changes:
DagImporterRegistry.list_dag_definitions(bundle, safe_mode=...)yields each definition (or discovery error) in a bundle, paired with the importer that listed it. The pairing is needed because a composite importer's members, such as zip members, cannot be routed back to it by extension.find_file_dag_definitionsaccepts a single file as its root, so a parse process can scope discovery to the file it was given.ZipImporter, no longer takes part in discovery. Previously it listed the same zip members a second time.{"classpath": "..."}.Was generative AI tooling used to co-author this PR?
Generated-by: Antigravity following the guidelines