Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI jobs on v0.45 #3331

Merged
merged 6 commits into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ run:
linters-settings:
govet:
enable-all: true
golint:
min-confidence: 0
gofmt:
simplify: true
goimports:
Expand All @@ -17,12 +15,8 @@ linters:
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
- golint
- gofmt
- goimports
issues:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

GO := go
GOLANGCI_VER := v1.45.2
GOLANGCI_VER := v1.51.2
GO_TEST ?= $(GO) test $(or $(GO_FLAGS),-race)
arch ?= $(shell go env GOARCH)

Expand Down
2 changes: 1 addition & 1 deletion build/assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FORCE="${FORCE:-}" # Force assets to be rebuilt if FORCE=true

# Install while in a temp dir to avoid polluting go.mod/go.sum
pushd "${TMPDIR:-/tmp}" > /dev/null
go install github.com/kevinburke/go-bindata/go-bindata@latest
go install github.com/kevinburke/go-bindata/go-bindata@v3.24.0
popd > /dev/null

build_asset () {
Expand Down
2 changes: 1 addition & 1 deletion build/boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2016 Google Inc. All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion build/boilerplate/boilerplate.py.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright YEAR Google Inc. All Rights Reserved.
#
Expand Down
4 changes: 3 additions & 1 deletion build/integration-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function delete() {
trap delete EXIT INT TERM

function run_tests() {
BUILD_CMD="env GOOS=linux GOARCH=amd64 GO_FLAGS='$GO_FLAGS' ./build/build.sh && \

# Add safe.directory as workaround for https://github.com/actions/runner/issues/2033
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 && \
env GOOS=linux GOFLAGS='$GO_FLAGS' go test -c github.com/google/cadvisor/integration/tests/api && \
env GOOS=linux GOFLAGS='$GO_FLAGS' go test -c github.com/google/cadvisor/integration/tests/healthz"

Expand Down
5 changes: 2 additions & 3 deletions cmd/internal/pages/static/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions cmd/internal/pages/templates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (f *realFramework) ClientV2() *v2.Client {

func (a dockerActions) RunPause() string {
return a.Run(DockerRunArgs{
Image: "kubernetes/pause",
Image: "registry.k8s.io/pause",
})
}

Expand Down
6 changes: 3 additions & 3 deletions integration/tests/api/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func TestDockerContainerByName(t *testing.T) {

containerName := fmt.Sprintf("test-docker-container-by-name-%d", os.Getpid())
fm.Docker().Run(framework.DockerRunArgs{
Image: "kubernetes/pause",
Image: "registry.k8s.io/pause",
Args: []string{"--name", containerName},
})

Expand Down Expand Up @@ -150,7 +150,7 @@ func TestBasicDockerContainer(t *testing.T) {

containerName := fmt.Sprintf("test-basic-docker-container-%d", os.Getpid())
containerID := fm.Docker().Run(framework.DockerRunArgs{
Image: "kubernetes/pause",
Image: "registry.k8s.io/pause",
Args: []string{
"--name", containerName,
},
Expand Down Expand Up @@ -183,7 +183,7 @@ func TestDockerContainerSpec(t *testing.T) {
cpuShares = uint64(2048)
cpuMask = "0"
memoryLimit = uint64(1 << 30) // 1GB
image = "kubernetes/pause"
image = "registry.k8s.io/pause"
env = map[string]string{"test_var": "FOO"}
labels = map[string]string{"bar": "baz"}
)
Expand Down
Loading