Skip to content

ci: isolate native Windows Bazel action caches - #566

Merged
GraciousGazelles merged 1 commit into
mainfrom
fix/native-windows-cache-isolation-20260731
Jul 31, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
fix/native-windows-cache-isolation-20260731

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • make the post-merge native Windows Bazel lane opt out of setup-bazel disk action cache restores and saves
  • prevent that lane from accepting or uploading remote action-cache results while retaining the external repository cache
  • cover the cache-isolation contract in the workflow planner tests

Motivation

The native Windows post-merge lane repeatedly failed while resolving Rust proc-macro dependencies on the hosted image. The same failure predates the queue/cache change and repeated on an exact retry. This lane is post-merge-only, so it can trade cache reuse for deterministic current-image compilation without adding PR latency.

Validation

  • python3 -m py_compile .github/scripts/test_ci_planners.py
  • python3 .github/scripts/test_ci_planners.py
  • python3 .github/scripts/check_workflow_policy.py
  • git diff --check
  • actionlint reports only pre-existing workflow diagnostics

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a configurable disk-cache input (defaulting to "true") to the prepare-bazel-ci and setup-bazel-ci GitHub Actions, allowing workflows to opt out of disk caching. Additionally, it updates the CI planner tests to assert that the Windows native main lane correctly disables remote caching and disk caching, and verifies the propagation of the new disk-cache input. I have no feedback to provide as there are no review comments.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit 7480223 Jul 31, 2026
80 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/native-windows-cache-isolation-20260731 branch July 31, 2026 14:39
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.

1 participant