-
Notifications
You must be signed in to change notification settings - Fork 160
build: publish 'hedera-protobuf-java-api' from services repo #17737
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17737 +/- ##
=========================================
Coverage 68.92% 68.92%
Complexity 22986 22986
=========================================
Files 2647 2647
Lines 99445 99445
Branches 10285 10285
=========================================
+ Hits 68544 68546 +2
+ Misses 27023 27021 -2
Partials 3878 3878
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Yes this is correct. So in the current process of deploying
|
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.
platform-ci
files look good!
Signed-off-by: Jendrik Johannes <[email protected]>
Files are not directly located in 'src/main/proto' which is the default src set configuration in Gradle and what also IntelliJ expects. Signed-off-by: Jendrik Johannes <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
6ea1773
169b8d1
to
dee3445
Compare
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.
LGTM. Thanks @jjohannes
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.
Tools and Libraries don't really own any of the .proto files, but the changes look harmless to me, so approving.
I'd like @jsync-swirlds to take a look as he's done a lot of work on these .proto models in the past.
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.
Approve build
and settings
gradle files.
This structure seems off at first glance (not least because we end up with a path like Could we rename the second As to the published outputs, I think we need to consider this a bit more broadly in terms of making To this end, a few points worth discussing:
|
Thank you for the detailed feedback @jsync-swirlds Regarding the discussion point (source of truth for protobufs)I would propose to regard this PR as a solution to replace the publishing of Generated Protobuf Java Code which currently lives in https://github.com/hashgraph/hedera-protobufs-java (note the -java in the end of the name). It contains itself a copy of the protobuf files. This is published as
With this PR, this will not change (only the publishing of (2) is moved here instead of maintaining it in a separate repo). So this PR is hopefully a good base for further adjustments in this area. Regarding namingI left the second level folder names (names of the Modules) as they are to not change the publishing coordinates and not create naming confusion. I would prefer to leave them as they are. We may consider renames later, if we should change publishing coordinates with the Hiero rename anyway.
|
fb4d09f
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.
Review and approve build and settings gradle files.
Signed-off-by: Jendrik Johannes <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]> Signed-off-by: Ivan Kavaldzhiev <[email protected]>
Description:
To put and publish the code generated by
protoc
, we introduce a new module that replaces the Maven build from https://github.com/hashgraph/hedera-protobufs-java. For this we introduce this structure in thehapi
folder that follows conventions:After this PR, the "protoc" generation runs twice in this repo:
hedera-protobuf-java-api.jar
Related issue(s):
Fixes #17425
Follow up: #14026
Notes for reviewer:
Is the new structure fine?
You can test the new publishing as follws
Run:
The you can compare the published
.jar
with the one published locallyThe general structure is the same. But there are some details different. It looks to me like the "proto" files in this repo and in "hedera-protobuf-java-api" are not completely in sync.