Skip to content

Resolve upstream Python build tag#40

Open
adilhusain-s wants to merge 1 commit into
IBM:mainfrom
adilhusain-s:pr/03-resolve-upstream-tag
Open

Resolve upstream Python build tag#40
adilhusain-s wants to merge 1 commit into
IBM:mainfrom
adilhusain-s:pr/03-resolve-upstream-tag

Conversation

@adilhusain-s
Copy link
Copy Markdown
Collaborator

@adilhusain-s adilhusain-s commented May 15, 2026

Context

When PYTHON_VERSION moved forward, the build could still keep using an older,
manually pinned ACTIONS_PYTHON_VERSIONS value. In practice, that meant a
release such as 3.14.5 could still build from the wrong
actions/python-versions snapshot.

As a result, the release build was not guaranteed to use the upstream snapshot
that actually matched the Python version we were trying to publish.

What changed

  • Add scripts/resolve-upstream-tag.sh to query the upstream actions/python-versions release metadata and resolve the matching source tag for a requested Python version.
  • Update Makefile so ACTIONS_PYTHON_VERSIONS is derived from PYTHON_VERSION on the host before the Docker build starts, while still allowing an explicit override when needed.
  • Sync the default Python-related ARGs in python-versions/Dockerfile with the requested release line.

Why this shape

This keeps upstream snapshot selection tied to the requested Python version
instead of depending on a separately maintained tag value.

Validation

  • Verified shell syntax for scripts/resolve-upstream-tag.sh.
  • Ran the script locally for 3.14.5 and confirmed it resolved the expected upstream tag.

The build was checking out an older actions/python-versions snapshot
while building newer Python releases such as 3.14.5.

Derive ACTIONS_PYTHON_VERSIONS from the requested PYTHON_VERSION by
querying upstream release metadata on the host before the Docker build
starts so the correct upstream source snapshot is used.

Signed-off-by: Adilhusain Shaikh <Adilhusain.Shaikh@ibm.com>
@mtarsel
Copy link
Copy Markdown
Member

mtarsel commented May 20, 2026

theres a merge conflict here in the Dockerfile and I'm not sure why the python version changes from 3.14.5 to 3.13.3 @adilhusain-s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants