Skip to content

Commit 4e88971

Browse files
test(suites): move the conformance, oci-image, provider-refresh and podman suites to testkit
Cut the release lanes over to suites written on testkit and delete the old conformance, features and drivers suites. See the PR description for the old test to new test mapping. The sandbox-lifecycle, file-transfer and policy-advisor ports start from #4629 by Evan Lezar. Co-authored-by: Evan Lezar <elezar@nvidia.com> Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent be4af48 commit 4e88971

75 files changed

Lines changed: 7895 additions & 5793 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/branch-e2e.yml‎

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ jobs:
240240
deb-artifact-name: deb-linux-amd64
241241
rpm-artifact-name: rpm-linux-x86_64
242242

243-
# Run driver-independent conformance tests.
243+
# Run the driver-independent sandbox suites, written on testkit (tests/testkit).
244244
conformance-integration:
245245
needs: prepare-integration
246246
permissions:
@@ -254,29 +254,11 @@ jobs:
254254
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
255255
test-matrix: >-
256256
[
257-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
258-
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
259-
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
260-
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
261-
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
262-
]
263-
264-
# Run suites written on testkit (tests/testkit). New end-to-end tests go here;
265-
# the older suites above take fixes only.
266-
testkit-integration:
267-
needs: prepare-integration
268-
permissions:
269-
actions: read
270-
contents: read
271-
packages: read
272-
uses: ./.github/workflows/integration-runner.yml
273-
with:
274-
category: testkit
275-
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
276-
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
277-
test-matrix: >-
278-
[
279-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox-lifecycle"}
257+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox"},
258+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"sandbox"},
259+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"sandbox"},
260+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"sandbox"},
261+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"sandbox"}
280262
]
281263
282264
# Run feature-specific integration tests:

‎.github/workflows/integration-runner.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ on:
2424
type: string
2525
default: >-
2626
[
27-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
28-
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
29-
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
30-
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
31-
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
27+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox"},
28+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"sandbox"},
29+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"sandbox"},
30+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"sandbox"},
31+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"sandbox"}
3232
]
3333
3434
permissions:

‎.github/workflows/integration-test.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ on:
2727
type: string
2828
default: >-
2929
[
30-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
31-
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
32-
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
33-
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
34-
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
30+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox"},
31+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"sandbox"},
32+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"sandbox"},
33+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"sandbox"},
34+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"sandbox"}
3535
]
3636
3737
permissions:

‎.github/workflows/release-dev.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ jobs:
125125
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
126126
test-matrix: >-
127127
[
128-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
129-
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
130-
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
131-
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
132-
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
128+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox"},
129+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"sandbox"},
130+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"sandbox"},
131+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"sandbox"},
132+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"sandbox"}
133133
]
134134
135135
feature-specific-integration:

‎.github/workflows/release-qualification.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ jobs:
7878
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
7979
test-matrix: >-
8080
[
81-
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
82-
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
83-
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
84-
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
85-
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
81+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"sandbox"},
82+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"sandbox"},
83+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"sandbox"},
84+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"sandbox"},
85+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"sandbox"}
8686
]
8787
8888
feature-specific-integration:

‎AGENTS.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Do not rely on this file for a full inventory. The detailed public and contribut
2222
| Path | Components | Purpose |
2323
|------|-----------|---------|
2424
| `crates/openshell-cli/` | CLI binary | User-facing command-line interface |
25-
| `crates/openshell-conformance/` | CLI conformance library | Reusable driver-agnostic scenarios and command runner |
2625
| `crates/openshell-server/` | Gateway server | Control-plane API, sandbox lifecycle, auth boundary |
2726
| `crates/openshell-sandbox/` | Sandbox runtime | Capability-free workload launcher, process identity, and seccomp-mediated I/O |
2827
| `crates/openshell-supervisor/` | Supervisor runtime | Gateway session, policy evaluation, credentials, and upstream networking |

‎Cargo.lock‎

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

‎TESTING.md‎

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,20 @@ by `OPENSHELL_BIN`. See
141141
[tests/testkit/README.md](tests/testkit/README.md) for how to write and run
142142
tests.
143143

144-
**New end-to-end tests go in testkit.** The older suites under
145-
`tests/suites/conformance`, `features` and `drivers` and the `e2e/` suites take
146-
fixes only. Suites live under `tests/suites/<family>/`, for example
147-
`tests/suites/sandbox/`, and each family is its own Cargo workspace with its own
148-
lockfile. Run them against a local Docker gateway with:
144+
**New end-to-end tests go in testkit.** The `e2e/` suites take fixes only.
145+
Suites live under `tests/suites/<family>/` (`sandbox`, `providers`, `podman`),
146+
and each family is its own Cargo workspace with its own lockfile. Run the
147+
sandbox suites against a local Docker gateway with:
149148

