-
Notifications
You must be signed in to change notification settings - Fork 94
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
remove redundant tests #1677
remove redundant tests #1677
Changes from all commits
bb0481c
1e8ce21
6b48844
78a870e
ed9963c
7b237d4
747c88e
97c3aff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,8 @@ test: generate fmt vet | |
# Go tests that require a K8s instance | ||
# TODOLATER: merge with test, so we get unified coverage reports? it'll add 21~sec to the test job though... | ||
.PHONY: test-integration | ||
test-integration: | ||
go test -v --tags "integration exclude_graphdriver_devicemapper exclude_graphdriver_btrfs" ${BUILDPATHS} | ||
test-integration: generate fmt vet | ||
go test -v --tags="integration exclude_graphdriver_devicemapper exclude_graphdriver_btrfs" ${BUILDPATHS} | ||
|
||
.PHONY: preflight-e2e-test | ||
preflight-e2e-test: | ||
|
@@ -237,18 +237,6 @@ scan: | |
--ignore-unfixed \ | ||
./ | ||
|
||
.PHONY: lint | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't the aim not to run golangci-lint in CI? I think we want to keep this, for manually running it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the message we got was that "Org wide, we are not recommending or using golangci-lint". As per this, I've removed it entirely. The results aren't that useful to us. |
||
lint: vet | ||
golangci-lint run --new -c .golangci.yaml --build-tags ${BUILDTAGS} ${BUILDPATHS} | ||
|
||
.PHONY: lint-and-fix | ||
lint-and-fix: fmt vet | ||
golangci-lint run --new --fix -c .golangci.yaml --build-tags ${BUILDTAGS} ${BUILDPATHS} | ||
|
||
.PHONY: install-golangci-lint | ||
install-golangci-lint: | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION} | ||
|
||
.PHONY: watch | ||
watch: npm-install | ||
bin/watch.js | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we ought to leave at least
make vet
. we could add it to an existing action such astest-integration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go test
runs vet as step 1 regardless, iiuc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://pkg.go.dev/cmd/go/internal/test "As part of building a test binary, go test runs go vet on the package
and its test source files" - though it does run a subset.
The Makefile that is called with
make test
includes themake vet
as a dependency, I'll add the same tomake test-integration
.