Commit Graph

39 Commits

Author SHA1 Message Date
Davanum Srinivas
14a0e86d1d
Avoid running files-remake in verify-all
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-30 11:35:35 -04:00
Benjamin Elder
b24dbac09a add hack/verify-typecheck-providerless.sh 2019-12-04 22:30:23 -08:00
Kenichi Omichi
1b165fc440 Enable verify-import-aliases check in CI
To block violation of import-aliases rule, this enables
verify-import-aliases in CI system.
2019-11-08 19:17:39 +00:00
Lubomir I. Ivanov
2c54160021 remove usage of the test/test_owners.* files
- remove update_owners.py; seems responsible for generating
test_owners files
- remove the existing test/test_owners.* files
- remove verify-test-owners.sh and references to it
2019-10-18 03:01:21 +03:00
Davanum Srinivas
9f0050cb44
verify import aliases
- Added scripts for update and verify
- golang AST code for scanning and fixing imports
- default regex allows it to run on just test/e2e.* file paths
- exclude verify-import-aliases.sh from running in CI jobs

Change-Id: I7f9c76f5525fb9a26ea2be60ea69356362957998
Co-Authored-By: Aaron Crickenberger <spiffxp@google.com>
2019-06-15 22:31:39 -04:00
toyoda
9a5655c915 fix shellcheck failures in /hack/make-rules/update.sh,verify.sh 2019-05-07 14:27:26 +09:00
Kubernetes Prow Robot
92562d5bc0
Merge pull request #76253 from YoubingLi/bugfix
Fixes # 76094 - Check the content of WHAT for Makefile's verify target
2019-04-15 18:05:05 -07:00
Youbing Li
8a56ebed82 Check the content of WHAT for Makefile's verify target 2019-04-08 22:53:23 -04:00
Christoph Blecker
668a288595
Remove unneeded scripts 2019-04-07 12:08:41 -07:00
Jordan Liggitt
2ea3cbdcbc Update hack scripts to use go mod 2019-04-03 10:19:39 -04:00
Roy Lenferink
b18bc2ea79 Improved some more bash script variable definitions 2019-01-21 23:11:58 +01:00
Sen Lu
7e76524766 add an env to skip readonly-packages check 2019-01-11 16:46:51 -08:00
Christoph Blecker
b19fb0a77e
Clean up artifacts variables in hack scripts 2018-12-19 15:17:13 -08:00
Christoph Blecker
d90ae78a86
Provide option to split godeps tests from main verify job 2018-12-11 16:42:45 -08:00
Jordan Liggitt
91980a0f61 Add verification script for test feature gate modification 2018-11-21 11:51:33 -05:00
Jordan Liggitt
3bd1824ed6
Add verify script for staging repo metadata files 2018-08-24 09:14:33 -04:00
Christoph Blecker
2b9022cf38
Add script to verify generated files 2018-07-05 14:06:54 -07:00
Matthias Bertschy
9b15af19b2 Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
Ryan Hitchman
d295ca1134 Add support for make verify WHAT=typecheck.
This will be used to make the typecheck job emit junit and avoids
duplicating the rest of the verify logic.
2018-03-01 15:03:24 -08:00
Ryan Hitchman
dd40e612dd Add test/typecheck, a fast typecheck for all build platforms.
Most of the time spent compiling is spent optimizing and linking
binary code. Most errors occur at the syntax or semantic (type) layers.
Go's compiler is importable as a normal package, so we can do fast
syntax and type checking for the 10 platforms we build on.

This currently takes ~6 minutes of CPU time (parallelized).

This makes presubmit cross builds superfluous, since it should catch
most cross-build breaks (generally Unix and 64-bit assumptions).

Example output:

$ time go run test/typecheck/main.go
type-checking:  linux/amd64, windows/386, darwin/amd64, linux/arm, linux/386, windows/amd64, linux/arm64, linux/ppc64le, linux/s390x, darwin/386
ERROR(windows/amd64) pkg/proxy/ipvs/proxier.go:1708:27: ENXIO not declared by package unix
ERROR(windows/386) pkg/proxy/ipvs/proxier.go:1708:27: ENXIO not declared by package unix

