Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-31484: Remove some of newapp unit tests relying on external deprecated images #1717

Merged
merged 1 commit into from Mar 28, 2024

Conversation

ardaguclu
Copy link
Member

@ardaguclu ardaguclu commented Mar 28, 2024

We invested a good amount of effort to maintain the unit tests for oc newapp (aka TestNewApp*) by migrating to the equivalents that are alive, when the images they use were removed. However, after all the images have been removed from quay.io/centos7 (e.g. quay.io/centos7/ruby-27-centos7, quay.io/centos7/redis-5-centos7), it seems that there is nowhere we can go.

Creating new images and maintaining them separately just for these tests would be an option but it doesn't seems to be the reasonable one. That's why, this PR removes the tests depending on these images. Because we don't/won't make changes to this command (oc newapp).

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 28, 2024
@ardaguclu ardaguclu changed the title Remove some of newapp unit tests relying on external deprecated images OCPBUGS-31484: Remove some of newapp unit tests relying on external deprecated images Mar 28, 2024
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Mar 28, 2024
@openshift-ci-robot
Copy link

@ardaguclu: This pull request references Jira Issue OCPBUGS-31484, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

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.

@ardaguclu
Copy link
Member Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Mar 28, 2024
@openshift-ci-robot
Copy link

@ardaguclu: This pull request references Jira Issue OCPBUGS-31484, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (aos-workloads-staff@redhat.com), skipping review request.

In response to this:

/jira refresh

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Mar 28, 2024
@openshift-ci-robot
Copy link

@ardaguclu: This pull request references Jira Issue OCPBUGS-31484, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (aos-workloads-staff@redhat.com), skipping review request.

In response to this:

We invested a good amount of effort to maintain the unit tests for oc newapp (aka TestNewApp*) by migrating to the equivalents that are alive, when the images they use were removed. However, after all the images have been removed from quay.io/centos7 (e.g. quay.io/centos7/ruby-27-centos7, quay.io/centos7/redis-5-centos7), it seems that there is nowhere we can go.

Creating new images and maintaining them separately just for these tests would be an option but it doesn't seems to be the reasonable one. That's why, this PR removes the tests depending on these images.

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.

@ardaguclu
Copy link
Member Author

@ingvagabund could you PTAL?. Thanks.

@ardaguclu
Copy link
Member Author

This PR is blocked by openshift/origin#28675

Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold
for openshift/origin#28675

@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 Mar 28, 2024
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 28, 2024
Copy link
Contributor

openshift-ci bot commented Mar 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ardaguclu, soltysh

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

The pull request process is described here

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

@ardaguclu
Copy link
Member Author

/retest
/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 28, 2024
@ardaguclu
Copy link
Member Author

/retest

Copy link
Contributor

openshift-ci bot commented Mar 28, 2024

@ardaguclu: all tests passed!

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit ec6e928 into openshift:master Mar 28, 2024
14 checks passed
@openshift-ci-robot
Copy link

@ardaguclu: Jira Issue OCPBUGS-31484: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-31484 has been moved to the MODIFIED state.

In response to this:

We invested a good amount of effort to maintain the unit tests for oc newapp (aka TestNewApp*) by migrating to the equivalents that are alive, when the images they use were removed. However, after all the images have been removed from quay.io/centos7 (e.g. quay.io/centos7/ruby-27-centos7, quay.io/centos7/redis-5-centos7), it seems that there is nowhere we can go.

Creating new images and maintaining them separately just for these tests would be an option but it doesn't seems to be the reasonable one. That's why, this PR removes the tests depending on these images. Because we don't/won't make changes to this command (oc newapp).

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.

@ardaguclu ardaguclu deleted the remove-newapp-tests branch March 28, 2024 15:55
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build openshift-enterprise-cli-container-v4.16.0-202403281444.p0.gec6e928.assembly.stream.el8 for distgit openshift-enterprise-cli.
All builds following this will include this PR.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.16.0-0.nightly-2024-03-28-223620

@ardaguclu
Copy link
Member Author

/cherry-pick release-4.15

@openshift-cherrypick-robot

@ardaguclu: #1717 failed to apply on top of branch "release-4.15":

Applying: Remove some of newapp unit tests relying on external deprecated images
Using index info to reconstruct a base tree...
M	pkg/helpers/newapp/newapptest/newapp_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/helpers/newapp/newapptest/newapp_test.go
CONFLICT (content): Merge conflict in pkg/helpers/newapp/newapptest/newapp_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Remove some of newapp unit tests relying on external deprecated images
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-4.15

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/test-infra repository.

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. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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.

None yet

6 participants