Skip to content

ci: upload compact Bazel execution logs for bazel.yml#16577

Merged
bolinfest merged 1 commit intomainfrom
pr16577
Apr 2, 2026
Merged

ci: upload compact Bazel execution logs for bazel.yml#16577
bolinfest merged 1 commit intomainfrom
pr16577

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented Apr 2, 2026

Why

The main Bazel CI lanes need compact execution logs to investigate cache misses and unexpected rebuilds, but local users of the shared wrapper should not pay that log-generation cost by default.

What Changed

  • .github/scripts/run-bazel-ci.sh now appends --execution_log_compact_file=... only when CODEX_BAZEL_EXECUTION_LOG_COMPACT_DIR is set; the caller owns creating that directory.
  • .github/workflows/bazel.yml enables that env var only for the main test and clippy jobs, creates the temp log directory in each job, and uploads the resulting *.zst files from runner.temp.

Verification

  • bash -n .github/scripts/run-bazel-ci.sh
  • Parsed .github/workflows/bazel.yml as YAML.
  • Ran a local opt-in wrapper smoke test and confirmed it writes execution-log-cquery-local-*.zst when the caller pre-creates CODEX_BAZEL_EXECUTION_LOG_COMPACT_DIR.

@bolinfest bolinfest changed the title ci: upload compact Bazel execution logs ci: upload compact Bazel execution logs for bazel.yml Apr 2, 2026
@bolinfest bolinfest merged commit a098834 into main Apr 2, 2026
36 of 44 checks passed
@bolinfest bolinfest deleted the pr16577 branch April 2, 2026 15:41
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant