Commit Graph

111715 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
615929ed88
Merge pull request #113133 from sxllwx/fix-issue-111985
Fix DeleteCollection API decode DeleteOptions fail
2022-10-20 16:09:22 -07:00
Kubernetes Prow Robot
f33ddd1b9c
Merge pull request #113210 from dims/ensure-we-are-using-gnu-date-for-builds
Ensure we are using GNU date for builds
2022-10-20 14:51:22 -07:00
David Porter
048ed7ddc0 test: Stop kubelet systemd service after node e2e
Currently, when running node e2e it's not possible to use the ginkgo `--repeat`
flag to run the test suite multiple times. This is useful when debugging tests
and ensuring they are not flaky by re-running them several times. Currently if
using `--repeat` ginkgo flag, the 2nd run of the test will fail due to kubelet
not starting with message like:

```
Failed to start transient service unit: Unit kubelet-20221020T040841.service already exists.
```

This is because during the test startup, kubelet is started as a transient unit
file via `systemd-run`. The unit is started with the `--remain-after-exit` flag
to ensure that the unit will remain even if the kubelet is restarted. The test
suite currently uses `systemd kill` command to stop kubelet. This works fine for
stopping the kubelet, but on the second run, when `systemd-run` is used to start
systemd unit again it will fail because the unit already exists. This is because
`systemd kill` will not delete the systemd unit, only send SIGTERM signal to it.

