Skip to content

Use GA versions for propagate_logs in provider_info#2712

Merged
pankajastro merged 1 commit into
mainfrom
fix-provider-info-alpha-versions
May 20, 2026
Merged

Use GA versions for propagate_logs in provider_info#2712
pankajastro merged 1 commit into
mainfrom
fix-provider-info-alpha-versions

Conversation

@pankajastro
Copy link
Copy Markdown
Contributor

Summary

cosmos/provider_info.py currently claims that the propagate_logs
config option was added in 1.3.0a1 and deprecated in 1.6.0a1.
Both references pre-date the changes they describe by weeks; switching
them to the GA versions (1.3.0 and 1.6.0) makes the metadata
accurate and matches the version style every other Airflow provider
uses in provider.yaml.

Evidence from the release history

Claim in provider_info.py What actually happened
"version_added": "1.3.0a1" 1.3.0a1 tagged 2023-10-27. The commit that introduced propagate_logs (d063b5ed, PR #648) merged on 2023-11-09 — two weeks later. First alpha containing it: 1.3.0a2. First GA: 1.3.0 (2024-01-04).
"version_deprecated": "1.6.0a1" 1.6.0a1 tagged 2024-07-05. The "Simplify logging" change (89f5999e, PR #1108) that made the option redundant merged 2024-08-15 — six weeks later. First alpha with the deprecation: 1.6.0a7. First GA: 1.6.0 (both on 2024-08-20).

The existing deprecation_reason string already refers to Cosmos 1.6.0 (no alpha suffix), so the file's own narrative already assumes
the GA boundary — this PR just makes the structured fields agree with
that.

Diff

-                        "version_added": "1.3.0a1",
-                        "version_deprecated": "1.6.0a1",
+                        "version_added": "1.3.0",
+                        "version_deprecated": "1.6.0",

Test plan

  • hatch -e tests.py3.11-2.10-1.9 run pre-commit run --files cosmos/provider_info.py — all hooks Passed (including mypy-python)
  • Diff is exactly the two string literals; no other changes
  • CI green

Breaking change?

No. The version_added / version_deprecated fields are documentation
metadata surfaced through Airflow's airflow config list and the
provider listing — they don't affect runtime behavior. The option
itself remains deprecated either way.

🤖 Generated with Claude Code

`provider_info.py` currently claims `propagate_logs` was added in
`1.3.0a1` and deprecated in `1.6.0a1`. Neither matches the actual
release history:

- `1.3.0a1` was tagged on 2023-10-27. The commit that introduced the
  option (`d063b5ed`, PR #648) merged on 2023-11-09, so the option
  did not exist in `1.3.0a1`. The first alpha containing it was
  `1.3.0a2`, and the first GA release was `1.3.0`.
- `1.6.0a1` was tagged on 2024-07-05. The "Simplify logging" change
  (`89f5999e`, PR #1108) that made the option redundant merged on
  2024-08-15 and first shipped in `1.6.0a7` (2024-08-20). The first
  GA release with the deprecation was `1.6.0` (same day).

Updating both entries to the GA versions (`1.3.0` / `1.6.0`) matches
what users see in pip/PyPI, aligns with the convention used by other
Airflow providers, and matches the `deprecation_reason` text that
already refers to `1.6.0` (not `1.6.0a1`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 20, 2026 19:54
@pankajastro pankajastro requested review from a team, corsettigyg, dwreeves and jbandoro as code owners May 20, 2026 19:54
@pankajastro pankajastro requested review from pankajkoti and tatiana May 20, 2026 19:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the provider config metadata for the cosmos.propagate_logs option so its version_added and version_deprecated fields reflect the GA (stable) releases rather than alpha tags, aligning the metadata with actual release history and the deprecation narrative already referencing GA versions.

Changes:

  • Change version_added for propagate_logs from 1.3.0a1 to 1.3.0.
  • Change version_deprecated for propagate_logs from 1.6.0a1 to 1.6.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.04%. Comparing base (b0b5bc3) to head (ba1a8be).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2712   +/-   ##
=======================================
  Coverage   98.04%   98.04%           
=======================================
  Files         105      105           
  Lines        7892     7892           
=======================================
  Hits         7738     7738           
  Misses        154      154           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pankajastro pankajastro merged commit f8087c5 into main May 20, 2026
129 checks passed
@pankajastro pankajastro deleted the fix-provider-info-alpha-versions branch May 20, 2026 20:24
@tatiana tatiana added this to the Cosmos 1.15.0 milestone May 28, 2026
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.

3 participants