Files
nvke/docs/qualification/overview.md
Ganesh Reddy 4c9ed2ffb5 feat(e2e): run the kaps-bench smoke test on the perf stream (#2361)
* feat(e2e): run kaps-bench on the perf stream's tenant

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* feat(e2e): stage kaps-bench and helm on the perf stream's runner

Today a CI perf run stops at the suite's early check: the job leaves E2E_KAPS_BENCH_DIR empty and the runner has neither kaps-bench nor helm.

After this, a stream with kaps-bench run specs logs in to NVCR, sets up helm at the pinned version, copies kaps-bench and its folder out of the image pinned in make/tool-versions.mk, and checks them with list-run-specs. Each run also uploads kaps-bench-results.tar.gz with the other suite files.

Every new step runs only for a stream with kaps-bench run specs, so other streams run as before and their plans do not change. kaps-bench-results.tar.gz holds kaps-bench's output dir alone: its kubeconfig sits in the suite's temp dir outside it, and kaps-bench never sees the jump hosts or the token issuer that the log scrub withholds.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* fix(e2e): check the kaps-bench binary before a machine is taken

requireKapsBenchTools now refuses a kaps-bench folder with no runnable kaps-bench in it, and a folder path that is not absolute, so both fail before the site and tenant are built instead of at the first run spec.

Flag help and docs list the binary among the folder contents, say the results archive is absent when no run spec got as far as writing an output dir, and say helm is needed and checked for a stream with kaps-bench run specs.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* feat(e2e): let kaps-bench install what its run specs need

Perf stream policy now names the run spec smoke/smoke-prometheus.yaml in place of smoke/smoke.yaml. That run spec lists kube-prometheus-stack as something to install first, so kaps-bench installs it with the helm in its own folder and leaves it for the run specs that follow. nvke no longer installs Prometheus: the helm call and its embedded values file are removed, and the perf stream's runner no longer needs helm on PATH.

requireKapsBenchTools also refuses a folder without a runnable bin/helm, so such a folder fails before the site and tenant are built. kapsBenchSetup is the renamed once-per-tenant setup and writes the cluster context.

kaps-bench gets 5 minutes between SIGTERM and SIGKILL when a run spec reaches its limit. In that time it stops its engine, writes its final record and removes a chart it had half installed. 5 seconds was too short for that: a stop during a chart install took 11.2 seconds in a hand test. tenantToolRun takes the 5 minutes as a stop grace per tool, and AICR keeps 5 seconds and its 10 second wait. So that the grace fits inside the spec's limit, kaps-bench is stopped 39m50s into the first run spec and 24m50s into a later one. When a canceled command returns, every process group it listed gets SIGKILL straight away, so a child that ignored SIGTERM does not outlive the spec. AICR runs get the same.

Each run spec keeps its time limit and token lifetime, and the perf stream keeps its suite timeout. In qualify-e2e.yml, the helm steps run only for the GPU runtime again, as on main.

KAPS_BENCH_IMAGE stays at v0.3.1, which has no smoke-prometheus.yaml, so the perf stream stops at its early check until the pin moves to an image that has it.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* feat(e2e): give the perf stream's tenant a monitoring node

Today the perf stream's tenant is one control plane and three workers, and nothing keeps the benchmark's Prometheus off the workers it measures.

A stream can now ask for monitoring nodes with monitoringWorkers in release/policy.yaml, and the perf stream asks for one, so its tenant is one control plane, three workers and one monitoring node. Planning carries the value into the plan, the summary line and the matrix, and the run step passes it to the suite as -e2e.monitoring-workers. With it above 0, the suite asks the site controller for a second node pool, monitoring, whose nodes are labeled node-role.kubernetes.io/monitoring and tainted monitoring=true:NoSchedule, and labels the workers node-role.kubernetes.io/worker. Only Pods that tolerate the taint can land on the monitoring node. Pool labels and taints are applied by the controller while it provisions a node, before it lifts its own provisioning taint, so no node is schedulable without them.

Both label keys sit under kubernetes.io, which the controller refuses unless its nodeMetadata.allowlistedLabelKeys lists them. A site the suite builds allowlists exactly those two keys, and only when the stream asks for a monitoring node. Taint keys under reserved domains are always refused, so the taint key is simply monitoring. Forge and DSX pool specs and the NICo and CAPD request builders now carry a pool's labels and taints where they dropped them, and the capacity check counts the monitoring node with the workers, since it takes the worker shape.

A stream without the parameter, or with 0, runs as before: its plan, its run step's flags, the node pools in its create request and the site's controller values are all unchanged. Plans for every other scope are byte identical.

Not proven before a real run: the tenant's OVN-Kubernetes DaemonSet comes from a bundle outside this repository. Upstream OVN-Kubernetes tolerates every taint, and this bundle was not read. If it does not tolerate monitoring=true:NoSchedule, the monitoring node never becomes Ready and the tenant create times out. kaps-bench does not place Prometheus on the monitoring node yet, so until its values select the node, Prometheus still lands on a worker.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* chore(e2e): follow the latest kaps-bench image

Perf runs stage nvcr.io/j7sbcjl3qgta/kaps-bench:latest and pull it fresh each time, so every run gets the build kaps-bench main published last. A perf result can move with a kaps-bench change and no nvke change. Each run prints the image digest in its Stage kaps-bench step; compare digests before comparing two results.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* fix(e2e): redact the kaps-bench results archive

kaps-bench-results.tar.gz now goes through the same substitution as nvkectl-diagnostics.tar.gz, with each withheld value and its base64 form replaced in every file of the archive. In the site lane the list is the one the site's archives get: the values withheldFromEnvironment returns and every credential the deploy places on the node. In the lane that builds no site it is the values withheldFromEnvironment returns. Perf runs follow the newest kaps-bench image, so what kaps-bench writes into its output folder can change with no change in this repository, and a failed connection's error text names the address it tried; a file with nothing to replace keeps its bytes.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* fix(e2e): refuse monitoring nodes on a tenant that gets the GPU runtime

A run that installs the GPU runtime on its tenant and also asks for monitoring nodes now fails before a machine is taken: in the site lane's first step at stage full, and at the start of the tenant create in the lane that builds no site. GPU checks expect -e2e.tenant-workers GPU nodes, and the monitoring node takes the worker shape, so on a GPU run it would most likely count as one more. No stream runs that combination, so the suite refuses it up front. A run with the GPU runtime switched on and no GPU to install it on, as on the perf stream, still goes ahead and skips the runtime.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

* fix(e2e): check the kaps-bench folder before the nico-forge lane creates a tenant

Against a site the suite did not build, the nico-forge lane now checks the kaps-bench folder and its run specs at the start of the tenant create, as the site lane does in its first step at stage full. Until now that lane found a missing folder only once the tenant was up and its checks had run. A run without kaps-bench run specs passes the check as before. In the e2e README, nico-forge is now the only lane named as running on a site the suite did not build, since nico-dsx runs only on a site it builds.

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>

---------

Signed-off-by: Ganesh Reddy <gputta@nvidia.com>
2026-11-20 16:46:02 -06:00

12 KiB

Release Qualification

Overview

Qualification asks one question: do these particular component versions work together, on real hardware, installed the way a customer installs them?

It is not the same thing as the e2e test suite, though it uses it. The difference is what the tests run against.

The e2e CI lanes Qualification
Machines none — containers or VMs on the runner bare metal from an infrastructure provider
Site controller Tilt installs the stack into a Kind cluster nvkectl bootstrap site, then the NVKE stack from the SBOM
Backends capd, nico-containers, nico-vms nico-forge
What it proves the code is correct the code is correct on the path a customer takes
Cost minutes, free around 80 minutes, real hardware

Three concerns, kept apart on purpose, and it is worth knowing which one you are reading about:

flowchart LR
    Q["qualification<br/>decides what to prove,<br/>records what was proven"]
    E["environment provisioning<br/>makes a real system exist,<br/>then releases it<br/>hardware-qualification.md"]
    S["the e2e suite<br/>asserts behaviour, identically<br/>on every backend<br/>controller/test/e2e/README.md"]

    Q -->|"a cell: versions and capabilities"| E
    E -->|"a live system under test"| S
    S -.->|"ginkgo reports"| Q

The CI lanes run on every pull request and are where defects are normally caught. Qualification runs when someone asks, because everything a Tilt-built cluster proves about the engine, it proves about the engine running somewhere no customer runs it.

What a run does

Four steps, each built on the one before:

  1. Provision a bare machine from Forge — iPXE boot, the OS image under qualification written to disk, reachable over the site's jump host.
  2. Bootstrap a site controller on it: stage nvkectl, generate a site spec, run nvkectl bootstrap site, install the NVKE stack, and confirm the engine answers at the expected version.
  3. Create a tenant cluster through that engine's own API — not through Forge directly — so the product's front door is part of what is tested.
  4. Bring up its node pools on real machines, assert every node reaches Ready, then tear everything down.

hardware-qualification.md says how to start and follow a run, and hardware-qualification-design.md explains each step and why the awkward parts are the way they are.

Running one

The lane never starts on its own. It runs on a workflow_dispatch, when one of these labels is applied to a pull request from this repository, or when a vX.Y.Z-beta.N tag is pushed. It is deliberately not on a schedule or on every push: it costs hardware, and a run nobody is watching is a run nobody acts on. A beta tag is cut once a night, so it adds one run rather than a stream of them. On the days named in the repository variable NVKE_PERF_WEEKDAYS, a beta tag push also runs the perf scope through the Qualify perf workflow.

label what it runs
qualify-e2e QUALIFY_E2E_SCOPE, or golden-path when that is unset: Ubuntu 24.04 on GB200, both arches
qualify-e2e-l40s the l40s scope: Ubuntu 24.04 on L40S at site-1, amd64
qualify-e2e-dsx the dsx scope: the DSX datahalls except GB300, at stage full by default
qualify-e2e-dsx-gb300 the dsx-gb300 scope: the GB300 datahall, at stage full by default
qualify-e2e-dry-run everything except joining Teleport and running the suite

The DSX label names its scope outright, where qualify-e2e takes whatever QUALIFY_E2E_SCOPE says. It no longer pins a stage: the datahall binds eight machines and the suite has a DSX tenant spec, so a full run places its three --- a site controller, a tenant control plane and a worker --- the same as any other lane. A lane that wants a shorter stage sets QUALIFY_E2E_STAGE in its own environment.

A run starts with a plan job that runs qualify plan and uploads plan.json, and then a single qualify-run job runs once for each stream of the plan's scope: it checks that everything the plan names is published, resolves versions and capabilities, builds the site inputs, and reaches Forge, DSX or Teleport. The versions, the architecture and the GPU model of a job are the plan's, and the dispatch inputs that name a version override what the plan resolves.

qualify-run is gated behind a GitHub environment from its first step, so every run -- dry or real -- waits for approval before it can touch any credential -- including the NGC key it logs into NVCR with -- or a machine. A workflow_dispatch or a labelled pull request resolves forge, which carries a required reviewer. A beta tag push instead resolves forge-nightly, which carries the same secrets but no required reviewer -- an unattended nightly cannot wait on a person, so the control there is the deployment tag policy (v*-beta.*) rather than a reviewer. There is no ungated job and no ungated trigger left in this lane: a label or a dispatch alone, dry run included, cannot reach any credential without an approval.

Qualifying a beta. Every component is versioned by the repository's vX.Y.Z tags, so a tag push asks for resolution: commitDescribe, which describes each component at the commit the tag marks. On that commit the description is the tag itself, so every component resolves to the version being qualified. The commit is derived from the version being qualified rather than given.

A tag push also ignores the QUALIFY_E2E_* variables that stand in for a dispatch input on a labelled run: the scope, the stage, keep-site, the image registry and the version overrides. They hold whatever the last labelled run asked for, so a beta qualifies golden-path at stage full from NVCR and keeps no machine, whatever they say. The run's resolved inputs name any of them that was set and not applied.

commitDescribe is also the default, and it is the right resolution for a release as well as a beta. An RC publishes nothing, and sits on the commit of the beta it was cut from as a lightweight tag, so git describe there names the beta: qualifying an RC resolves the beta's artifacts, which are the RC's. A signed RC tag would name versions nothing published (see artifact-publication.md). Once the commit also carries a release tag, git describe names the release, so a later qualification of its beta or RC resolves the release's artifacts, built from the same commit; check the resolved versions in the plan. Do not select gitTag for a qualification: it takes the highest v* tag in the repository, which is not necessarily the version being qualified. The plan records the commit and, for each component, the strategy that answered, so a run says afterwards how every version was arrived at.

A dry run does everything except join Teleport and run the suite, so it takes no Forge machine, but it still reaches the same forge/forge-nightly environment gate a real run does and waits on the same approval -- it skips Teleport and the suite, not the credentials it needs to get that far. It is the dry-run dispatch input, or the qualify-e2e-dry-run label on a pull request. Each stream's qualify-run still builds the site inputs, which confirms every image and archive exists (a real NGC_API_KEY-backed NVCR login, same as any other run), and still writes the e2e config. It then prints the -e2e.versions and -e2e.capabilities the suite would have been given into qualify-e2e.log. A dry run has its own concurrency group, so it does not wait behind a real run, and its jobs are named <stream> (dry run).

-e2e.site-stage chooses how far to go, so you can pay for the part you need:

Stage Does everything above, plus Roughly
provision a Forge node, reachable, then released 20 min
bootstrap vanilla Kubernetes via nvkectl bootstrap site 45 min
deployment the NVKE stack and the engine 60 min
full a tenant cluster 80 min

Reading a result

Every run uploads the same artifacts whether it passed or failed:

Artifact What it is
qualify-e2e.log the Ginkgo run
qualify-e2e.junit.xml the same result, machine-readable
run-inputs.txt which versions and settings the run actually resolved, and which were overridden
nvkectl-diagnostics.tar.gz what nvkectl collected on the node — present only when it failed
site-cluster-state.txt the controller namespace and every pod, read on the node — present after a failure past the bootstrap
site-bundle*.tar.gz the failure bundle: the node's state and logs, the cluster's objects, events and pod logs, and a timeline — present after a failure; a site-bundle*.txt note in its place says why there is none
tenant-diagnostics.json the tenant's nodes as the controller API reports them — present when a tenant failed
kaps-bench-results.tar.gz kaps-bench's output dir from every run spec it ran, absent when no run spec got far enough for kaps-bench to write one
tbot.log the Teleport bot, for when nothing could be reached at all

A red run is as likely to be the site as the code. triage.md is how to tell the difference without spending an afternoon on it.

What is qualified today

Stated plainly, because a green run should not be read as more assurance than it carries.

Covered. A site controller built the product way on real hardware at one site, and a tenant cluster created through the engine on that site, taken through create, node readiness, and delete.

Not covered:

  • GPU workloads. A GPU instance type is declared and has carried a tenant by hand, but nothing installs a GPU driver or device plugin, so a GPU node would come up Ready advertising no GPU. See environments.md.
  • Deeper tenant node-pool behaviour — replacement, cascade, manual scale-down. These specs exist and the simulator lanes run them; the Forge lane does not.
  • Site controller upgrade and scale. The site is a single node, and the upgrade specs act on a tenant cluster's control plane.
  • A second provider. Two sites are declared, site-1 and site-2, and the lane resolves between them by capability. Forge is still the only provider.
  • GPU software. A GB200 tenant has been qualified at site-2, but only to the point of its nodes going Ready. Nothing checks the driver, the device plugin or the nvidia.com/gpu resource.

Where to go next

Document Read it when
hardware-qualification.md you want to start a run, in CI or from your own checkout with qualify local, follow it, and read what it leaves behind
hardware-qualification-design.md you want to know how a run works inside, step by step, and what it deliberately does not cover
environments.md you are adding a site, an instance type, or a second infrastructure provider
triage.md a run went red and you need to know whether it is ours or the site's
Related, outside this directory:
Path Contents
controller/test/e2e/README.md running the e2e suite: labels, configuration, and the lane's prerequisites
.github/workflows/qualify-e2e.yml the workflow itself
RELEASE.md how a release is cut once a candidate qualifies