Skip to content

POC - Adding stable suite to build tests#31390

Open
miyadav wants to merge 3 commits into
openshift:mainfrom
miyadav:ocpqe32068
Open

POC - Adding stable suite to build tests#31390
miyadav wants to merge 3 commits into
openshift:mainfrom
miyadav:ocpqe32068

Conversation

@miyadav

@miyadav miyadav commented Jul 15, 2026

Copy link
Copy Markdown
Member

/hold

Summary by CodeRabbit

  • New Features
    • Added two built-in umbrella test suites for OpenShift: openshift/stable and openshift/active.
    • openshift/stable runs component suites under stable cluster conditions with high parallelism and filters to include build-related tests, with flakes disabled.
    • openshift/active runs component suites under stable cluster conditions with matching parallelism settings.

@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

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2026
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Walkthrough

Adds built-in openshift/stable and openshift/active umbrella suites with stable cluster conditions and parallelism of 30. The stable suite also restricts execution to build-related tests and allows no flakes.

Changes

Standard stability suites

Layer / File(s) Summary
Define stable and active suites
pkg/testsuites/standard_suites.go
Adds openshift/stable and openshift/active with ginkgo.Stable cluster conditions and parallelism 30; the stable suite filters build-related tests and permits no flakes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: deads2k, sjenning

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Test Structure And Quality ⚠️ Warning openshift/stable selects Feature:Builds tests but never excludes [Flaky], so the new stable suite can still run flaky cases. Add an explicit !name.contains('[Flaky]') exclusion to the stable suite qualifier, matching the suite’s no-flakes contract.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adding a new stable suite for build tests as a proof of concept.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Stable And Deterministic Test Names ✅ Passed The PR only adds static suite names and literal qualifiers in standard_suites.go; no dynamic or generated Ginkgo titles were introduced.
Microshift Test Compatibility ✅ Passed The added suite only selects existing build e2e tests, and those tests already carry [apigroup:build.openshift.io] tags, so MicroShift auto-skips them.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The patch only adds suite registration in standard_suites.go; it adds no new It/Describe/Context/When tests or SNO-sensitive logic.
Topology-Aware Scheduling Compatibility ✅ Passed The change only adds test-suite metadata in pkg/testsuites/standard_suites.go; it introduces no manifests, controllers, or topology-sensitive scheduling constraints.
Ote Binary Stdout Contract ✅ Passed PR only changes static suite metadata; no main/init/TestMain/RunSpecs or stdout-printing code was added in pkg/testsuites.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo test bodies were added; only suite definitions/qualifiers changed, so there are no new IPv4 or connectivity assumptions to flag.
No-Weak-Crypto ✅ Passed Only pkg/testsuites/standard_suites.go changed, and it contains no weak crypto, custom crypto, or secret/token comparisons.
Container-Privileges ✅ Passed Only pkg/testsuites/standard_suites.go changed; no container/K8s manifests or privilege settings were added.
No-Sensitive-Data-In-Logs ✅ Passed PASS — The patch only changes static test-suite metadata; it adds no new logging or log payloads that could expose sensitive data.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from deads2k and sjenning July 15, 2026 13:34
@openshift-ci

openshift-ci Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: miyadav

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 Jul 15, 2026
@openshift-ci openshift-ci Bot added the ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review label Jul 15, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@miyadav: 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/e2e-gcp-ovn 3a8526f link true /test e2e-gcp-ovn

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.

@xueqzhan xueqzhan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We might as well define an empty active suite as well.

Comment thread pkg/testsuites/standard_suites.go Outdated
{
Name: "openshift/stable",
Description: templates.LongDesc(`
Umbrella suite for component suites that run under stable cluster conditions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stable suite here really means all tests in this suite are stable and highly reliable. Of course, the cluster is also stable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes , I will add for it to not have any flaky tests as well.

Umbrella suite for component suites that run under stable cluster conditions.
`),
Qualifiers: []string{
"name.contains('[Feature:Builds]')",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you intent to use qualifiers for all tests in origin (vs having child suites)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The problem I was facing is the way openshift/build suite was filtering , so it was having many more tests if I use parent/child way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if we can use OTE labels. Then we need to use another way to label tests. One way is to use AI to add labels to all tests across all repos. Another way is to dynamically label tests based on certain criteria. Method one will not work for kube tests I think.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

right , dynamically adding labels to tests based on data that they are actually stable would be ideal ( But without a test id that won't be easy as names keeps changing )

@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/testsuites/standard_suites.go`:
- Around line 117-122: Add an explicit qualifier to the stable suite
configuration near the existing name qualifier so tests marked [Flaky] are
excluded, while preserving the current build-test inclusion and
MaximumAllowedFlakes setting. Update the Qualifiers used by the standard suite
definition.
🪄 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: 97e5bd78-f638-401f-a3bd-dd3d11c42fb5

📥 Commits

Reviewing files that changed from the base of the PR and between 3a8526f and d7de1f4.

📒 Files selected for processing (1)
  • pkg/testsuites/standard_suites.go

Comment on lines +117 to +122
Qualifiers: []string{
"name.contains('[Feature:Builds]')",
},
Parallelism: 30,
MaximumAllowedFlakes: 0,
ClusterStabilityDuringTest: ginkgo.Stable,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Exclude flaky tests from the stable suite.

The qualifier still includes build tests marked [Flaky]. MaximumAllowedFlakes: 0 only disables retries; it does not prevent those tests from running, contradicting the suite’s “without flakes” contract. Add an explicit flaky-test exclusion.

This repeats the prior review feedback that the stable suite must not contain flaky tests.

Proposed fix
 		Qualifiers: []string{
-			"name.contains('[Feature:Builds]')",
+			"name.contains('[Feature:Builds]') && !name.contains('[Flaky]')",
 		},
🤖 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/testsuites/standard_suites.go` around lines 117 - 122, Add an explicit
qualifier to the stable suite configuration near the existing name qualifier so
tests marked [Flaky] are excluded, while preserving the current build-test
inclusion and MaximumAllowedFlakes setting. Update the Qualifiers used by the
standard suite definition.

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants