Commit Graph

109241 Commits

Author SHA1 Message Date
Dave Chen
fd4b5b629b Stop using the deprecated method CurrentGinkgoTestDescription
Besides, the using of method might lead to a `concurrent map writes`
issue per the discussion here: https://github.com/onsi/ginkgo/issues/970

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
2f3028c00d Define the timeout to 24h for Ginkgo V2
Default timeout setting has been reduced from `24h` down to `1h` in
Ginkgo V2, but for some long running test this is too short.

How long to abort the test was controlled by the the linux command `timeout`
in V1. e.g. `'timeout -k 30s 150m ...`, and is configured in the file
like `sig-network-misc.yaml`.

Set the timeout manually for Ginkgo V2 to avoid the early aborting.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
2084f3cef2 Drop all stacktrace related validtion
The change is needed for `verify-e2e-test-ownership.sh`.
The `jq` is re-defined since the structure of test spec
is different with v1 and the stacktrace related validation
is not available, e.g. `package` and `func`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
20498fd65d Generate conformance test spec with offset decorator
`FullStackTrace` is not available in v2 if no exception found
with test execution.

The change is needed for conformance test's spec validation.

pls see: https://github.com/onsi/ginkgo/issues/960 for details.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
dd58016484 Implement DetailsReporter report within ReportAfterSuite
The change is needed to verify the conformance test spec, as this
is verified in `verify-conformance-yaml.sh`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
b57bade50c Switch to use dry-run option to generate test spec
`dryRun` option is deprecated and will not be able to
generate test spec.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
f792256954 e2e: adapt output tests to Ginkgo v2 and Gomega 1.19
Full stack traces are on by default. The approach for collecting results is
different. Tests run in their own goroutine, therefore runTests is no longer
part of their callstack. To cover stack traces with more than one entry, a new
test case gets added with a separate helper function.

Gomega object formatting now includes the type.

