From 470e2753db036ac8abcab975431c97f7810605f4 Mon Sep 17 00:00:00 2001 From: Zain Budhwani <99770260+zbud-msft@users.noreply.github.com> Date: Tue, 15 Oct 2024 00:43:25 -0700 Subject: [PATCH] Use version of gocov supported by sonic-gnmi (#300) Why I did it axw gocov was modified to use go 1.22 while currently sonic-gnmi still uses 1.13 a few days ago from this PR creation date. To ensure pipeline still works, we are specifying last stable version of axw gocov that still worked with sonic-gnmi pipeline which was 1.1.0 How I did it Specify gocov version How to verify it Pipeline --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8cc9c0ee..c711ee05 100644 --- a/Makefile +++ b/Makefile @@ -134,7 +134,7 @@ endif sudo CGO_LDFLAGS="$(CGO_LDFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" $(GO) test -race -coverprofile=coverage-data.txt -covermode=atomic -mod=vendor -v github.com/sonic-net/sonic-gnmi/sonic_data_client sudo CGO_LDFLAGS="$(CGO_LDFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" $(GO) test -race -coverprofile=coverage-dbus.txt -covermode=atomic -mod=vendor -v github.com/sonic-net/sonic-gnmi/sonic_service_client sudo CGO_LDFLAGS="$(CGO_LDFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" $(TESTENV) $(GO) test -race -coverprofile=coverage-translutils.txt -covermode=atomic -mod=vendor -v github.com/sonic-net/sonic-gnmi/transl_utils - $(GO) install github.com/axw/gocov/gocov@latest + $(GO) install github.com/axw/gocov/gocov@v1.1.0 $(GO) install github.com/AlekSi/gocov-xml@latest $(GO) mod vendor gocov convert coverage-*.txt | gocov-xml -source $(shell pwd) > coverage.xml