Skip to content

Commit

Permalink
build: remove cicheck (#2553)
Browse files Browse the repository at this point in the history
Make cicheck is equvalent to shortcheck due to wrong redis build tag
use, see #1854

This change removes redis build tag, build comments and replaces cicheck
with the shortcheck target.

Fixes #1854

Signed-off-by: Alexander Yastrebov <[email protected]>
  • Loading branch information
AlexanderYastrebov authored Aug 31, 2023
1 parent 3c2525e commit 430106d
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 33 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
- run: go version
- run: make deps
- run: make check-fmt
- run: make build
- run: make vet
- run: make staticcheck
- run: make check-race
- run: make cicheck
- run: make osv-scanner
- run: make gosec
- run: make govulncheck
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
- run: make check-fmt
- run: make vet
- run: make staticcheck
- run: make cicheck
- run: make shortcheck
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ check: build check-plugins ## run all tests
shortcheck: build check-plugins fixlimits ## run all short tests
go test -test.short ./...

.PHONY: cicheck
cicheck: build check-plugins ## run all short and redis tests
go test -tags=redis -test.short ./...

.PHONY: check-race
check-race: build ## run all short tests with race checker
go test -race -test.short ./...
Expand Down
2 changes: 0 additions & 2 deletions circuit/registry_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* +build !race */

package circuit

import (
Expand Down
3 changes: 0 additions & 3 deletions dataclients/routestring/example_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race
// +build !race

package routestring_test

import (
Expand Down
2 changes: 1 addition & 1 deletion delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pipeline:
fi
export IMAGE MULTIARCH_IMAGE
make deps cicheck staticcheck gosec
make deps check-fmt vet staticcheck gosec shortcheck
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
echo "Creating git tag: ${RELEASE_VERSION}"
Expand Down
3 changes: 0 additions & 3 deletions etcd/etcdtime_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race
// +build !race

package etcd

import (
Expand Down
2 changes: 0 additions & 2 deletions metrics/codahalenorace_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* +build !race */

package metrics

import (
Expand Down
3 changes: 0 additions & 3 deletions plugins_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race
// +build !race

package skipper

import "testing"
Expand Down
3 changes: 0 additions & 3 deletions proxy/backendratelimit_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race || redis
// +build !race redis

package proxy_test

import (
Expand Down
3 changes: 0 additions & 3 deletions proxy/breaker_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race
// +build !race

package proxy_test

import (
Expand Down
3 changes: 0 additions & 3 deletions ratelimit/cluster_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race || redis
// +build !race redis

package ratelimit

import (
Expand Down
3 changes: 0 additions & 3 deletions ratelimit/swim_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build !race
// +build !race

package ratelimit

import (
Expand Down

0 comments on commit 430106d

Please sign in to comment.