oliver-zehentleitner / maity

release gate: tag must match the hub version for the upgrade-page check

Sign in to report

tsk-ffsh7bgbcm2e Done An agent

Follow-up from the review of #1846 (A869 N1).

The image workflow's gate takes the hub version for the upgrade-page check from hub/pyproject.toml, and nothing in that workflow compares it with the tag. release-hub.yml has its own "Tag and pyproject agree" step; publish-image.yml does not. A v* tag on a commit whose pyproject names another version would pass the page gate there.

To do: in tools/release_gate.py, when --upgrade-page runs for a tag (GITHUB_REF_TYPE=tag), refuse unless the tag equals v<pyproject version>. Add a test. No workflow change needed.

Order: after #1846 is merged.