kubernetes/test/e2e
Kubernetes Prow Robot 1043513f30
Merge pull request #135461 from liggitt/deflake-pod-certificates
Run a unique signer name for each pod certificate tests to avoid cross-test flaking
2025-11-26 11:50:24 -08:00
..
apimachinery test/e2e/apimachinery/watchlist: run WatchList test on most jobs 2025-11-04 15:19:32 +01:00
apps Fix passing runtime.Object to HaveValidResourceVersion check 2025-10-01 10:00:54 -04:00
architecture add bentheelder to conformance related test *reviewers* 2025-06-10 20:09:57 -07:00
auth Make unique signerName per pod certificate test 2025-11-26 12:19:56 -05:00
autoscaling Add configurable tolerance e2e test. 2025-09-26 10:58:20 -04:00
chaosmonkey e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
cloud test: remove implicit inclusion of "name" label in utils functions 2025-02-13 12:48:30 +01:00
common Merge pull request #135254 from saschagrunert/image-volume-containerd-skip 2025-11-12 07:59:49 -08:00
dra DRA: Update e2e tests for Partitionable Devices 2025-11-06 21:30:46 +00:00
environment Ensure all the files have the updated sorting 2025-06-27 11:13:50 -04:00
feature e2e tests 2025-11-11 18:19:09 +00:00
framework node e2e: add tests for Ensure Secret Image Pulls default policy 2025-11-11 11:15:53 -05:00
instrumentation feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
invariants add TODO to migrate when new metrics mature and old metrics are deprecated 2025-10-02 15:03:29 -07:00
kubectl Wait the readiness of pods for all the containers generate logs 2025-09-19 13:25:50 +03:00
lifecycle add HirazawaUi to kubeadm approvers list 2025-05-08 21:15:24 +08:00
network Update PreferSameTrafficDistribution to GA 2025-10-14 08:20:43 -04:00
node Test fixes 2025-11-12 06:21:06 +00:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters e2e: comment the known limitation of the ProgressReporter 2022-12-23 18:43:49 +08:00
scheduling e2e: Add tests for Workload API 2025-11-06 09:36:45 +00:00
storage Merge pull request #135131 from Dev1622/sig-storage/mock-expand-flake-fix 2025-11-26 09:10:36 -08:00
testing-manifests Merge pull request #135135 from jsafrane/update-csi-manifests 2025-11-06 06:50:54 -08:00
upgrades HPA support for pod-level resource specifications (#132430) 2025-07-29 09:02:26 -07:00
windows KEP-5471: Extend tolerations operators (#134665) 2025-11-10 12:42:54 -08:00
e2e-example-config.json
e2e.go remove gke from e2e 2025-01-20 21:50:46 +08:00
e2e_test.go check invariant metrics after e2e tests 2025-10-02 14:08:08 -07:00
providers.go Remove gcp in-tree cloud provider and credential provider 2024-05-01 09:03:53 -04:00
README.md e2e: use framework labels 2023-11-01 15:17:34 +01:00
suites.go check invariant metrics after e2e tests 2025-10-02 14:08:08 -07: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 "k8s.io/kubernetes/test/e2e/framework"

// SIGDescribe annotates the test with the SIG label.
var SIGDescribe = framework.SIGDescribe("cluster-lifecycle")
// test/e2e/lifecycle/bootstrap/bootstrap_signer.go

package bootstrap

import (
	"github.com/onsi/ginkgo"
	"k8s.io/kubernetes/test/e2e/lifecycle"
)
var _ = lifecycle.SIGDescribe("cluster", feature.BootstrapTokens, func() {
  /* ... */
  ginkgo.It("should sign the new added bootstrap tokens", func(ctx context.Context) {
    /* ... */
  })
  /* 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