Skip to content

OCPBUGS-54458: fix unit test failure caused by coreos/etcd removing latest tag #503

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

Closed
wants to merge 1 commit into from

Conversation

QiWang19
Copy link
Member

Use quay.io/coreos/etcd-operator repository in the test. The unit test TestImageStreamImportQuayIO failed because quay.io/coreos/etcd removes the latest tag.

@openshift-ci openshift-ci bot requested review from adambkaplan and bparees March 25, 2025 07:37
@QiWang19 QiWang19 marked this pull request as draft March 25, 2025 07:42
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2025
@QiWang19 QiWang19 marked this pull request as ready for review March 25, 2025 07:43
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2025
@openshift-ci openshift-ci bot requested a review from flavianmissi March 25, 2025 07:43
@QiWang19 QiWang19 marked this pull request as draft March 25, 2025 08:03
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2025
@QiWang19
Copy link
Member Author

/test unit

@QiWang19 QiWang19 marked this pull request as ready for review March 25, 2025 09:32
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2025
@flavianmissi
Copy link
Member

/retest

@@ -93,7 +93,7 @@ func TestImageStreamImportQuayIO(t *testing.T) {
rt, _ := restclient.TransportFor(&restclient.Config{})
importCtx := importer.NewStaticCredentialsContext(rt, nil, nil)

repositoryName := quayRegistryName + "/coreos/etcd"
repositoryName := quayRegistryName + "/coreos/etcd-operator"

Choose a reason for hiding this comment

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

Why do we change the repositoryName from etcd to etcd-operator, this problem is caused by issue etcd-io/etcd#15382, one fixed etcd version is suggessted for end user's requirement.
I fixed it in PR 8ddda1a

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! I will close this PR.

Copy link

Choose a reason for hiding this comment

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

@QiWang19 I double checked the test TestImageStreamImportQuayIO which has nothing to do with etcd image, I agree with your code chage.

Copy link

Choose a reason for hiding this comment

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

/reopen

Copy link
Member

Choose a reason for hiding this comment

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

The coreos organization in quay has been for the most abandoned since the acquisition of CoreOS and the etcd-operator image hasn't been updated in 6-7 years so there is a change that the unit test might fail again in the future if the organization is ever cleaned up.

What would you think about using quay.io/projectquay/quay:3.13.4 instead? This is the official image for quay so it is more likely to remain available forever.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this would require changing the logic of the this test case, it seems the current test case does not specify the tag, just relies on the latest tag of the repository instead.
I would leave this to the openshift-apiserver to take a look if this change is needed.

Copy link
Member

@dgrisonnet dgrisonnet Apr 1, 2025

Choose a reason for hiding this comment

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

Looking at the test, it doesn't seem important whether the target image has the "latest" tag or another and since there is now precedence for the latest tag to be removed, we might as well just use a fixed tag that we know will never change / be removed.

I would leave this to the openshift-apiserver to take a look if this change is needed.

I am one of the approver for openshift-apiserver. Technically the change I suggested is not necessary to address the issue at end and using the etcd-operator would work, but since we need to update the image or the tag anyway, we might aswell just use one that we know will never disappear.

Copy link
Member Author

@QiWang19 QiWang19 Apr 2, 2025

Choose a reason for hiding this comment

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

@dgrisonnet Could someone from the OpenShift API Server team take over this bug fix? If so, I'll close my PR.
backport PR #500 is blocked by this issue

Copy link
Member

Choose a reason for hiding this comment

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

Some people are out because of KubeCon so it might difficult, but I can take over early next week. Feel free to reach out to me on slack if I forget about it

Copy link
Member Author

Choose a reason for hiding this comment

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

@dgrisonnet thanks, I assigned OCPBUGS-54458 to you.

@QiWang19 QiWang19 closed this Mar 31, 2025
@openshift-ci openshift-ci bot reopened this Apr 1, 2025
Copy link
Contributor

openshift-ci bot commented Apr 1, 2025

@wangke19: Reopened this PR.

In response to this:

/reopen

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.

@wangke19
Copy link

wangke19 commented Apr 1, 2025

/lgtm

@wangke19
Copy link

wangke19 commented Apr 1, 2025

/assign @dgrisonnet

Copy link
Contributor

openshift-ci bot commented Apr 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
Copy link
Contributor

openshift-ci bot commented Apr 1, 2025

@QiWang19: 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-sigs/prow repository. I understand the commands that are listed here.

@QiWang19 QiWang19 changed the title fix unit test failure caused by coreos/etcd removing latest tag OCPBUGS-54458: fix unit test failure caused by coreos/etcd removing latest tag Apr 1, 2025
@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 Apr 1, 2025
@openshift-ci-robot
Copy link

@QiWang19: This pull request references Jira Issue OCPBUGS-54458, which is invalid:

  • expected the bug to target the "4.19.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:

Use quay.io/coreos/etcd-operator repository in the test. The unit test TestImageStreamImportQuayIO failed because quay.io/coreos/etcd removes the latest tag.

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.

@QiWang19
Copy link
Member Author

QiWang19 commented Apr 2, 2025

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 2, 2025
@openshift-ci-robot
Copy link

@QiWang19: This pull request references Jira Issue OCPBUGS-54458, 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.19.0) matches configured target version for branch (4.19.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @gangwgr

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 openshift-ci bot requested a review from gangwgr April 2, 2025 04:40
@QiWang19 QiWang19 closed this Apr 9, 2025
@openshift-ci-robot
Copy link

@QiWang19: This pull request references Jira Issue OCPBUGS-54458. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state.

In response to this:

Use quay.io/coreos/etcd-operator repository in the test. The unit test TestImageStreamImportQuayIO failed because quay.io/coreos/etcd removes the latest tag.

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

5 participants