Make Bazel checks advisory and pause Bazel release artifacts (#58717)

## Why

The BuildBuddy key is revoked. Temporarily keep Bazel-dependent checks from blocking CI and release only Cargo artifacts.

## What changed

- Remove Bazel from the `blocking-ci` required dependencies.
- Make the Bazel-backed argument comment lint and SDK jobs advisory, and stop requiring the lint job to succeed in the Rust CI results check.
- Restrict release build and packaging matrices to Cargo, including Windows and provisioned macOS packages, and exclude Bazel binaries and symbols from release artifact downloads.

GitOrigin-RevId: 2c0d23471bbd0ab2eb4d90d318b518d0b33db97f
This commit is contained in:
Dmitriy Kovalenko
2026-11-01 15:40:16 +00:00
committed by copyberry
parent 5e07d1f694
commit 231c8abd2f
6 changed files with 23 additions and 18 deletions
+2 -1
View File
@@ -50,8 +50,9 @@ jobs:
# Without `always()`, GitHub skips this job after a failed dependency and a
# required check can appear successful instead of reporting the failure.
if: ${{ always() }}
# Bazel is advisory while the BuildBuddy key is revoked. Restore its dependency
# once the suite can run without BuildBuddy.
needs:
- bazel
- blob-size-policy
- cargo-deny
- codespell
+4 -3
View File
@@ -163,6 +163,9 @@ jobs:
argument_comment_lint_prebuilt:
name: Argument comment lint - ${{ matrix.name }}
# This job runs through Bazel and is advisory while the BuildBuddy key is
# revoked. Restore blocking behavior once it can run without BuildBuddy.
continue-on-error: true
runs-on: ${{ matrix.runs_on || matrix.runner }}
timeout-minutes: ${{ matrix.timeout_minutes }}
needs: changed
@@ -248,9 +251,7 @@ jobs:
[[ '${{ needs.argument_comment_lint_package.result }}' == 'success' ]] || { echo 'argument_comment_lint_package failed'; exit 1; }
fi
if [[ "${NEEDS_CHANGED_OUTPUTS_ARGUMENT_COMMENT_LINT}" == 'true' || "${NEEDS_CHANGED_OUTPUTS_WORKFLOWS}" == 'true' ]]; then
[[ '${{ needs.argument_comment_lint_prebuilt.result }}' == 'success' ]] || { echo 'argument_comment_lint_prebuilt failed'; exit 1; }
fi
# The Bazel-backed argument-comment lint job is temporarily advisory.
if [[ "${NEEDS_CHANGED_OUTPUTS_CODEX}" == 'true' || "${NEEDS_CHANGED_OUTPUTS_WORKFLOWS}" == 'true' ]]; then
[[ '${{ needs.general.result }}' == 'success' ]] || { echo 'general failed'; exit 1; }
@@ -1,4 +1,4 @@
# Verified Cargo and Bazel side packages, published by rust-release.yml when enabled.
# Verified Cargo side packages, published by rust-release.yml when enabled.
# The legacy CLI, npm, installer and DMG packages are unchanged.
# Required secrets in the codesigning environment:
# - CODEX_CLI_PROVISIONING_PROFILE_BASE64: profile approved for public distribution.
@@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target: [aarch64-apple-darwin, x86_64-apple-darwin]
env:
TARGET: ${{ matrix.target }}
@@ -131,7 +131,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target: [aarch64-apple-darwin, x86_64-apple-darwin]
include:
- target: aarch64-apple-darwin
+4 -4
View File
@@ -9,7 +9,7 @@ env:
jobs:
build-windows-binaries:
name: Build Windows binaries - ${{ matrix.runner }} - ${{ matrix.target }} - ${{ matrix.bundle }} - ${{ matrix.build-system }}
# Desktop consumers require successful Cargo and Bazel release artifacts.
# Release Cargo artifacts only while Bazel releases are disabled.
runs-on: ${{ matrix.runs_on }}
environment:
name: bazel
@@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- x86_64-pc-windows-msvc
- aarch64-pc-windows-msvc
@@ -321,7 +321,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-pc-windows-msvc
- x86_64-pc-windows-msvc
@@ -385,7 +385,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- x86_64-pc-windows-msvc
- aarch64-pc-windows-msvc
+7 -7
View File
@@ -59,7 +59,7 @@ jobs:
build:
needs: tag-check
name: Build - ${{ matrix.runner }} - ${{ matrix.target }} - ${{ matrix.bundle }} - ${{ matrix.build-system }}
# Desktop consumers require successful Cargo and Bazel release artifacts.
# Release Cargo artifacts only while Bazel releases are disabled.
runs-on: ${{ matrix.runner }}
environment:
name: bazel
@@ -83,7 +83,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
@@ -651,7 +651,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
@@ -895,7 +895,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
@@ -1183,7 +1183,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
@@ -1286,7 +1286,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-system: [cargo, bazel]
build-system: [cargo] # Bazel releases are disabled while the BuildBuddy key is revoked.
target:
- aarch64-apple-darwin
- x86_64-apple-darwin
@@ -1676,7 +1676,7 @@ jobs:
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: dist
pattern: "{{aarch64,x86_64}-{apple-darwin{,-app-server},unknown-linux-musl{,-app-server},pc-windows-msvc}{,-bazel},*-symbols{,-bazel},argument-comment-lint-*,python-runtime-wheel-*,npm-packages}"
pattern: "{{aarch64,x86_64}-{apple-darwin{,-app-server},unknown-linux-musl{,-app-server},pc-windows-msvc},*-symbols,argument-comment-lint-*,python-runtime-wheel-*,npm-packages}"
- name: Download verified provisioned macOS packages
if: vars.CODEX_PROVISIONED_MACOS_CANDIDATE == 'true'
+3
View File
@@ -36,6 +36,9 @@ jobs:
'
sdks:
# This job builds its CLI with Bazel. Keep it advisory while the BuildBuddy
# key is revoked; restore blocking behavior once it can run without BuildBuddy.
continue-on-error: true
runs-on:
group: ${{ github.event.repository.name }}-runners
labels: ${{ github.event.repository.name }}-linux-x64