mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(e2e): run the GB300 datahall through the qualify-e2e lane Adds datahall-3, the GB300 stream that selects it, and a label to run it, through stage full. Every machine the datahall owns is an arm64 GB300 NVL72 tray with no DPU, which sets it apart from the other two DSX datahalls in three ways, and the harness now handles each: - Its VPC is FLAT. A host with no managed DPU can only be placed in a FLAT VPC, which has no prefix; NiCO attaches the instance itself when the create carries autoNetwork. dsx.yaml declares `autoNetwork: true` in place of `vpcPrefixID`. The site node is created that way and its address read from the NiCO machine, and the tenant's control plane and workers are NicoMachines with `autoNetwork: true` and no interfaces. A pool that names a prefix as well is refused. - It mints tokens from a Keycloak realm on its own API host, not from SSA. `issuerPath` names the realm's issuer base. A realm has no `carbide` scope and answers a request for one with 400 invalid_scope, so a datahall with an issuerPath asks for no scope, both when the suite mints and in the client CAPNICo is handed, and the nico-credentials template writes `scope` only when there is one. A token is reused until a minute before the issuer's expires_in, capped at the old five minutes. - Its API is served under a private CA, DSX_<DATAHALL>_CA_CERT. The suite's API and token clients trust it beside the roots they already have, and CAPNICo gets it as `ca.crt` in nico-credentials, base64 in `data` so the PEM renders on one line through either renderer. nvkectl's template context gains the field, left empty. dsx and dsx-arm64 leave the new stream out, and a new dsx-gb300 scope names it. The qualify-e2e-dsx-gb300 label runs that scope at the dsx environment's stage, without changing QUALIFY_E2E_SCOPE. A datahall that declares none of this behaves exactly as before. Signed-off-by: Jayson Du <jaydu@nvidia.com> * fix(ci): withhold the DSX API hosts from artifacts and the job log A DSX API host names its datahall, which is why the workflow takes it as a secret. But GitHub masks a secret only in the job log, and only in the form it was stored in, so the host still reached three places: - run-inputs.txt, an uploaded artifact, printed the datahall-1 and datahall-2 api rows in full. The resolved-inputs table now withholds DSX_*_API by shape, as it already does the jump hosts and the join token. - The withhold step scrubbed only the jump hosts and SSA_ISSUER from the log and reports it uploads. It now finds DSX_*_API too, and the suite's own redaction of the archives it writes takes the same values. - An error can name a host without its scheme, as a DNS lookup or a certificate mismatch does, and that is not the form the secret was stored in. Each withheld value is now also scrubbed as its host alone, and the run step masks those hosts in the job log, which a public repository publishes. Matched by shape, so a datahall added later is withheld without editing a list. Signed-off-by: Jayson Du <jaydu@nvidia.com> * build: update CAPNICo to v0.3.0-rc.1 v0.3.0-rc.1 is the first CAPNICo release with NicoMachine autoNetwork (dsx-ai-factory/cluster-api-provider-nico#279), which a FLAT VPC needs: without it CAPNICo cannot place a machine there, and a host without a managed DPU can join no other kind. capnico.yaml's header now says so, so the pin is not moved below it. NicoMachine and NicoMachineTemplate gain autoNetwork and phoneHomeEnabled and no longer require interfaces, and NicoIdentity gains a next-check time. Nothing else in the manifest changes apart from the image. Re-vendor capnico.yaml from the v0.3.0-rc.1 infrastructure-components.yaml asset, re-apply the two nvke manager args, and copy it into the embedded manifests with `make -C cli capnico-manifest`. The body is the asset byte for byte apart from those args. Move the pins that decide what runs: release.yaml, and the bootstrap manifest's ref and digest. The digest is the multi-architecture index's (amd64 and arm64), read from GHCR. The tests that pin them and the docs that name the deployed release move with them. The NicoIdentity debug page also takes rc.1's token-issuer messages: a 400 other than invalid_client, such as an unknown scope, is now AuthenticationFailed rather than ValidationFailed. controller/go.mod, management-engine/go.mod and the CRD fixtures stay at v0.1.0, so the lanes that build CAPNICo from go.mod, and gofail, keep testing v0.1.0 until the Go module follows in its own change. The clusterctl example in docs/site-bootstrap/infrastructure-providers.md also stays at v0.1.0: the rc.1 metadata.yaml lists only release series 0.0 and 0.1, so a validated clusterctl init refuses v0.3.0-rc.1. Signed-off-by: Jayson Du <jaydu@nvidia.com> * fix(ci): trim a withheld URL before taking its host host_of stripped a URL's port before its trailing whitespace, so an API stored as " https://api.example:443 " was masked and scrubbed as api.example:443, and an error naming api.example alone, such as a DNS lookup, kept the host. The provider trims the value, so that error is reachable. All whitespace now goes first: a value wrapped in newlines used to emit an empty ::add-mask:: and print the bare host on the next line of the job log. An IPv6 host also loses its brackets, as URL.Hostname drops them, so an error naming the bare address is masked and scrubbed too. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(e2e): cover the datahall CA's transport refusal and a missing issuer With a datahall CA set, New refuses a client whose transport is not an *http.Transport, because the CA cannot be added to an arbitrary RoundTripper. Options.HTTPClient now says so, and a test checks the refusal with a CA and the unchanged client without one. SSAClientFor and MintToken take the datahall's issuerPath or fall back to SSA_ISSUER. A test calls both with neither set and checks that each refuses before any exchange, naming the variable and the datahall. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(release): pin the streams each shipped DSX scope selects The scope matching tests use synthetic scopes, so nothing failed if a later DSX stream widened what a hardware label runs. The new test reads release/policy.yaml and checks exactly what dsx, dsx-amd64, dsx-arm64 and dsx-gb300 select. A DSX stream added later fails it until it is placed in those scopes on purpose. Signed-off-by: Jayson Du <jaydu@nvidia.com> * docs: say the DSX labels run stage full by default A labelled run takes its stage from QUALIFY_E2E_STAGE and falls back to full, so "at stage full" read as a pin the workflow does not have. Both qualify-e2e-dsx-gb300 rows, and the qualify-e2e-dsx row next to one of them, now say full by default. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(e2e): put the full-stage check back on one line The variable held the run environment for a CA check that has since gone, and only its Provider is read now. The line is back to what main has. Signed-off-by: Jayson Du <jaydu@nvidia.com> --------- Signed-off-by: Jayson Du <jaydu@nvidia.com>