-
Notifications
You must be signed in to change notification settings - Fork 558
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
feat: improve buf rate limit (backport #4133) #4206
feat: improve buf rate limit (backport #4133) #4206
Conversation
* draft improvements * use --path flag mutilple times * remove `Build.Proto.ThirdPartyPaths` from the config * add logic for run buf by folder or by file * update cosmos-sdk * fix exclude files for swagger * fix buf cache * add changelog * update buf deps * fix unit test * fix wrong proto go path * clear buf cache * fix doctor tests and remove `third_party_paths` from the docs * improve Test_extractRootModulePath test cases * Update ignite/pkg/cosmosbuf/cache.go Co-authored-by: Jerónimo Albi <[email protected]> * fix changelog.md * improve cache logic * create a dircache pkg * add comments * rename methods `CopyCache` to `CopyTo` and `SaveCache` to `Save` --------- Co-authored-by: Pantani <Pantani> Co-authored-by: Jerónimo Albi <[email protected]> (cherry picked from commit 0b41262) # Conflicts: # ignite/cmd/cmd.go # ignite/config/chain/base/config.go # ignite/config/chain/v1/testdata/config.yaml # ignite/config/chain/v1/testdata/config2.yaml # ignite/internal/analytics/analytics.go # ignite/pkg/cosmosbuf/buf.go # ignite/pkg/cosmosgen/generate_go.go # ignite/pkg/cosmosgen/generate_openapi.go # integration/doctor/testdata/config-need-migrate.txt
Cherry-pick of 0b41262 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Visit the preview URL for this PR (updated for commit ba2840e): https://igntservices-docs--pr4206-mergify-bp-release-v-g38uu843.web.app (expires Fri, 12 Jul 2024 16:22:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 95379efd94dd497aaa37c2d0354e6e2cafca5ec5 |
99a1372
to
63ae4ec
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/v28.x.y #4206 +/- ##
===================================================
+ Coverage 24.74% 25.94% +1.19%
===================================================
Files 297 301 +4
Lines 24979 25653 +674
===================================================
+ Hits 6182 6655 +473
- Misses 18230 18417 +187
- Partials 567 581 +14
|
# Conflicts: # ignite/pkg/cosmosbuf/buf.go
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.
tACK!
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.
Now #4202 is broken with a different message btw and on non-minimal chains as well.
error while running command /home/julien/tools/go/bin/buf generate /home/julien/tools/go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/vesting/v1beta1 --template=/home/julien/downloads/foo2/proto/buf.gen.sta.yaml --output=/tmp/gen-openapi-module-spec2507011614 --error-format=json --log-format=json --path=/home/julien/tools/go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/vesting/v1beta1/tx.proto --path=/home/julien/tools/go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/vesting/v1beta1/vesting.proto: Failure: failed to build input "proto/cosmos/vesting/v1beta1" because it is contained by module at path "proto" specified in your configuration, you must provide the workspace or module as the input, and filter to this path using --path : exit status 1
@julienrbrt, we need to merge the other PRs after this one to the ts client generation works again: |
but we also need to merge this one first for the others works, because the backport to update the buf version is already merged |
Description
third_party_paths
from the chain config.Buf. Build
requests by grouping the requests into only one using the--path
for the generate command.This is an automatic backport of pull request feat: improve buf rate limit #4133 done by Mergify.