Commit Graph

109070 Commits

Author SHA1 Message Date
Patrick Ohly
2e8fa3ee6b CSIStorageCapacity: use v1 as storage version
This can be done because downgrades are only supported down to 1.24 and that
release supports v1.
2022-07-08 10:06:06 +02:00
Kubernetes Prow Robot
4569e646ef
Merge pull request #109111 from chendave/ginkgo_upstream
Migrate Ginkgo from v1 to v2
2022-07-07 23:57:46 -07:00
Kubernetes Prow Robot
80b2848725
Merge pull request #110860 from claudiubelu/utils-cleanup
cleanup: Removes duplicate utils code
2022-07-07 20:36:12 -07:00
Kubernetes Prow Robot
0dc32b10fe
Merge pull request #110774 from kinvolk/rata/kubelet-short-tests
pkg/kubelet: skip long test on short mode
2022-07-07 20:36:05 -07:00
Kubernetes Prow Robot
c05d185901
Merge pull request #110683 from zhoumingcheng/master-v2
add unit test coverage for pkg/kubelet/util/util_unix_test.go
2022-07-07 20:35:57 -07:00
Kubernetes Prow Robot
ebcc5834f9
Merge pull request #110326 from ardaguclu/add-validation-replace
Validate dry-run and force flags can not be used same time in replace
2022-07-07 20:35:45 -07:00
Dave Chen
50d1b6c8ba Add Ginkgo v1 to the list of unwanted dependencies
Ginkgo has been migrated to V2, add this to unwanted dependencies
so that it won't be shown up as a dep again in the future.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Patrick Ohly
f7427d07e0 build: add ginkgo aliases for WHAT
The alias for vendor/github.com/onsi/ginkgo/ginkgo ensures that code like
30e99cb2a9/experiment/kind-conformance-image-e2e.sh (L110)
continues to work. The one without "vendor/" is there just in case that it
was used because it also worked.

Long term, "ginkgo" is a nicer, version independent alias. It gets used
internally to avoid future churn and gets documented also publicly in the
Makefile help.

The caveat is that there's no guarantee that a future v3 CLI will be compatible
with current invocations. But the most common usage is through
hack/ginkgo-e2e.sh, which can deal with such differences.
2022-07-08 10:46:11 +08:00
Dave Chen
05c513d5bf ginkgo.By can only be used inside a runnable node
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
3833695e75 Redirect klog out to GinkgoWriter
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
82ac6be0e9 Custom reporter of Junit report is no longer needed
Ginkgo is now writing the JUnit file itself. The -report-dir parameter is used
as fallback for enabling JUnit output in case that users haven't migrated to
the new -junit-report parameter.

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
5ac8105b86 Set Ginkgo config by the method of GinkgoConfiguration()
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
46a3954ba5 Migrate ProgressReporter to Ginkgo V2
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
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
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
ZhangKe10140699
f218f7b262 Computation of the StorageVersionHash use overridden storage versions in unit test 2022-07-08 06:32:27 +08: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
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
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
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
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