kubernetes/test/e2e
Kubernetes Prow Robot 5d4ee2a71b
Merge pull request #136695 from chrishenzie/resource-quota-flake
Fix race condition in ResourceQuota e2e test
2026-06-10 02:27:45 +05:30
..
apimachinery Merge pull request #136695 from chrishenzie/resource-quota-flake 2026-06-10 02:27:45 +05:30
apps Migrate references to v1alpha3 in tests, controllers, and remaining files 2026-05-22 12:50:19 +00:00
architecture
auth Eliminate too many ExecWithOptions helpers 2026-05-11 16:59:07 +02:00
autoscaling fix filename typo and switch to DeferCleanup 2026-04-20 06:55:22 +00:00
chaosmonkey test: refactor to use atomic types 2026-02-05 20:19:33 +05:30
cloud Lint: Use modernize/rangeint in test/{e2e,e2e_node,images,soak} 2026-03-07 10:17:31 +01:00
common Merge pull request #139006 from rzlink/fix/e2e-common-race-conditions 2026-06-06 03:36:32 +05:30
dra DRA E2E: simplify kind.yaml 2026-06-02 15:43:43 +02:00
environment
feature Add Windows node-level e2e tests to a dedicated directory 2026-05-26 18:04:09 +00:00
framework Merge pull request #138961 from soltysh/simplify_exec 2026-05-13 16:00:28 +05:30
instrumentation feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
invariants add support for invariant testing in integration testing 2026-04-27 18:42:09 +00:00
kubectl Move kubectl apply e2e tests to dedicated file (#139086) 2026-05-18 21:43:53 +05:30
lifecycle
network Remove stale OWNERS file 2026-05-19 16:19:17 -04:00
node e2e: skip HostCleanup test when worker has no NodeExternalIP 2026-05-15 15:45:52 -04:00
perftype
reporters
scheduling e2e test for gang scheduling 2026-05-28 14:28:38 +00:00
storage Fix g.Expect with framework.ExpectNoError 2026-05-27 13:09:02 -04:00
testing-manifests csi: update CSI sidecar images in test manifests 2026-06-09 12:55:31 +05:30
upgrades chore(test/autoscaling): replace RC with ReplicaSet and update deprecated API versions in HPA e2e 2026-02-17 14:01:02 +03:00
windows Merge pull request #138367 from timmy-wright/timmy/fix-cleanup 2026-05-18 19:55:54 +05:30
e2e-example-config.json
e2e.go Drop NodeKiller 2026-02-21 08:30:04 -05:00
e2e_test.go ktesting: move format package 2026-04-24 21:54:19 +02:00
providers.go
README.md
suites.go Drop NodeKiller 2026-02-21 08:30:04 -05: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