Skip to content

feat(testkit): run conformance as one program and skip unsupported tests per environment #5754

Closed

Description

@matthewgrossman

User Story

I maintain OpenShell's end-to-end tests and CI, and I run openshell-conformance against my own gateways. I need one way to say "this environment does not support test X yet" that behaves the same however the tests are started, so a port to testkit does not have to lose coverage everywhere or wait for a fix.

Problem Statement

  • cargo test and nextest run #[tokio::test] wrappers in the conformance library, while openshell-conformance run runs the program. Features that change how tests run (skips, timeouts, groups) have to be built twice or work on one path only.
  • The only switch for a test that does not pass somewhere is #[ignore], which turns it off in every environment, including where it passes.

Impact / Why This Matters

Ports from e2e/rust (#5281) either lose coverage or wait for fixes. For example, the on-failure restart test stayed in e2e/rust because of #5507.

Desired Workflow

  • openshell-conformance run, cargo test --bin openshell-conformance and cargo nextest run --bin openshell-conformance all run the same program.
  • An invocation lists unsupported tests as <test>=<issue url> entries in OPENSHELL_TEST_UNSUPPORTED. Every way of running the program then shows those tests as skipped, with the issue visible in the run summary and JUnit report.
  • Entries are checked strictly: an unknown, duplicate or #[ignore]d test, a non-https:// issue, or a malformed entry stops the run with exit 2.
  • Forcing an unsupported test to run fails with a message naming the issue.

Why an environment variable

The list is an environment variable and not a --skip flag:

  • --skip already means something else in two of the three ways of running tests. libtest's --skip PATTERN leaves out tests whose names match, and cargo nextest run accepts the same flag after --. So openshell-conformance --skip cli::x=https://... or cargo test -- --skip ... would be read as a name filter. It matches no test, so the test runs anyway, with no error. That is a silent misread, not just a confusing name.
  • A flag can't reach the program under nextest. nextest writes the program's command line itself (--list, then <name> --exact for each test). An environment variable is the only input every runner passes to every test process.
  • So one uniquely named variable is the one interface that behaves the same under openshell-conformance run, cargo test and nextest, which is the point of running one program everywhere.
  • "Unsupported" describes the environment ("this doesn't work here yet, see the issue"), not an action like a filter.
  • A later run --unsupported shortcut would be safe, because libtest rejects flags it doesn't know, so it could not be misread the way --skip would. Leaving it out keeps exactly one way to give the list.

Success Criteria

  • The same entry produces the same skip under run, cargo test and nextest.
  • A bad entry exits 2 before any test is listed or run.
  • Wiring skips into CI matrix rows, runner flags and host lanes is separate work.

Activity

  1. added
    area:build
    topic:testing
    topic:dx
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildtopic:dxtopic:testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions