From b3d319de7dd2620644f45f639fd2f357ab893c62 Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:48:59 -0700 Subject: [PATCH 1/5] buf ci --- .github/workflows/buf_breaking.yml | 20 ++++++++++++++++++++ .github/workflows/buf_push.yml | 19 +++++++++++++++++++ proto/buf.yaml | 2 +- tests/integration/go.mod | 2 +- tests/integration/go.sum | 4 ++-- tests/petri/go.mod | 2 +- tests/petri/go.sum | 4 ++-- tests/simapp/go.mod | 2 +- tests/simapp/go.sum | 4 ++-- 9 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/buf_breaking.yml create mode 100644 .github/workflows/buf_push.yml diff --git a/.github/workflows/buf_breaking.yml b/.github/workflows/buf_breaking.yml new file mode 100644 index 000000000..6c5793147 --- /dev/null +++ b/.github/workflows/buf_breaking.yml @@ -0,0 +1,20 @@ +name: Proto + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + with: + version: "1.39.0" + # Run breaking change detection for Protobuf sources against the current + # `main` branch, 'proto' subdirectory + - uses: bufbuild/buf-breaking-action@v1 + with: + input: proto + against: https://github.com/skip-mev/connect.git#branch=main,ref=HEAD~1,subdir=proto diff --git a/.github/workflows/buf_push.yml b/.github/workflows/buf_push.yml new file mode 100644 index 000000000..7575fa228 --- /dev/null +++ b/.github/workflows/buf_push.yml @@ -0,0 +1,19 @@ +name: Buf Push + +on: + # Apply to all pushes on 'main' branch + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + with: + version: "1.39.0" + - uses: bufbuild/buf-push-action@v1 + with: + input: proto + buf_token: ${{ secrets.BUF_TOKEN }} diff --git a/proto/buf.yaml b/proto/buf.yaml index 985c13b29..883e9ec9e 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,5 +1,5 @@ version: v1 -name: buf.build/skip-mev/slinky +name: buf.build/skip-mev/connect deps: - buf.build/cosmos/cosmos-proto diff --git a/tests/integration/go.mod b/tests/integration/go.mod index 8372a7d64..dcb0905c9 100644 --- a/tests/integration/go.mod +++ b/tests/integration/go.mod @@ -21,7 +21,7 @@ require ( github.com/strangelove-ventures/interchaintest/v8 v8.6.1 github.com/stretchr/testify v1.9.0 go.uber.org/zap v1.27.0 - google.golang.org/grpc v1.65.0 + google.golang.org/grpc v1.66.0 ) require ( diff --git a/tests/integration/go.sum b/tests/integration/go.sum index 324963dfe..6ea90fe29 100644 --- a/tests/integration/go.sum +++ b/tests/integration/go.sum @@ -1731,8 +1731,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c= +google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/tests/petri/go.mod b/tests/petri/go.mod index 186860ab9..9e2c472bf 100644 --- a/tests/petri/go.mod +++ b/tests/petri/go.mod @@ -211,7 +211,7 @@ require ( google.golang.org/genproto v0.0.0-20240722135656-d784300faade // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect - google.golang.org/grpc v1.65.0 // indirect + google.golang.org/grpc v1.66.0 // indirect google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/tests/petri/go.sum b/tests/petri/go.sum index ae73e73b7..1e5ab0fa9 100644 --- a/tests/petri/go.sum +++ b/tests/petri/go.sum @@ -1661,8 +1661,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c= +google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/tests/simapp/go.mod b/tests/simapp/go.mod index dd59c5a6b..a3cbf078b 100644 --- a/tests/simapp/go.mod +++ b/tests/simapp/go.mod @@ -191,7 +191,7 @@ require ( google.golang.org/genproto v0.0.0-20240722135656-d784300faade // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect - google.golang.org/grpc v1.65.0 // indirect + google.golang.org/grpc v1.66.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect gotest.tools/v3 v3.5.1 // indirect diff --git a/tests/simapp/go.sum b/tests/simapp/go.sum index 2b68d5f9e..c627dfe14 100644 --- a/tests/simapp/go.sum +++ b/tests/simapp/go.sum @@ -1632,8 +1632,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c= +google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= From 36cac80f017cef78d49e62b1a8aea59ee008033e Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:51:37 -0700 Subject: [PATCH 2/5] rename --- .github/workflows/buf_breaking.yml | 2 +- .github/workflows/buf_push.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buf_breaking.yml b/.github/workflows/buf_breaking.yml index 6c5793147..173c36580 100644 --- a/.github/workflows/buf_breaking.yml +++ b/.github/workflows/buf_breaking.yml @@ -1,4 +1,4 @@ -name: Proto +name: Proto Breaking on: pull_request: diff --git a/.github/workflows/buf_push.yml b/.github/workflows/buf_push.yml index 7575fa228..831d09e48 100644 --- a/.github/workflows/buf_push.yml +++ b/.github/workflows/buf_push.yml @@ -1,4 +1,4 @@ -name: Buf Push +name: BSR Push on: # Apply to all pushes on 'main' branch From c6b4ea631b9d9bf5e6329ba38f8b4d247aa795e6 Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:13:21 -0700 Subject: [PATCH 3/5] only on proto path --- .github/workflows/buf_breaking.yml | 2 ++ .github/workflows/buf_push.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buf_breaking.yml b/.github/workflows/buf_breaking.yml index 173c36580..00a14ed3f 100644 --- a/.github/workflows/buf_breaking.yml +++ b/.github/workflows/buf_breaking.yml @@ -3,6 +3,8 @@ name: Proto Breaking on: pull_request: branches: [ main ] + paths: + - proto/** jobs: build: diff --git a/.github/workflows/buf_push.yml b/.github/workflows/buf_push.yml index 831d09e48..3c3304f96 100644 --- a/.github/workflows/buf_push.yml +++ b/.github/workflows/buf_push.yml @@ -1,10 +1,12 @@ name: BSR Push on: - # Apply to all pushes on 'main' branch + # Apply to pushes on 'main' branch that affect the 'proto' directory push: branches: - main + paths: + - proto/** jobs: build: runs-on: ubuntu-latest From fc8cd991cf2254c641d0e140dd0c0df83f1e48a0 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 4 Sep 2024 22:55:11 +0000 Subject: [PATCH 4/5] [check-spelling] Update metadata Update for https://github.com/skip-mev/connect/actions/runs/10710308027/attempts/1 Accepted in https://github.com/skip-mev/connect/pull/725#issuecomment-2330287278 Signed-off-by: check-spelling-bot on-behalf-of: @check-spelling --- .github/actions/spelling/expect.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 01961bd46..5acfd9191 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -95,6 +95,7 @@ btceth btcusd btcusdt bto +bufbuild cca ccc Ccjku From 2fbf796aa32065b5d2b32b205d66e28df3fe5208 Mon Sep 17 00:00:00 2001 From: Tyler <48813565+technicallyty@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:30:27 -0700 Subject: [PATCH 5/5] ok --- .github/actions/spelling/expect.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 01961bd46..af8155922 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -752,4 +752,4 @@ Ywn Yxwa zaptest ZFvy -zstd +zstd \ No newline at end of file