kubernetes/test/e2e
Kubernetes Prow Robot 63ff4a2659
Merge pull request #114392 from pohly/e2e-apimachinery-cleanup
e2e apimachinery: simplify cleanup
2022-12-10 09:06:31 -08:00
..
apimachinery e2e apimachiner: simplify cleanup 2022-12-09 20:31:08 +01:00
apps Add e2e test to ignore failures with 137 exit code 2022-11-15 14:31:12 -05:00
architecture e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
auth Promote ServiceAccount e2e test to Conformance 2022-10-10 12:12:17 +13:00
autoscaling e2e: adapt to moved code 2022-10-06 08:19:47 +02:00
chaosmonkey ginkgo.By can only be used inside a runnable node 2022-07-08 10:46:11 +08:00
cloud e2e framework: simplify failure and skip handling 2022-11-02 09:23:01 +01:00
common Remove OpenStack cloud provider 2022-11-11 12:04:55 +01:00
dra Merge pull request #113976 from swatisehgal/dra-fix-claim-parameter-name 2022-11-18 05:16:30 -08:00
framework use etcd 3.5.6-0 after promotion 2022-11-24 09:45:56 +08:00
instrumentation test/e2e/instrumentation/logging/utils: remove dead package 2022-10-20 10:59:31 +02:00
kubectl Move events command to top level 2022-11-10 14:44:22 +01:00
lifecycle update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
network endpointslicemirroring handle endpoints with multiple subsets 2022-12-10 11:44:10 +00:00
node Enable the feature into beta 2022-11-09 09:02:40 +01:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters e2e: remove JSON progress output on stdout 2022-10-20 16:33:10 +02:00
scheduling Deflake a preemption test that may patch Node incorrectly 2022-12-07 14:30:34 -08:00
storage Merge pull request #113853 from jsafrane/add-volumepath 2022-11-15 07:56:52 -08:00
testing-manifests Updating pause image refernces to 3.9 2022-11-14 10:24:54 -08:00
upgrades fix spelling error in e2e upgrade apps daemonset test 2022-11-29 15:56:15 -05:00
windows Adding e2e test for running Windows hostprocess containers as members of a local usergroup 2022-10-21 17:17:44 -07:00
e2e_test.go e2e dra: add test driver and tests for dynamic resource allocation 2022-11-12 00:17:15 +01:00
e2e-example-config.json
e2e.go Revert "Remove references to openstack and cinder" 2022-11-10 18:25:30 +01:00
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go e2e: remove cleanup actions 2022-09-09 13:51:07 +02:00

test/e2e

This is home to e2e tests used for presubmit, periodic, and postsubmit jobs.

Some of these jobs are merge-blocking, some are release-blocking.

e2e test ownership

All e2e tests must adhere to the following policies:

  • the test must be owned by one and only one SIG
  • the test must live in/underneath a sig-owned package matching pattern: test/e2e/[{subpath}/]{sig}/..., e.g.
    • test/e2e/auth - all tests owned by sig-auth
    • test/e2e/common/storage - all tests common to cluster-level and node-level e2e tests, owned by sig-node
    • test/e2e/upgrade/apps - all tests used in upgrade testing, owned by sig-apps
  • each sig-owned package should have an OWNERS file defining relevant approvers and labels for the owning sig, e.g.
# test/e2e/node/OWNERS
# See the OWNERS docs at https://go.k8s.io/owners

approvers:
- alice
- bob
- cynthia
emeritus_approvers:
- dave
reviewers:
- sig-node-reviewers
labels:
- sig/node
  • packages that use {subpath} should have an imports.go file importing sig-owned packages (for ginkgo's benefit), e.g.
// test/e2e/common/imports.go
package common

import (
	// ensure these packages are scanned by ginkgo for e2e tests
	_ "k8s.io/kubernetes/test/e2e/common/network"
	_ "k8s.io/kubernetes/test/e2e/common/node"
	_ "k8s.io/kubernetes/test/e2e/common/storage"
)
  • test ownership must be declared via a top-level SIGDescribe call defined in the sig-owned package, e.g.
// test/e2e/lifecycle/framework.go
package lifecycle

import "github.com/onsi/ginkgo"

// SIGDescribe annotates the test with the SIG label.
func SIGDescribe(text string, body func()) bool {
	return ginkgo.Describe("[sig-cluster-lifecycle] "+text, body)
}
// test/e2e/lifecycle/bootstrap/bootstrap_signer.go

package bootstrap

import (
	"github.com/onsi/ginkgo"
	"k8s.io/kubernetes/test/e2e/lifecycle"
)
var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() {
  /* ... */
  ginkgo.It("should sign the new added bootstrap tokens", func() {
    /* ... */
  })
  /* etc */
})

These polices are enforced:

  • via the merge-blocking presubmit job pull-kubernetes-verify
  • which ends up running hack/verify-e2e-test-ownership.sh
  • which can also be run via make verify WHAT=e2e-test-ownership

more info

See kubernetes/community/.../e2e-tests.md