Skip to content

Commit 74fdeaa

Browse files
authored
Merge pull request #19911 from joshjms/release-3.4-pull-etcd-verify
[release-3.4] Update make verify for prow job
2 parents f1c0107 + a6c1c23 commit 74fdeaa

File tree

4 files changed

+49
-61
lines changed

4 files changed

+49
-61
lines changed

.github/workflows/static-analysis.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
fail-fast: false
88
matrix:
99
target:
10-
- linux-amd64-fmt
1110
- linux-amd64-integration-1-cpu
1211
- linux-amd64-integration-2-cpu
1312
- linux-amd64-integration-4-cpu
@@ -34,9 +33,6 @@ jobs:
3433
echo ${GOROOT}
3534
echo "${TARGET}"
3635
case "${TARGET}" in
37-
linux-amd64-fmt)
38-
GOARCH=amd64 PASSES='fmt bom dep' ./test
39-
;;
4036
linux-amd64-integration-1-cpu)
4137
make install-gofail
4238
GOARCH=amd64 CPU=1 RACE='false' FAILPOINTS='true' make test-integration

Makefile

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,55 @@ gofail-disable: install-gofail
555555
PASSES="toggle_failpoints" ./test
556556

557557
.PHONY: verify
558-
verify: verify-go-versions
558+
verify: verify-go-versions verify-gofmt verify-bom verify-dep verify-shellcheck verify-goword verify-govet verify-revive verify-license-header verify-receiver-name verify-markdown-you verify-markdown-marker
559+
560+
.PHONY: verify-shellcheck
561+
verify-shellcheck:
562+
PASSES="shellcheck" ./test
563+
564+
.PHONY: verify-markdown-you
565+
verify-markdown-you:
566+
PASSES="markdown_you" ./test
567+
568+
.PHONY: verify-markdown-marker
569+
verify-markdown-marker:
570+
PASSES="markdown_marker" ./test
571+
572+
.PHONY: verify-goword
573+
verify-goword:
574+
PASSES="goword" ./test
575+
576+
.PHONY: verify-gofmt
577+
verify-gofmt:
578+
PASSES="gofmt" ./test
579+
580+
.PHONY: verify-govet
581+
verify-govet:
582+
PASSES="govet" ./test
583+
584+
.PHONY: verify-revive
585+
verify-revive:
586+
PASSES="revive" ./test
587+
588+
.PHONY: verify-license-header
589+
verify-license-header:
590+
PASSES="license_header" ./test
591+
592+
.PHONY: verify-receiver-name
593+
verify-receiver-name:
594+
PASSES="receiver_name" ./test
595+
596+
.PHONY: verify-commit-title
597+
verify-commit-title:
598+
PASSES="commit_title" ./test
599+
600+
.PHONY: verify-bom
601+
verify-bom:
602+
PASSES="bom" ./test
603+
604+
.PHONY: verify-dep
605+
verify-dep:
606+
PASSES="dep" ./test
559607

560608
.PHONY: verify-go-versions
561609
verify-go-versions:

test

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -698,30 +698,6 @@ function commit_title_pass {
698698
done
699699
}
700700

701-
# tools gosimple,unused,staticheck,unconvert,ineffasign,nakedret
702-
# are not module-aware. See https://github.com/golang/go/issues/24661
703-
# The module-aware versions need to be used when they become available
704-
function fmt_pass {
705-
toggle_failpoints disable
706-
707-
# TODO: add "unparam"
708-
for p in shellcheck \
709-
markdown_you \
710-
markdown_marker \
711-
goword \
712-
gofmt \
713-
govet \
714-
revive \
715-
license_header \
716-
receiver_name \
717-
commit_title \
718-
; do
719-
echo "'$p' started at $(date)"
720-
"${p}"_pass "$@"
721-
echo "'$p' completed at $(date)"
722-
done
723-
}
724-
725701
function bom_pass {
726702
if ! command -v license-bill-of-materials >/dev/null; then
727703
echo "Skipping bom..."

0 commit comments

Comments
 (0)