1193 Commits

Author SHA1 Message Date
Patrick Ohly
036f4bfe28 hack: fix KUBE_RACE in benchmark-dockerized.sh
This fixes the following issue in ci-benchmark-scheduler-perf-master:

    malformed import path " ": invalid char ' '

    FAIL	  [setup failed]

Setting the non-empty string with just a space was broken, the right way to
disable the race detector is with an empty KUBE_RACE variable. This worked
before when test-integration.sh unconditionally overwrote the KUBE_RACE
variable and stopped working when 6cb1488 started to keep whatever was
set by the caller.

This then caused an empty string to be passed as additional parameter to "go
test".
2025-06-05 15:08:35 +02:00
Benjamin Elder
3fcb26f017 reduce etcd install log noise 2025-04-15 15:18:22 -07:00
Benjamin Elder
3b3df8ba72 CI integration scripts: reduce log noise from installing etcd 2025-03-20 11:59:32 -07:00
Benjamin Elder
cf20c21ef8 Revert "stop overriding max concurrency in CI, let automax procs handle it"
This reverts changes from commit 9e42056a0d.

NOTE: this is not a clean revert bcause of further changes.
2025-03-14 09:42:04 -07:00
Benjamin Elder
1ddfc7bdce benchmark-dockerized.sh: don't redundantly install gotestsum
this is handled centrally by make test which is called by make test-integration which this script calls

only make test's implementation actually calls gotestsum, and it also handles installing if needed
2025-03-13 11:23:53 -07:00
Benjamin Elder
d798d86981 cleanup CI integration scripts
- stop setting ARTIFACTS from WORKSPACE, CI handles setting ARTIFACTS and WORKSPACE isn't used anymore (bazel?)
- stop cd-ing GOPATH, CI sets the working dir already and local users won't necessarily have GOPATH
- sop clobbering PATH with hardcoded assumptions, source install-etcd.sh instead (which updates PATH)
- don't redundantly set KUBE_COVER to the default
- pass logging env inline so the command can be pasted locally
- set -x so the command is visible
- add TODO about needing a wrapper script just to call install-etcd
2025-03-13 11:23:53 -07:00
Benjamin Elder
9e42056a0d stop overriding max concurrency in CI, let automax procs handle it 2025-03-12 13:45:48 -07:00
Kubernetes Prow Robot
7bd0477a95 Merge pull request #130337 from pohly/hack-jenkins-split
hack: split up test-dockerized.sh
2025-02-24 00:26:27 -08:00
Patrick Ohly
a20a959b2c hack: split up test-dockerized.sh
This enables testing command and integration tests separately in CI jobs. The
goal is to reduce pull-kubernetes-integration to testing really just the Go
test/integration tests and to add a pull-kubernetes-cmd job for command tests.

hack/jenkins/test-dockerized.sh does the same as before because some jobs will
probably continue to use it.
2025-02-22 09:39:54 +01:00
Jordan Liggitt
0ce48b5636 Honor KUBE_HACK_TOOLS_GOTOOLCHAIN 2025-02-14 13:01:59 -05:00
Tim Hockin
061c4f4f70 Stop setting GO111MODULE=off in tests 2024-09-25 10:00:57 -07:00
Tim Hockin
a0215badb8 Change pushd $d; go ...; popd to go -C $d ...
Just an annoyance in reading these scripts.
2024-03-02 14:40:10 -08:00
Jordan Liggitt
7cc6b724ab Defer builds to test-cmd and test-integration targets 2023-02-01 15:35:14 -05:00
Patrick Ohly
c6da602168 OWNERS: remove sig-testing-approvers
It's not used enough to add any real value. Instead, it obscures the real
ownership when someone looks at an OWNERS file where it is used.
2023-01-09 09:54:10 +01:00
Tim Hockin
70c1c795e8 Remove generated file rules in make
This is all covered by update-codegen.sh now.

The old `make generated_files` rule still exists, but just prints a
warning.
2022-10-04 08:50:30 -07:00
Patrick Ohly
41619ace15 stop using deprecated klog flags
Some scripts and tools still relied on the deprecated flags, the ones
which are about to be removed.

