Repository navigation
[v3-3-test] Stop airflow providers get --full mutating cached provider metadata (#72346) - #72601
Merged
Merged
Conversation
…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]>
1 task done
henry3260
marked this pull request as ready for review
September 6, 2026 17:47
henry3260
requested review from
bugraoz93,
dheerajturaga,
henry3260 and
potiuk
as code owners
September 6, 2026 17:47
henry3260
approved these changes
Sep 6, 2026
Contributor
Author
|
Hi maintainer, this PR was merged without a milestone set.
|
vatsrahul1001
pushed a commit
that referenced
this pull request
Sep 7, 2026
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.
ProvidersManager is a process-wide singleton whose
providersproperty handsout the live
_provider_dictwithout copying, soProviderInfo.datais thecached 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
airflowCLI isa 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]