Add a digest-pinned uv to the ol-concourse-dsl image - #111
Merged
Merged
Conversation
The bump-my-version pre_commit_hooks added in mitodl/ol-analytics-api#81 run in this image during bump_version_task and call `uv run --frozen --only-group release`. The image has no uv, so the hook first runs `python3 -m pip install uv`, which pulls an unpinned uv at release time, outside the lockfile hashes and the repo's exclude-newer window. Copying a digest-pinned uv into the image lets that hook step be dropped, and Renovate's dockerfile manager keeps the tag and digest current. Claude-Session: https://claude.ai/code/session_01VaJ4VtbQFPV63VWtQV6JEg
blarghmatey
added a commit
to mitodl/ol-analytics-api
that referenced
this pull request
Sep 30, 2026
mitodl/ol-concourse-dsl ships uv since mitodl/ol-concourse#111, so the hook no longer needs to install an unpinned uv from PyPI at release time. Claude-Session: https://claude.ai/code/session_01VaJ4VtbQFPV63VWtQV6JEg
blarghmatey
added a commit
to mitodl/ol-analytics-api
that referenced
this pull request
Sep 30, 2026
mitodl/ol-concourse-dsl ships uv since mitodl/ol-concourse#111, so the hook no longer needs to install an unpinned uv from PyPI at release time. Claude-Session: https://claude.ai/code/session_01VaJ4VtbQFPV63VWtQV6JEg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
N/A. Follow-up to mitodl/ol-analytics-api#81.
Description (What does it do?)
ol-analytics-api now collects changelog fragments during
bump_version_task, through a bump-my-versionpre_commit_hooksentry that runsuv run --frozen --only-group release bin/collect-changelog.ol-concourse-dslhas no uv, so the hook first runspython3 -m pip install uv. That installs whatever uv PyPI has at release time, outside the lockfile hashes and the repo'sexclude-newerwindow.This copies uv 0.12.15 into the image from
ghcr.io/astral-sh/uv, pinned by tag and index digest (amd64 + arm64), using the sameCOPY --fromform as ol-django. Renovate's dockerfile manager should keep the tag and digest current the way it does thepython:3.14-slimbase. Once this image is published, the pip step can come out of the ol-analytics-api hook.How can this be tested?
uv build --package ol-concourse --out-dir pipeline_lib/dist/, as the pipeline does).uv --versionanduvx --versionreport 0.12.15.bump-my-version --versionreports 1.5.1, the same as a build from main.bash -c 'command -v uv'resolves/usr/bin/uv.docker buildx imagetools inspect ghcr.io/astral-sh/uv:0.12.15.The image is published by
build-and-publish-task-image(.concourse/docker.py) whenpipeline_libchanges on main, so merging this rebuildsmitodl/ol-concourse-dsl:latest.https://claude.ai/code/session_01VaJ4VtbQFPV63VWtQV6JEg