potiuk commented on PR #66580:
URL: https://github.com/apache/airflow/pull/66580#issuecomment-4405386688
This auto-bump picked Alpine's daily-edge tag `20260127` over the `3.23`
release. Root cause is in
`scripts/ci/prek/upgrade_important_versions.py::get_latest_image_version` — it
used `packaging.version.Version()` parse-success as the "is this a release
tag?" predicate, but PEP 440 happily parses `Version("20260127")` as a valid
single-component version that sorts above `Version("3.23")`. So when Alpine's
daily edge tag appeared in the Docker Hub `last_updated`-ordered tag list, the
bumper selected it as "latest".
Fix in #66588: pre-filter date-shaped tags via regex (`v?\d{8}(\.\d+)?`),
plus a sanity guard rejecting any parsed `Version` with `major >= 10000`, plus
`edge` added to the floating-tag skiplist. Once that lands, the next auto-bump
run produces `alpine:3.23.5` instead of the daily date stamp.
This PR's `alpine:20260127` line should revert back to `alpine:3.23` (or
`3.23.5`, whichever is current) once #66588 is in. Easiest path is to close
this and let the next scheduled bumper run produce a clean replacement, but
updating the alpine line in place works too.
---
Drafted-by: Claude Opus 4.7 (1M context); reviewed by @potiuk before posting
--
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]