Skip to content

Add ADR for per-Dag source in the Lang-SDK bundle artifact - #73948

Merged
pierrejeambrun merged 2 commits into
apache:mainfrom
astronomer:lang-sdk-adr-native-dag-source
Sep 30, 2026
Merged

pierrejeambrun merged 2 commits into
apache:mainfrom
astronomer:lang-sdk-adr-native-dag-source

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

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_code returns … is not settled
here"), 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_id anywhere"), to be resolved before either is Accepted.


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

Generated-by: Claude Code (Opus 4.8) following the guidelines

@pierrejeambrun
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
pierrejeambrun force-pushed the lang-sdk-adr-native-dag-source branch from 3d5d6be to 86b41a5 Compare September 30, 2026 10:13
@jason810496
jason810496 self-requested a review September 30, 2026 10:19

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@pierrejeambrun
pierrejeambrun merged commit 508301a into apache:main Sep 30, 2026
65 checks passed
@pierrejeambrun
pierrejeambrun deleted the lang-sdk-adr-native-dag-source branch September 30, 2026 13:01
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.

2 participants