From 42de08bb4e66265e83c508f43d185eeb0b6d567c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20L=C3=B3pez?= <1953782+julio-lopez@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:52:21 -0700 Subject: [PATCH] chore(ci): silence `TestIndexBlobManagerStress` output on failure (#4036) Try again: Partially reverts commit 2d2e0314d1af8ac16aabcd28f25485f4d78e8c9d. Changes the approach slightly: - Use pkgname format for gotestsum - Test index blob v0 separately Ref: - #4028 - #4035 --- .github/workflows/tests.yml | 2 ++ Makefile | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec1499b1c..d5dd0699b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,6 +59,8 @@ jobs: if: ${{ contains(matrix.os, 'macos') }} - name: Setup run: make -j4 ci-setup + - name: Test Blob Index Manager V0 + run: make test-index-blob-v0 - name: Tests run: make ci-tests - name: Integration Tests diff --git a/Makefile b/Makefile index 1f8012406..41f638cc2 100644 --- a/Makefile +++ b/Makefile @@ -276,9 +276,13 @@ test-with-coverage: $(gotestsum) $(TESTING_ACTION_EXE) test: GOTESTSUM_FLAGS=--format=$(GOTESTSUM_FORMAT) --no-summary=skipped --jsonfile=.tmp.unit-tests.json test: export TESTING_ACTION_EXE ?= $(TESTING_ACTION_EXE) test: $(gotestsum) $(TESTING_ACTION_EXE) - $(GO_TEST) $(UNIT_TEST_RACE_FLAGS) -tags testing -count=$(REPEAT_TEST) -timeout $(UNIT_TESTS_TIMEOUT) ./... + $(GO_TEST) $(UNIT_TEST_RACE_FLAGS) -tags testing -count=$(REPEAT_TEST) -timeout $(UNIT_TESTS_TIMEOUT) -skip '^TestIndexBlobManagerStress$$' ./... -$(gotestsum) tool slowest --jsonfile .tmp.unit-tests.json --threshold 1000ms +test-index-blob-v0: GOTESTSUM_FLAGS=--format=pkgname --no-summary=output,skipped +test-index-blob-v0: $(gotestsum) $(TESTING_ACTION_EXE) + $(GO_TEST) $(UNIT_TEST_RACE_FLAGS) -tags testing -count=$(REPEAT_TEST) -timeout $(UNIT_TESTS_TIMEOUT) -run '^TestIndexBlobManagerStress$$' ./repo/content/indexblob/... + provider-tests-deps: $(gotestsum) $(rclone) $(MINIO_MC_PATH) PROVIDER_TEST_TARGET=...