apache / apache/airflow

Add a sanity check before bumping provider version

Open
#47,267 13 comments 0 reactions 0 assignees View on GitHub
area:dev-tools area:providers kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### Body

Recently we ran into an issue while releasing providers, that if the changelog already had the "to be released" version of the provider, the repo would go into a slightly weird state while updating the documentation.

Some details from a DM:

> the issue is that if I am marking release as 9.3.0 but 9.3.0 exist in the change log then the output is as I showed you.. all tagging is lost.
ideally what we need to have is for the process to alert me that i asked to cut 9.3.0 but it's already exist. that way I can go and manually fix the change log then resume from that point

The command that requires updates (for amazon)
```
breeze release-management prepare-provider-documentation amazon
```

### Committer

- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Contributor guide

Open the contributing guide

Research direction

Start with the `breeze release-management prepare-provider-documentation amazon` command and trace the provider release-preparation flow that checks the changelog and updates documentation. Reproduce the case where the requested version already exists in the changelog, then make completion include a clear alert without losing release tags or leaving the repository in a corrupted state.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.