Files
HarishandClaude Opus 5 79eb54f0f0 feat(qualify): qualify a nightly beta tag against the artifacts built from its commit (#1619)
* feat(qualify): qualify a nightly beta tag against the artifacts built from its commit

Nothing qualifies a nightly beta today.

A vX.Y.Z-beta.N tag is repo-wide: it marks a commit and names no component
versions. The lane resolves components only from their own controller/v* and
os-image/v* tags, which name the last release rather than what the tagged
commit built, so a beta run reports success while testing different code.

Resolution gains the second question it needs. gitTagOrCommitDescribe holds
GitTag and CommitDescribe and owns the choice between them, selected by
--resolution and recorded per component in the plan. The commit is derived from
the version being qualified rather than given, so a run cannot name a version
and a commit that disagree, and the subject stays on gitTag because what a run
is called has to be a release that was cut. The existing resolution is
unchanged for the releases it already serves.

Existence checking leaves resolution. --check-exists is off by default, so
planning needs nothing but git, and a verify job asks the registry and the CDN
for everything the plan names before any machine is taken. A release's
artifacts were published when it was cut, so a miss is a fault to report now,
while a beta's publishers may still be running, so a miss means not yet.

The lane starts on a vX.Y.Z-beta.N tag, stages nvkectl from the registry in
both modes rather than from a GitHub Release a beta never has, and defaults to
the full stage so an unattended run qualifies the whole thing.

Resolves NKX-18023.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

* ci(qualify): ask once for artifacts on a dry run

A dry run takes no machine, so there is nothing for the wait to protect. It was
waiting out an os-image bake before reporting, which made the cheap way of
exercising the lane the slow one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

* fix(qualify): report the 403 explanation only for a 403

The bucket answers 403 both for a missing object and for a request from a
network that is not allowed, which is worth saying. Saying it for a 404 or a
500 sends a reader looking for a network problem that is not there.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

* feat(qualify): resolve a location as well as a version for each entry

A registry entry now answers two questions in two blocks. version names a
strategy of its own or takes one from another entry, and location says where
that version is published. gitTagOrCommitDescribe answers only what version,
osImage and ociArtifact answer only where, and NewVersion and NewLocation
reject a strategy written in the wrong half.

That is what lets the plan name an artifact published as one tag per platform.
nvkectl carries no index above its platform tags, so the cli version alone
names nothing, and cli-amd64 and cli-arm64 name one each. verify checks them
before a machine is taken, and the lane reads the reference from the plan
instead of composing a second one that could disagree.

The os-image filename fallback goes with it. The name is nvke-node unconditionally,
so planning reaches nothing but git. No release carries that name yet, so a
tag-resolved plan names a file that is not there until an os-image release is
cut after the rename.

plan.json records versionStrategy and locationStrategy in place of strategy.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

* fix(qualify): take the deploy path and the image names from the plan

The controller fetch built a tag name out of the version, and a describe
string has no tag, so every beta lane exited 1. It now fetches what that
component's own strategy calls for: the tag when the version was read from
the tags, and the commit the plan recorded when it was described at one. An
overridden controller in a beta run still wants its tag, which is why the
strategy is read per component rather than per run.

The e2e config named nvke-controller while site-inputs saved nke-controller
into the archive, so the node's containerd held an image the Helm values
never asked for. The names are NVCR's and differ from GHCR's, which three
separate comments claimed they did not.

A tag push carries no inputs, so a component override there could only come
from a repository variable belonging to label and dispatch runs. One left
set would qualify a pinned release component under the beta's name, so they
are dropped and named in a warning.

Check also holds a version taken from another entry to one that resolves a
version. A location-only source passed validation and failed later against
the artifact it could not name, blaming the wrong line.

Also: say what the nvkectl pull actually checks rather than overstating it,
name the variables the release README's examples need, and correct the claim
that internal/resolve takes nothing from this repository.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

* fix(qualify): stop waiting on a failure that waiting cannot change

verify --wait re-read every failure until its budget ran out, so a wrong or
expired NGC key cost ninety minutes to report a credential problem. A
registry answers 404 for an artifact it does not have, so being refused is
about the credentials rather than about whether the publisher has finished,
and the wait now ends on it. A private bucket still answers 403 for both a
missing object and a disallowed network, so that one keeps being retried.

--check-exists never reached the registry, because the OCI strategy is built
without the option, while its help said it asked for every location. It now
says what it does and points at verify for the rest.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Harish Sampath <hasampath@nvidia.com>

---------

Signed-off-by: Harish Sampath <hasampath@nvidia.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-15 05:36:16 -07:00
..