Repository navigation
perf(e2e): run conformance in parallel with nextest - #5865
matthewgrossman wants to merge 15 commits into
Conversation
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. cli — No explicit risk acceptance found
Review details
Advisory review; publication gates are unchanged. |
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. configuration — No explicit risk acceptance foundThe E2E wrappers stop honoring OPENSHELL_CONFORMANCE_BIN and OPENSHELL_CONFORMANCE_JUNIT and instead require OPENSHELL_TESTKIT_BIN and OPENSHELL_TESTKIT_JUNIT.
Review details
Advisory review; publication gates are unchanged. |
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. rust-sdk — No explicit risk acceptance foundopenshell_sdk::raw::proto::ProviderCredentialRefreshStrategy gains GithubAppInstallation, expanding an existing exhaustive public enum.
2. configuration — No explicit risk acceptance foundOmitted supervisor_image and sandbox_runtime_image settings now select quay.io/ai-openshell images instead of ghcr.io/nvidia/openshell images.
3. cli — No explicit risk acceptance foundPrebuilt openshell-conformance run now executes tests from a temporary workspace rather than the caller's working directory.
Review details
Advisory review; publication gates are unchanged. |
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. cli — No explicit risk acceptance foundopenshell-test-runner run --program <binary> now interprets program exit 1 as an execution error instead of a test failure.
Review details
Advisory review; publication gates are unchanged. |
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Revert the bundled-nextest packaging. openshell-conformance only writes the metadata nextest needs (nextest-metadata DIR), and callers run cargo-nextest themselves, so every nextest option works unchanged. Replace OPENSHELL_TESTKIT_THREADS with nextest's own NEXTEST_TEST_THREADS. The wrapper's profile defaults to one thread because tests share a gateway. This reverts commits 7dc9bb5, fc3d032, c56037e and d942fbf. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Drop the wrapper profile's test-threads = 1 so local runs use nextest's default of one test per CPU. CI sets NEXTEST_TEST_THREADS explicitly. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Simultaneous VM launches on a fresh gateway crash with a vCPU "Bad address" error (#5902), so keep the VM lanes serial until the driver handles concurrent first launches. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. helm — No explicit risk acceptance foundHelm publication moves from GHCR’s helm-chart to Quay’s charts/openshell, while default image repositories change from openshell/* to ai-openshell/*.
Review details
Advisory review; publication gates are unchanged. |
NEXTEST_TEST_THREADS is set for the whole CI step, so the legacy Kubernetes nextest run inherited it. Unset it there to keep that suite on its own profile's concurrency. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
The runner and the host-lane wrapper wrote the same nextest profile and passed the same output flags. Keep them in one checked-in file that the runner embeds and the wrapper passes by path. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Summary
Run the prebuilt
openshell-conformancebinary concurrently in E2E using nextest's scheduler.The binary still works on its own:
openshell-conformance runruns the suite serially with no other tools, as before, with each test in its own process and an optional JUnit report. If nextest is installed, it can schedule the same binary instead. That adds parallel workers, retries, filtersets, per-test grouped output and the rest of nextest's options. The binary stays a single static executable. It only writes the build metadata nextest needs, and you run your owncargo-nextestagainst it, so every nextest option works unchanged.Related Issue
Closes #5860
Part of #5765 (step 1: let nextest run the prebuilt program). Step 2, turning the features and drivers suites into programs, is separate.
Changes
Add
openshell-conformance nextest-metadata DIR. It writescargo-metadata.jsonandbinaries-metadata.jsondescribing the running executable as the only test binary. These are nextest's documented reuse-build inputs, part of its append-only machine-readable API within 0.9.x. Then run:openshell-conformance runstays the serial runner that needs no nextest. Plain Cargo builds and libtest discovery are unchanged.The E2E wrappers (
e2e/support/conformance.sh) and the tmachine runner (--program) use nextest with the existing 15-minute per-test limit, 10-second grace period and JUnit report. Nextest comes frommise.tomlon hosts and the tmachinenextest.yamlplaybook in guests, both pinned to 0.9.143.Concurrency uses nextest's own
NEXTEST_TEST_THREADS, with no OpenShell-specific knob. Local wrapper runs use nextest's default of one test per CPU. CI setsNEXTEST_TEST_THREADS: "4"for the Docker, Podman and Kubernetes host lanes. The tmachine runner keeps--test-threads, withtest_threads: 4on the conformance rows. Runner--programrows use a fixed nextest profile until per-family nextest settings land (test(runner): apply per-family nextest config and a thread count to runner rows #5295).The VM host lanes run conformance with one worker (
NEXTEST_TEST_THREADS: "1"). Simultaneous VM launches on a fresh gateway crash with a vCPUBad addresserror, tracked in bug: concurrent VM sandbox launches crash with vCPU "Bad address" (ProcessExited) #5902. Parallel tests exposed that driver bug; it is not a conformance test problem.Require conformance tests to work on a shared gateway. No run-alone marker: it would not protect other gateway users or other suite invocations.
Tests run from the metadata directory, so paths such as
OPENSHELL_BINmust be absolute. The wrappers already resolve it.An earlier revision embedded nextest in the binary. That was reverted in 693369a in favor of this smaller design.
Shared-gateway audit
Reviewed all 49 registered tests on the
mainbase, across these 18 modules:smoke,lifecycle,attach,cli,exec_cli,image,processcx.name. List assertions select the test's own sandbox by name. Exec, attach, restart, environment and cleanup operate on that sandbox only.create_upload,file_transfer,persistent_workspace,sshfilesystem_policy,policy_advisor,settingssettingsreadsocsf_json_enabledglobally to check the prerequisite but does not set or clear it.credential_gatinglabels,templates,workspacesNo inference route changes, gateway-wide writes, or unscoped count assertions. No tests were marked, skipped, renamed, or changed. The legacy gateway-wide settings mutation remains outside conformance pending #5527.
Testing
cargo testandcargo clippy --all-targets -- -D warningsintests/testkitandtests/runnernextest-metadatafrom a local build ofopenshell-conformance, listed by nextest 0.9.143 with the wrapper profile andNEXTEST_TEST_THREADS=4NEXTEST_TEST_THREADSoverrides a profile'stest-threads(4 one-second tests: 4.1 s withtest-threads = 1, 1.0 s with the variable set to 4)Timings
Conformance step only, 49 tests. Before is serial
openshell-conformance runfrom run 45228231671, amain-based PR from the same day. After is this PR at four workers, run 45235328880. One run each.rust-docker)rust-podman-ci)VM lanes are unchanged because they stay serial. At four workers, 1–3 of the first simultaneous VM launches crashed with
Failure during vcpu run: Bad addressin every run, including run 45235328880. That is tracked in #5902.Checklist