Skip to content

NO-JIRA: chore: exclude e2e tests from make test unconditionally#1321

Open
vprashar2929 wants to merge 1 commit into
openshift:mainfrom
vprashar2929:test-skip
Open

NO-JIRA: chore: exclude e2e tests from make test unconditionally#1321
vprashar2929 wants to merge 1 commit into
openshift:mainfrom
vprashar2929:test-skip

Conversation

@vprashar2929
Copy link
Copy Markdown

@vprashar2929 vprashar2929 commented Feb 16, 2026

The test/cvo e2e tests require a live OCP cluster and were excluded from make test only when CI=true. This caused make test to fail locally when no cluster is available.
This commit makes the exclusion unconditional so make test behaves consistently

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 16, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

The Makefile's PACKAGES variable definition is refactored to unconditionally exclude the test directory, removing conditional CI-specific logic and computing the value at the top level instead.

Changes

Cohort / File(s) Summary
Makefile refactor
Makefile
PACKAGES definition moved from conditional CI block to top-level with test directory exclusion logic consolidated into a single unconditional assignment.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

Comment thread test/cvo/cvo_suite_test.go Outdated
)

func TestGinkgo(t *testing.T) {
if os.Getenv("TEST_E2E") != "1" {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will not this cause the e2es to get skipped if TEST_E2E is not set? Which is currently not the case in all the existing e2es?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Based on https://github.com/openshift/release/blob/main/ci-operator/config/openshift/cluster-version-operator/openshift-cluster-version-operator-main.yaml#L77 e2e tests are run as make integration-test.

Also, looks like #1172 added test/cvo structure for future extension. With few/basic tests added recently:

Maybe these new e2es are not yet running through the CI?

The `test/cvo` e2e tests require a live OCP cluster and were
excluded from make test only when CI=true. This caused make test
to fail locally when no cluster is available.
This commit makes the exclusion unconditional so make test
behaves consistently

Signed-off-by: vprashar2929 <vibhu.sharma2929@gmail.com>
@vprashar2929 vprashar2929 changed the title test: skip e2e tests when TEST_E2E is not set chore: exclude e2e tests from make test unconditionally Feb 16, 2026
@vprashar2929
Copy link
Copy Markdown
Author

/retest

@vprashar2929
Copy link
Copy Markdown
Author

/retest-required

2 similar comments
@vprashar2929
Copy link
Copy Markdown
Author

/retest-required

@vprashar2929
Copy link
Copy Markdown
Author

/retest-required

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 1, 2026

@vprashar2929: all tests passed!

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.

Copy link
Copy Markdown
Contributor

@DavidHurta DavidHurta left a comment

Choose a reason for hiding this comment

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

Huge thanks! This is a significant fix.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label May 29, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 29, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DavidHurta, vprashar2929

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 29, 2026
@DavidHurta
Copy link
Copy Markdown
Contributor

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci Bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label May 29, 2026
@DavidHurta
Copy link
Copy Markdown
Contributor

/retitle NO-JIRA: chore: exclude e2e tests from make test unconditionally

@openshift-ci openshift-ci Bot changed the title chore: exclude e2e tests from make test unconditionally NO-JIRA: chore: exclude e2e tests from make test unconditionally May 29, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 29, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@vprashar2929: This pull request explicitly references no jira issue.

Details

In response to this:

The test/cvo e2e tests require a live OCP cluster and were excluded from make test only when CI=true. This caused make test to fail locally when no cluster is available.
This commit makes the exclusion unconditional so make test behaves consistently

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 openshift-eng/jira-lifecycle-plugin repository.

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

Labels

acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants