Skip to content

Build from Envoy's Buf registry releases and publish automatically - #1

Merged
JonathanO merged 1 commit into
mainfrom
buf-export
Oct 23, 2026
Merged

JonathanO merged 1 commit into
mainfrom
buf-export

Conversation

@JonathanO

Copy link
Copy Markdown
Owner

Replaces the vendored protos and the update-sha.sh/update-api.sh scripts with a build that exports each Envoy release straight from the Buf registry. Envoy pushes every release there with its third-party proto deps pinned by its own api/buf.lock, so there is nothing to hand-maintain.

  • ./gradlew build -PenvoyVersion=1.40.0 runs buf export buf.build/envoyproxy/envoy:v1.40.0 and compiles it (protoc 3.25, so the classes run on protobuf-java 3.25+ and 4.x). -PbuildNumber=1 publishes a rebuild as 1.40.0-1.
  • google/api/{annotations,http}.proto and google/rpc/status.proto are no longer bundled; they come from proto-google-common-protos via grpc-protobuf, so those classes are no longer duplicated.
  • Group net.woaf.jono.envoy, artifact envoy-api, published to the Maven Central Portal. Wise Artifactory publishing, CODEOWNERS and tw-rules removed.
  • Gradle 9.8.1 (8.11 fails on Java 25), standard Renovate config.
  • build.yml: build + publishToMavenLocal on PRs and main.
  • release.yml: daily, publishes every Envoy release from 1.31.0 without a v<version> tag, then tags it, at most 5 per run. Manual dispatch publishes one version or a rebuild. Does nothing until the repo variable PUBLISH=true and the SONATYPE_USER/SONATYPE_PASSWORD/OSS_SIGNING_KEY/OSS_SIGNING_PASSWORD secrets exist.

Testing

  • Built 1.40.0 locally: 11,035 classes under the usual io.envoyproxy / com.github.xds / io.envoyproxy.pgv packages, Java 11 bytecode.
  • java-envoy-xds with this jar substituted for com.transferwise.envoy:envoy-api:1.17.0: core tests (67) and e2e against Envoy 1.17 and 1.40, SotW and delta, all pass.
  • Release version selection dry-run against Buf: 39 versions, 1.31.0 to 1.40.0.
  • Not tested: the release workflow's publish step, and building any version other than 1.40.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LjfJneYfZvPVJht93FjFQW

Replace the vendored protos and the update-sha/update-api scripts with a
`buf export` of the Envoy release label. Envoy pushes every release to the
Buf registry with its third-party proto dependencies pinned in buf.lock,
so the export always has exactly what that release needs.

- Version comes from -PenvoyVersion (and optional -PbuildNumber).
- google/api/{annotations,http} and google/rpc/status come from
  proto-google-common-protos (via grpc-protobuf) instead of being
  bundled, so those classes aren't duplicated.
- Group is now net.woaf.jono.envoy; Wise SCM, Artifactory publishing,
  CODEOWNERS and tw-rules removed; Renovate uses config:recommended.
- Publishing goes to the Maven Central Portal staging API.
- release.yml publishes unpublished Envoy releases (1.31.0+, at most five
  per run) daily, tagging each; it is gated on the PUBLISH variable.
- Gradle 9.8.1, protobuf plugin 0.9.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LjfJneYfZvPVJht93FjFQW
@JonathanO
JonathanO merged commit bb42587 into main Oct 23, 2026
1 check passed
@JonathanO
JonathanO deleted the buf-export branch October 23, 2026 08:16
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