Skip to content

test/extend: enable test-extension cases for CI#984

Open
huangmingxia wants to merge 1 commit intoopenshift:masterfrom
huangmingxia:enable-ci-run
Open

test/extend: enable test-extension cases for CI#984
huangmingxia wants to merge 1 commit intoopenshift:masterfrom
huangmingxia:enable-ci-run

Conversation

@huangmingxia
Copy link
Contributor

@huangmingxia huangmingxia commented Mar 10, 2026

After the CCO test cases were migrated to the test extension, only Level0 cases were enabled to run in CI. This PR enables the remaining CCO test-extension cases so they are also selected and run in CI.

Summary by CodeRabbit

  • Tests
    • Added a dedicated "slow" test suite for long-running cases and updated filters to recognize slow-marked tests.
    • Broadened parallel-suite matching to include additional suite tags for more accurate selection.
    • Tightened serial and disruptive qualifiers to exclude slow-marked tests.
    • Cleaned up test metadata and shortened several test names for clearer display.

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d292984d-8974-471c-b5e0-cc183686faf9

📥 Commits

Reviewing files that changed from the base of the PR and between 6dcf2ca and 1903f35.

📒 Files selected for processing (2)
  • cmd/cloud-credential-tests-ext/main.go
  • test/extend/cloudcredential.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • cmd/cloud-credential-tests-ext/main.go
  • test/extend/cloudcredential.go

Walkthrough

Added a new "cco/slow" test suite mapping and adjusted suite qualifiers: parallel now matches [Suite:cco/conformance/parallel], serial and disruptive qualifiers now exclude [Slow]. Also removed [Serial] tags and shortened descriptions in several cloud credential tests; no functional code or public signatures changed.

Changes

Cohort / File(s) Summary
Suite qualifier & mapping updates
cmd/cloud-credential-tests-ext/main.go
Added cco/slowopenshift/optional/slow mapping with qualifier matching [Slow]; extended parallel qualifier to also match [Suite:cco/conformance/parallel]; updated serial and disruptive qualifiers to exclude tests tagged [Slow].
Test metadata and descriptions
test/extend/cloudcredential.go
Removed [Serial] tags from multiple test case metadata and shortened several test description strings; no changes to test logic or exported signatures.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


Important

