Skip to content

Commit 174654c

Browse files
authored
Merge pull request #366 from bookingcom/grzkv/ci_fix
Fixing errors in CI that succeeds.
2 parents 657db88 + 776d8dd commit 174654c

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
run: sudo apt-get install libcairo2-dev -y
2121
- name: checkout code
2222
uses: actions/checkout@v2
23-
- name: check
24-
run: make all check
23+
- name: test
24+
run: make test
2525
- name: integration test
2626
run: tests/system_test.sh
2727
golangci:

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,11 @@ build:
3232
$(PKGCONF) $(GO) build -mod vendor $(TAGS) $(LDFLAGS) $(GCFLAGS) $(PKG_CARBONAPI)
3333
$(PKGCONF) $(GO) build -mod vendor $(TAGS) $(LDFLAGS) $(GCFLAGS) $(PKG_CARBONZIPPER)
3434

35-
vet:
36-
go vet -composites=false ./...
37-
3835
lint:
3936
golangci-lint run
4037

41-
check: test vet
42-
4338
test:
44-
$(PKGCONF) $(GO) test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
39+
$(PKGCONF) $(GO) test ./... -race -coverprofile=coverage.txt -covermode=atomic
4540

4641
clean:
4742
rm -f carbonapi carbonzipper

app/carbonzipper/http_handlers_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,6 @@ func TestInfoSingleBackend(t *testing.T) {
925925
t.Fatalf("got code %d expected %d for %s", w.Code, tst.code, tst.path)
926926
}
927927

928-
t.Log(w.Body.String())
929-
930928
if w.Body.String() != tst.body {
931929
t.Fatalf("unexpected body: want %q got %q", tst.body, w.Body.String())
932930
}

pkg/parser/parser_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package parser
22

33
import (
44
"reflect"
5-
"regexp"
65
"testing"
76

87
"github.com/davecgh/go-spew/spew"
@@ -434,8 +433,6 @@ func TestParseExpr(t *testing.T) {
434433
// for fixing golangci-lint: Using the variable on range scope `tt` in function literal
435434
tt := ttr
436435
t.Run(tt.s, func(t *testing.T) {
437-
t.Logf("run case: go test -run 'TestParseExpr/%s'", regexp.QuoteMeta(tt.s))
438-
439436
e, _, err := ParseExpr(tt.s)
440437
if err != tt.err {
441438
t.Errorf(`parse for %+v expects error "%v" but received "%v"`, tt.s, tt.err, err)

0 commit comments

Comments
 (0)