Skip to content

Commit 8a1a589

Browse files
chore(e2e): align driver suites with main
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent d3d4c8e commit 8a1a589

4 files changed

Lines changed: 28 additions & 27 deletions

File tree

‎TESTING.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ The suites in `tests/suites/` run against a real OpenShell gateway. Tests use
2929
sandboxes. Testkit doesn't install the gateway or its dependencies.
3030

3131
- **Conformance** checks public behavior that must work on every driver.
32+
Tests [share a gateway](#what-a-conformance-test-may-assert) and run with
33+
four nextest workers in CI, except on the VM host lane.
3234
- **Feature suites** check behavior that needs a service or gateway setting,
3335
such as Keycloak. Each feature is a package in the `features` workspace.
3436
- **Driver suites** check behavior specific to one compute driver. Each driver
@@ -79,7 +81,7 @@ for prerequisites and options.
7981

8082
The **VM driver** doesn't run nested inside tmachine. Run `mise run e2e:vm`
8183
on a supported VM host; it starts the VM-backed gateway and runs conformance
82-
and the VM driver suite.
84+
and the VM driver suite with one worker each in CI.
8385

8486
## Rust Tests
8587

‎e2e/rust/e2e-vm.sh‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,6 @@ e2e_export_gateway_restart_metadata \
463463
# preparation; allow 180s for slower CI runners.
464464
export OPENSHELL_PROVISION_TIMEOUT="${SANDBOX_PROVISION_TIMEOUT}"
465465

466-
# Both testkit suites use the VM lane's unsupported list.
467-
if [[ -z "${OPENSHELL_TEST_UNSUPPORTED:-}" ]]; then
468-
OPENSHELL_TEST_UNSUPPORTED="$("${ROOT}/tasks/scripts/suite-unsupported.sh" vm)"
469-
export OPENSHELL_TEST_UNSUPPORTED
470-
fi
471-
472466
OPENSHELL_TEST_PYTHON_IMAGE="${OPENSHELL_TEST_PYTHON_IMAGE:-${E2E_PULLABLE_PYTHON_IMAGE}}" \
473467
e2e_run_openshell_conformance "VM"
474468
if [ "${E2E_FEATURES}" = "e2e-conformance-only" ]; then
@@ -478,6 +472,9 @@ fi
478472

479473
if [ -z "${E2E_TEST_OVERRIDE}" ]; then
480474
echo "==> Running the VM driver suite"
475+
# Conformance reads this list in its own subshell.
476+
vm_unsupported="${OPENSHELL_TEST_UNSUPPORTED:-$("${ROOT}/tasks/scripts/suite-unsupported.sh" vm)}"
477+
OPENSHELL_TEST_UNSUPPORTED="${vm_unsupported}" \
481478
OPENSHELL_TEST_PYTHON_IMAGE="${OPENSHELL_TEST_PYTHON_IMAGE:-${E2E_PULLABLE_PYTHON_IMAGE}}" \
482479
cargo nextest run --locked --manifest-path "${ROOT}/tests/suites/drivers/vm/Cargo.toml" \
483480
--test-threads 1 --no-tests fail

‎tests/suites/drivers/kubernetes/Cargo.lock‎

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/suites/drivers/vm/Cargo.lock‎

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)