Skip to content

Add new profile: azure-perfscale-qe#5164

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
mehabhalodiya:add-azure-perfscale-qe
May 7, 2026
Merged

Add new profile: azure-perfscale-qe#5164
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
mehabhalodiya:add-azure-perfscale-qe

Conversation

@mehabhalodiya

@mehabhalodiya mehabhalodiya commented May 7, 2026

Copy link
Copy Markdown
Contributor

https://redhat.atlassian.net/browse/CNTRLPLANE-3394

Ref: https://redhat-internal.slack.com/archives/C0780C0J6HJ/p1776870549694489

Summary

This PR adds support for a new Azure performance testing cluster profile (azure-perfscale-qe) to the ci-tools codebase. This profile enables tests to run against Azure 4-based infrastructure with dedicated quota slices for performance and scale quality engineering testing.

Changes

The new profile is registered in pkg/api/types.go with the following configuration:

  • Profile Name: azure-perfscale-qe
  • Cluster Type: Maps to "azure4" (Azure 4 infrastructure)
  • Lease Type: Uses "azure-perfscale-qe-quota-slice" for resource quota management

Practical Impact

CI operators and test authors can now:

  • Reference the azure-perfscale-qe cluster profile in test configurations
  • Run performance and scale tests on dedicated Azure infrastructure with predictable quota isolation
  • Integrate with the existing lease management system for quota allocation

The addition follows the established pattern of other QE profiles (e.g., aws-perfscale-qe, gcp-perfscale-qe) and enables Azure-based performance testing workflows that were previously unavailable.

Signed-off-by: mehabhalodiya <mehabhalodiya@gmail.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

A new cluster profile ClusterProfileAzurePerfScaleQE is added to support Azure perfscale QE environments, with corresponding mappings for cluster type "azure4" and lease type "azure-perfscale-qe-quota-slice".

Changes

Azure Perfscale QE Cluster Profile

Layer / File(s) Summary
Constant Definition
pkg/api/types.go
New ClusterProfileAzurePerfScaleQE constant defined as "azure-perfscale-qe".
Profile Registry & Mappings
pkg/api/types.go
ClusterProfiles() list, ClusterType() switch (resolves to "azure4"), and LeaseType() switch (resolves to "azure-perfscale-qe-quota-slice") are updated to include the new profile.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 14
✅ Passed checks (14 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a new ClusterProfile constant named 'azure-perfscale-qe' with its associated mappings.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Go Error Handling ✅ Passed PR adds a cluster profile constant and updates three methods with simple switch cases returning strings. No error handling, error returns, panic calls, or pointer dereferences in changes.
Test Coverage For New Features ✅ Passed Configuration-only changes. Adds constant and switch case mappings for a new cluster profile without creating new functions or methods.
Stable And Deterministic Test Names ✅ Passed PR modifies pkg/api/types.go (config file), not test code. No Ginkgo test patterns found. Check for stable test names is not applicable.
Test Structure And Quality ✅ Passed PR modifies pkg/api/types.go to add a cluster profile constant. Tests use standard Go testing.T (table-driven), not Ginkgo. Custom check is inapplicable.
Microshift Test Compatibility ✅ Passed This PR adds a cluster profile to pkg/api/types.go only. No new Ginkgo e2e tests are added, so the MicroShift test compatibility check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Not applicable - PR adds new cluster profile configuration, not Ginkgo e2e tests. Custom check specifically targets new e2e tests (It, Describe, Context, When), which are not present in this PR.
Topology-Aware Scheduling Compatibility ✅ Passed Check not applicable. PR adds only ClusterProfile constant and config mappings in types.go. No deployment manifests, operator code, controllers, or scheduling constraints introduced.
Ote Binary Stdout Contract ✅ Passed pkg/api/types.go contains only type definitions and methods. No process-level code, stdout writes, or logging setup are present. Changes are purely type constant and switch-case additions.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR does not add Ginkgo e2e tests. It only modifies type definitions in pkg/api/types.go and includes standard Go tests, not Ginkgo tests which the check specifically targets.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/api/types.go`:
- Around line 2276-2277: The new ClusterProfileAzurePerfScaleQE maps to the
lease type "azure-perfscale-qe-quota-slice" but neither that Boskos lease nor
the secret "cluster-secrets-azure-perfscale-qe" exist in openshift/release;
either add both entries to openshift/release following the existing pattern used
for "azure-confidential-qe-quota-slice"/"cluster-secrets-azure-confidential-qe"
(create Boskos quota-slice and corresponding cluster-secrets entry) so
ClusterProfileAzurePerfScaleQE works, or change the mapping in types.go to use
the existing ClusterProfileAzurePerfScale and lease
"azure-perfscale-quota-slice" and secret "cluster-secrets-azure-perfscale" until
the QE resources are provisioned.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 60793248-8688-4cc4-9d09-2c9f851202aa

📥 Commits

Reviewing files that changed from the base of the PR and between 651357b and 0e28254.

📒 Files selected for processing (1)
  • pkg/api/types.go

Comment thread pkg/api/types.go
Comment on lines +2276 to +2277
case ClusterProfileAzurePerfScaleQE:
return "azure-perfscale-qe-quota-slice"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Read-only verification against openshift/release code search.
# Expected: at least one result per query before enabling jobs with this profile.

queries=(
  "azure-perfscale-qe-quota-slice repo:openshift/release"
  "cluster-secrets-azure-perfscale-qe repo:openshift/release"
  "cluster_profile: azure-perfscale-qe repo:openshift/release"
)

for q in "${queries[@]}"; do
  echo "=== $q ==="
  gh api search/code -f q="$q" --jq '.items[]? | "\(.path)\t\(.html_url)"'
  echo
done

Repository: openshift/ci-tools

Length of output: 273


🏁 Script executed:

#!/bin/bash
# Search for azure-perfscale-qe-quota-slice and related resources
echo "=== Searching for azure-perfscale-qe-quota-slice ==="
rg "azure-perfscale-qe" --type yaml --type py 2>/dev/null | head -20

echo ""
echo "=== Checking Boskos config for azure-perfscale patterns ==="
find . -name "*boskos*" -type f | head -10

Repository: openshift/release

Length of output: 1067


🏁 Script executed:

#!/bin/bash
# Verify the exact change in types.go
echo "=== Checking ClusterProfileAzurePerfScaleQE constant definition ==="
rg "ClusterProfileAzurePerfScaleQE" --type go -B2 -A2

echo ""
echo "=== Checking LeaseType() function mapping around line 2276 ==="
sed -n '2270,2285p' pkg/api/types.go

Repository: openshift/ci-tools

Length of output: 2145


🏁 Script executed:

#!/bin/bash
# Check if existing QE profile (azure-confidential-qe) has Boskos resources
echo "=== Searching for azure-confidential-qe-quota-slice in Boskos config ==="
rg "azure-confidential-qe-quota-slice" --type yaml 2>/dev/null | head -20

echo ""
echo "=== Searching for any azure-*-qe-quota-slice pattern ==="
rg "qe-quota-slice" --type yaml 2>/dev/null | head -30

echo ""
echo "=== Checking ci-secret-bootstrap config for QE cluster secrets ==="
rg "cluster-secrets-azure.*qe" --type yaml 2>/dev/null | head -20

Repository: openshift/release

Length of output: 4705


🏁 Script executed:

#!/bin/bash
# Verify if other QE profiles are already in use and properly mapped
echo "=== Checking all QE profile constants and mappings ==="
rg "ClusterProfile.*QE\s*=" pkg/api/types.go | head -20

echo ""
echo "=== Checking if azure-perfscale-qe is referenced anywhere in ci-tools ==="
rg "azure-perfscale-qe" --type go 2>/dev/null

Repository: openshift/ci-tools

Length of output: 345


🏁 Script executed:

#!/bin/bash
# Check if non-QE azure-perfscale secrets exist
echo "=== Searching for cluster-secrets-azure-perfscale (non-QE) ==="
rg "cluster-secrets-azure-perfscale" --type yaml 2>/dev/null

echo ""
echo "=== Checking if azure-perfscale-quota-slice exists (non-QE Boskos) ==="
rg "azure-perfscale-quota-slice" --type yaml 2>/dev/null | head -20

Repository: openshift/release

Length of output: 2075


Boskos and secrets for azure-perfscale-qe-quota-slice are missing from openshift/release.

The PR adds ClusterProfileAzurePerfScaleQE and maps it to azure-perfscale-qe-quota-slice, but this lease type and corresponding cluster-secrets-azure-perfscale-qe do not exist in openshift/release. The non-QE versions (azure-perfscale-quota-slice and cluster-secrets-azure-perfscale) exist, but jobs using the new QE profile will fail at lease acquisition.

Before enabling jobs with this profile, either:

  1. Add Boskos resources (azure-perfscale-qe-quota-slice) and secrets (cluster-secrets-azure-perfscale-qe) to openshift/release, or
  2. Use ClusterProfileAzurePerfScale (non-QE) instead.

Reference the existing azure-confidential-qe-quota-slice Boskos entries and cluster-secrets-azure-confidential-qe secret for the infrastructure pattern.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/api/types.go` around lines 2276 - 2277, The new
ClusterProfileAzurePerfScaleQE maps to the lease type
"azure-perfscale-qe-quota-slice" but neither that Boskos lease nor the secret
"cluster-secrets-azure-perfscale-qe" exist in openshift/release; either add both
entries to openshift/release following the existing pattern used for
"azure-confidential-qe-quota-slice"/"cluster-secrets-azure-confidential-qe"
(create Boskos quota-slice and corresponding cluster-secrets entry) so
ClusterProfileAzurePerfScaleQE works, or change the mapping in types.go to use
the existing ClusterProfileAzurePerfScale and lease
"azure-perfscale-quota-slice" and secret "cluster-secrets-azure-perfscale" until
the QE resources are provisioned.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label May 7, 2026
@openshift-ci

openshift-ci Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepsm007, mehabhalodiya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 7, 2026
@deepsm007

Copy link
Copy Markdown
Contributor

/override ci/prow/images
/override ci/prow/e2e

@openshift-ci

openshift-ci Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

@deepsm007: Overrode contexts on behalf of deepsm007: ci/prow/e2e, ci/prow/images

Details

In response to this:

/override ci/prow/images
/override ci/prow/e2e

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage.

@openshift-merge-bot openshift-merge-bot Bot merged commit 53463e8 into openshift:main May 7, 2026
16 of 17 checks passed
@openshift-ci

openshift-ci Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

@mehabhalodiya: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/breaking-changes 0e28254 link false /test breaking-changes

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants