Skip to content

Extend progressive cache to bazel-managed Go and pip#47007

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
regis.desgroppes/xdg-cache-for-go-and-pip
Feb 27, 2026
Merged

Extend progressive cache to bazel-managed Go and pip#47007
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
regis.desgroppes/xdg-cache-for-go-and-pip

Conversation

@rdesgroppes
Copy link
Copy Markdown
Contributor

@rdesgroppes rdesgroppes commented Feb 26, 2026

What does this PR do?

Wire up bazel-managed Go and pip caches to XDG_CACHE_HOME in the tools/bazel* scripts, and add the corresponding paths to the progressive GitLab runner cache keyed on .go-version and .python-version.

Motivation

Extend #43274's XDG-as-single-cache-root design to Go and pip, whose XDG support has been steadlessly growing from "Partial" to "Supported": https://wiki.archlinux.org/title/XDG_Base_Directory.

By landing in $XDG_CACHE_HOME, they inherit the progressive-cache policy from #46151: only main pushes to them, keeping growth bounded.
Keying on language version files further contains growth by resetting the cache at version upgrade boundaries rather than accumulating superseded artifacts.

Additional Notes

No worry: the new cache paths are already excluded from omnibus source trees via **/.cache/**/* source filters.

Coming soon: we might want to leverage upcoming --strict_repo_env (with bazel 8.6.0, #47011), for which we'll anyway have to list propagated environment variables.

Near future: as the omnibus-bazel transition progresses, other caches (cache_omnibus_ruby_deps, go_deps, go_tools_deps, go_tools_deps_arm64, etc.) are expected to shrink until no longer applicable.

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

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-build team/agent-devx team/ebpf-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants