Skip to content

test(drivers): build and run the Docker and Podman driver suites here (demo) - #17

Draft
matthewgrossman wants to merge 8 commits into
ci-driversfrom
test/6041-desktop-driver-suites/matthewgrossman
Draft

matthewgrossman wants to merge 8 commits into
ci-driversfrom
test/6041-desktop-driver-suites/matthewgrossman

Conversation

@matthewgrossman

Copy link
Copy Markdown
Member

Draft, demo only, not for merge. Stacked on #4 (ci-drivers).

This shows that OpenShell's driver suites can build and run from this repository, for
ai-openshell/openshell#6041. The real move should import the suites with their history (as
hack/migration did for the drivers) after OpenShell freezes the paths. This PR copies the files
without history, so its value is the adaptation commits and the CI wiring.

What it shows

  • The suites build here with no OpenShell change.
    • tests/suites/drivers/docker and drivers/podman come from test(e2e): port Docker and Podman driver feature tests from e2e/rust openshell#5695 as
      merged (6686f2ce2).
    • Their testkit and support crates are git dependencies at the same revision as the root
      workspace's OpenShell crates.
    • Each suite stays its own workspace, as in OpenShell.
    • Their lockfiles are seeded from the root Cargo.lock, which aligns every shared crate,
      including aws-lc-sys. The only exceptions are second-major copies the root doesn't use.
  • One pin. The Cargo pins, OPENSHELL_REV and OPENSHELL_TEST_INPUTS move together to
    6686f2ce2, which has a published test-inputs bundle.
  • The suites run in CI.
    • build-suite-bundles builds the suite bundles once per run with OpenShell's
      openshell-test-runner at OPENSHELL_REV.
    • E2E suite rows run them against the deb and rpm that carry the drivers built here: Docker on
      ubuntu-docker-rootful, and Podman on the eight fedora-podman-*-userns-* environments, as
      OpenShell's driver rows do.
  • Lint. Checks and mise run ci format-check and lint the suites.

Known workaround

tests/testkit is a shim. The runner builds testkit-ready from tests/testkit/Cargo.toml of
the repository it runs in (OpenShell tests/runner/src/bundle.rs, build_ready). A small runner
change, building it from the family's manifest, would remove the shim.

Not included

  • The driver-specific feature suites (features/driver-config, features/docker-updates).
  • Running OpenShell's gateway feature suites from a prebuilt bundle; this needs bundles in
    OpenShell's test-inputs.
  • VM and additional-CA lanes.

Copy tests/suites/drivers/podman from ai-openshell/openshell at the pinned
revision, with testkit and its support crates as git dependencies at that
revision instead of path dependencies. The lockfile keeps every registry
version; only the OpenShell crates change source.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Re-lock the suite starting from the root Cargo.lock, so the crates both
lock, such as aws-lc-sys, resolve to the root's versions.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Move the Cargo pins, OPENSHELL_REV and OPENSHELL_TEST_INPUTS together to
6686f2ce2, the main commit that merged the Docker and Podman driver suite
port. Release Dev published its test-inputs bundle.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…l#5695

Update tests/suites/drivers/podman and add drivers/docker as of the
merge of ai-openshell/openshell#5695, which adds the Docker suite and the
Podman lifecycle test. Their testkit and support crates come from the same
revision as the root workspace's OpenShell crates, and their lockfiles are
seeded from the root's.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
The driver suites are workspaces of their own, so the root workspace's
cargo commands skip them.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…-ready from

The runner's bundle build runs cargo on tests/testkit/Cargo.toml of the
repository it runs in, which only OpenShell has. This shim depends on
openshell-testkit at the suites' revision, so the runner can build a
driver suite bundle from this repository unchanged.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
The driver suites are workspaces of their own, so the Rust checks' root
workspace commands skip them.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Build the drivers/docker and drivers/podman bundles once per run with
OpenShell's openshell-test-runner at OPENSHELL_REV, and run them as
E2E suite rows: Docker on ubuntu-docker-rootful, Podman on the eight
fedora-podman user-namespace environments, as OpenShell's own
driver-specific rows do. The rows use the deb and rpm with the drivers
built here, like the conformance rows.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant