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

fix: fix proto files created as super-user #13801

Merged
merged 6 commits into from
Nov 9, 2022
Merged

fix: fix proto files created as super-user #13801

merged 6 commits into from
Nov 9, 2022

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Nov 8, 2022

Description

Follow-up of #13791 to bump the image in the Makefile.
Additionally, let all proto-* commands use the proto-builder image. This prevents the buf version to differ from the proto-builder image and the one we were using in the Makefile.
Ran make proto-update-deps, make proto-format, make proto-gen
Fixes #12150


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@julienrbrt julienrbrt requested a review from a team as a code owner November 8, 2022 22:27
@julienrbrt julienrbrt marked this pull request as draft November 8, 2022 22:31
@julienrbrt julienrbrt marked this pull request as ready for review November 8, 2022 22:43
@julienrbrt julienrbrt marked this pull request as draft November 8, 2022 22:46
@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Merging #13801 (278c462) into main (8bfc3bf) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13801      +/-   ##
==========================================
+ Coverage   56.71%   56.78%   +0.06%     
==========================================
  Files         635      644       +9     
  Lines       54547    54952     +405     
==========================================
+ Hits        30937    31204     +267     
- Misses      21107    21209     +102     
- Partials     2503     2539      +36     
Impacted Files Coverage Δ
x/distribution/simulation/operations.go 80.64% <0.00%> (-9.68%) ⬇️
x/staking/simulation/operations.go 74.54% <0.00%> (-1.38%) ⬇️
tx/textual/valuerenderer/bytes.go 62.50% <0.00%> (ø)
tx/textual/valuerenderer/int.go 50.00% <0.00%> (ø)
tx/textual/valuerenderer/valuerenderer.go 72.41% <0.00%> (ø)
tx/textual/valuerenderer/duration.go 78.22% <0.00%> (ø)
tx/textual/valuerenderer/string.go 66.66% <0.00%> (ø)
tx/textual/valuerenderer/dec.go 50.00% <0.00%> (ø)
tx/textual/valuerenderer/timestamp.go 89.28% <0.00%> (ø)
tx/textual/valuerenderer/coins.go 73.17% <0.00%> (ø)
... and 2 more

@julienrbrt julienrbrt marked this pull request as ready for review November 8, 2022 23:30
@julienrbrt julienrbrt changed the title chore: bump proto-builder fix: fix proto files created as super-user Nov 8, 2022
@@ -408,38 +408,30 @@ devdoc-update:
### Protobuf ###
###############################################################################

protoVer=0.11.0
protoVer=0.11.2
Copy link
Member Author

@julienrbrt julienrbrt Nov 8, 2022

Choose a reason for hiding this comment

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

As I have modified the dockerfile, bumping to 0.11.2.
The person merging must not forget to trigger the image build

@@ -408,38 +408,30 @@ devdoc-update:
### Protobuf ###
###############################################################################

protoVer=0.11.0
protoVer=0.11.2
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
Copy link
Member Author

Choose a reason for hiding this comment

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

Run docker build --pull --rm -f "contrib/devtools/Dockerfile" -t cosmossdk-proto:latest "contrib/devtools" and replace this line by cosmossdk-proto:latest for testing locally.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would love to have someone using macOS try this.

Copy link
Member

Choose a reason for hiding this comment

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

testing on my Mac now

Copy link
Member

Choose a reason for hiding this comment

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

locally all works for me. Ran all the commands, thanks for this

Copy link
Member Author

@julienrbrt julienrbrt Nov 9, 2022

Choose a reason for hiding this comment

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

Can you check the permission of the api folder and the proto/tendermint folder? It should be not be root.

@julienrbrt julienrbrt enabled auto-merge (squash) November 9, 2022 10:10
@julienrbrt julienrbrt merged commit 76be730 into main Nov 9, 2022
@julienrbrt julienrbrt deleted the julien/proto branch November 9, 2022 10:37
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.

Proto files are created as superuser
2 participants