This is intentionally not a complete removal of all those flags in the entire
repo. This would lead to much more code churn also in places where commands
still accept the flags because they use klog directly.
2022-09-04 21:02:43 +02:00
Madhav Jivrajani
ae55bcda44 hack/jenkins: Remove GODEBUG workaround for sha1 changes
This commit undoes the GODEBUG=x509sha1=1 workaround.
The problem should be fixed in Go 1.18.1 now.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-04-05 20:41:19 +05:30
Madhav Jivrajani
b6c00355f8 hack/jenkins: set GODEBUG=x509sha1=1
Temporary fix for Go 1.18 changes made in
https://tip.golang.org/doc/go1.18#sha1

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-03-23 08:02:53 -04:00
Davanum Srinivas
45f30d8a10 use zip instead of git-archive
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-02-07 19:02:03 -05:00
Davanum Srinivas
74569840f7 pull-kubernetes-update ci job needs etcd installed
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 16:41:52 -05:00
Davanum Srinivas
59f92a41f6 Add a script to help with running make update using docker
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 11:21:01 -05:00
Davanum Srinivas
9405e9b55e Check in OWNERS modified by update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Benjamin Elder
68d8bcb64f remove redundant bits from test-dockerized.sh 2021-06-18 14:49:53 -07:00
Adhityaa Chandrasekar
1edb5a892a benchmark-dockerized.sh: set KUBE_ROOT
See https://testgrid.k8s.io/sig-scalability-benchmarks#scheduler for an
example of this script failing.
2020-08-05 20:28:34 +00:00
Davanum Srinivas
f981628ce8 move linting dependencies to hack/tools/tools.go
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-20 13:45:38 -04:00
Jan Chaloupka
b50f60c98f scheduler_perf: allow to override the default benchtime
The new benchmark requires the benchtime to be set to a very small number
so each test is run at most once. Some machines can have too powerfull resources
and decrease running time of some tests under the default 1s. Also, the old suite
expects the benchtime to be set to 1s. Allow to override the benchtime for the
new test suite will allow to run the same script from both suites.
2020-02-24 19:22:41 +01:00
Jan Chaloupka
51120d133c Report scheduler_perf integration test kube-scheduler metrics into artifacts dir
make test-integration ran within jenkins job does not collect json file with generated metrics
from kube-scheduler. The artifacts dir needs to be set explicitly through new -data-items-dir
test flag. The metrics are required to provide more comphrehensive information about
kube-scheduler internals.
2020-02-14 15:11:50 +01:00
Jan Chaloupka
f967c544ad scheduler benchmark: allow to override bench prefix
Right now, hack/jenkins/dockerized.sh is solely utilized by scheduler perf jenkins job.
There's an effort to extend the scheduler performance suite. In order to run
individual subsuites separately, we need a way to select a subset of benchmark tests
to be run. Golang exposes -bench option which allows to specify a prefix
of benchmark tests to be run.
2019-12-04 18:45:48 +01:00
Cong Liu
016ab0b899 Fix benchmark artifact parsing.
* Added a extractor to extract raw logs from json format and then pipe
it into benchmark parser.
* Also added -alsologtostderr=false -logtostderr=false to reduce noisy logs.
2019-11-26 13:47:12 -05:00
Jordan Liggitt
8618c09369 opt out of module mode for builds 2019-11-06 17:39:05 -05:00
Matt Matejczyk
68aebb4899 Don't use hardcoded /go GOPATH in benchmark-dockerized.sh 2019-10-31 13:57:04 +01:00
Benjamin Elder
80e9004fa0 remove unused jenkins scripts 2019-08-16 23:47:43 -07:00
Benjamin Elder
54b422be96 update hack/jenkins/README.md 2019-08-16 23:47:43 -07:00
Jordan Liggitt
93c02e164f Switch to json test output 2019-07-31 17:43:02 -04:00
aaa
037729b357 update benchmark-dockerized.sh and verify-dockerized.sh
update pull request
2019-04-09 15:07:26 -04:00
aaa
e544da8aae Fix shellcheck failures in test-dockerized.sh and upload-to-gcs.sh
update pull request

update pull request
2019-04-08 14:14:47 -04:00
Kubernetes Prow Robot
87247f5357 Merge pull request #75915 from xichengliudui/fixshellcheckfailures-05
fix shellcheck failures in ./hack/jenkins/...
2019-04-04 22:31:19 -07:00
Jordan Liggitt
2ea3cbdcbc Update hack scripts to use go mod 2019-04-03 10:19:39 -04:00
aaa
64f8f30c07 fix shellcheck failures in ./hack/jenkins/... 2019-03-21 05:30:11 -04:00
Xiang Dai
36065c6dd7 delete all duplicate empty blanks
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Kubernetes Prow Robot
0ae81c986a Merge pull request #67678 from caesarxuchao/remove-storage-versions-flag
Remove storage versions flag
2019-02-11 17:40:27 -08:00
Kubernetes Prow Robot
b50c643be0 Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Krzysztof Siedlecki
c20262eb33 adding FULL_LOG flag 2019-02-07 12:04:43 +01:00
Krzysztof Siedlecki
f461759dc9 adding go-junit-report install 2019-02-07 11:48:22 +01:00
Krzysztof Siedlecki
4384845ec5 installing github.com/jstemmer/go-junit-report 2019-02-05 14:54:01 +01:00
Krzysztof Siedlecki
491c000eeb installing github.com/cespare/prettybench 2019-02-05 14:54:01 +01:00
Roy Lenferink
b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Chao Xu
a76c266693 don't run test-update-storage-objects.sh 2019-01-30 13:28:48 -08:00
Roy Lenferink
6df3deb4bc Bash script syntax improvements 2019-01-19 13:58:58 +01:00
Roy Lenferink
a5d0616bdc Improving syntax for bash scripts 2019-01-18 19:17:16 +01:00