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

Fix tests ID 5990 and ID 5989 #365

Merged
merged 1 commit into from
May 31, 2022

Conversation

ksimon1
Copy link
Member

@ksimon1 ksimon1 commented May 25, 2022

What this PR does / why we need it:
updated tests ID 5990 and ID 5989

these tests sometimes failed due to ssp cr conflict error.
This patch add retry logic, which tries to update CR multiple time if
error occures

Release note:

NONE

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 25, 2022
@ksimon1
Copy link
Member Author

ksimon1 commented May 25, 2022

/retest

@ksimon1 ksimon1 changed the title add handleError function to other places in ssp reconcile function Fix tests ID 5990 and ID 5989 May 26, 2022
foundSsp = getSsp()
foundSsp.Spec.TemplateValidator.Placement = &placementAPIValidationInvalidPlacement
return apiClient.Update(ctx, foundSsp, client.DryRunAll)
}, time.Second, tenSecondTimeout).Should(HaveOccurred(), "SSP CR updated with invalid template-validator placement fields")
Copy link
Collaborator

Choose a reason for hiding this comment

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

these tests sometimes failed due to ssp cr conflict error.
This patch add retry logic, which tries to update CR multiple time if
error occures
Signed-off-by: Karel Šimon <ksimon@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented May 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ksimon1
Copy link
Member Author

ksimon1 commented May 27, 2022

/retest

@openshift-ci
Copy link

openshift-ci bot commented May 27, 2022

@ksimon1: 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-single-node-functests 3c35e0b link true /test e2e-single-node-functests
ci/prow/e2e-functests 3c35e0b link true /test e2e-functests
ci/prow/e2e-upgrade-functests 3c35e0b link true /test e2e-upgrade-functests

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.

@akrejcir
Copy link
Collaborator

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label May 30, 2022
@ksimon1
Copy link
Member Author

ksimon1 commented May 31, 2022

/override ci/prow/e2e-functests
/override ci/prow/e2e-single-node-functests
/override ci/prow/e2e-upgrade-functests
failing tests are not related to this PR
/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ksimon1

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 31, 2022
@kubevirt-bot
Copy link
Contributor

@ksimon1: Overrode contexts on behalf of ksimon1: ci/prow/e2e-functests, ci/prow/e2e-single-node-functests, ci/prow/e2e-upgrade-functests

In response to this:

/override ci/prow/e2e-functests
/override ci/prow/e2e-single-node-functests
/override ci/prow/e2e-upgrade-functests
failing tests are not related to this PR
/approve

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.

@kubevirt-bot kubevirt-bot merged commit 1ea41aa into kubevirt:master May 31, 2022
@ksimon1
Copy link
Member Author

ksimon1 commented May 31, 2022

/cherrypick release-v0.15

@kubevirt-bot
Copy link
Contributor

@ksimon1: new pull request created: #375

In response to this:

/cherrypick release-v0.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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants