1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00

Merge pull request #1235 from marquiz/devel/logging

scripts/test-infra: add logcheck to verify script
This commit is contained in:
Kubernetes Prow Robot 2023-05-31 08:05:46 -07:00 committed by GitHub
commit d64398f85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
-structured sigs.k8s.io/node-feature-discovery/pkg/utils/grpc_log.go

View file

@ -1,5 +1,7 @@
#!/bin/bash -e
this_dir=`dirname $0`
# Install deps
gobinpath="$(go env GOPATH)/bin"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.52.2
@ -15,6 +17,8 @@ curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
go install sigs.k8s.io/logtools/logcheck@v0.5.0
# Run verify steps
echo "Checking gofmt"
make gofmt-verify
@ -25,6 +29,9 @@ make ci-lint
echo "Running Helm lint"
make helm-lint
echo "Running logcheck"
logcheck -config "${this_dir}/logcheck.conf" ./cmd/... ./pkg/... ./source/...
echo "Running unit tests"
make test