From 1496b2085a1532db477eaf954b7cb392d6ed32a9 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 22 Jul 2022 10:12:39 -0400 Subject: [PATCH 1/2] Run tests using Go 1.18 Signed-off-by: Jason Hall --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ed6794446f8..307c7e85e75 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,7 +23,7 @@ on: permissions: read-all env: - GO_VERSION: 1.17 + GO_VERSION: 1.18 jobs: unit-tests: From 641d44566f8a1110d9057ccd08767a843e0a58b6 Mon Sep 17 00:00:00 2001 From: Dan Lorenc Date: Sat, 13 Aug 2022 21:46:35 -0400 Subject: [PATCH 2/2] Suppress SHA1_RSA failures, these only occur in tests. We should fix this with new testdata but we're blocked on an upstream change. Signed-off-by: Dan Lorenc --- .github/workflows/tests.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 307c7e85e75..94d7438f790 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -60,12 +60,18 @@ jobs: go-version: ${{ env.GO_VERSION }} check-latest: true - name: Run Go tests + env: + # See #2091 for the issue describing this temp workaround. + GODEBUG: x509sha1=1 run: go test -covermode atomic -coverprofile coverage.txt $(go list ./... | grep -v third_party/) - name: Upload Coverage Report uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v2.1.0 with: env_vars: OS - name: Run Go tests w/ `-race` + env: + # See #2091 for the issue describing this temp workaround. + GODEBUG: x509sha1=1 if: ${{ runner.os == 'Linux' }} run: go test -race $(go list ./... | grep -v third_party/) @@ -103,6 +109,9 @@ jobs: kind create cluster - name: Run end-to-end tests + env: + # See #2091 for the issue describing this temp workaround. + GODEBUG: x509sha1=1 run: ./test/e2e_test.sh - name: Collect diagnostics