Skip to content

Commit 7a5a0fe

Browse files
authored
docs(rfc): propose OpenShell testing strategy (#3460)
* docs(testing): define nix and tmachine target state Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(testing): clarify current test paths Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): propose OpenShell testing strategy Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): clarify testing model and suite organisation Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): record agreed conformance policies Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): condense testing strategy proposal Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): clarify testing strategy and execution policy Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): clarify polling and test dependencies Signed-off-by: Evan Lezar <elezar@nvidia.com> * docs(rfc): align testing strategy with testkit and tmachine 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> --------- Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent dce49a0 commit 7a5a0fe

2 files changed

Lines changed: 447 additions & 0 deletions

File tree

‎CI.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,50 @@ For local test commands see [TESTING.md](TESTING.md). For PR conventions see [CO
88

99
PR CI runs on standard GitHub-hosted runners. `Branch Checks` and `Helm Lint` trigger on `pull_request` and `merge_group`. Workflow runs from outside contributors wait for a maintainer to approve them in the Actions tab.
1010

11+
CI implements the testing layers defined in `TESTING.md` through separate
12+
workflow families:
13+
14+
| Testing responsibility | Current CI implementation |
15+
|---|---|
16+
| Static, build, unit, component, and SDK checks | `Branch Checks` across Linux x86_64, Linux ARM64, and macOS ARM64, with additional language-specific jobs |
17+
| Runtime and cross-component validation | Label-selected `Branch E2E Checks` for Docker, Podman, Kubernetes, VM, GPU, MCP, Python, and managed or standalone drivers |
18+
| Nix and `tmachine` validation | Release Dev builds exact-revision artifacts and test archives, then runs CLI conformance in disposable Ubuntu/Docker and Fedora/Podman guests |
19+
| Windows compatibility | Opt-in Windows MSVC x64 and ARM64 jobs; main and manual runs also build release binaries |
20+
| Integrated revision validation | Required statuses on merge-group SHAs before `main` advances |
21+
| Published artifact validation | Release workflows and post-publish release canaries |
22+
| Security analysis | Required dependency and deployment gates plus informational reports described below |
23+
24+
This is not yet the full target state. The project is migrating integration and
25+
Linux installation testing from `mise` tasks and workflow-local shell harnesses
26+
to Nix-built artifacts and `tmachine` wherever the runner can represent the
27+
environment. Today that path is limited to release conformance. `TESTING.md`
28+
defines the desired gates, matrices, migration phases, and deferred decisions.
29+
This document should describe a migration step as complete only after the
30+
workflow enforces it.
31+
32+
### Current tmachine implementation
33+
34+
`.github/workflows/conformance.yml` is the first implementation of this model.
35+
It downloads exact-revision binaries and OCI image artifacts, uses
36+
`nix run .#build-artifacts-test-archives` to package the test suite, and fans out
37+
`nix run .#tmachine -- test <scenario> <testsuite>` on KVM-enabled runners. The
38+
workflow caches prepared disks, while `tmachine` gives each test a fresh writable
39+
overlay. Release Dev currently calls the reusable workflow for these pairs:
40+
41+
| Scenario | Testsuite |
42+
|---|---|
43+
| `ubuntu-docker-rootful` | `conformance` |
44+
| `fedora-podman-rootful` | `conformance` |
45+
| `fedora-podman-rootless` | `conformance` |
46+
47+
This workflow currently runs from Release Dev. It is not a required pull-request
48+
or merge-queue gate. Branch E2E, GPU, Kubernetes, VM, Windows, and release-canary
49+
workflows continue to provide the coverage that has not migrated to tmachine.
50+
51+
The desired merge matrix, release-validation model, and migration sequence are
52+
defined in [TESTING.md](TESTING.md). They describe target behavior and do not
53+
become current CI behavior until the corresponding workflows implement them.
54+
1155
`pull_request` runs from forks get a read-only token and no secrets, so they cannot post statuses. `Required CI Gates` runs from the base repository (`pull_request_target` and `workflow_run`), never checks out PR code, and posts the required `OpenShell / ...` statuses on the PR head SHA. E2E suites are opt-in because they are more expensive.
1256

1357
Merge queue validation is a second integration gate for `main`. After a PR has passed the required PR-head statuses, a maintainer adds it to the merge queue. GitHub creates a temporary merge-group branch that combines the latest `main`, the queued PR, and any earlier queued PRs. The same required `OpenShell / ...` status contexts are then published against the merge-group SHA before GitHub merges it.

0 commit comments

Comments
 (0)