From 186bb6f3f5f9cf5a7054066e2f2f5f1e68452161 Mon Sep 17 00:00:00 2001 From: Chai Bot Date: Mon, 6 Jul 2026 14:33:01 +0000 Subject: [PATCH] Add Platform:metal variant for iso-no-registry agent baremetal jobs Agent baremetal jobs using iso-no-registry deploy on bare metal but don't have -metal in their name, so they were missing the Platform:metal variant. Add a narrower pattern match for -iso-no-registry before the generic -metal pattern. This is a more targeted fix than matching all -e2e-agent- jobs, which would incorrectly reclassify agent jobs running on other platforms. Co-Authored-By: Claude Opus 4.6 --- pkg/variantregistry/ocp.go | 3 +++ pkg/variantregistry/snapshot.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pkg/variantregistry/ocp.go b/pkg/variantregistry/ocp.go index 3365523f4..15e7b4477 100644 --- a/pkg/variantregistry/ocp.go +++ b/pkg/variantregistry/ocp.go @@ -1138,6 +1138,9 @@ func setPlatform(jLog logrus.FieldLogger, variants map[string]string, jobName st {"-osd-ccs-gcp", "osd-gcp"}, {"-gcp", "gcp"}, {"-libvirt", "libvirt"}, + // iso-no-registry agent baremetal jobs deploy on bare metal + // but don't have -metal in their name; match before the generic -metal pattern. + {"-iso-no-registry", "metal"}, {"-metal", "metal"}, {"-nutanix", "nutanix"}, {"-openstack", "openstack"}, diff --git a/pkg/variantregistry/snapshot.yaml b/pkg/variantregistry/snapshot.yaml index 7f772d6ce..5a1782fb0 100644 --- a/pkg/variantregistry/snapshot.yaml +++ b/pkg/variantregistry/snapshot.yaml @@ -299203,6 +299203,7 @@ periodic-ci-openshift-release-main-nightly-5.0-e2e-agent-compact-iso-no-registry NetworkStack: ipv4 OS: rhcos10 Owner: eng + Platform: metal Procedure: none Release: "5.0" ReleaseMajor: "5" @@ -299249,6 +299250,7 @@ periodic-ci-openshift-release-main-nightly-5.0-e2e-agent-ha-dualstack-iso-no-reg NetworkStack: dual OS: rhcos10 Owner: eng + Platform: metal Procedure: none Release: "5.0" ReleaseMajor: "5" @@ -299272,6 +299274,7 @@ periodic-ci-openshift-release-main-nightly-5.0-e2e-agent-ha5-dualstack-iso-no-re NetworkStack: dual OS: rhcos10 Owner: eng + Platform: metal Procedure: none Release: "5.0" ReleaseMajor: "5" @@ -299456,6 +299459,7 @@ periodic-ci-openshift-release-main-nightly-5.0-e2e-agent-sno-ipv4-iso-no-registr NetworkStack: ipv4 OS: rhcos10 Owner: eng + Platform: metal Procedure: none Release: "5.0" ReleaseMajor: "5"