Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.6.0] Avoid downloading the empty Tree message #25489

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Mar 6, 2025

Valid empty Tree messages, which correspond to empty output directories, serialize to two bytes since they always contain an empty but present Tree message in the root field. Since such directories are very common (for example, as undeclared test output directories), it pays off to avoid downloading them.

Closes #25374.

PiperOrigin-RevId: 731614115
Change-Id: I64902afbecb55f718eb4d04fdd1f6207a7e8b97a
(cherry picked from commit 6795c28)

Valid empty `Tree` messages, which correspond to empty output directories, serialize to two bytes since they always contain an empty but present `Tree` message in the `root` field. Since such directories are very common (for example, as undeclared test output directories), it pays off to avoid downloading them.

Closes bazelbuild#25374.

PiperOrigin-RevId: 731614115
Change-Id: I64902afbecb55f718eb4d04fdd1f6207a7e8b97a
(cherry picked from commit 6795c28)
@fmeum fmeum requested a review from a team as a code owner March 6, 2025 19:15
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Mar 6, 2025
@fmeum fmeum requested a review from tjgq March 6, 2025 19:37
@iancha1992 iancha1992 enabled auto-merge March 6, 2025 19:37
@iancha1992 iancha1992 added this pull request to the merge queue Mar 6, 2025
Merged via the queue into bazelbuild:release-7.6.0 with commit 327f897 Mar 6, 2025
51 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 6, 2025
@fmeum fmeum deleted the 25462-empty-tree branch March 6, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Remote-Exec Issues and PRs for the Execution (Remote) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants