Skip to content

OSS: add Build Event Service proto to buck2 #995

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sluongng
Copy link
Contributor

This is a stack of 3 commits/diffs that add Bazel's Build Event Service(BES) proto
to Buck2. Note that the client implementation is not included in this stack.

In the BES proto, we made a Buck2-specific change following the discussion with Google's
DevTools team in googleapis/googleapis#988. The change added a new
generic build_tool_event message to the BuildEvent proto, which allows us to
send BuckEvent messages as a part of the Build Event Service.

The change is backward compatible with existing server implementations and can also be used
by other build systems that want to send their own events to the BES.

sluongng added 2 commits June 13, 2025 13:20
This split the Google API protobufs into it's own crate.

In a future diff, we shall introduce newer crates which depends
on this crate directly.
We intend to use this as a replacement for the existing Scribe
protocol to send telementry data (BuckEvent) to a remote server.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 13, 2025
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.)

@sluongng
Copy link
Contributor Author

Technically, the BES proto is also part of the googleapis repository, but I think it's worth splitting into a separate crate to avoid build cache churn.

cc: @avdv @aherrmann

@alexlian alexlian added enhancement New feature or request UX User Experience labels Jun 13, 2025
Copy link

@2FaceS-bit 2FaceS-bit left a comment

Choose a reason for hiding this comment

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

@2Facesbit

Add a Buck2 specific field to unblock BuckEvent OSS remote client
development.

This field is created in accordance to the discussion with Google's
DevTools team in googleapis/googleapis#988
and should be generic enough for all build tools (including Buck2)
to implement.
@sluongng sluongng force-pushed the sluongng/bes-proto branch from 0326148 to 11f9b21 Compare June 13, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. enhancement New feature or request UX User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants