Skip to content

docs(rfc): propose OpenShell testing strategy - #3460

Merged
elezar merged 9 commits into
mainfrom
codex/testing-target-state/el
Nov 26, 2026
Merged

elezar merged 9 commits into
mainfrom
codex/testing-target-state/el

Conversation

@elezar

@elezar elezar commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Propose a testing strategy for OpenShell that verifies required public behavior across drivers and deployment environments. Separate test requirements, target preparation, and execution policy.

Related Issue

Part of #3954. Implementation remains follow-up work.

Changes

  • Define test families and conformance, feature-specific, and driver-specific e2e types.
  • Describe conformance areas, test requirements, and failure handling without automatic retries.
  • Propose opt-in PR runs, release qualification, and labels for selecting e2e streams.
  • Place suites under e2e/suites/ and separate provisioning from test execution.
  • Plan incremental migration, with disruption tests in a later phase and standalone conformance packaging as a follow-up.

Testing

  • mise run pre-commit passed, including Markdown and Mermaid validation.
  • Whitespace checks passed.
  • Only the RFC changed; runtime tests are not applicable.

Checklist

  • Conventional commit with DCO sign-off.
  • Documentation-only proposal; implementation and CI changes follow separately.

@copy-pr-bot

copy-pr-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@elezar elezar added the rfc label Oct 1, 2026
@elezar elezar changed the title docs(testing): define Nix and tmachine target state docs(rfc): propose OpenShell testing strategy Oct 1, 2026
@elezar
elezar force-pushed the codex/testing-target-state/el branch from 5309c7e to 9c98a7f Compare October 1, 2026 13:08
@elezar
elezar marked this pull request as ready for review October 1, 2026 16:05
@elezar
elezar requested review from a team, derekwaynecarr, mrunalp and sjenning as code owners October 1, 2026 16:05
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
Comment thread rfc/0016-testing-strategy/README.md Resolved
@politerealism

Copy link
Copy Markdown
Contributor

Research pass (no code changes) on the "temporary e2e-podman feature, exclusion list" the implementation plan calls out for retirement (item 4), done in support of this RFC's general-conformance/driver-specific categorization. Posting findings here since this seems like the concrete migration example the open questions section asks for.

Ground truth: e2e/rust/tests/ has 54 test files. The e2e-podman Cargo feature (which pulls in e2e, e2e-host-gateway, e2e-local-container-driver) makes 37 of them reachable under the Podman driver. PODMAN_CI_TESTS in e2e/rust/e2e-podman.sh — the required-CI inclusion list — only runs 20 of those 37. That leaves 17 tests that run under Podman today but are excluded from required CI, which I read in full against this RFC's category definitions.

Only 3 of 17 are genuinely driver-specific

File Why it can't generalize
podman_oci_identity.rs Shells directly to podman inspect/podman ps --filter label=..., asserts on Podman-specific container state (EffectiveCaps, HostConfig.NetworkMode, Mounts). Tests the Podman driver's own OCI-build→inspect→launch implementation, not a public contract.
podman_userns.rs Tests Podman's userns=keep-id/auto/private modes — a Podman-only gateway config concept — by editing the [openshell.drivers.podman] TOML section directly and inspecting /proc/self/uid_map. No equivalent exists for other drivers.
transparent_tcp.rs's rootless_podman_musl_getaddrinfo_uses_udp_policy_dns test Explicitly gated if !is_e2e_driver("podman"); its own doc comment says it isolates rootless Podman's UDP policy-DNS path specifically.

11 of 17 are already driver-independent in practice — general-conformance candidates

port_forward.rs, provider_auto_create.rs, provider_refresh_handles.rs, proxy_egress_pipeline.rs, sandbox_labels.rs (not even feature-gated today — already compiles unconditionally), sandbox_templates.rs, settings_management.rs, sync.rs, upload_create.rs, websocket_conformance.rs, workspace_lifecycle.rs. These exercise only the public CLI/API and generic process/network assertions — no engine shell-outs, no runtime inspection. Their current e2e-podman/e2e-host-gateway gating looks like an artifact of CI convenience, not an actual dependency.

2 of 17 are mostly general with one driver-coupled corner

  • sandbox_lifecycle.rs — almost entirely CLI-driven, but a few tests walk /proc directly for PID-signal assertions and one diagnostics helper shells to docker. Those sub-tests assume a local host-process model (fine for Docker/Podman, not Kubernetes/VM) — worth splitting out rather than excluding the whole file.
  • transparent_tcp.rs's other test (local_container_native_tcp_uses_policy_dns_and_fails_closed) — gated Docker-or-Podman, but assertions are identical either way; only fixture setup branches. This reads as feature-specific, not driver-specific — the harness needs extending to a third driver, not new assertions.

2 of 17 aren't conformance tests at all

internet_network_perf.rs and live_internet_traffic_perf.rs are opt-in (#[ignore]) performance benchmarks. Per this RFC's categories these belong in load/scale, not general conformance or driver-specific — they shouldn't have been part of this exclusion-list question in the first place.

Pattern worth flagging directly

Several files are gated as e2e-podman/e2e-host-gateway purely by historical convenience of how they're currently launched in CI, not by any real Podman dependency in the test body — provider_refresh_handles.rs and websocket_conformance.rs are the clearest examples. That matches this RFC's framing exactly: "Rootful and rootless Podman are two environments of one driver, not two-driver evidence" — several of these 11 general-conformance candidates are currently only validated against one driver's environment, not actually coupled to it.

Net: 11 of 17 are ready-now general-conformance candidates (pending a second driver's evidence per the admission rule), 1 more is feature-specific pending harness work, 1 needs splitting rather than wholesale reclassification, 3 are legitimately driver-specific, and 2 aren't conformance tests at all (load/scale).

Happy to go deeper on any of these (e.g. draft the actual split for sandbox_lifecycle.rs, or run the 11 candidates against Docker to confirm the "two drivers" admission bar) if useful.

@github-actions

Copy link
Copy Markdown

This pull request has had no activity for 14 days and is now marked stale.

@github-actions github-actions Bot added the state:stale Inactive item at risk of automatic closure. label Oct 29, 2026
@elezar
elezar force-pushed the codex/testing-target-state/el branch from 1db40c0 to b06ce38 Compare November 11, 2026 15:21
@github-actions github-actions Bot removed the state:stale Inactive item at risk of automatic closure. label Nov 12, 2026
@purp purp added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:architecture System design, component boundaries, data/control flow, architectural decisions, and RFCs. topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. topic:testing Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure. labels Nov 15, 2026
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Update RFC 0016 to the current tests/ layout, the testkit and runner
execution model, the openshell-conformance program, and the in-progress
migration tracked in #5281. Document the #[ignore] process as the only
skip mechanism and record open questions.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar
elezar added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 7a5a0fe Nov 26, 2026
89 of 90 checks passed
@elezar
elezar deleted the codex/testing-target-state/el branch November 26, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. rfc topic:architecture System design, component boundaries, data/control flow, architectural decisions, and RFCs. topic:documentation Architecture docs, READMEs, project website updates, and automated documentation generation. topic:testing Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants