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

Avoid downloading the empty Tree message #25374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Feb 25, 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.

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.
@fmeum fmeum marked this pull request as ready for review February 25, 2025 11:02
@fmeum fmeum requested a review from a team as a code owner February 25, 2025 11:02
@github-actions github-actions bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Feb 25, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented Feb 25, 2025

@bazel-io fork 8.2.0

@fmeum
Copy link
Collaborator Author

fmeum commented Feb 25, 2025

@iancha1992 Could you mark this for cherry-picking to 7.x if there should be another release for it?

@fmeum fmeum requested a review from tjgq February 25, 2025 18:40
Copy link
Contributor

@tjgq tjgq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

@tjgq tjgq added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally team-Remote-Exec Issues and PRs for the Execution (Remote) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants