Skip to content

Harden CI queue isolation and Bazel scheduling - #565

Merged
GraciousGazelles merged 1 commit into
mainfrom
fix/ci-queue-resilience-20260731
Jul 31, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
fix/ci-queue-resilience-20260731

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • isolate merge-queue, push, schedule, and dispatch workflow attempts by immutable identity
  • publish Bazel caches only from trusted post-merge branch pushes
  • keep Linux argument-comment lint required while moving macOS and Windows coverage to an advisory PR workflow
  • make docs-only Bazel skips fail closed and retain a required markdown-link check

Validation

  • python3 -m py_compile .github/scripts/resolve_bazel_ci_mode.py .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 the unchanged existing Bazel 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 new Python script, resolve_bazel_ci_mode.py, to determine if a Bazel CI invocation can run in a docs-only mode. It also updates GitHub actions (prepare-bazel-ci and setup-bazel-ci) to restrict Bazel repository and disk cache writes to trusted post-merge pushes on main branches. Comprehensive unit tests are added in test_ci_planners.py to validate these changes, including the new resolver script, cache write policies, and workflow concurrency behaviors. I have no feedback to provide.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit c127a18 Jul 31, 2026
110 of 115 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/ci-queue-resilience-20260731 branch July 31, 2026 13:27
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