Skip to content

Commit 741b498

Browse files
authored
Merge pull request #983 from marquiz/backports/release-0.8-981
[release-0.8] Bump builds to use Golang v1.19.6
2 parents b340806 + 9c5788c commit 741b498

File tree

13 files changed

+43
-43
lines changed

13 files changed

+43
-43
lines changed

.github/workflows/verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
- name: Set up Go
1111
uses: actions/setup-go@v1
1212
with:
13-
go-version: 1.18
13+
go-version: 1.19
1414
id: go
1515

1616
- name: Check out code into the Go module directory
1717
uses: actions/checkout@v1
1818

1919
- name: Install golangci-lint
20-
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
20+
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2
2121

2222
- name: Gofmt
2323
run: make format

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GO_FMT := gofmt
1111
GO_CYCLO := gocyclo
1212
GO_LINT := golint
1313
GO_CILINT := golangci-lint
14-
GO_VERSION ?= 1.18.9
14+
GO_VERSION ?= 1.19.6
1515
GOLICENSES_VERSION ?= v1.5.0
1616

1717
# TEST_TAGS is the set of extra build tags passed for tests.
@@ -21,7 +21,7 @@ GO_TEST := $(GO_CMD) test $(GO_PARALLEL) -tags $(TEST_TAGS)
2121
GO_VET := $(GO_CMD) vet -tags $(TEST_TAGS)
2222

2323
# Disable some golangci_lint checkers for now until we have an more acceptable baseline...
24-
GO_CILINT_CHECKERS := -D unused,staticcheck,errcheck,deadcode,structcheck,gosimple -E golint,gofmt
24+
GO_CILINT_CHECKERS := -D unused,staticcheck,errcheck,deadcode,structcheck,gosimple -E revive,gofmt
2525
GO_CILINT_RUNFLAGS := --build-tags $(TEST_TAGS)
2626

2727
# Protoc compiler and protobuf definitions we might need to recompile.

cmd/cri-resmgr-agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.18
1+
ARG GO_VERSION=1.19
22

33
FROM golang:${GO_VERSION}-bullseye as builder
44

cmd/cri-resmgr-webhook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.18
1+
ARG GO_VERSION=1.19
22

33
FROM golang:${GO_VERSION}-bullseye as builder
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/intel/cri-resource-manager
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
contrib.go.opencensus.io/exporter/jaeger v0.2.1

pkg/apis/resmgr/generated/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/resmgr/generated/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/avx/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func NewCollector() (prometheus.Collector, error) {
200200
progVer := spec.Programs["tracepoint__x86_fpu_regs_deactivated"].KernelVersion
201201

202202
if hostVer < progVer {
203-
return nil, errors.Wrapf(err, "The host kernel version (v%s) is too old to run the AVX512 collector program. Minimum version is v%s.", kernelVersionStr(hostVer), kernelVersionStr(progVer))
203+
return nil, errors.Wrapf(err, "The host kernel version (v%s) is too old to run the AVX512 collector program. Minimum version is v%s", kernelVersionStr(hostVer), kernelVersionStr(progVer))
204204
}
205205

206206
collection, err := bpf.NewCollection(spec)

pkg/blockio/blockio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/intel/cri-resource-manager/pkg/testutils"
2525
)
2626

27-
var knownIOSchedulers map[string]bool = map[string]bool{
27+
var knownIOSchedulers = map[string]bool{
2828
"bfq": true,
2929
"cfq": true,
3030
"deadline": true,

pkg/cgroups/cgroupblkio.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ var blkioThrottleWriteIOPSFiles = []string{"blkio.throttle.write_iops_device"}
4747
// Effects of Weight and Rate values in SetBlkioParameters():
4848
// Value | Effect
4949
// -------+-------------------------------------------------------------------
50-
// -1 | Do not write to cgroups, value is missing
51-
// 0 | Write to cgroups, will remove the setting as specified in cgroups blkio interface
52-
// other | Write to cgroups, sets the value
50+
//
51+
// -1 | Do not write to cgroups, value is missing
52+
// 0 | Write to cgroups, will remove the setting as specified in cgroups blkio interface
53+
// other | Write to cgroups, sets the value
5354
type OciBlockIOParameters struct {
5455
Weight int64
5556
WeightDevice OciDeviceWeights

0 commit comments

Comments
 (0)