To fix this, add `unitName` as a field to the `server` struct. When
kubelet server is constructed, set the unit name. As part of e2e test
termination, in `E2EServices.Stop()``, stop the kubelet systemd unit. By
stopping the kubelet systemd unit, systemd will delete the systemd
transient unit, allowing it to be created and started again in a
subsequent e2e run.

Signed-off-by: David Porter <david@porter.me>
2022-10-20 13:31:23 -07:00
Kubernetes Prow Robot
fc866d87dc
Merge pull request #113208 from soltysh/azure_timeouts
Set default test timeouts first, only then modify the required ones
2022-10-20 12:07:20 -07:00
Kubernetes Prow Robot
f765d0bd37
Merge pull request #113183 from dashpole/new_trace_api
Add new tracing library to bridge otel and utiltrace apis
2022-10-20 12:07:07 -07:00
Kubernetes Prow Robot
fb9b466f30
Merge pull request #113159 from pacoxu/patch-3
flake: wait for crd ready in kubectl apply script
2022-10-20 12:06:56 -07:00
Kubernetes Prow Robot
dbb3b4f340
Merge pull request #113212 from pohly/e2e-progress-on-stdout-removal
e2e: remove JSON progress output on stdout
2022-10-20 10:29:12 -07:00
Kubernetes Prow Robot
0a08757181
Merge pull request #113128 from pohly/e2e-storage-cleanup
e2e storage: cleanup with context
2022-10-20 10:29:00 -07:00
Kubernetes Prow Robot
dc3c9c0101
Merge pull request #113202 from oscr/update-golangci-lint
hack/tools: update golangci-lint version (1.48.0 -> 1.50.0)
2022-10-20 08:57:15 -07:00
Kubernetes Prow Robot
8305358630
Merge pull request #108494 from sanposhiho/RunScorePlugins-return-type
change framework.RunScorePlugins to return slice organized by node
2022-10-20 08:57:02 -07:00
Aldo Culquicondor
12d308f5c4 Add metric for terminated pods with tracking finalizer
Change-Id: I26f3169588c30ed82250cb7baff8e277f8d13bb7
2022-10-20 11:35:20 -04:00
David Ashpole
729085287d
add new tracing library to bridge otel and utiltrace apis 2022-10-20 14:40:51 +00:00
Patrick Ohly
3e560e8341 e2e: remove JSON progress output on stdout
The original intention was to address "frustration of end users running the e2e
suite is that they take a significant amount of time and it is difficult to
gauge progress".

But Ginkgo's output is different now than it was in Kubernetes 1.19. If users
want to see progress, then "ginkgo --progress" might provide enough
information.

Printing to os.Stdout doesn't work as intended anyway when output redirection
is enabled (the default for parallel runs) and causes these JSON snippets to
appear as "show stdout" for each failed test in a Prow job, which is
distracting.
2022-10-20 16:33:10 +02:00
Davanum Srinivas
ec71e53adb
Ensure we are using GNU date for builds
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-10-20 10:12:23 -04:00
Kubernetes Prow Robot
7423cc931f
Merge pull request #112691 from aimuz/apiextensions-apiserver-change-to-cmp
apiextensions-apiserver: change k8s.io/apimachinery/pkg/util/diff to github.com/google/go-cmp/cmp
2022-10-20 07:01:01 -07:00
Maciej Szulik
24d30bf8b2
Set default test timeouts first, only then modify the required ones 2022-10-20 15:35:17 +02:00
Patrick Ohly
f15d7f6cca e2e storage: eliminate context.TODO and cleanup callbacks
Tests should accept a context from Ginkgo and pass it through to all functions
which may block for a longer period of time. In particular all Kubernetes API
calls through client-go should use that context. Then if a timeout occurs,
the test returns immediately because everything that it could block on will
return.

Cleanup code then needs to run in a separate Ginkgo node, typically
DeferCleanup, which ensures that it gets a separate context which has not timed
out yet.
2022-10-20 13:56:59 +02:00
Patrick Ohly
d8d3dc9476 e2e storage: eliminate explicit test driver cleanup
Cleanup can be handled inside the setup code with ginkgo.DeferCleanup. This
simplifies the code.
2022-10-20 13:56:59 +02:00
Oscar Utbult
de1fff9afa hack/tools: update golangci-lint version (1.48.0 -> 1.50) 2022-10-20 13:51:10 +02:00
Kubernetes Prow Robot
687b001648
Merge pull request #113190 from BenTheElder/shell-fixups
assorted small shell script fixes
2022-10-20 03:34:57 -07:00
Kubernetes Prow Robot
9bcb81e13f
Merge pull request #113175 from liggitt/pr_normalize_probes_lifecycle_handlers
Record event and metric for lifecycle fallback to http
2022-10-20 02:31:08 -07:00
Kubernetes Prow Robot
fc4344a748
Merge pull request #111706 from tallclair/audit-error
More useful audit error logs
2022-10-20 02:30:56 -07:00
Patrick Ohly
f314c6b831 test/e2e/instrumentation/logging/utils: remove dead package
The code is not imported anywhere in k/k and therefore should
be removed.
2022-10-20 10:59:31 +02:00
Paco Xu
05de50e1a5 kubectl-alpha-events: e2e ignore some timeout errors(flake) 2022-10-20 16:41:29 +08:00
kerthcet
26ad401b7a Remove unuseful multi scheduler testcases
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-10-20 15:15:49 +08:00
saltbo
cc90e819bc
refactor: replace the ioutil by the os and io
Signed-off-by: saltbo <saltbo@foxmail.com>
2022-10-20 15:13:28 +08:00
Benjamin Elder
49354dc645 fix iterating over files in hack/verify-generated-swagger-docs.sh 2022-10-19 23:46:18 -07:00
Benjamin Elder
68a4ced74f fix SC2155 delcare and assign seperately in build/common.sh
see: https://www.shellcheck.net/wiki/SC2155
2022-10-19 23:46:18 -07:00
Benjamin Elder
4c7189f54b fix SC2267 GNU xargs -i is deprecated in favor of -I{} in cluster/gce/util.sh
see: https://www.shellcheck.net/wiki/SC2267
2022-10-19 23:46:18 -07:00
Benjamin Elder
95d08c58e3 avoid masking return values in hack/make-rules/make-help.sh 2022-10-19 23:46:18 -07:00
Benjamin Elder
f72938f2d4 disable SC 1091
see: https://www.shellcheck.net/wiki/SC1091
2022-10-19 23:46:18 -07:00
Benjamin Elder
103e6cdd3c declare and assign seperately in hack/verify-e2e-test-ownership.sh 2022-10-19 23:46:18 -07:00
Benjamin Elder
94c0ec317b Don't assign DOCKER an array in hack/lib/util.sh
DOCKER is otherwise used to be the command name (perhaps podman), but we were conflating DOCKER_OPTS in kube::util::ensure_docker_daemon_connectivity.

Split out docker opts.

This fixes shellcheck warning that docker is assigned an array and then a string in some scripts.
2022-10-19 23:46:18 -07:00
saltbo
266404ec8c
refactor: remove the unused pkg/util/ipconfig
Signed-off-by: saltbo <saltbo@foxmail.com>
2022-10-20 14:21:42 +08:00
Paco Xu
da070707de flake: wait for crd ready in kubectl apply script 2022-10-20 12:58:04 +08:00
Benjamin Elder
8f6c631772 fix readonly masks return value in test.sh 2022-10-19 21:53:45 -07:00
weilaaa
7158e0a4ff refactor sets use generic 2022-10-20 11:47:18 +08:00
Kubernetes Prow Robot
f14ebac384
Merge pull request #113178 from cici37/fixRN
Fix feature gate name in release note
2022-10-19 20:34:56 -07:00
Shingo Omura
5beae0c4dc
test/images/agnhost: Adds a test user and group in the image for a E2E test case of SupplementalGroups with pre-defined group in the image 2022-10-20 11:17:59 +09:00
sanposhiho
cbf1ea5e68 change framework.RunScorePlugins to return slice organized by node 2022-10-20 01:04:38 +00:00
Kubernetes Prow Robot
0a689af469
Merge pull request #112858 from alexzielenski/cel-admission-hook
CEL Admission Plugin
2022-10-19 17:45:15 -07:00
Kubernetes Prow Robot
adec07998b
Merge pull request #112675 from aimuz/improve-readability
improve readability, code nesting too deep
2022-10-19 17:45:07 -07:00
Kubernetes Prow Robot
ad26b315f2
Merge pull request #86139 from jasimmons/pr_normalize_probes_lifecycle_handlers
Normalize HTTP  lifecycle handlers with HTTP probers
2022-10-19 17:44:56 -07:00
Kubernetes Prow Robot
b21efbb537
Merge pull request #113180 from thockin/logo
logo: better alignment of layers
2022-10-19 16:35:07 -07:00
Kubernetes Prow Robot
453039f47b
Merge pull request #113153 from yuanchen8911/error
Replace error string with ErrorList in scheduler validation testing
2022-10-19 16:34:56 -07:00
Mark Rossetti
fa2603906b
HostProcess containers metrics e2e test fixes
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-10-19 16:10:09 -07:00
Kubernetes Prow Robot
05b46d7ce2
Merge pull request #113166 from alculquicondor/simply_job_metrics_test
Simplify tests for job metrics by resetting them
2022-10-19 13:57:32 -07:00
Kubernetes Prow Robot
ad563ccd47
Merge pull request #113155 from logicalhan/proxy-metric
migrate usage of `merge` to `MergeBuckets` for static analysis
2022-10-19 13:57:25 -07:00
Kubernetes Prow Robot
45636684a4
Merge pull request #112897 from fromanirh/podresources-metrics-e2e-tests
register podresources metrics
2022-10-19 13:57:18 -07:00
Kubernetes Prow Robot
a2827c4915
Merge pull request #111978 from Jefftree/aggregated-discovery-types
Aggregated discovery types
2022-10-19 13:57:07 -07:00