This removes the last remaining reference to Ginkgo v1.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
375b2a5fb2 Build Ginkgo binary
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
ece0bb3522 Adapt to new type of GinkgoWriter
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
2eb8e9e81f ginkgo.It doesn't have a timeout arg anymore
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
05c0f4a298 Define the const of GINKGO_PANIC directly
`ginkgo.GINKGO_PANIC` is not available and cannot be imported
directly.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:53 +08:00
Dave Chen
857458cfa5 update ginkgo from v1 to v2 and gomega to 1.19.0
- update all the import statements
- run hack/pin-dependency.sh to change pinned dependency versions
- run hack/update-vendor.sh to update go.mod files and the vendor directory
- update the method signatures for custom reporters

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:46 +08:00
Kubernetes Prow Robot
9509211fe7
Merge pull request #110904 from 249043822/storageversion
Computation of the StorageVersionHash use overridden storage versions in unit test
2022-07-07 19:11:58 -07:00
Kubernetes Prow Robot
6732550634
Merge pull request #110877 from claudiubelu/agnhost-windows-file-permissions
agnhost: Check symlink target's permissions for Windows
2022-07-07 19:11:45 -07:00
xing-yang
e7cfbbbbc7 Change snapshot-controller image to v4.2.1 2022-07-07 21:23:12 -04:00
Kubernetes Prow Robot
8e62fd24b0
Merge pull request #111001 from pohly/klog-update
build: update to klog v2.70.1
2022-07-07 17:54:23 -07:00
Kubernetes Prow Robot
2b657a0f3b
Merge pull request #110805 from saschagrunert/seccomp-default-beta
Graduate SeccompDefault feature to beta
2022-07-07 17:54:11 -07:00
Kubernetes Prow Robot
6d5cccfdf3
Merge pull request #110122 from ii/create-controller-revision-test
Write  ControllerRevisionLifecycleTest +7 Endpoints
2022-07-07 17:54:04 -07:00
Stephen Heywood
c288ebe53c Promote PodStatus e2e test to Conformance 2022-07-08 11:51:58 +12:00
ZhangKe10140699
f218f7b262 Computation of the StorageVersionHash use overridden storage versions in unit test 2022-07-08 06:32:27 +08:00
Tim Hockin
c2ee067221 Remove obsolete refs to gate EndpointSliceNodeName 2022-07-07 13:19:59 -07:00
Kubernetes Prow Robot
34b9f0dbed
Merge pull request #110998 from chendave/de_dup_kubeadm
kubeadm: De-dup the confirmation on the interactive cmds
2022-07-07 12:46:37 -07:00
Kubernetes Prow Robot
e9b96b167f
Merge pull request #111004 from alculquicondor/patch-4
Remove SIG Scheduling approvers from reviewers
2022-07-07 11:11:35 -07:00
Kermit Alexander
3eed801adc Add k8s CEL library and runtime cost tests. 2022-07-07 17:02:05 +00:00
Aldo Culquicondor
d2a94fe703
Remove SIG Scheduling approvers from reviewers 2022-07-07 11:16:32 -04:00
Kubernetes Prow Robot
6adee9d4fb
Merge pull request #110947 from SataQiu/scheduler-20220704
scheduler: do not update sched.nextStartNodeIndex when evaluate nominated node
2022-07-07 07:57:45 -07:00
Kubernetes Prow Robot
9d68640ed3
Merge pull request #110923 from mpuckett159/fix/add-wait-timers
Move kubectl wait to informers with a cache to avoid hanging due to objects disappearing from the cluster
2022-07-07 07:57:34 -07:00
Kubernetes Prow Robot
8d2c7371de
Merge pull request #110997 from mengjiao-liu/update-godoc-link
Update `godoc.org` to `pkg.go.dev ` in kubeadm
2022-07-07 05:25:34 -07:00
Arda Güçlü
e41f2a1d7c Change error messages 2022-07-07 15:05:17 +03:00
HaoJie Liu
6022b69dfd
fix static-check for staging/src/k8s.io/client-go/
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-07 18:58:25 +08:00
Patrick Ohly
3581e30883 build: update to klog v2.70.1
This makes ktesting more resilient against logging from leaked goroutines,
which is a problem that came up in kubelet node shutdown
tests (https://github.com/kubernetes/kubernetes/issues/110854).
2022-07-07 12:54:08 +02:00
Kermit Alexander
40da208b3d Add runtime cost limit test. 2022-07-07 10:08:55 +00:00
James Landrein
9da646de4e Fix description of Ports in PodSpec 2022-07-07 10:43:25 +02:00
Kubernetes Prow Robot
2a017f94bc
Merge pull request #110237 from ii/create-apiservice-lifecycle-test
Write APIService lifecycle test + 4 Endpoints
2022-07-06 22:25:44 -07:00
Kubernetes Prow Robot
f74aa4714d
Merge pull request #109683 from ii/create-resourcequota-test
Write List, Patch & DeleteCollection ResourceQuota test - +3 endpoint coverage
2022-07-06 22:25:32 -07:00
Dave Chen
8aeee521e6 kubeadm: De-dup the confirmation on the interactive cmds
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-07 11:51:26 +08:00
Mengjiao Liu
88c6deb778 Update godoc.org to pkg.go.dev in kubeadm 2022-07-07 11:06:13 +08:00
zhoumingcheng
673930e384 update test func for pkg/util/node
Signed-off-by: zhoumingcheng <zhoumingcheng@beyondcent.com>
2022-07-07 10:45:45 +08:00
SataQiu
d3092cd296 scheduler: do not update sched.nextStartNodeIndex when evaluate nominated node 2022-07-07 10:02:28 +08:00
Kubernetes Prow Robot
e8eb7a5e19
Merge pull request #110990 from thockin/svc-typenames-IPFamilyPolicyType
Rename IPFamilyPolicyType => IPFamilyPolicy
2022-07-06 18:39:44 -07:00
Kubernetes Prow Robot
f88b11897d
Merge pull request #110978 from chendave/dry_run_interactive
kubeadm: Don't ask for input if it's dry run mode
2022-07-06 18:39:33 -07:00
Kubernetes Prow Robot
b3be343bc8
Merge pull request #110811 from Abirdcfly/clock
Update golangci-lint to 1.46.2 and fix errors
2022-07-06 16:03:32 -07:00
Tim Hockin
55232e2ef7 Rename IPFamilyPolicyType => IPFamilyPolicy 2022-07-06 15:42:26 -07:00
Kubernetes Prow Robot
666ee0886f
Merge pull request #110703 from aojea/beta_enable_ipranges
enable ServiceIPStaticSubrange beta by default
2022-07-06 14:55:44 -07:00
Kubernetes Prow Robot
4593b2e71a
Merge pull request #110290 from danwinship/kep-3178-local-policy-drop
Don't use KUBE-MARK-DROP for "no local endpoints"
2022-07-06 14:55:33 -07:00
Kubernetes Prow Robot
65361245ed
Merge pull request #110824 from Abirdcfly/simple
cleanup:use copy other than for loop
2022-07-06 12:03:33 -07:00
Kubernetes Prow Robot
6b6558a463
Merge pull request #110948 from alculquicondor/re-enable-job-tracking
Re-enable JobTrackingWithFinalizers
2022-07-06 09:45:33 -07:00
Kubernetes Prow Robot
1ea6eb2d1d
Merge pull request #110954 from kerthcet/fix/deadline-should-be-nil
Fix pod's deadline to nil when cache ttl is set to zero
2022-07-06 07:28:51 -07:00
JunYang
cafc5d1c82 filter out terminated containers in cadvisor_stats_provider 2022-07-06 19:21:27 +08:00
HaoJie Liu
4990214c6f
Remove invalid comments in hack/lib/version.sh
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
2022-07-06 19:19:29 +08:00