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

Migrate Beam Go to use the new Opaque Protocol Buffers #33434

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lostluck
Copy link
Contributor

@lostluck lostluck commented Dec 20, 2024

See https://go.dev/blog/protobuf-opaque for details on Opaque Protocol Buffers for Go.

  • genproto.sh has been updated to force generation of the Hybrid API, which is compatible with the new Opaque API.
    • This required updating the Go proto plug in, which now reserves comments properly, simplifying the script.
  • The Go protocol buffers were regenerated. This yields the compatible APIs, such as accessor and setter methods and builder structs.
  • The open2opaque migration tool was run, and the fewer than a dozen spots that required manual intervention were fixed.

This PR has no functional changes, and is almost entirely generated.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 36.66818% with 1399 lines in your changes missing coverage. Please review.

Project coverage is 57.31%. Comparing base (9232cd8) to head (3a8a2b2).
Report is 30 commits behind head on master.

Files with missing lines Patch % Lines
...eam/model/jobmanagement_v1/beam_artifact_api.pb.go 33.65% 333 Missing and 8 partials ⚠️
...pkg/beam/model/jobmanagement_v1/beam_job_api.pb.go 36.94% 295 Missing and 2 partials ⚠️
sdks/go/pkg/beam/core/runtime/graphx/translate.go 30.08% 172 Missing ⚠️
...am/model/jobmanagement_v1/beam_expansion_api.pb.go 0.00% 135 Missing ⚠️
sdks/go/pkg/beam/core/runtime/harness/harness.go 0.00% 76 Missing ⚠️
...beam/model/fnexecution_v1/beam_provision_api.pb.go 28.43% 72 Missing and 1 partial ⚠️
sdks/go/pkg/beam/core/runtime/harness/statemgr.go 20.00% 71 Missing and 1 partial ⚠️
...odel/jobmanagement_v1/beam_artifact_api_grpc.pb.go 50.76% 28 Missing and 4 partials ⚠️
...eam/model/jobmanagement_v1/beam_job_api_grpc.pb.go 31.91% 31 Missing and 1 partial ⚠️
sdks/go/pkg/beam/artifact/materialize.go 58.06% 14 Missing and 12 partials ⚠️
... and 19 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #33434      +/-   ##
============================================
- Coverage     57.37%   57.31%   -0.06%     
  Complexity     1475     1475              
============================================
  Files           973      973              
  Lines        154905   157414    +2509     
  Branches       1076     1076              
============================================
+ Hits          88879    90225    +1346     
- Misses        63810    64948    +1138     
- Partials       2216     2241      +25     
Flag Coverage Δ
go 35.26% <36.66%> (+0.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant