Repository navigation
In progress
In progress
Copy link
Labels
topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Description
User Story
As a maintainer retiring e2e/rust, I want the Kubernetes-only tests on testkit under tests/suites/drivers/kubernetes, so they run against tmachine k3s environments, and new Kubernetes tests have a testkit home instead of landing in e2e/rust.
Description
This is PR8 in the #5297 plan comment, which has the per-test table (actions, destinations, drops). Summary:
| Legacy file | Action | Destination |
|---|---|---|
shared_supervisor/mod.rs (helpers + 7 tests) |
port | tests/support/kube (shared_supervisor module) |
kubernetes_runtime_reconcile.rs |
port 1, drop 1 (D) | drivers/kubernetes |
user_namespaces.rs |
drop (D) | — |
credential_drivers.rs |
port | drivers/kubernetes |
workspace_namespace_managed.rs, workspace_namespace_operator.rs |
port, merge | drivers/kubernetes (DNS-1123 name check → conformance if the server validates it) |
kubernetes_shared_supervisor.rs, _ha.rs, _scaling.rs |
port, split | drivers/kubernetes |
kubernetes_shared_supervisor_spiffe.rs (+ node_local.rs) |
port (added after the inventory, #4732) | drivers/kubernetes |
kubernetes_tracing.rs |
port, with its Jaeger fixture (added after the inventory, #5517) | drivers/kubernetes |
kubernetes_corporate_proxy.rs |
split | features/corporate-proxy (k3s row) + driver unit test |
ephemeral_cleanup.rs Kubernetes half, additional_ca.rs Helm branch |
port | drivers/kubernetes |
kubernetes_ha_rebalancing.rs goes to tests/suites/destructive/kubernetes-ha with #5527 (decision G), not here.
Also move e2e/kubernetes/postgres-fixture.yaml under tests/ and update its readers (tmachine's k3s-ha installer and cache key, with-kube-gateway.sh, run-postgres-tests.sh, the helm-dev-environment skill).
Helpers and environment
tests/support/kube: a Rustkubeclient built from published variables, namespace and sandbox-resource lookups, agateway_canRBAC check, port-forwarding, and the shared-supervisor helpers. Tests don't fall back to ambientKUBECONFIG(decision F).- Kubernetes rows publish
OPENSHELL_TEST_KUBECONFIGand the test namespace (decision F), plus what the tests need (release, sandbox namespace, chart path, gateway replicas). - Any per-test timeouts or serial groups go through test(runner): add a per-row test timeout to runner rows #5295.
Context
- Part of test(e2e): decide which e2e/rust tests to port and in what order #5297 (PR8). Decisions D and F are settled there.
- Kubernetes tests are where most new
e2e/rusttests are arriving, so this lands first among the remaining ports. - The restart-related reconcile test may need fix(server): keep old runtime status from failing sandbox restarts #5237.
Definition of Done
- Every test in the PR8 table is ported, merged, split or dropped as listed.
- Each new
OPENSHELL_TEST_*variable is documented in the per-crate docs table. - The listed files are deleted, with every reference to them (
OPENSHELL_E2E_KUBE_TESTtasks, wrapper scripts, nextest groups). -
drivers/kuberneteshas k3s and k3s-ha rows in.github/workflows/e2e-suites.yml.
Metadata
Metadata
Assignees
Labels
topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.
Activity