Skip to content

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

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

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
@benjyw

benjyw commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

I'm of two minds about this one, but first I want to give the reporter of #23438 a chance to see if it fixes this in their setup.

@benjyw

benjyw commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Closing until we find harder evidence that it helps in real-world situations.

@benjyw benjyw closed this Jul 11, 2026
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