k3s/hack/make-rules
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
..
helpers Add sample CustomResourceDefinition controller 2017-10-19 00:21:57 +01:00
BUILD Remove all traces of federation 2017-10-26 13:37:37 -07:00
Makefile.manifest Make the pause image a manifest list 2018-01-24 02:10:45 -05:00
build.sh
clean.sh Move make clean to a static list 2017-09-29 12:36:18 -07:00
cross.sh Add a KUBERNETES_NODE_* section to build kubelet/kube-proxy for windows 2016-12-17 21:07:18 -08:00
make-help.sh Move scheduler code out of plugin directory. 2018-01-05 15:05:01 -08:00
test-cmd-util.sh Remove cassandra example 2018-02-26 20:39:07 -03:00
test-cmd.sh set default enabled admission plugins by official document 2018-02-22 11:02:02 +08:00
test-e2e-node.sh use node-e2e framework for testing cadvisor 2018-01-31 10:14:54 -08:00
test-integration.sh Allow integration test timeout override. 2017-12-21 10:55:09 -08:00
test-kubeadm-cmd.sh kubeadm: updated cmd tests as discussed in SIG 2017-02-07 12:47:07 -08:00
test.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
update.sh Force use of Makefile for update 2018-01-22 15:11:16 -08:00
verify.sh Add test/typecheck, a fast typecheck for all build platforms. 2018-02-27 13:53:32 -08:00
vet.sh Merge pull request #46923 from dims/nuke-wrapper-go-flags 2017-06-22 20:26:29 -07:00