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: wait for some time when che-operator updated status with an error #1763

Merged
merged 4 commits into from
Oct 19, 2021

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Oct 13, 2021

Signed-off-by: Anatolii Bazko abazko@redhat.com

What does this PR do?

Wait for some time when che-operator updated status with an error.
It allows to continue deploying when problem is fixed.

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

eclipse-che/che#19978

How to test this PR?

N/A

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@codecov-commenter
Copy link

Codecov Report

Merging #1763 (4e0299e) into main (735e1ac) will decrease coverage by 0.00%.
The diff coverage is 9.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1763      +/-   ##
==========================================
- Coverage   10.77%   10.77%   -0.01%     
==========================================
  Files          64       64              
  Lines        7153     7155       +2     
  Branches     1212     1212              
==========================================
  Hits          771      771              
- Misses       6382     6384       +2     
Impacted Files Coverage Δ
src/tasks/kube.ts 3.80% <0.00%> (-0.08%) ⬇️
src/constants.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 735e1ac...4e0299e. Read the comment docs.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
// for instance we need some time for pvc provisioning...

if (cheClusterFailState || podFailState) {
// wait some time to recheck
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should do something like:

await cli.wait(10 * 1000)
i += 10
continue

Otherwise, if we face a problem that is resolved in a dozen of seconds, current code will wait whole minute.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

improved

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label Oct 19, 2021
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha
Copy link
Collaborator Author

tolusha commented Oct 19, 2021

/retest

@openshift-ci
Copy link

openshift-ci bot commented Oct 19, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AndrienkoAleksandr, mmorhun, tolusha

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

@tolusha tolusha merged commit 603df9d into main Oct 19, 2021
@tolusha tolusha deleted the 19978 branch October 19, 2021 10:16
@che-bot che-bot added this to the 7.38 milestone Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants