File tree Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 33 linters-settings :
44 govet :
55 enable-all : true
6- golint :
7- min-confidence : 0
86 gofmt :
97 simplify : true
108 goimports :
@@ -17,12 +15,8 @@ linters:
1715 - staticcheck
1816 - unused
1917 - gosimple
20- - structcheck
21- - varcheck
2218 - ineffassign
23- - deadcode
2419 - typecheck
25- - golint
2620 - gofmt
2721 - goimports
2822issues :
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515GO := go
16- GOLANGCI_VER := v1.48.0
16+ GOLANGCI_VER := v1.51.2
1717GO_TEST ?= $(GO ) test $(or $(GO_FLAGS ) ,-race)
1818arch ?= $(shell go env GOARCH)
1919
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ FORCE="${FORCE:-}" # Force assets to be rebuilt if FORCE=true
3030
3131# Install while in a temp dir to avoid polluting go.mod/go.sum
3232pushd " ${TMPDIR:-/ tmp} " > /dev/null
33- go install github.com/kevinburke/go-bindata/go-bindata@latest
33+ go install github.com/kevinburke/go-bindata/go-bindata@v3.24.0
3434popd > /dev/null
3535
3636build_asset () {
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
1+ #!/usr/bin/env python3
22
33# Copyright 2016 Google Inc. All Rights Reserved.
44#
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
1+ #!/usr/bin/env python3
22
33# Copyright YEAR Google Inc. All Rights Reserved.
44#
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ function delete() {
2929trap delete EXIT INT TERM
3030
3131function run_tests() {
32- BUILD_CMD=" env GOOS=linux GOARCH=amd64 GO_FLAGS='$GO_FLAGS ' ./build/build.sh && \
32+
33+ # Add safe.directory as workaround for https://github.com/actions/runner/issues/2033
34+ BUILD_CMD=" git config --global safe.directory /go/src/github.com/google/cadvisor && env GOOS=linux GOARCH=amd64 GO_FLAGS='$GO_FLAGS ' ./build/build.sh && \
3335 env GOOS=linux GOFLAGS='$GO_FLAGS ' go test -c github.com/google/cadvisor/integration/tests/api && \
3436 env GOOS=linux GOFLAGS='$GO_FLAGS ' go test -c github.com/google/cadvisor/integration/tests/healthz"
3537
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ func (f *realFramework) ClientV2() *v2.Client {
213213
214214func (a dockerActions ) RunPause () string {
215215 return a .Run (DockerRunArgs {
216- Image : "kubernetes /pause" ,
216+ Image : "registry.k8s.io /pause" ,
217217 })
218218}
219219
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func TestDockerContainerByName(t *testing.T) {
9090
9191 containerName := fmt .Sprintf ("test-docker-container-by-name-%d" , os .Getpid ())
9292 fm .Docker ().Run (framework.DockerRunArgs {
93- Image : "kubernetes /pause" ,
93+ Image : "registry.k8s.io /pause" ,
9494 Args : []string {"--name" , containerName },
9595 })
9696
@@ -150,7 +150,7 @@ func TestBasicDockerContainer(t *testing.T) {
150150
151151 containerName := fmt .Sprintf ("test-basic-docker-container-%d" , os .Getpid ())
152152 containerID := fm .Docker ().Run (framework.DockerRunArgs {
153- Image : "kubernetes /pause" ,
153+ Image : "registry.k8s.io /pause" ,
154154 Args : []string {
155155 "--name" , containerName ,
156156 },
@@ -183,7 +183,7 @@ func TestDockerContainerSpec(t *testing.T) {
183183 cpuShares = uint64 (2048 )
184184 cpuMask = "0"
185185 memoryLimit = uint64 (1 << 30 ) // 1GB
186- image = "kubernetes /pause"
186+ image = "registry.k8s.io /pause"
187187 env = map [string ]string {"test_var" : "FOO" }
188188 labels = map [string ]string {"bar" : "baz" }
189189 )
You can’t perform that action at this time.
0 commit comments