Skip to content

Conversation

@kushthedude
Copy link
Contributor

@kushthedude kushthedude commented Jul 17, 2021

fixes #247
fixes #181
fixes #43
Signed-off-by: kushthedude kushthedude@gmail.com

Changes Included:

  • Package name fixed according to the convention of . which signifies directory tree
  • Service & Contract separated for easy of reading & maintainbility
  • Included Service in the suffix of the service according to Buf rules.
  • Integrated Buf in the CI
  • Buf configuration fixed to acknowledge the presence of google_api protos.
  • Explicitly applied best practices rules on proto & modified the protos according to them.
  • Revamped the gRPC stub calls to ensure everything is stable

Signed-off-by: kushthedude <kushthedude@gmail.com>
@kushthedude
Copy link
Contributor Author

@shravanshetty1 The generated files are failing because the stubs need to be regenerated which I am planning to generate with buf in the successive PR which will update the readme too.

@kushthedude kushthedude requested a review from Sriep July 17, 2021 10:45
@shravanshetty1 shravanshetty1 requested review from shravanshetty1 and removed request for shravanshetty1 July 17, 2021 13:06
@shravanshetty1
Copy link
Contributor

@shravanshetty1 The generated files are failing because the stubs need to be regenerated which I am planning to generate with buf in the successive PR which will update the readme too.

I think its best you do those changes in this PR itself

Copy link
Contributor

@shravanshetty1 shravanshetty1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^comment

@kushthedude
Copy link
Contributor Author

kushthedude commented Jul 18, 2021 via email

Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
@kushthedude
Copy link
Contributor Author

@shravanshetty1 This is done! All the references & tests have been revamped.

@kushthedude
Copy link
Contributor Author

The generated files action I will change when introducing the buf in CI which should go in another PR as this PR has already become quite huge!

@shravanshetty1
Copy link
Contributor

The generated files action I will change when introducing the buf in CI which should go in another PR as this PR has already become quite huge!

Ideally would have preferred if all buf related changes were in 1 PR including this #250. Its fine if the PR is getting bigger since the tests are ensuring nothing is going to break.

@kushthedude
Copy link
Contributor Author

Hey @shravanshetty1 is this good to be merged?

@shravanshetty1
Copy link
Contributor

Hey @shravanshetty1 is this good to be merged?

the ci is still failing, fix the ci

@kushthedude
Copy link
Contributor Author

@shravanshetty1 The generated files are failing because the stubs need to be regenerated which I am planning to generate with buf in the successive PR which will update the readme too.

@shravanshetty1 ^^

@shravanshetty1
Copy link
Contributor

@shravanshetty1 The generated files are failing because the stubs need to be regenerated which I am planning to generate with buf in the successive PR which will update the readme too.

@shravanshetty1 ^^

The generated files action I will change when introducing the buf in CI which should go in another PR as this PR has already become quite huge!

Ideally would have preferred if all buf related changes were in 1 PR including this #250. Its fine if the PR is getting bigger since the tests are ensuring nothing is going to break.

@kushthedude

@kushthedude
Copy link
Contributor Author

Let me then remove the generated-file-integrity, because buf has breaking change detection too. Will ping you after updating

@shravanshetty1
Copy link
Contributor

Let me then remove the generated-file-integrity, because buf has breaking change detection too. Will ping you after updating

Just use buf in the ci instead of what was there before....

Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
Signed-off-by: kushthedude <kushthedude@gmail.com>
@kushthedude
Copy link
Contributor Author

@shravanshetty1 Please review!

@kushthedude kushthedude requested a review from senpathi July 21, 2021 11:55
@kushthedude kushthedude changed the title feat: split proto on the basis of service & contract feat: Revamp protobufs and implement Buf for gRPC stubs Jul 21, 2021
@kushthedude kushthedude linked an issue Jul 21, 2021 that may be closed by this pull request
@kushthedude kushthedude requested review from shravanshetty1 and removed request for shravanshetty1 July 21, 2021 14:27
@kushthedude
Copy link
Contributor Author

Hey @moldis @cnlangzi , can you please review this PR?

@kushthedude kushthedude requested review from cnlangzi and moldis July 21, 2021 14:41
@guruhubb guruhubb removed the request for review from Sriep July 21, 2021 20:03
Copy link
Contributor

@cnlangzi cnlangzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kushthedude It would be appreciated if you could update naming with go-lint rule and add comment as much as possible. thanks

@cnlangzi
Copy link
Contributor

@kushthedude LGTM for now. thanks

Copy link
Contributor

@moldis moldis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@kushthedude kushthedude merged commit d4f7eb7 into 0chain:master Jul 23, 2021
@kushthedude kushthedude deleted the split_proto branch July 23, 2021 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Split proto on the basis on contracts & method Add .proto file linter and formatter Use 'buf' to run grpc commands

4 participants