real	0m45.083s
user	6m15.504s
sys	1m14.000s
2018-02-27 13:53:32 -08:00
Di Xu
16a807aaef add spelling checking script 2018-02-23 09:33:14 +08:00
Di Xu
48388fec7e fix all the typos across the project 2018-02-11 11:04:14 +08:00
Christoph Blecker
f801f3f174
Change flags to variables so that they can be passed through make 2018-01-25 13:30:30 -08:00
Christoph Blecker
5fe4d279ca
Produce junit results for verify job 2018-01-25 13:30:25 -08:00
Slava Semushin
97bb6cb9c7 make quick-verify: make the output a bit more readable by showing script names without full paths. 2017-11-21 19:12:26 +01:00
Dr. Stefan Schimanski
d51d7fd26f hack: rename verify-{staging- -> }imports.sh 2017-10-25 13:31:56 +02:00
Tim Hockin
e73b27cbce Add debugging to the codegen process 2017-08-25 14:08:42 -07:00
dhilipkumars
f9d5abb75e Remove blank lines-review comments 2017-07-28 14:21:20 +05:30
dhilipkumars
43a2999581 Display list of failed tests to the user 2017-07-27 19:10:17 +05:30
Anthony Yeh
db869a6b0b
Add quick-verify make rule.
This is useful for humans to run to catch obvious problems before
pushing commits and waiting for CI to run verify checks.

Quick mode only runs a whitelist of verify scripts that are reasonably fast.
I set the initial bar arbitrarily at <10s each on my workstation.

The whole set runs in <30s for me, assuming I had already run `make` and
`hack/godep-restore.sh`. This is compared to the full `make verify`
which takes [I don't know how long because I gave up after 45min].
2017-07-12 16:29:31 -07:00
Anthony Yeh
e3fed1ce6d
Allow verify-sh to run in SILENT mode.
Because of nounset, it was impossible to run without -v.
2017-07-12 15:02:52 -07:00
Christoph Blecker
97783f9093
Run hack/verify-govet.sh as part of verify make target
This commit ensures that:
- go vet will be run as part of the make verify target
- the vet make-rule script won't be run directly, as generated_files won't be run in that case
- that go vet errors show up in the build log with a start time, finish time, and SUCCESS/FAILED message as part of the verify make rule script
2017-06-21 11:10:25 -07:00
Christoph Blecker
079abb9ec9
Exclude dockerized verify patterns 2017-05-31 18:08:16 -07:00
Dan Williams
b3705b6e35 hack/cluster: consolidate cluster/ utils to hack/lib/util.sh
Per Clayton's suggestion, move stuff from cluster/lib/util.sh to
hack/lib/util.sh.  Also consolidate ensure-temp-dir and use the
hack/lib/util.sh implementation rather than cluster/common.sh.
2017-03-30 22:34:46 -05:00
Dr. Stefan Schimanski
880cbd5d7b client-go: enable smoke compile test for examples 2017-02-02 20:28:32 +01:00
Jeff Grafton
05c09b1aa3 Disable verify-test-owners.sh and make go vet more obvious 2016-12-21 11:44:04 -08:00
Chao Xu
d3c0d04285 add update-staging-client-go.sh and verify-staging-client-go.sh;
disable verify-staging-client-go.sh until 1.5 code freeze
2016-10-29 14:20:39 -07:00
Maciej Szulik
2a2b46a105 Fix make verify 2016-07-25 15:34:00 +02:00
Tim Hockin
faeef5c4ae Use make as the main build tool
This allows us to start building real dependencies into Makefile.

Leave old hack/* scripts in place but advise to use 'make'.  There are a few
rules that call things like 'go run' or 'build/*' that I left as-is for now.
2016-07-12 21:52:00 -07:00