Files
nvke/make/tool-versions.mk
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

213 lines
12 KiB
Makefile

# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Canonical tool versions. This file contains values only so module Makefiles
# can include it without adding root targets to their help output.
# Derived, not duplicated: go.work owns the Go version.
GOVULNCHECK_GO_VERSION ?= $(shell awk '/^go /{print $$2; exit}' $(dir $(lastword $(MAKEFILE_LIST)))../go.work)
GOVULNCHECK_VERSION ?= v1.6.0
# Waived govulncheck findings, as <module>=<OSV-id>[,<OSV-id>...]. Scoped to
# the advisory, not the module, so an unrelated reachable vulnerability in the
# same module still fails the gate. Empty: nothing is waived. A waived advisory
# that stops being called fails the gate, so an entry cannot outlive its reason.
GOVULNCHECK_WAIVED ?=
# Set both with any waiver. Name a person as the owner, not a team.
GOVULNCHECK_WAIVER_OWNER ?=
GOVULNCHECK_WAIVER_REVIEW ?=
# Committed digests, not fetched from the release. A checksum served by the
# same host as the artifact shares its compromise boundary; a committed one
# does not. One line per tool per platform, updated with the version above it.
ACTIONLINT_VERSION ?= 1.7.12
ACTIONLINT_SHA256_AMD64 ?= 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8
SHELLCHECK_VERSION ?= 0.11.0
# Next to the version so a bump cannot change one without the other.
# linux.x86_64 tarball for the version above.
SHELLCHECK_SHA256 ?= 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198
GITLEAKS_VERSION ?= 8.30.1
GITLEAKS_SHA256_AMD64 ?= 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb
GITLEAKS_SHA256_ARM64 ?= e4a487ee7ccd7d3a7f7ec08657610aa3606637dab924210b3aee62570fb4b080
# The GitHub CLI, for `gh attestation verify` in the image promotion gates.
# Pinned rather than taken from the runner image: the promotion jobs run on
# self-hosted runners, where gh may be absent or old, and the flags those gates
# depend on -- --signer-workflow, --source-digest, --source-ref -- are not in
# every release. A gate that silently degrades is not a gate.
GH_CLI_VERSION ?= 2.97.0
GH_CLI_SHA256_AMD64 ?= a2c9b8497e1f85b1ad0dfcb78b5a622e098801b8e461e459e88e1ee12f018112
GH_CLI_SHA256_ARM64 ?= 73ea440ecad9c9e284429997ee6f93577bc6f7bc6fba357ef62c53ad8fb641a5
# tsh and tbot for the Forge site-controller lane, out of one tarball. This
# pin is not free to move: it is matched to the Teleport cluster's server
# version rather than merely kept within the supported skew, because an
# unpinned client against a pinned cluster surfaces as an unexplained relay
# error deep in a 40-minute run. Bump it when the cluster is upgraded.
# teleport-v<version>-linux-amd64-bin.tar.gz.
TELEPORT_VERSION ?= 18.11.0
TELEPORT_SHA256_AMD64 ?= 8d3dba03ea6b6e0d72c97e190da0595e8f0d70f5573c3a26b1908cf60caf6e3f
# kaps-bench and its run spec folder, which the Forge lane copies out for a perf stream.
KAPS_BENCH_IMAGE ?= nvcr.io/j7sbcjl3qgta/kaps-bench:latest
# aicr installs and validates the GPU runtime on the Forge lane's tenant. It
# runs on the lane's amd64 runner whatever the tenant's architecture, so amd64
# is the only platform needed. aicr_<version>_linux_amd64.tar.gz.
# 1.2.0 is the first release with the NVKE recipe (gb200-nvke-ubuntu-training).
AICR_VERSION ?= 1.2.0
AICR_SHA256_AMD64 ?= 3ff6935fd7988373903a2a30f1c24a74a5f8a9052a310615db19fcfec4cfe9a2
KUBECONFORM_VERSION ?= v0.7.0
# .github/actions/setup-kubeconform installs it for chart.yml, on ubuntu-latest,
# so amd64 is the only platform needed.
KUBECONFORM_SHA256_AMD64 ?= c31518ddd122663b3f3aa874cfe8178cb0988de944f29c74a0b9260920d115d3
HELM_VERSION ?= v4.2.4
# promtool comes from the Prometheus release archive, installed on demand by
# chart-credential-alerts-assertions.sh for both chart-check and local use.
PROMTOOL_VERSION ?= 3.2.1
PROMTOOL_SHA256_LINUX_AMD64 ?= a622e3007c9109a7f470e1433cbd29bf392596715cf7eea8b81b37fa9d26b7be
PROMTOOL_SHA256_LINUX_ARM64 ?= f2dec3178f1181c1b795b275750d056e71ead13f7fbfe08b76834c4ec20b748e
PROMTOOL_SHA256_DARWIN_AMD64 ?= e73ecf2ccd3ecca4bba8f2f82f82c8c51d190283217c6007b41bfe2478ebe482
PROMTOOL_SHA256_DARWIN_ARM64 ?= f71d933be340486e27625a9b80c7be8282a5c8dbb041594ba2e52a4788dc6ebb
# The PrometheusRule JSON schema the same script validates the rendered rule
# against: monitoring.coreos.com/prometheusrule_v1.json at this
# datreeio/CRDs-catalog commit, verified against the digest below.
PROMETHEUSRULE_SCHEMA_VERSION ?= 501527ab9c40c827144c8f45945b25a023e344ce
PROMETHEUSRULE_SCHEMA_SHA256 ?= 9cd71d75b714b541a0be960b46bd961dbf1f0106071381cd88f54dfe80b8bd9d
# crane and nfpm build the CNI debs under os-image/packages/.
CRANE_VERSION ?= 0.21.9
CRANE_SHA256_AMD64 ?= 5c16d8ddb971cb1d5e6ed8b1e743da8224414eeba2c2762d8f1a61b2f095699e
CRANE_SHA256_ARM64 ?= 1f4c647b7bb260ab5435661df5b526cf59950ebf95201790db7183ac189cbcbd
NFPM_VERSION ?= 2.47.0
# The Ubuntu Server installer ISO, one line per point release per architecture.
# os-image/packer/Makefile selects by UBUNTU_RELEASE and ARCH and fails closed
# on a combination with no line here, so a release bump lands with its digest.
#
# Committed for exactly the reason stated at the top of this file. ISO_CHECKSUM
# used to be file:<the mirror's own SHA256SUMS>, which is served by the same
# host as the ISO: a host that substitutes the image serves the matching
# checksum with it, so that form cannot reject one.
#
# Taken from Canonical's SHA256SUMS and verified against the SHA256SUMS.gpg
# beside it with the Ubuntu CD Image Automatic Signing Key (2012),
# 8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092. To add or re-check a line:
#
# gpg --verify SHA256SUMS.gpg SHA256SUMS && grep live-server SHA256SUMS
#
# amd64 is published under releases.ubuntu.com/<series>/, arm64 only under
# cdimage.ubuntu.com/ubuntu/releases/<series>/release/ -- releases.ubuntu.com
# has no arm64 entry at all.
UBUNTU_ISO_SHA256_24_04_5_AMD64 ?= 97f3d7ffb032c3eb3b23d2c8be9cc76e60c2c1f2c0146ba5ba9fe01cafae0fd8
UBUNTU_ISO_SHA256_24_04_5_ARM64 ?= f12484464c7d4d73e2167e0a7dbda1e669f8fae9bcf778dc0944937034b320cb
UBUNTU_ISO_SHA256_26_04_1_AMD64 ?= cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927
UBUNTU_ISO_SHA256_26_04_1_ARM64 ?= af78753c94b924c85c4964c670692a853f7c80299a4064e317edad95462e3168
KIND_VERSION ?= v0.32.0
KIND_SHA256_AMD64 ?= 50030de23cf40a18505f20426f6a8506bedf13c6e509244bd1fa9463721b0f54
KIND_SHA256_ARM64 ?= b92cd615e97585de8ddade28ed5cd7feb4248d717c233eea5b03c37298900f5d
KUBECTL_VERSION ?= v1.36.0
KUBECTL_SHA256_AMD64 ?= 123d8c8844f46b1244c547fffb3c17180c0c26dac9890589fe7e67763298748e
KUBECTL_SHA256_ARM64 ?= 9f9d9c44a7b5264515ac9da5991584e2395bd50662e651132337e7b4d0c56f8f
# clusterctl and the CAPI core/kubeadm providers ship as one release, so one
# pin covers the binary and everything `clusterctl init` installs.
# Consumers: controller/Makefile.dev, controller/hack/ci/backend-e2e.sh,
# cli/Makefile, and the gofail and nvkectl bootstrap E2E workflows.
CAPI_VERSION ?= v1.13.6
# clusterctl-linux-{amd64,arm64} from the CAPI release above.
CLUSTERCTL_SHA256_AMD64 ?= 1e4019b8ef30fa13993716d28b9fec4072fee1e17ea2cc69cb7c8f232d9b8c2f
CLUSTERCTL_SHA256_ARM64 ?= c3fe61fd44fa63d2efcee2a93432619527909b210a84cda7ee86eea1425de8c2
# The cert-manager `clusterctl init` installs at CAPI_VERSION. Move it with
# CAPI_VERSION.
CERT_MANAGER_VERSION ?= v1.21.1
# Rancher's local-path-provisioner, the lab StorageClass of the local site
# (deploy/nvke-deploy-local.sh); a real site brings its own CSI driver.
LOCAL_PATH_PROVISIONER_VERSION ?= v0.0.37
# kind drives it as its container provider in the nvkectl bootstrap e2e, which
# installs the nerdctl-full release for this version. release/ reads this pin
# for the qualification plan.
NERDCTL_VERSION ?= 2.3.5
# Both from that release's SHA256SUMS, for the nerdctl-full archive. They move
# with NERDCTL_VERSION.
NERDCTL_FULL_SHA256_AMD64 ?= b697295c623639734aaab737523c808fd3cc8d3046039fd94fff1744e4c317aa
NERDCTL_FULL_SHA256_ARM64 ?= 6e4b687f1d138e750a3c8372abc0f81d3d7490b6359c48c0562fc7dfe98859b2
ORAS_VERSION ?= 1.3.3
PACKER_VERSION ?= 1.15.4
# packer_<version>_linux_{amd64,arm64}.zip, from HashiCorp's SHA256SUMS.
PACKER_SHA256_AMD64 ?= 15f97a6a99645c7d5308c609973b5280837b38e112beac413ccbce80da927cf1
PACKER_SHA256_ARM64 ?= 23e6d2e596dd9e2527e0f7bea9aedd26059729375a0d17c462c2621f1b97b82d
# The S3 client the OS-image bake reads its build cache with. The ARC runner
# images carry no AWS CLI. s5cmd_<version>_Linux-{64bit,arm64}.tar.gz, from the
# release's checksums.txt.
S5CMD_VERSION ?= 2.3.0
S5CMD_SHA256_AMD64 ?= de0fdbfa3aceae55e069ba81a0fc17b2026567637603734a387b2fca06c299b4
S5CMD_SHA256_ARM64 ?= 1439f0d00ecedcd2a2f1f2c6749bbb0152b2257bf5086f29646ec8ae38798e24
GO_LICENSES_VERSION ?= v2.0.2-0.20260709180300-7e73597a45d1
# Lints controller/api/openapi.yaml (`make -C controller/api lint-spec`).
VACUUM_VERSION ?= v0.30.6
# Diffs controller/api/openapi.yaml against the newest published controller/api
# tag and classifies each change (`make -C controller api-compat-check`). From
# the same author as vacuum, over the same libopenapi parser, so the gate and
# the spec linter agree on what the document says.
OPENAPI_CHANGES_VERSION ?= v0.2.11
# Renders controller/api/openapi.yaml into one HTML page (`make -C controller/api docs`).
REDOCLY_VERSION ?= 2.57.0
# Checks and publishes the documentation site (.github/workflows/api-docs.yml).
# fern/fern.config.json pins the same number; move both together.
FERN_VERSION ?= 5.143.6
# syft generates the SPDX SBOMs that ship with every released artifact. The
# version is pinned here rather than left to anchore/sbom-action's bundled
# default, so a re-run of an old tag produces the same document a consumer
# already has, and a syft bump is a reviewable commit rather than a silent
# change in what the release describes.
SYFT_VERSION ?= v1.41.2
# Validates each node image's CycloneDX SBOM against the 1.6 schema before it
# ships. cyclonedx-linux-{x64,arm64}, from the release's asset digests.
CYCLONEDX_CLI_VERSION ?= 0.33.1
CYCLONEDX_CLI_SHA256_AMD64 ?= bfc8b2538da86fe239bc53658bbb63c1c8c510a293c1e6891aa5bea5d3c58746
CYCLONEDX_CLI_SHA256_ARM64 ?= b2e9fdf9665ef49868a2ec012171c6e785dcd69745bc5869e53e4f4bfb096a5f
# Development tools invoked by module Makefiles. These were declared where they
# were used -- buf in agent/, setup-envtest and ginkgo in controller/, and
# controller-gen separately in two modules -- so nothing stopped two copies of
# the same pin drifting apart, and hack/tool-version-check.sh had nothing to
# check against. One declaration each, here.
ADDLICENSE_VERSION ?= v1.1.1
BUF_VERSION ?= v1.65.0
CONTROLLER_TOOLS_VERSION ?= v0.20.1
GINKGO_VERSION ?= v2.27.2
GOFAIL_VERSION ?= v0.2.0
GOFUMPT_VERSION ?= v0.11.0
GOIMPORTS_VERSION ?= v0.48.0
SETUP_ENVTEST_VERSION ?= v0.25.3
# Kubernetes version for the envtest kube-apiserver and etcd binaries.
ENVTEST_K8S_VERSION ?= 1.34.1
# The upstream SPIRE artifacts os-image/packages/spire-agent wraps into a .deb.
# Not a development tool, but the same one-owner rule applies for the same
# reason: these two also select the server-side attestor and the bundles the
# CAPD and NICo flows build against, and every consumer has to agree with the
# version the nodes actually run.
#
# Reading this file (enforced -- a literal re-declaration fails the check):
# os-image/packages/spire-agent/Makefile the node .deb
# controller/hack/ci/prepare-capd-bundles.sh CAPD e2e bundle
# controller/hack/capd-kindest-node/build-image.sh CAPD/NICo node image
#
# NOT reachable by the check, because these embed the version inside an image
# tag or a package spec rather than assigning it. Bump them by hand, here, in
# the same commit:
# controller/Tiltfile spire-tpm-plugin image tag + the
# sha256 of the binary inside it
# hack/mirror-bootstrap-images.sh spire-tpm-plugin image tag
# controller/hack/create-forge-nico-cluster.sh apt spire-agent=<v>+tpm<v>
#
# `git grep -n '1\.14\.1\|1\.9\.0' -- controller hack os-image` finds the whole
# set; the lock under os-image/packages/spire-agent/lock/ holds the digests and
# is regenerated with `make lock`, never hand-edited.
SPIRE_VERSION ?= 1.14.1
TPM_PLUGIN_VERSION ?= 1.9.0