Content-Length: 272378 | pFad | http://github.com/apache/airflow/pull/50668

B3 Fix version validation script for building docker images by kaxil · Pull Request #50668 · apache/airflow · GitHub
Skip to content

Fix version validation script for building docker images #50668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented May 15, 2025

Example failure: https://github.com/apache/airflow/actions/runs/15053245013/job/42312930970

Previously, the script used string-based sorting of PyPI releases, which caused versions like 2.11.0 to be incorrectly excluded (e.g. sorted behind 2.9.x). This commit updates the logic to use semantic versioning via packaging.version.Version.

Before:

❯ uv  run scripts/ci/airflow_version_check.py 2.11.0rc1
Version 2.11.0rc1 is not a valid Airflow version
Available versions: (first available 30 versions):
['3.0.1rc1', '3.0.1', '3.0.0rc4', '3.0.0rc3', '3.0.0rc2', '3.0.0rc1.post4', '3.0.0rc1.post3', '3.0.0rc1.post2', '3.0.0rc1.post1', '3.0.0rc1', '3.0.0b4', '3.0.0', '2.9.3rc1', '2.9.3', '2.9.2rc1', '2.9.2', '2.9.1rc2', '2.9.1rc1', '2.9.1', '2.9.0rc3', '2.9.0rc2', '2.9.0rc1', '2.9.0b2', '2.9.0b1', '2.9.0', '2.8.4rc1', '2.8.4', '2.8.3rc1', '2.8.3', '2.8.2rc3']

After:

❯ uv  run scripts/ci/airflow_version_check.py 2.11.0rc1
Checking constraints file: https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0rc1/constraints-3.9.txt
Constraints file found for version 2.11.0rc1, Python 3.9
airflowVersion=2.11.0rc1
airflowVersion=2.11.0rc1
skipLatest=true
skipLatest=true

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Example failure: https://github.com/apache/airflow/actions/runs/15053245013/job/42312930970

Previously, the script used string-based sorting of PyPI releases, which caused versions like 2.11.0 to be incorrectly excluded (e.g. sorted behind 2.9.x). This commit updates the logic to use semantic versioning via `packaging.version.Version`.

Before:

```
❯ uv  run scripts/ci/airflow_version_check.py 2.11.0rc1
Version 2.11.0rc1 is not a valid Airflow version
Available versions: (first available 30 versions):
['3.0.1rc1', '3.0.1', '3.0.0rc4', '3.0.0rc3', '3.0.0rc2', '3.0.0rc1.post4', '3.0.0rc1.post3', '3.0.0rc1.post2', '3.0.0rc1.post1', '3.0.0rc1', '3.0.0b4', '3.0.0', '2.9.3rc1', '2.9.3', '2.9.2rc1', '2.9.2', '2.9.1rc2', '2.9.1rc1', '2.9.1', '2.9.0rc3', '2.9.0rc2', '2.9.0rc1', '2.9.0b2', '2.9.0b1', '2.9.0', '2.8.4rc1', '2.8.4', '2.8.3rc1', '2.8.3', '2.8.2rc3']
```

After:

```
❯ uv  run scripts/ci/airflow_version_check.py 2.11.0rc1
Checking constraints file: https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0rc1/constraints-3.9.txt
Constraints file found for version 2.11.0rc1, Python 3.9
airflowVersion=2.11.0rc1
airflowVersion=2.11.0rc1
skipLatest=true
skipLatest=true
```
@jedcunningham jedcunningham merged commit b55022e into apache:main May 15, 2025
43 checks passed
@jedcunningham jedcunningham deleted the fix-version-check branch May 15, 2025 19:32
@potiuk
Copy link
Member

potiuk commented May 15, 2025

Nice!

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50668

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy