Skip to content

ci(e2e): stop new tests from landing in e2e/rust, with a testkit home for each kind of test #5906

Todo

Description

@matthewgrossman

User Story

As a maintainer retiring e2e/rust (#5297), I want CI to stop new tests from landing there and point authors to the testkit suite that can host them, so the migration has a fixed end.

Problem Statement

Feature PRs keep adding tests to e2e/rust while we port it. Since 11-12, five new test files (about 2.4k lines) merged, none of them in the migration plan:

File Added by
supervisor_middleware_http_hooks.rs #4359
kubernetes_tracing.rs #5517
kubernetes_shared_supervisor_spiffe.rs (+ node_local.rs) #4732
sandbox_compat_signals_sched.rs #5212
provider_github_app.rs (+ support/github_app_*) #3676

Six open PRs add more: #5793 (policy_dns_ipv6_egress.rs), #5791 (join_token.rs), #5641 (child_sandboxes.rs), #5629 (kubernetes_scheduling.rs), #5518 (kubernetes_warm_pool.rs) and #5624 (oidc_authz.rs, already asked to move to features/oidc-auth). Each one is porting work later.

A freeze only works if every new test has somewhere to go. Three kinds of tests have no testkit home yet.

Description

1. A landing zone for every kind of test

The test needs Where it goes Exists?
Any gateway, no driver-specific behavior tests/suites/conformance Yes. Runs on Docker, Podman, k3s and k3s-ha rows and on the VM host lane
A service or a fixed gateway setting (Keycloak, OTLP, a middleware service, push mode) tests/suites/features/<name> plus a tmachine add-on Yes. TESTING.md "Adding a feature suite"; #5780 adds the gateway settings role and the variables table
Docker or Podman behavior tests/suites/drivers/{docker,podman} Podman yes; Docker arrives with #5695
Kubernetes behavior (scheduling, warm pools, shared supervisors) tests/suites/drivers/kubernetes No. Add the suite with one smoke test and ubuntu-k3s rows (k3s, k3s-ha)
VM behavior tests/suites/drivers/vm No. The VM host lane runs only conformance and e2e/rust. Add the suite with one smoke test, and have e2e/rust/e2e-vm.sh run it
A GPU none yet No. GPU E2E is disabled (#5798)
A gateway restart or reconfiguration mid-test none yet No. Waits on decision A in #5297

2. A "Where a new test goes" section in TESTING.md

A short version of the table above, linked from the e2e/rust section, which now says the tree is frozen. One line in AGENTS.md points to it, since agents write many of these tests.

3. The check

  • Runs in Branch Checks on pull requests and compares the PR head with its merge base.
  • Fails if the PR adds a file under e2e/rust/tests/, or adds a test attribute (#[test], #[tokio::test]) anywhere under e2e/rust/.
  • Editing or deleting existing tests stays allowed, so behavior changes can still update them.
  • The failure message names the TESTING.md section.
  • Exception: for the two rows with no landing zone (GPU, gateway restart), a maintainer applies a label (proposed: test:e2e-rust-exception) and the PR links an issue under test: retire the old e2e test system onto testkit #5281 for the port. The check passes when the label is set.

Rollout

  1. Land the Kubernetes and VM suites and the TESTING.md section.
  2. Turn the check on. Before that, comment on the six open PRs above with the destination for each new file.

Context

Definition of Done

  • tests/suites/drivers/kubernetes exists with one smoke test and runs on the ubuntu-k3s k3s and k3s-ha rows.
  • tests/suites/drivers/vm exists with one smoke test and runs on the VM host lane.
  • TESTING.md has a "Where a new test goes" section, and AGENTS.md links it.
  • Branch Checks fails a PR that adds an e2e/rust test file or test function, unless the exception label is set.
  • Each of the six open PRs above has a comment with its destination.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

topic:testingUnit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions