Skip to content

Commit

Permalink
remove skips for fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Train <ztrain@uber.com>
  • Loading branch information
zmt committed Mar 11, 2022
1 parent 851c266 commit ecff992
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ if [ -n "${COVERALLS_TOKEN}" ]; then
go get github.com/mattn/goveralls@v0.0.7
fi

COVERPROFILE="${COVERPROFILE}" \
SKIP_FLAKY_TESTS_UNDER_RACE_CONDITION=1 \
GOVERBOSE=1 \
make race-test
COVERPROFILE="${COVERPROFILE}" make ci-race-test

if [ -n "${COVERALLS_TOKEN}" ]; then
"$(go env GOPATH)"/bin/goveralls -coverprofile="${COVERPROFILE}" \
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,16 @@ endif

race-test: | go-check
ifneq ($(COVERPROFILE),)
$(E)SKIP_FLAKY_TESTS=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 -coverprofile="$(COVERPROFILE)" ./...
$(E)$(go_path) go test $(go_flags) $(go_test_flags) -race -coverprofile="$(COVERPROFILE)" ./...
else
$(E)SKIP_FLAKY_TESTS=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 ./...
$(E)$(go_path) go test $(go_flags) $(go_test_flags) -race ./...
endif

ci-race-test: | go-check
ifneq ($(COVERPROFILE),)
$(E)SKIP_FLAKY_TESTS_UNDER_RACE_TEST=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 -coverprofile="$(COVERPROFILE)" ./...
else
$(E)SKIP_FLAKY_TESTS_UNDER_RACE_TEST=1 $(go_path) go test $(go_flags) $(go_test_flags) -race -count=1 ./...
endif

integration:
Expand Down
6 changes: 0 additions & 6 deletions pkg/agent/plugin/nodeattestor/tpmdevid/devid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
server_devid "github.com/spiffe/spire/pkg/server/plugin/nodeattestor/tpmdevid"
"github.com/spiffe/spire/test/plugintest"
"github.com/spiffe/spire/test/tpmsimulator"
"github.com/spiffe/spire/test/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -347,11 +346,6 @@ func TestConfigureWindows(t *testing.T) {
}

func TestAidAttestationFailures(t *testing.T) {
util.SkipFlakyTestUnderRaceDetectorWithFiledIssue(
t,
"https://github.com/spiffe/spire/issues/2711",
)

tests := []struct {
name string
openTPMFail bool
Expand Down
6 changes: 0 additions & 6 deletions pkg/agent/svid/rotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ import (
"github.com/spiffe/spire/test/clock"
"github.com/spiffe/spire/test/fakes/fakeagentkeymanager"
"github.com/spiffe/spire/test/testca"
"github.com/spiffe/spire/test/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestRotator(t *testing.T) {
util.SkipFlakyTestUnderRaceDetectorWithFiledIssue(
t,
"https://github.com/spiffe/spire/issues/2713",
)

caCert, caKey := testca.CreateCACertificate(t, nil, nil)

for _, tt := range []struct {
Expand Down
6 changes: 0 additions & 6 deletions pkg/server/plugin/keymanager/awskms/awskms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
keymanagertest "github.com/spiffe/spire/pkg/server/plugin/keymanager/test"
"github.com/spiffe/spire/test/plugintest"
"github.com/spiffe/spire/test/spiretest"
"github.com/spiffe/spire/test/util"
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"
)
Expand Down Expand Up @@ -344,11 +343,6 @@ func TestConfigure(t *testing.T) {
}

func TestGenerateKey(t *testing.T) {
util.SkipFlakyTestUnderRaceDetectorWithFiledIssue(
t,
"https://github.com/spiffe/spire/issues/2714",
)

for _, tt := range []struct {
name string
err string
Expand Down

0 comments on commit ecff992

Please sign in to comment.