Skip to content

Commit

Permalink
Merge pull request #2062 from saschagrunert/updates
Browse files Browse the repository at this point in the history
Bump golang, linter and other third party deps
  • Loading branch information
openshift-merge-bot[bot] authored Apr 4, 2024
2 parents f2eb93a + 8d2e1e4 commit 5e40458
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always
GO_VERSION: '1.21'
ACTION_MSRV_TOOLCHAIN: 1.71.0
NIX_VERSION: '2.17.0'
ACTION_MSRV_TOOLCHAIN: 1.75.0
NIX_VERSION: '2.21.0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v4
with:
version: v1.55.0
version: v1.56.2
only-new-issues: true

get-script:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
CARGO_TERM_COLOR: always
GO_VERSION: '1.21'
ACTION_MSRV_TOOLCHAIN: 1.71.0
ACTION_MSRV_TOOLCHAIN: 1.75.0

jobs:
build:
Expand Down
16 changes: 8 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ linters:
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoinits
- gochecksumtype
- gocognit
- goconst
- gocritic
Expand All @@ -52,6 +53,7 @@ linters:
- govet
- grouper
- importas
- inamedparam
- ineffassign
- interfacebloat
- ireturn
Expand All @@ -70,19 +72,24 @@ linters:
- noctx
- nolintlint
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testableexamples
- testifylint
- testpackage
- thelper
- tparallel
Expand All @@ -96,12 +103,6 @@ linters:
- whitespace
- wrapcheck
- zerologlint
- gochecksumtype
- inamedparam
- perfsprint
- protogetter
- sloglint
- testifylint
# - depguard
# - exhaustruct
# - gochecknoglobals
Expand Down Expand Up @@ -145,6 +146,7 @@ linters-settings:
- badLock
- badRegexp
- badSorting
- badSyncOnceFunc
- boolExprSimplify
- builtinShadow
- builtinShadowDecl
Expand Down Expand Up @@ -210,7 +212,6 @@ linters-settings:
- sliceClear
- sloppyLen
- sloppyReassign
- sloppyTestFuncName
- sloppyTypeAssert
- sortSlice
- sprintfQuotedString
Expand All @@ -220,7 +221,6 @@ linters-settings:
- stringsCompare
- switchTrue
- syncMapLoadAndDelete
- timeCmpSimplify
- timeExprSimplify
- todoCommentWithoutDetail
- tooManyResultsChecker
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ TEST_FLAGS ?=
PACKAGE_NAME ?= $(shell cargo metadata --no-deps --format-version 1 | jq -r '.packages[2] | [ .name, .version ] | join("-v")')
PREFIX ?= /usr
CI_TAG ?=
GOLANGCI_LINT_VERSION := v1.55.0
ZEITGEIST_VERSION := v0.4.1
GOLANGCI_LINT_VERSION := v1.56.2
ZEITGEIST_VERSION := v0.4.4

default:
cargo build
Expand Down Expand Up @@ -55,7 +55,7 @@ integration-static: .install.ginkgo # It needs to be release so we correctly tes
$(MAKE) release-static; \
fi && \
export RUNTIME_BINARY="$(RUNTIME_PATH)" && \
export MAX_RSS_KB=7500 && \
export MAX_RSS_KB=9500 && \
sudo -E "$(GOTOOLS_BINDIR)/ginkgo" $(TEST_FLAGS) $(GINKGO_FLAGS)

.install.ginkgo:
Expand All @@ -69,7 +69,7 @@ integration-static: .install.ginkgo # It needs to be release so we correctly tes
$(GOTOOLS_BINDIR)/zeitgeist:
mkdir -p $(GOTOOLS_BINDIR)
curl -sSfL -o $(GOTOOLS_BINDIR)/zeitgeist \
https://github.com/kubernetes-sigs/zeitgeist/releases/download/$(ZEITGEIST_VERSION)/zeitgeist_$(ZEITGEIST_VERSION:v%=%)_linux_amd64
https://storage.googleapis.com/k8s-artifacts-sig-release/kubernetes-sigs/zeitgeist/$(ZEITGEIST_VERSION)/zeitgeist-amd64-linux
chmod +x $(GOTOOLS_BINDIR)/zeitgeist

clean:
Expand Down
8 changes: 4 additions & 4 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ dependencies:
match: GO_VERSION

- name: rust
version: 1.71.0
version: 1.75.0
refPaths:
- path: .github/workflows/ci.yml
match: ACTION_MSRV_TOOLCHAIN
- path: .github/workflows/release.yml
match: ACTION_MSRV_TOOLCHAIN

- name: golangci-lint
version: 1.55.0
version: 1.56.2
refPaths:
- path: .github/workflows/ci.yml
match: version
- path: Makefile
match: GOLANGCI_LINT_VERSION

- name: zeitgeist
version: 0.4.1
version: 0.4.4
refPaths:
- path: Makefile
match: ZEITGEIST_VERSION
Expand All @@ -39,7 +39,7 @@ dependencies:
match: JAEGER_IMG

- name: nix
version: 2.17.0
version: 2.21.0
refPaths:
- path: .github/workflows/ci.yml
match: NIX_VERSION
1 change: 1 addition & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (c *ConmonClient) startSpan(ctx context.Context, name string) (context.Cont
}
const prefix = "conmonrs-client: "

//nolint:spancheck // https://github.com/jjti/go-spancheck/issues/7
return c.tracer.Start(ctx, prefix+name, trace.WithSpanKind(trace.SpanKindClient))
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/remote_fds.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
type serverError string

func (s serverError) Error() string {
return fmt.Sprintf("server error: %s", string(s))
return "server error: " + string(s)
}

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
busyboxDest = filepath.Join(busyboxDestDir, "busybox")
runtimePath = os.Getenv("RUNTIME_BINARY")
conmonPath = os.Getenv(conmonBinaryKey)
maxRSSKB = 7500
maxRSSKB = 9500
)

// TestConmonClient runs the created specs.
Expand Down

0 comments on commit 5e40458

Please sign in to comment.