Skip to content

[v3-3-test] Keep ZIP-archived Dags active when dag_discovery_safe_mode is False (#68518) - #71714

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-786dd79-v3-3-test
Aug 17, 2026
Merged

potiuk merged 1 commit into
v3-3-testfrom
backport-786dd79-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Keep ZIP-archived Dags active when dag_discovery_safe_mode is False

The Dag file processor parsed and activated keyword-less Dags inside ZIP
archives but then immediately deactivated them, because the scan that
decides which files still exist ignored dag_discovery_safe_mode and always
applied the airflow/dag keyword heuristic. Resolve the setting once and use
it consistently for discovery and the deactivation scan, and log the
effective value so a misconfigured processor is diagnosable.

closes: #66104

  • Cover safe-mode filtering in Dag bundle discovery

The file-discovery and observed-file paths must both honor safe mode so wrapped Dag files are not silently skipped by a future regression.

  • Shorten review-flagged comments in Dag discovery safe mode change

Review asked for one-line comments and no issue numbers in code, since
the PR link already carries that context.

  • Validate configured Dag discovery safe mode

(cherry picked from commit 786dd79)

Co-authored-by: deepinsight coder [email protected]
Co-authored-by: Cursor [email protected]

…e is False (#68518)

* Keep ZIP-archived Dags active when dag_discovery_safe_mode is False

The Dag file processor parsed and activated keyword-less Dags inside ZIP
archives but then immediately deactivated them, because the scan that
decides which files still exist ignored dag_discovery_safe_mode and always
applied the airflow/dag keyword heuristic. Resolve the setting once and use
it consistently for discovery and the deactivation scan, and log the
effective value so a misconfigured processor is diagnosable.

closes: #66104

* Cover safe-mode filtering in Dag bundle discovery

The file-discovery and observed-file paths must both honor safe mode so wrapped Dag files are not silently skipped by a future regression.

* Shorten review-flagged comments in Dag discovery safe mode change

Review asked for one-line comments and no issue numbers in code, since
the PR link already carries that context.

* Validate configured Dag discovery safe mode

---------
(cherry picked from commit 786dd79)

Co-authored-by: deepinsight coder <[email protected]>
Co-authored-by: Cursor <[email protected]>
@potiuk
potiuk force-pushed the backport-786dd79-v3-3-test branch from b0343db to c90a129 Compare August 17, 2026 17:16
@potiuk
potiuk marked this pull request as ready for review August 17, 2026 17:20

@potiuk potiuk 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.

Rebased onto the current v3-3-test tip; the backport replays cleanly and the tests it touches pass locally against this branch.

Scope-checked for a maintenance branch: this is a bugfix, with no new user-facing capability.


Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting

@potiuk
potiuk merged commit 3426221 into v3-3-test Aug 17, 2026
192 of 200 checks passed
@potiuk
potiuk deleted the backport-786dd79-v3-3-test branch August 17, 2026 19:58
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.2 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Sep 7, 2026
…e is False (#68518) (#71714)

* Keep ZIP-archived Dags active when dag_discovery_safe_mode is False

The Dag file processor parsed and activated keyword-less Dags inside ZIP
archives but then immediately deactivated them, because the scan that
decides which files still exist ignored dag_discovery_safe_mode and always
applied the airflow/dag keyword heuristic. Resolve the setting once and use
it consistently for discovery and the deactivation scan, and log the
effective value so a misconfigured processor is diagnosable.

closes: #66104

* Cover safe-mode filtering in Dag bundle discovery

The file-discovery and observed-file paths must both honor safe mode so wrapped Dag files are not silently skipped by a future regression.

* Shorten review-flagged comments in Dag discovery safe mode change

Review asked for one-line comments and no issue numbers in code, since
the PR link already carries that context.

* Validate configured Dag discovery safe mode

---------
(cherry picked from commit 786dd79)

Co-authored-by: deepinsight coder <[email protected]>
Co-authored-by: Cursor <[email protected]>
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants