Skip to content

POC - Adding stable suite to build tests#31390

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

POC - Adding stable suite to build tests#31390
miyadav wants to merge 4 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 and openshift/active run with high parallelism under stable cluster conditions and select tests using label-based qualifiers for STABLE and ACTIVE, respectively.
    • openshift/stable also disables allowed flake retries to keep results strict.

@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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 2848ee36-b511-457e-b612-5279d62b7be4

📥 Commits

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

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

Walkthrough

Adds built-in openshift/stable and openshift/active umbrella suites with stable cluster conditions and parallelism of 30. The stable suite allows no flakes and selects STABLE-labeled tests; the active suite selects ACTIVE-labeled tests.

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, parallelism 30, and corresponding STABLE and ACTIVE label qualifiers. The stable suite sets the maximum allowed flakes to zero.

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

Suggested reviewers: sjenning, deads2k


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Container-Privileges ❓ Inconclusive placeholder placeholder
✅ 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 is concise and relevant, though it mentions only the stable suite while the change also adds an active suite.
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 umbrella suite names and label qualifiers; it does not add or बदल any dynamic Ginkgo test titles.
Test Structure And Quality ✅ Passed Only suite metadata was added in standard_suites.go; no It blocks, setup/cleanup, waits, or assertions were changed.
Microshift Test Compatibility ✅ Passed The PR only adds umbrella suite selectors in standard_suites.go; it adds no new Ginkgo tests or MicroShift-unsafe API usage.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only suite metadata changed in staticSuites; no new It/Describe/Context tests or topology assumptions were added.
Topology-Aware Scheduling Compatibility ✅ Passed The change only adds test-suite metadata/qualifiers in pkg/testsuites; no manifests, controllers, node selectors, affinity, PDBs, or replica logic.
Ote Binary Stdout Contract ✅ Passed The PR only adds declarative entries to staticSuites; no new main/init/TestMain/BeforeSuite/RunSpecs stdout writes or stdout logging setup.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed Only suite definitions changed in standard_suites.go; no new Ginkgo test bodies were added, so the IPv6/disconnected test check is not applicable.
No-Weak-Crypto ✅ Passed Patch only adds label-based suite qualifiers in pkg/testsuites/standard_suites.go; no crypto primitives, custom crypto, or secret comparisons are present.
No-Sensitive-Data-In-Logs ✅ Passed Only log statement is a static warning about OPENSHIFT_SKIP_EXTERNAL_TESTS; no passwords, tokens, PII, or customer data are logged.
✨ 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

@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.

Comment thread pkg/testsuites/standard_suites.go Outdated
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.

@openshift-ci

openshift-ci Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@miyadav: The following tests 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
ci/prow/okd-scos-images 4678300 link true /test okd-scos-images

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. 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