You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit abcda69
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: TESTING.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,8 +259,8 @@ and `run` commands in the guest and still writes `junit.xml` and `nextest.log`
259
259
`openshell-test-runner build --family <family> --out <dir>` builds a family's
260
260
test bundle for the guest without booting a VM, and `run --bundle <dir>` runs
261
261
it instead of building one. `--package` then selects the tests to run from the
262
-
bundle, which must hold those packages. Branch E2E builds the `features` and
263
-
`drivers/podman`bundles once and passes them to their rows this way. Two runs on one host
262
+
bundle, which must hold those packages. Branch E2E builds the feature and driver
263
+
bundles once and passes them to their rows this way. Two runs on one host
264
264
need different `TMACHINE_SSH_PORT` values (default 2222). The installer
265
265
inputs, such as the Debian package and the images, come from `artifacts/`,
266
266
built by `nix run .#build-artifacts` or downloaded by CI.
@@ -449,8 +449,25 @@ def test_multiply(sandbox):
449
449
|`sandbox_client`| session | gRPC client connected to the active gateway |
450
450
|`sandbox`| function | Factory returning a `Sandbox` context manager |
451
451
452
+
### Where a new test goes
453
+
454
+
| If the test needs… | Put it here |
455
+
|---|---|
456
+
| A public contract that applies to every driver |`tests/suites/conformance`|
457
+
| A service or fixed gateway setting |`tests/suites/features/<name>`; add a tmachine add-on if the setup is missing (see [Adding a feature suite](#adding-a-feature-suite)) |
458
+
| Driver-specific behavior |`tests/suites/drivers/{docker,podman,kubernetes,vm}`. Kubernetes runs on `k3s` and `k3s-ha`; VM runs on the existing VM host lane. |
459
+
| A GPU or a gateway restart or reconfiguration during the test | No home yet. Use [continuity suites](#continuity-suites-testssuitescontinuity) if the runner can apply the disruption between test phases. |
460
+
461
+
For a GPU or mid-test restart or reconfiguration case that cannot move yet,
462
+
link a porting issue under [#5281](https://github.com/ai-openshell/openshell/issues/5281)
463
+
and ask a maintainer for `test:e2e-rust-exception`. After a label change, rerun
464
+
the Rust E2E Freeze job so it reads the current labels.
465
+
452
466
### Rust CLI E2E (`e2e/rust/`)
453
467
468
+
This tree is frozen to new tests. You can edit or delete existing tests.
469
+
See [Where a new test goes](#where-a-new-test-goes) for alternatives.
470
+
454
471
Rust-based e2e tests that exercise the `openshell` CLI binary as a subprocess.
455
472
They live in the `openshell-e2e` crate and use a shared harness for sandbox
456
473
lifecycle management, output parsing, and cleanup.
0 commit comments