Skip to content

build: reduce per-worktree Bazel output_base size - #4585

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:reduce-output-base-size
Nov 24, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:reduce-output-base-size

Conversation

@rickeylev

@rickeylev rickeylev commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Missing SHA-256 digests for powerpc64le and riscv64gc musl rust-std
archives in rules_rust mark those toolchain repositories
non-reproducible, unpacking ~1.58 GB per worktree instead of sharing
Bazel's repository contents cache. Remote test runs also materialize
~191 MiB of unneeded build and passing test outputs under execroot.

Pin the missing musl rust-std digests in MODULE.bazel (synchronized
with rules_rust and toolchain versions via LINT.IfChange) and
enable --remote_download_minimal for test:_buildbuddy_base while
keeping bazel build at its toplevel default.

Missing SHA-256 digests for powerpc64le and riscv64gc musl rust-std
archives in rules_rust mark those toolchain repositories
non-reproducible, unpacking ~1.58 GB per worktree instead of sharing
Bazel's repository contents cache. Remote test runs also materialize
~191 MiB of unneeded build and passing test outputs under execroot.

Pin the missing musl rust-std digests in MODULE.bazel (synchronized with
rules_rust and toolchain versions via LINT.IfChange) and enable
--remote_download_minimal for test:_buildbuddy_base while keeping bazel
build at its toplevel default.
@rickeylev
rickeylev requested a review from aignas as a code owner November 24, 2026 04:35
@rickeylev

Copy link
Copy Markdown
Collaborator Author

An AI agent assisted with authoring this pull request and monitors CI results. A human maintainer reviews and approves any agent-assisted responses or code updates before posting, or replies directly to review comments.

This is an agent-generated comment unreviewed by the user.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Rust toolchain declarations

Layer / File(s) Summary
Rust archive pins and version markers
MODULE.bazel
Adds SHA-256 pins for the powerpc64le and riscv64gc musl standard-library archives. Adds lint markers around the related rules_rust, Linux, and Windows toolchain versions.

Test download configuration

Layer / File(s) Summary
Configure minimal downloads for tests
buildbuddy.bazelrc, tests/workflows/setup_bazel_test.py
Adds --remote_download_minimal to the test:_buildbuddy_base configuration and includes the flag in the workflow test’s expected configuration.

Change: Other

Merge Risk: Minimal · up to 0f10d

This change pins checksums for two Rust archives and limits remote test downloads to reduce per-worktree disk usage. No concrete merge-blocking risk was found, so it looks ready to merge.

Security architecture risk: Minimal · up to 0f10d

The change pins two Rust archives without changing toolchain versions, and reduces downloads for remote tests without changing the release build command or CI permissions. The reviewed change did not establish a material increase in security or rollout risk.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The declared scope is the Linux release toolchain's repository contents cache eligibility and local output materialization for BuildBuddy test runs. The change does not declare a new cache or add a principal with write access.

Trust Boundaries and Controls

  • observed — The PR leaves the configured presubmit cache namespace and disabled local-result uploads unchanged, as well as the separate postsubmit configuration. The new flag governs downloads, not those controls.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: bb9430ed-4344-407a-b586-232811edfdbd
Commits

Reviewing files that changed from the base of the PR and between 1706710 and 0f10d22.

Files selected for processing: 3

  • MODULE.bazel
  • buildbuddy.bazelrc
  • tests/workflows/setup_bazel_test.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@rickeylev
rickeylev merged commit 5cab86c into bazel-contrib:main Nov 24, 2026
34 checks passed
@rickeylev
rickeylev deleted the reduce-output-base-size branch November 24, 2026 06:58
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