potiuk opened a new pull request, #69124:
URL: https://github.com/apache/airflow/pull/69124
The Python, database and Kubernetes versions Airflow is tested with live in a
single source of truth (`dev/breeze/src/airflow_breeze/global_constants.py`),
but are also listed by hand in two places:
- `airflow-core/docs/installation/prerequisites.rst`
- the **"Main version (dev)"** column of the README Requirements table
These drifted out of sync silently: PostgreSQL 18 (and MySQL 8.4) were added
to
the test matrix and the README, but the prerequisites doc was forgotten and
still advertised PostgreSQL only up to 17 — surfaced in discussion #60849.
This adds an `update-tested-versions` prek hook that regenerates both the
tested-versions block in `prerequisites.rst` and the dev column of the README
from `global_constants.py`, so the drift becomes an auto-fixable check
failure
instead of a silent documentation bug. It also corrects the stale
PostgreSQL/MySQL versions in `prerequisites.rst`.
Notes:
- Only cleanly-derivable versions are generated (Python, PostgreSQL, MySQL
numeric releases, Kubernetes). SQLite and the MySQL "Innovation" annotation
have no central constant, so they are defined in the hook.
- The README is edited **surgically** — only the dev cell of the matched rows
is rewritten; the historical "Stable version" columns are preserved
byte-for-byte.
related: #60849
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.8)
Generated-by: Claude Code (Opus 4.8) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]