Pre-merge checks failed

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

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Stable And Deterministic Test Names ❓ Inconclusive The specific test files mentioned in the pull request could not be located in the repository, preventing verification of test name stability and determinism. Verify the repository contains the expected files and ensure git is properly initialized before reassessing test titles for dynamic content.
Test Structure And Quality ❓ Inconclusive Test files referenced in PR summary are not accessible in current repository state, preventing evaluation of Ginkgo test structure and quality compliance. Repository must be properly initialized with all modified test files accessible to verify test follows Ginkgo best practices for single responsibility, setup/cleanup patterns, timeouts, assertions, and codebase consistency.
✅ Passed checks (3 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: enabling additional CCO test-extension cases for CI execution by updating test suite configurations.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@openshift-ci openshift-ci bot requested review from 2uasimojo and suhanime March 10, 2026 05:12
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 10, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: huangmingxia
Once this PR has been reviewed and has the lgtm label, please assign dlom for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@huangmingxia
Copy link
Contributor Author

/cc @jstuever

@openshift-ci openshift-ci bot requested a review from jstuever March 10, 2026 05:12
Copy link

@coderabbitai coderabbitai bot left a comment

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 the current code and only fix it if needed.

Inline comments:
In `@cmd/cloud-credential-tests-ext/main.go`:
- Around line 74-79: The cco/slow suite (Name: "cco/slow", Parents:
[]string{"openshift/optional/slow"}, Qualifiers containing
`name.contains("[Slow]")`) is including tests that are also disruptive (e.g.,
test/extend/cloudcredential.go:63); update the Qualifiers for the "cco/slow"
suite to add a negative qualifier that excludes disruptive tests by combining
the existing matcher with a negative match such as
`!name.contains("[Disruptive]")` (i.e., change the qualifier expression to
require "[Slow]" and not "[Disruptive]") so disruptive tests are routed only to
the disruptive suite.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 36d06def-2b6f-4739-939c-497fba25a780

📥 Commits

Reviewing files that changed from the base of the PR and between e338ba6 and cf78932.

📒 Files selected for processing (2)
  • cmd/cloud-credential-tests-ext/main.go
  • test/extend/cloudcredential.go

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.18%. Comparing base (ed39a12) to head (1903f35).

Files with missing lines Patch % Lines
cmd/cloud-credential-tests-ext/main.go 0.00% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #984      +/-   ##
==========================================
- Coverage   46.20%   46.18%   -0.03%     
==========================================
  Files          98       98              
  Lines       12253    12259       +6     
==========================================
  Hits         5662     5662              
- Misses       5941     5947       +6     
  Partials      650      650              
Files with missing lines Coverage Δ
cmd/cloud-credential-tests-ext/main.go 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
cmd/cloud-credential-tests-ext/main.go (1)

74-80: ⚠️ Potential issue | 🟠 Major

Exclude disruptive tests from the slow suite.

The cco/slow suite currently matches all [Slow] tests without filtering out disruptive ones. The test at test/extend/cloudcredential.go:63 is tagged with both [Disruptive][Slow], causing it to be routed to both openshift/disruptive and openshift/optional/slow. This could cause optional/slow jobs to unexpectedly run destructive operations.

Suggested fix
 		{
 			Name:    "cco/slow",
 			Parents: []string{"openshift/optional/slow"},
 			Qualifiers: []string{
-				`name.contains("[Slow]")`,
+				`name.contains("[Slow]") && !name.contains("[Disruptive]")`,
 			},
 		},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cmd/cloud-credential-tests-ext/main.go` around lines 74 - 80, The cco/slow
suite currently selects tests by `name.contains("[Slow]")` and therefore also
picks up tests that are disruptive; update the Qualifiers for the suite named
"cco/slow" so it matches Slow tests but excludes Disruptive ones (e.g., change
the qualifier expression used in the Qualifiers slice for the suite to require
name.contains("[Slow]") AND not name.contains("[Disruptive]") so tests tagged
with both are excluded from cco/slow).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@cmd/cloud-credential-tests-ext/main.go`:
- Around line 74-80: The cco/slow suite currently selects tests by
`name.contains("[Slow]")` and therefore also picks up tests that are disruptive;
update the Qualifiers for the suite named "cco/slow" so it matches Slow tests
but excludes Disruptive ones (e.g., change the qualifier expression used in the
Qualifiers slice for the suite to require name.contains("[Slow]") AND not
name.contains("[Disruptive]") so tests tagged with both are excluded from
cco/slow).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 49decdce-79f6-454d-87ec-b3b41bf1cabd

📥 Commits

Reviewing files that changed from the base of the PR and between cf78932 and 21b8c21.

📒 Files selected for processing (2)
  • cmd/cloud-credential-tests-ext/main.go
  • test/extend/cloudcredential.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • test/extend/cloudcredential.go

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
cmd/cloud-credential-tests-ext/main.go (1)

67-79: ⚠️ Potential issue | 🟠 Major

Destructive test [Disruptive][Slow] excluded from disruptive suite but included in slow suite.

The test at test/extend/cloudcredential.go:63 carries both [Disruptive][Slow] tags and performs destructive operations (removes root credentials). With the current qualifiers:

  • cco/disruptive excludes it (due to !name.contains("[Slow]"))
  • cco/slow includes it (matches [Slow])

This routes a destructive test exclusively to openshift/optional/slow, bypassing the disruptive job context entirely. This is related to the concern raised previously—applying only half the fix leaves destructive tests in the wrong suite.

Both qualifiers need adjustment:

Proposed fix
 		{
 			Name:    "cco/disruptive",
 			Parents: []string{"openshift/disruptive"},
 			Qualifiers: []string{
-				`name.contains("[Disruptive]") && !name.contains("[Slow]")`,
+				`name.contains("[Disruptive]")`,
 			},
 		},
 		{
 			Name:    "cco/slow",
 			Parents: []string{"openshift/optional/slow"},
 			Qualifiers: []string{
-				`name.contains("[Slow]")`,
+				`name.contains("[Slow]") && !name.contains("[Disruptive]")`,
 			},
 		},

This ensures:

  • [Disruptive] tests (with or without [Slow]) → cco/disruptive
  • [Slow] tests (without [Disruptive]) → cco/slow
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cmd/cloud-credential-tests-ext/main.go` around lines 67 - 79, The current
qualifiers cause tests tagged "[Disruptive][Slow]" to be excluded from
cco/disruptive and included in cco/slow; update the Qualifiers so cco/disruptive
accepts any test with "[Disruptive]" (remove the !name.contains("[Slow]") clause
from the cco/disruptive Qualifiers) and make cco/slow only pick up slow tests
that are NOT disruptive (add !name.contains("[Disruptive]") to the cco/slow
Qualifiers); adjust the Qualifiers in the objects named "cco/disruptive" and
"cco/slow" accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@cmd/cloud-credential-tests-ext/main.go`:
- Around line 67-79: The current qualifiers cause tests tagged
"[Disruptive][Slow]" to be excluded from cco/disruptive and included in
cco/slow; update the Qualifiers so cco/disruptive accepts any test with
"[Disruptive]" (remove the !name.contains("[Slow]") clause from the
cco/disruptive Qualifiers) and make cco/slow only pick up slow tests that are
NOT disruptive (add !name.contains("[Disruptive]") to the cco/slow Qualifiers);
adjust the Qualifiers in the objects named "cco/disruptive" and "cco/slow"
accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ea5068b4-7843-495c-9f8e-ee702906d45d

📥 Commits

Reviewing files that changed from the base of the PR and between 21b8c21 and 6dcf2ca.

📒 Files selected for processing (2)
  • cmd/cloud-credential-tests-ext/main.go
  • test/extend/cloudcredential.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • test/extend/cloudcredential.go

@huangmingxia
Copy link
Contributor Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 11, 2026

@huangmingxia: 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-hypershift 1903f35 link true /test e2e-hypershift

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.

@huangmingxia
Copy link
Contributor Author

/test e2e-hypershift

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant