Repository navigation
Add ADR for per-Dag source in the Lang-SDK bundle artifact - #73948
Merged
pierrejeambrun merged 2 commits intoSep 30, 2026
Merged
Conversation
pierrejeambrun
marked this pull request as ready for review
September 30, 2026 10:08
The decision behind apache#73723 — a native Lang-SDK bundle embeds each Dag-defining source file, de-duplicated by path, always embeds the entry file as a fallback, and carries no Lang-SDK source for a mixed-language Dag — lived only in the PR. Capture it as a cross-SDK ADR so Go and Java adopt the same shape, and so the native-Dag source question ADR-0010 left open has a settled answer.
pierrejeambrun
force-pushed
the
lang-sdk-adr-native-dag-source
branch
from
September 30, 2026 10:13
3d5d6be to
86b41a5
Compare
jason810496
self-requested a review
September 30, 2026 10:19
jason810496
approved these changes
Sep 30, 2026
jason810496
left a comment
Member
There was a problem hiding this comment.
Nice! Thanks for the follow-up.
Address review feedback on the ADR: frame the mixed-language case as tasks (the Dag is Python's; the bundle only supplies its task handlers) and drop the native Dag lookup detail from that section as out of place there, and replace "attributed" with "resolved" for a source file throughout, which reads clearer.
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.
Records the decision behind #73723 (merged): a native Lang-SDK
bundle embeds each Dag-defining source file, de-duplicated by path, always
embeds the entry file as a fallback, and carries no Lang-SDK source for a
mixed-language Dag (Python owns its Code tab).
This settles the source-display question ADR-0010
left open for native Dags ("what
get_source_codereturns … is not settledhere"), and keeps it consistent with ADR-0006
(mixed-language Dags show only their Python file). It also states the cross-SDK
convention — Go and Java follow the same shape (per-Dag attribution, dedup by
path, entrypoint fallback) — per the review follow-up on #73723.
New ADR:
airflow-core/adr/lang-sdk/0015-per-dag-source-in-bundle-artifact.md,plus its index entry in the lang-sdk ADR README. The "Relationship to ADR-0014"
section flags the one open alignment with the proposed metadata-slimming ADR
(which states "no
dag_idanywhere"), to be resolved before either is Accepted.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8) following the guidelines