Skip to content

fix(e2e): Use Eventually for installplan status fetch operation#2394

Closed
dinhxuanvu wants to merge 1 commit intooperator-framework:masterfrom
dinhxuanvu:ip-e2e
Closed

fix(e2e): Use Eventually for installplan status fetch operation#2394
dinhxuanvu wants to merge 1 commit intooperator-framework:masterfrom
dinhxuanvu:ip-e2e

Conversation

@dinhxuanvu
Copy link
Copy Markdown
Member

Use Eventually to fetch installplan status to ensure the latest
installplan being checked.

Signed-off-by: Vu Dinh vudinh@outlook.com

Description of the change:

Motivation for the change:

Reviewer Checklist

  • Implementation matches the proposed design, or proposal is updated to match implementation
  • Sufficient unit test coverage
  • Sufficient end-to-end test coverage
  • Docs updated or added to /doc
  • Commit messages sensible and descriptive

Use `Eventually` to fetch installplan status to ensure the latest
installplan being checked.

Signed-off-by: Vu Dinh <vudinh@outlook.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dinhxuanvu

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 requested a review from awgreene October 4, 2021 21:59
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 4, 2021
Copy link
Copy Markdown
Member

@njhale njhale left a comment

Choose a reason for hiding this comment

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

nice find!

Comment on lines +3333 to +3342
if err != nil {
return false, err
}
if fetchedInstallPlan == nil {
return false, err
}
if hasCondition(fetchedInstallPlan, cond) {
return true, nil
}
return false, nil
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.

we can condense this legibly:

return fetchedInstallPlan != nil && hasCondition(fetchedInstallPlan, cond), err

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Dec 5, 2021

@dinhxuanvu: PR needs rebase.

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

@awgreene
Copy link
Copy Markdown
Member

awgreene commented Sep 3, 2022

This eventually statement was added in #2510

@awgreene awgreene closed this Sep 3, 2022
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. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants