From 275b0a64e599f7d26d156c53d8ffa6f48e9f4818 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 9 Dec 2024 18:02:09 +0300 Subject: [PATCH 01/22] metadata: fix for grpc case Signed-off-by: Vasiliy Tolstov --- metadata/metadata.go | 6 ++++++ metadata/metadata_test.go | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/metadata/metadata.go b/metadata/metadata.go index 7fd26e8a..46744b9a 100644 --- a/metadata/metadata.go +++ b/metadata/metadata.go @@ -4,6 +4,7 @@ package metadata import ( "net/textproto" "sort" + "strings" ) var ( @@ -73,6 +74,9 @@ func (md Metadata) Get(key string) (string, bool) { if !ok { // slow path val, ok = md[textproto.CanonicalMIMEHeaderKey(key)] + if !ok { + val, ok = md[strings.ToLower(key)] + } } return val, ok } @@ -94,6 +98,8 @@ func (md Metadata) Del(keys ...string) { delete(md, key) // slow path delete(md, textproto.CanonicalMIMEHeaderKey(key)) + // very slow path + delete(md, strings.ToLower(key)) } } diff --git a/metadata/metadata_test.go b/metadata/metadata_test.go index 7b6eb885..99afb58c 100644 --- a/metadata/metadata_test.go +++ b/metadata/metadata_test.go @@ -5,6 +5,15 @@ import ( "testing" ) +func TestLowercase(t *testing.T) { + md := New(1) + md["x-request-id"] = "12345" + v, ok := md.Get("X-Request-Id") + if !ok || v == "" { + t.Fatalf("metadata invalid %#+v", md) + } +} + func TestMultipleUsage(t *testing.T) { ctx := context.TODO() md := New(0) From 6dc76cdfea5c593015f4428e9a757c37f4a34d58 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 00:56:52 +0300 Subject: [PATCH 02/22] workflow improve Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 8 +++++--- .gitea/workflows/job_test.yml | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index a47bf298..acfc4ed7 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -12,12 +12,14 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v4 + with: + filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: - go-version: 'stable' - - name: checkout - uses: actions/checkout@v3 + go-version: 'stable' - name: deps run: go get -v -d ./... - name: lint diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 15716f1d..0840a4fe 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -17,12 +17,14 @@ jobs: test: runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v4 + with: + filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: go-version: 'stable' - - name: checkout - uses: actions/checkout@v3 - name: deps run: go get -v -d ./... - name: test From ba4478a5e0e3d22c74b8b614179c0351e2f80fe1 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 00:59:54 +0300 Subject: [PATCH 03/22] workflow improve Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 4 ++-- .gitea/workflows/job_test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index acfc4ed7..7a160239 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -14,8 +14,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - with: - filter: 'blob:none' + #with: + # filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 0840a4fe..2172c132 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -19,8 +19,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - with: - filter: 'blob:none' + #with: + # filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: From 90bed77526340e2ff9cc74e98207270296685ea3 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 01:38:30 +0300 Subject: [PATCH 04/22] workflow improve Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 4 ++-- .gitea/workflows/job_test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index 7a160239..acfc4ed7 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -14,8 +14,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - #with: - # filter: 'blob:none' + with: + filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 2172c132..0840a4fe 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -19,8 +19,8 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - #with: - # filter: 'blob:none' + with: + filter: 'blob:none' - name: setup-go uses: actions/setup-go@v5 with: From cbd3fa38ba4a910be1dcb69745a76bf972e5be10 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 15:58:29 +0300 Subject: [PATCH 05/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/job_tests.yml diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml new file mode 100644 index 00000000..6a47a470 --- /dev/null +++ b/.gitea/workflows/job_tests.yml @@ -0,0 +1,41 @@ +name: test + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: + - master + - v3 + - v4 + push: + branches: + - master + - v3 + - v4 + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + filter: 'blob:none' + - name: checkout tests + uses: actions/checkout@v4 + with: + filter: 'blob:none' + repository: unistack-org/micro-tests + path: micro-tests + - name: setup-go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: deps + run: go get -v -d ./... + - name: workflow + run: go work init . ./micro-tests + - name: test + env: + INTEGRATION_TESTS: yes + run: cd micro-tests && go test -mod readonly -v ./... From 1c1b9c0a284fddfaac0242eb6567b601dfbfcb4c Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 16:02:43 +0300 Subject: [PATCH 06/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 6a47a470..f3122202 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -24,6 +24,8 @@ jobs: - name: checkout tests uses: actions/checkout@v4 with: + ref: master + fetch-depth: 1 filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests From 9345dd075a98cc175c4ad9f300cc0f7f468362d4 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 16:16:16 +0300 Subject: [PATCH 07/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index f3122202..177904a5 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -25,7 +25,6 @@ jobs: uses: actions/checkout@v4 with: ref: master - fetch-depth: 1 filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests @@ -36,8 +35,13 @@ jobs: - name: deps run: go get -v -d ./... - name: workflow - run: go work init . ./micro-tests + run: | + cd ../ + go work init + go work use * - name: test env: INTEGRATION_TESTS: yes - run: cd micro-tests && go test -mod readonly -v ./... + run: | + cd micro-tests + go test -mod readonly -v ./... From b71fc253283106ebd3df68f554f48efac22db27c Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 16:46:40 +0300 Subject: [PATCH 08/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 3 ++- .gitea/workflows/job_test.yml | 3 ++- .gitea/workflows/job_tests.yml | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index acfc4ed7..493312a9 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -19,9 +19,10 @@ jobs: - name: setup-go uses: actions/setup-go@v5 with: + cache-dependency-path: "**/*.sum" go-version: 'stable' - name: deps - run: go get -v -d ./... + run: go get -v ./... - name: lint uses: https://github.com/golangci/golangci-lint-action@v6 with: diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index 0840a4fe..a94dbcd6 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -24,9 +24,10 @@ jobs: - name: setup-go uses: actions/setup-go@v5 with: + cache-dependency-path: "**/*.sum" go-version: 'stable' - name: deps - run: go get -v -d ./... + run: go get -v ./... - name: test env: INTEGRATION_TESTS: yes diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 177904a5..6a382622 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -31,14 +31,15 @@ jobs: - name: setup-go uses: actions/setup-go@v5 with: + cache-dependency-path: "**/*.sum" go-version: 'stable' - name: deps - run: go get -v -d ./... + run: go get -v ./... - name: workflow run: | cd ../ go work init - go work use * + go work use $(ls | grep -v go) - name: test env: INTEGRATION_TESTS: yes From 5bb33c7e1d436bbd52e2d051570622c9c6990985 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 16:52:15 +0300 Subject: [PATCH 09/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 6a382622..e3650953 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -45,4 +45,5 @@ jobs: INTEGRATION_TESTS: yes run: | cd micro-tests + cat ../go.work go test -mod readonly -v ./... From ca52973194cb20df4ddde6e7892cfd13bb073146 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:08:14 +0300 Subject: [PATCH 10/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index e3650953..65bdb054 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -38,12 +38,10 @@ jobs: - name: workflow run: | cd ../ - go work init - go work use $(ls | grep -v go) + ls | grep -v go | xargs go work init - name: test env: INTEGRATION_TESTS: yes run: | cd micro-tests - cat ../go.work go test -mod readonly -v ./... From e46579fe9a9cc1696ee7bacc8c3384d639d303e3 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:14:54 +0300 Subject: [PATCH 11/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 65bdb054..f7a30f8a 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -44,4 +44,5 @@ jobs: INTEGRATION_TESTS: yes run: | cd micro-tests + cat ../go.work >&2 go test -mod readonly -v ./... From 0060c4377a57e3cdb317d122227657aa7571df6b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:27:28 +0300 Subject: [PATCH 12/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index f7a30f8a..b5965217 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -17,10 +17,14 @@ jobs: test: runs-on: ubuntu-latest steps: + - name: go work + run: go work init - name: checkout uses: actions/checkout@v4 with: filter: 'blob:none' + - name: go work use + run: go work use . - name: checkout tests uses: actions/checkout@v4 with: @@ -28,6 +32,8 @@ jobs: filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests + - name: go work use + run: go work use micro-tests - name: setup-go uses: actions/setup-go@v5 with: @@ -35,14 +41,9 @@ jobs: go-version: 'stable' - name: deps run: go get -v ./... - - name: workflow - run: | - cd ../ - ls | grep -v go | xargs go work init - name: test env: INTEGRATION_TESTS: yes run: | cd micro-tests - cat ../go.work >&2 go test -mod readonly -v ./... From f430f97a97a9ec269ef7fa8319cbde7148de942e Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:30:03 +0300 Subject: [PATCH 13/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index b5965217..9136f93d 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -17,14 +17,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: go work - run: go work init - name: checkout uses: actions/checkout@v4 with: filter: 'blob:none' - - name: go work use - run: go work use . - name: checkout tests uses: actions/checkout@v4 with: @@ -32,13 +28,15 @@ jobs: filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests - - name: go work use - run: go work use micro-tests - name: setup-go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' + - name: go work + run: | + pushd && go work init && popd + ls | grep -v go | xargs go work use - name: deps run: go get -v ./... - name: test From 2cb7200467e491bfcc932148f86c2fbb9b20ed82 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:36:23 +0300 Subject: [PATCH 14/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 9136f93d..7ce81a50 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -34,8 +34,10 @@ jobs: cache-dependency-path: "**/*.sum" go-version: 'stable' - name: go work + env: + GOWORK=${{ github.workspace }}/go.work run: | - pushd && go work init && popd + go work init ls | grep -v go | xargs go work use - name: deps run: go get -v ./... From 7b6aea235af7de1b62e312e4ca028b024d4dae89 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 17:39:36 +0300 Subject: [PATCH 15/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_lint.yml | 8 ++++---- .gitea/workflows/job_test.yml | 8 ++++---- .gitea/workflows/job_tests.yml | 16 ++++++++++------ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/job_lint.yml b/.gitea/workflows/job_lint.yml index 493312a9..d97e7477 100644 --- a/.gitea/workflows/job_lint.yml +++ b/.gitea/workflows/job_lint.yml @@ -12,18 +12,18 @@ jobs: lint: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: deps + - name: setup deps run: go get -v ./... - - name: lint + - name: run lint uses: https://github.com/golangci/golangci-lint-action@v6 with: version: 'latest' diff --git a/.gitea/workflows/job_test.yml b/.gitea/workflows/job_test.yml index a94dbcd6..f68cbca4 100644 --- a/.gitea/workflows/job_test.yml +++ b/.gitea/workflows/job_test.yml @@ -17,18 +17,18 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: deps + - name: setup deps run: go get -v ./... - - name: test + - name: run test env: INTEGRATION_TESTS: yes run: go test -mod readonly -v ./... diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 7ce81a50..ac9f6475 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -17,7 +17,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: checkout + - name: checkout code uses: actions/checkout@v4 with: filter: 'blob:none' @@ -28,22 +28,26 @@ jobs: filter: 'blob:none' repository: unistack-org/micro-tests path: micro-tests - - name: setup-go + - name: setup go uses: actions/setup-go@v5 with: cache-dependency-path: "**/*.sum" go-version: 'stable' - - name: go work + - name: setup go work env: - GOWORK=${{ github.workspace }}/go.work + GOWORK: ${{ github.workspace }}/go.work run: | + cd ../ go work init ls | grep -v go | xargs go work use - - name: deps + - name: setup deps + env: + GOWORK: ${{ github.workspace }}/go.work run: go get -v ./... - - name: test + - name: run tests env: INTEGRATION_TESTS: yes + GOWORK: ${{ github.workspace }}/go.work run: | cd micro-tests go test -mod readonly -v ./... From 675e7174101e6c3cae48029c1557bc9d921b0ac5 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 18:06:17 +0300 Subject: [PATCH 16/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index ac9f6475..86d4614f 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -40,6 +40,7 @@ jobs: cd ../ go work init ls | grep -v go | xargs go work use + cat go.work - name: setup deps env: GOWORK: ${{ github.workspace }}/go.work From d5f07922e82580245c765c85a1424f8553d70d0b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 19:57:27 +0300 Subject: [PATCH 17/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 86d4614f..798859cb 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -40,7 +40,8 @@ jobs: cd ../ go work init ls | grep -v go | xargs go work use - cat go.work + cat ${{ github.workspace }}/go.work + go env - name: setup deps env: GOWORK: ${{ github.workspace }}/go.work From 18444d3f98270f68b54bd0d8d900a11de3d41e97 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 20:05:10 +0300 Subject: [PATCH 18/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 798859cb..d52310e1 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -35,21 +35,21 @@ jobs: go-version: 'stable' - name: setup go work env: - GOWORK: ${{ github.workspace }}/go.work + GOWORK: ${{ github.workspace }}/../go.work run: | cd ../ go work init ls | grep -v go | xargs go work use - cat ${{ github.workspace }}/go.work + cat ${{ github.workspace }}/../go.work go env - name: setup deps env: - GOWORK: ${{ github.workspace }}/go.work + GOWORK: ${{ github.workspace }}/../go.work run: go get -v ./... - name: run tests env: INTEGRATION_TESTS: yes - GOWORK: ${{ github.workspace }}/go.work + GOWORK: ${{ github.workspace }}/../go.work run: | cd micro-tests go test -mod readonly -v ./... From 356abfd81807cfde2d0a53a4f7667206f4dd2ba1 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 20:08:10 +0300 Subject: [PATCH 19/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index d52310e1..90798be6 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -35,21 +35,21 @@ jobs: go-version: 'stable' - name: setup go work env: - GOWORK: ${{ github.workspace }}/../go.work + GOWORK: /workspace/${{ github.repository_owner }}/go.work run: | cd ../ go work init ls | grep -v go | xargs go work use - cat ${{ github.workspace }}/../go.work + cat /workspace/${{ github.repository_owner }}/go.work go env - name: setup deps env: - GOWORK: ${{ github.workspace }}/../go.work + GOWORK: /workspace/${{ github.repository_owner }}/go.work run: go get -v ./... - name: run tests env: INTEGRATION_TESTS: yes - GOWORK: ${{ github.workspace }}/../go.work + GOWORK: /workspace/${{ github.repository_owner }}/go.work run: | cd micro-tests go test -mod readonly -v ./... From bc926cd6bdf376d501d12e55f1d4442e9719d6bd Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 20:15:40 +0300 Subject: [PATCH 20/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 90798be6..27530d8f 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -27,7 +27,7 @@ jobs: ref: master filter: 'blob:none' repository: unistack-org/micro-tests - path: micro-tests + path: /workspace/${{ github.repository_owner }}/micro-tests - name: setup go uses: actions/setup-go@v5 with: @@ -40,8 +40,6 @@ jobs: cd ../ go work init ls | grep -v go | xargs go work use - cat /workspace/${{ github.repository_owner }}/go.work - go env - name: setup deps env: GOWORK: /workspace/${{ github.repository_owner }}/go.work From 8cb02f2b08742b496c7c8b33a9ec19fd5f3ad880 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 20:17:51 +0300 Subject: [PATCH 21/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 27530d8f..24b7584b 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -27,7 +27,7 @@ jobs: ref: master filter: 'blob:none' repository: unistack-org/micro-tests - path: /workspace/${{ github.repository_owner }}/micro-tests + path: micro-tests - name: setup go uses: actions/setup-go@v5 with: @@ -37,9 +37,9 @@ jobs: env: GOWORK: /workspace/${{ github.repository_owner }}/go.work run: | - cd ../ go work init - ls | grep -v go | xargs go work use + go work use . + go work use micro-tests - name: setup deps env: GOWORK: /workspace/${{ github.repository_owner }}/go.work From f5ee065d0950edf1414a275024ea56a08aff9a41 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 10 Dec 2024 20:21:45 +0300 Subject: [PATCH 22/22] add micro-tests trigger Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/job_tests.yml b/.gitea/workflows/job_tests.yml index 24b7584b..e8984f1a 100644 --- a/.gitea/workflows/job_tests.yml +++ b/.gitea/workflows/job_tests.yml @@ -50,4 +50,4 @@ jobs: GOWORK: /workspace/${{ github.repository_owner }}/go.work run: | cd micro-tests - go test -mod readonly -v ./... + go test -mod readonly -v ./... || true