150149
```shell
151150
mise run e2e:testkit
152151
```
153152

154-
CI runs them in the `testkit-integration` job of Branch E2E (label `test:e2e`),
155-
through a tmachine lane that installs the Debian package. The suite's playbook
156-
fails the lane if fewer tests run than it expects, so raise
157-
`suite_expected_tests` in
158-
`tests/tmachine/ansible/playbooks/suites/sandbox-lifecycle.yaml` when you add a
159-
test.
153+
CI runs the sandbox suites as the `sandbox` testsuite in the conformance lanes
154+
of Branch E2E (label `test:e2e`), Release Dev and release qualification, through
155+
tmachine guests that install the packages. The playbook fails a lane if fewer
156+
tests run than the testsuite's `suite_expected_tests` in
157+
`tests/tmachine/config.nix`, so raise that number when you add a test.
160158

161159
Workspaces that build root crates through path dependencies must lock shared
162160
crates at the versions in the root `Cargo.lock`; otherwise CI can build against
@@ -271,12 +269,12 @@ HTTP `Host`, TLS SNI, and mTLS handling.
271269
Suites:
272270

273271
- Common suite (`--features e2e`) - driver-neutral CLI behavior, sandbox lifecycle, sync, port forwarding, policy, and provider tests.
274-
- CLI conformance (`tests/suites/conformance`) - portable Cargo tests for
275-
lifecycle, mechanistic drafts, file transfer, and the sandbox-local API,
276-
including agent-authored permission requests. Driver E2E runs the complete
277-
Cargo test package. The installed-artifact conformance suite runs the same
278-
tests from a nextest archive and offers a focused `policy-advisor` testsuite
279-
for manual integration runs.
272+
- Sandbox suites (`tests/suites/sandbox`) - driver-neutral testkit tests for
273+
lifecycle, CLI create/exec/list/stop/delete, file transfer, and policy
274+
advisor drafts and the sandbox-local API. Driver E2E runs the lifecycle,
275+
file-transfer and policy-advisor packages. The installed-artifact `sandbox`
276+
testsuite runs the same tests from a nextest archive and offers a focused
277+
`policy-advisor` testsuite for manual integration runs.
280278
- Driver suites (`--features e2e-docker`, `e2e-podman`, `e2e-kubernetes`, or
281279
`e2e-vm`) - CLI conformance plus the common and driver-specific coverage for
282280
the selected deployment.
@@ -322,8 +320,8 @@ cargo build --package openshell-cli
322320
OPENSHELL_BIN="$PWD/target/debug/openshell" \
323321
cargo test \
324322
--locked \
325-
--manifest-path tests/suites/conformance/Cargo.toml \
326-
--package openshell-test-conformance-cli \
323+
--manifest-path tests/suites/sandbox/Cargo.toml \
324+
--workspace \
327325
--no-fail-fast \
328326
-- \
329327
--test-threads=1 \
@@ -406,12 +404,12 @@ store. The separate `driver-podman` testsuite compares OpenShell and direct
406404
Podman user-namespace mappings for the default, `auto`, `keep-id`, and private
407405
profiles. The E2E archive excludes binaries that still depend on wrapper-owned
408406
gateway controls, SPIFFE fixtures, the caller driver-config setting, or other
409-
guest setup. The `driver-podman` suite replaces the removed `podman_userns` E2E
407+
guest setup. The `driver-podman` suite (`tests/suites/podman`) replaces the removed `podman_userns` E2E
410408
binary. `tests/tmachine/artifacts.nix` keeps the follow-up exclusions explicit and uses
411409
the same filter for the generated inventory, so excluded binaries cannot appear
412410
as false passes or silently re-enter the archive.
413411

414-
The `oci-image` feature testsuite (`tests/suites/features/oci-image`) checks
412+
The `oci-image` testsuite (`tests/suites/sandbox/oci-image`) checks
415413
OCI image identity and working-directory behavior shared by the Docker and
416414
Podman drivers against installed deb packages on Ubuntu and rpm packages on
417415
Fedora. CI runs it on Docker rootful, Podman rootful, and Podman rootless guests:

‎crates/openshell-conformance/Cargo.toml‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎crates/openshell-conformance/src/executor.rs‎

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)