Repository navigation
Conversation
Add proto/buf.yaml declaring buf.build/sgl-project/sglang and a GitHub Actions workflow that runs buf build, buf lint, and buf breaking on proto changes and publishes the module to the Buf Schema Registry on main pushes and releases when secrets.BUF_TOKEN is configured. Signed-off-by: ahg-g <[email protected]>
…rison Signed-off-by: ahg-g <[email protected]>
Re-run the breaking check against the previous main commit before publishing, unless the merged PR carries the 'buf skip breaking' label, since the PR check is not a required status check. Gate publishing on vars.BSR_PUBLISH_ENABLED so a missing BUF_TOKEN fails once publishing is enabled instead of silently skipping. Add proto/README.md, which the BSR renders as the module documentation. Signed-off-by: ahg-g <[email protected]>
17 of 48 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Downstream consumers written in Go, Python, and other languages (such as
llm-d/llm-d-routerforsglang.api.v1.SglangService) currently have to copy.protofiles out ofsgl-project/sglangand maintain localprotocpipelines to generate client/message bindings.Publishing
proto/asbuf.build/sgl-project/sglangon the Buf Schema Registry (BSR) lets downstream projects import versioned generated SDKs directly (for examplego get buf.build/gen/go/sgl-project/sglang/protocolbuffers/goandbuf.build/gen/go/sgl-project/sglang/grpc/govia BSR Managed Mode) without adding language-specific options likeoption go_packageto the.protosources, while enforcingbuf build,buf lint, andbuf breakingchecks on.protochanges in CI.Modifications
proto/buf.yaml(Buf v2) declaring modulebuf.build/sgl-project/sglangwithSTANDARDlint rules (excluding the four naming rules that conflict with existingsglang.api.v1,sglang.json.v1, andsglang.runtime.v1wire contracts) andFILEbreaking-change detection.proto/README.md, rendered by the BSR as the module documentation: generated SDK usage, version labels, a warning that the SDKs target the gRPC wire format (the HTTP JSON form follows thesglang.json.v1options, not canonical proto3 JSON), and the schema change process..github/workflows/buf.yml(Buf CLI pinned to 1.75.0):proto/**:buf build,buf lint, andbuf breakingagainst the PR's base commit. A maintainer can approve an intentional breaking change with thebuf skip breakinglabel, which re-triggers the check.mainpushes,v*release tag pushes, published GitHub releases, and manual dispatch onmain: publishproto/to the BSR, labeled with the commit SHA and the branch or tag name.main, re-runbuf breakingagainst the previousmaincommit unless the merged PR carriesbuf skip breaking. The PR check is not a required status check, so this keeps an unapproved breaking change out of the registry.vars.BSR_PUBLISH_ENABLED, so this can merge before the registry is set up. Once enabled, a missingBUF_TOKENfails the job instead of silently skipping.Maintainer setup (after merge)
sgl-projectorganization on buf.build (buf push --createcreates the module, not the organization).BUF_TOKENrepository secret.BSR_PUBLISH_ENABLEDrepository variable totrue.mainonce for the first publish.buf skip breakinglabel.Accuracy Tests
N/A (protobuf build/CI configuration only; no runtime or model changes).
Speed Tests and Profiling
N/A (protobuf build/CI configuration only).
Checklist
CI States
Latest PR Test (Base): ❌ Run #41719279563
Latest PR Test (Extra): ❌ Run #41719279499
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: