Skip to content

test(e2e): stop E2E port PRs from conflicting on shared list files - #6143

Open
matthewgrossman wants to merge 6 commits into
mainfrom
test/e2e-shared-list-conflicts/matthewgrossman
Open

matthewgrossman wants to merge 6 commits into
mainfrom
test/e2e-shared-list-conflicts/matthewgrossman

Conversation

@matthewgrossman

@matthewgrossman matthewgrossman commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

E2E port PRs all edit the same shared lists, so each merge conflicts with the other open ports. This PR moves each of those lists into one file per suite, crate or feature environment, without changing any environments, CI rows, check names or built crates.

Related Issue

Closes #6142

Changes

One commit per refactor:

  • tests/support/Cargo.toml: members = ["*"] with exclude = ["target"], like tests/suites/features.
  • tests/tmachine/config.nix: each feature environment is its own file, tests/tmachine/features/<feature>.nix, loaded with builtins.readDir.
  • tests/support/README.md: the shared table keeps only the variables that testkit, the runner and CI own. Each support crate already documents its variables, and the environment that sets them, in its module docs, and each fixture names a missing variable in the test failure. I filled two gaps in the keycloak and container-engine module docs. A list of per-crate links would be another shared list, so there isn't one.
  • E2E matrix: the rows move from .github/workflows/e2e-suites.yml to tests/suites/ci-matrix.yaml, keyed by environment and installer, with each listing its suites. The file shows what each environment runs. Installers and environments are grouped by compute driver. Suite lists stay sorted, so ports that add different suites edit different lines. installers sets each installer's gateway and options. suites holds only conformance and the two continuity disruptions. Any other suite is a workspace path, or a crate directory in one such as features/cdi.
    • tasks/scripts/e2e_suite_rows.py (run with uv) builds complete rows (package, disruption, suite, artifact) for the workflow and check-conformance-program.sh, which Branch Checks runs on every PR. A crate directory resolves to its Cargo package name: features/kubernetes-updates runs --package openshell-test-feature-kubernetes-updates, and its checks keep the directory name. The script rejects unsorted or duplicate lists, unknown suites, crate directories and installers, and unknown keys. It accepts several matrix files, but nothing uses that yet.
    • The workflow only filters rows, then sets the runner and the bundle's target architecture, so a matrix change can't choose runs-on.
    • The select job checks out source-sha to read the matrix, the same revision the suites job runs, and sets up uv to run the script.
    • Matrix entries come out in file order, which only changes the order of jobs in the Actions UI.
    • chore: move or remove the driver e2e wrappers and lanes in core #6044 plans to move the Docker and Podman blocks and their installers to ai-openshell/desktop. Before that, continuity and the feature environments need a home in core.
  • TESTING.md, CI.md and the testkit README describe the new layout.

Rebasing an open port onto this

Take main's version of each conflicting file, then:

  • tests/support/Cargo.toml: nothing to add.
  • tests/tmachine/config.nix: put a new feature in tests/tmachine/features/<name>.nix and git add it, because the flake only sees tracked files.
  • tests/support/README.md: document new variables in the crate's module docs.
  • e2e-suites.yml: add the suite to each environment's sorted list in tests/suites/ci-matrix.yaml.

Testing

  • tmachine config: the tmachine-config derivation path and the full evaluated config are identical to main's on x86_64-linux, aarch64-linux and aarch64-darwin (27 environments).

  • E2E matrix: I ran the select step for all 24 combinations of family, external-drivers and upgrade-source. Every combination gives exactly the same matrix entries as main, every field included, and the 47 check names are unchanged.

  • Matrix validation: an unsorted or duplicate list, an unknown suite, crate directory, installer or key, or a runner in the file fails the expansion. Adding features/kubernetes-updates to a temporary copy resolves it to package openshell-test-feature-kubernetes-updates.

  • check-conformance-program.sh: the list of known environments is unchanged. I didn't run the whole script locally.

  • tests/support: cargo metadata lists the same eight members. Locked cargo check, cargo fmt --check and cargo clippy -D warnings pass, and so do check-cargo-lockfiles.sh and check_cargo_lockfile_alignment.py.

  • actionlint, shellcheck, zizmor (no new findings) and the license-header check pass.

  • Checks appropriate to the affected code and behavior pass

  • Unit tests added/updated (if applicable)

  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

…mber

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…ads them

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman requested a review from a team as a code owner December 1, 2026 21:14
@matthewgrossman matthewgrossman added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:testing Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure. labels Dec 1, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 1, 2026
@matthewgrossman
matthewgrossman force-pushed the test/e2e-shared-list-conflicts/matthewgrossman branch 2 times, most recently from 7cd9b4c to 4236deb Compare December 1, 2026 22:03
…-matrix.yaml

The matrix is keyed by environment and installer, with sorted suite lists, so the file shows what each environment runs and changes that add different suites edit different lines. tasks/scripts/e2e-suite-rows.sh expands it into the rows e2e-suites.yml and check-conformance-program.sh read.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman force-pushed the test/e2e-shared-list-conflicts/matthewgrossman branch from 4236deb to 36a816b Compare December 1, 2026 22:54
…conflicts/matthewgrossman

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

tasks/scripts/e2e_suite_rows.py replaces the shell and jq expansion of tests/suites/ci-matrix.yaml. The rows are unchanged.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman force-pushed the test/e2e-shared-list-conflicts/matthewgrossman branch from cc74f1a to 81a0c98 Compare December 2, 2026 00:52

This branch has not been deployed

No deployments
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. state:accepted A maintainer decided OpenShell should pursue this issue 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.

test(e2e): stop E2E port PRs from conflicting on shared list files

1 participant