Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[v3-1-test] Add bundle_path temporarily to sys.path during DagBag parsing. (#55894)#61053

Merged
Lee-W merged 9 commits intoapache:v3-1-testfrom
astronomer:backport-d7c9a0a-v3-1-test
Jan 27, 2026
Merged

[v3-1-test] Add bundle_path temporarily to sys.path during DagBag parsing. (#55894)#61053
Lee-W merged 9 commits intoapache:v3-1-testfrom
astronomer:backport-d7c9a0a-v3-1-test

Conversation

Copy link
Member

Lee-W commented Jan 26, 2026


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Lee-W requested review from amoghrajesh, ashb, bugraoz93, ephraimbuddy, jedcunningham, kaxil and potiuk as code owners January 26, 2026 01:16
Lee-W requested a review from XD-DENG as a code owner January 26, 2026 01:46
Lee-W changed the title Add bundle_path temporarily to sys.path during DagBag parsing. (#55894) [v3-1-test] Add bundle_path temporarily to sys.path during DagBag parsing. (#55894) Jan 26, 2026
Lee-W requested review from eladkal, gopidesupavan, jason810496, jscheffl, mobuchowski and vincbeck as code owners January 26, 2026 06:48
Lee-W force-pushed the backport-d7c9a0a-v3-1-test branch from dd6612f to bea3eef Compare January 26, 2026 08:27
Lee-W requested a review from dstandish as a code owner January 26, 2026 08:27
...sing. (apache#55894)

* Add bundle_path temporarily to sys.path during DagBag parsing.

* Add bundle_path to sys.path permanently.

- it is intended to pass it to DagBag only for ephemeral processes

* Introduce BundleDagBag for ephemeral pre-loaded bundle path usage.

- usefor CLI and other one-off DagBag instances 'polluting' sys.path

* Remove from backwards compatible layer. Ignore include_examples.
(cherry picked from commit d7c9a0a)

Co-authored-by: Josef Simanek
Lee-W force-pushed the backport-d7c9a0a-v3-1-test branch from bea3eef to 4410fbe Compare January 26, 2026 08:29
Lee-W marked this pull request as draft January 26, 2026 09:01
Lee-W marked this pull request as ready for review January 26, 2026 10:40
shahar1 approved these changes Jan 26, 2026
Lee-W merged commit 497f2ac into apache:v3-1-test Jan 27, 2026
111 of 116 checks passed
Lee-W deleted the backport-d7c9a0a-v3-1-test branch January 27, 2026 01:14
ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jan 27, 2026
ephraimbuddy added this to the Airflow 3.1.7 milestone Jan 28, 2026
ephraimbuddy mentioned this pull request Jan 30, 2026
86 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

shahar1 shahar1 approved these changes

ashb Awaiting requested review from ashb ashb is a code owner

kaxil Awaiting requested review from kaxil kaxil is a code owner

amoghrajesh Awaiting requested review from amoghrajesh amoghrajesh is a code owner

bugraoz93 Awaiting requested review from bugraoz93 bugraoz93 is a code owner

potiuk Awaiting requested review from potiuk potiuk is a code owner

jedcunningham Awaiting requested review from jedcunningham jedcunningham is a code owner

ephraimbuddy Awaiting requested review from ephraimbuddy ephraimbuddy is a code owner

XD-DENG Awaiting requested review from XD-DENG XD-DENG is a code owner

gopidesupavan Awaiting requested review from gopidesupavan

jscheffl Awaiting requested review from jscheffl

eladkal Awaiting requested review from eladkal

jason810496 Awaiting requested review from jason810496

mobuchowski Awaiting requested review from mobuchowski

vincbeck Awaiting requested review from vincbeck

pierrejeambrun Awaiting requested review from pierrejeambrun

bbovenzi Awaiting requested review from bbovenzi

hussein-awala Awaiting requested review from hussein-awala

BasPH Awaiting requested review from BasPH

uranusjr Awaiting requested review from uranusjr

sekikn Awaiting requested review from sekikn

romsharon98 Awaiting requested review from romsharon98

ryanahamilton Awaiting requested review from ryanahamilton

shubhamraj-git Awaiting requested review from shubhamraj-git

rawwar Awaiting requested review from rawwar

dstandish Awaiting requested review from dstandish

Assignees

No one assigned

Projects

None yet

Milestone

Airflow 3.1.7

Development

Successfully merging this pull request may close these issues.

4 participants