Skip to content

Don't inject the buildroot into the uv venv path.#23451

Draft
benjyw wants to merge 1 commit into
pantsbuild:mainfrom
benjyw:fix_uv_remcache
Draft

Don't inject the buildroot into the uv venv path.#23451
benjyw wants to merge 1 commit into
pantsbuild:mainfrom
benjyw:fix_uv_remcache

Conversation

@benjyw

@benjyw benjyw commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This defeats remote caching on ephemeral runners
where the buildroot path can change between runs.

Instead we inject the fingerprint of the entire
input digest, so we will get a new venv location
whenever the lockfile (or uv version) changes.
This seems like a good tradeoff, since uv venv
creation is fast even in the pessimistic case.

@benjyw benjyw added the release-notes:not-required [CI] PR doesn't require mention in release notes label Jun 26, 2026
This defeats remote caching on ephemeral runners
where the buildroot path can change between runs.

Instead we inject the fingerprint of the entire
input digest, so we will get a new venv location
whenever the lockfile (or uv version) changes.
This seems like a good tradeoff, since uv venv
creation is fast even in the pessimistic case.
@benjyw benjyw force-pushed the fix_uv_remcache branch from b907378 to 16f4676 Compare June 27, 2026 17:51
@benjyw benjyw marked this pull request as draft July 1, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants