Skip to content

[v3-3-test] Stop airflow providers get --full mutating cached provider metadata (#72346) - #72601

Merged
henry3260 merged 1 commit into
v3-3-testfrom
backport-a29f0da-v3-3-test
Sep 6, 2026
Merged

henry3260 merged 1 commit into
v3-3-testfrom
backport-a29f0da-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

ProvidersManager is a process-wide singleton whose providers property hands
out the live _provider_dict without copying, so ProviderInfo.data is the
cached dict itself. A read-only display command was writing its de-RST'd
description straight back into that shared state.

The corruption is latent rather than user-visible today: the airflow CLI is
a one-shot process, the API server runs in a different one, and every other
reader re-sanitizes the description before use. It is reachable in a pytest
process, where the singleton persists across tests and the reset fixture is
opt-in. A command that only formats data for display should not be able to
leak into global state at all.

provider_command was the only module under cli/commands without a matching
test file, so the regression test starts one.
(cherry picked from commit a29f0da)

Co-authored-by: Y-C [email protected]
Co-authored-by: Eason09053360 [email protected]

…r metadata (#72346)

ProvidersManager is a process-wide singleton whose `providers` property hands
out the live `_provider_dict` without copying, so `ProviderInfo.data` is the
cached dict itself. A read-only display command was writing its de-RST'd
description straight back into that shared state.

The corruption is latent rather than user-visible today: the `airflow` CLI is
a one-shot process, the API server runs in a different one, and every other
reader re-sanitizes the description before use. It is reachable in a pytest
process, where the singleton persists across tests and the reset fixture is
opt-in. A command that only formats data for display should not be able to
leak into global state at all.

provider_command was the only module under cli/commands without a matching
test file, so the regression test starts one.
(cherry picked from commit a29f0da)

Co-authored-by: Y-C <[email protected]>
Co-authored-by: Eason09053360 <[email protected]>
@henry3260
henry3260 merged commit bc90f53 into v3-3-test Sep 6, 2026
95 of 104 checks passed
@henry3260
henry3260 deleted the backport-a29f0da-v3-3-test branch September 6, 2026 18:43
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

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 vatsrahul1001 added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) type:bug-fix Changelog: Bug Fixes and removed changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) labels Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants