-
Notifications
You must be signed in to change notification settings - Fork 42
protobuf: Add support for deprecated groups #472
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
Conversation
|
@Jozott00 looks like auto-lint on commit was applied to some generated classes |
Mr3zee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡️⚡️⚡️
Do we enable proto2 tests and editions then?
...-gen/protobuf/src/main/kotlin/kotlinx/rpc/protoc/gen/ModelToProtobufKotlinCommonGenerator.kt
Show resolved
Hide resolved
...-gen/protobuf/src/main/kotlin/kotlinx/rpc/protoc/gen/ModelToProtobufKotlinCommonGenerator.kt
Show resolved
Hide resolved
|
Proto2, Proto2 Editions and Editions2023 conformance tests are activated in the next PR. |
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
Signed-off-by: Johannes Zottele <[email protected]>
* protobuf: Add Groups encode/decode Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Add group lists Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Fix unexpected END_GROUP Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Add oneof groups test Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Fix name in ConformanceTest.kt Signed-off-by: Johannes Zottele <[email protected]> * pb: Revert autolint changes Signed-off-by: Johannes Zottele <[email protected]> * pb: Remove copyright headers Signed-off-by: Johannes Zottele <[email protected]> --------- Signed-off-by: Johannes Zottele <[email protected]>
* protobuf: Add Groups encode/decode Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Add group lists Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Fix unexpected END_GROUP Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Add oneof groups test Signed-off-by: Johannes Zottele <[email protected]> * protobuf: Fix name in ConformanceTest.kt Signed-off-by: Johannes Zottele <[email protected]> * pb: Revert autolint changes Signed-off-by: Johannes Zottele <[email protected]> * pb: Remove copyright headers Signed-off-by: Johannes Zottele <[email protected]> --------- Signed-off-by: Johannes Zottele <[email protected]>
Subsystem
Protobuf
Problem Description
Groups were not supported or implemented, and they even caused a crash when the wire contained a GROUP tag.
Solution
The PR implements group support, which resulted in 10 more tests passing the conformance tests, specifically proto3 tests that validate the correct parsing error behavior for invalid
END_GROUPtests.However, functionality is also implemented for proto2 and editions that actually use groups in their proto file.