From 32b5c1a75babcd5b19a9c73e1e6cd92df542a2c9 Mon Sep 17 00:00:00 2001 From: Soren Yang Date: Mon, 24 Feb 2025 10:07:37 +0800 Subject: [PATCH] fix(612): validate git status if clean after lint --- .github/workflows/pr_build_and_test.yaml | 6 ++++++ common/client_pool.go | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_build_and_test.yaml b/.github/workflows/pr_build_and_test.yaml index 924ecccd..e7ee0d10 100644 --- a/.github/workflows/pr_build_and_test.yaml +++ b/.github/workflows/pr_build_and_test.yaml @@ -63,6 +63,12 @@ jobs: with: version: v1.61.0 args: --timeout=10m -v + - name: Check git status if clean + uses: CatChen/check-git-status-action@v1 + with: + fail-if-not-clean: true + push-if-not-clean: false + request-changes-if-not-clean: false - name: Test run: make test diff --git a/common/client_pool.go b/common/client_pool.go index c7781e15..a605abf1 100644 --- a/common/client_pool.go +++ b/common/client_pool.go @@ -25,15 +25,14 @@ import ( grpcprometheus "github.com/grpc-ecosystem/go-grpc-prometheus" "github.com/pkg/errors" + "github.com/streamnative/oxia/oxia/auth" + "github.com/streamnative/oxia/proto" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/health/grpc_health_v1" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/peer" - - "github.com/streamnative/oxia/oxia/auth" - "github.com/streamnative/oxia/proto" ) const DefaultRpcTimeout = 30 * time.Second