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 error when num of CPU not match progress bars #3781

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

evidolob
Copy link
Contributor

@evidolob evidolob commented Aug 1, 2023

Fixes: Issue #3743

Solution/Idea

PR add check that sizes of CPU's load and CPU's progress bars are the same.
If number CPU's is bigger then created CPU's progress bars, it add missing bars.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob force-pushed the fix-cpu-bar-num-error branch from f97f52f to f1a3ce9 Compare August 1, 2023 11:30
@openshift-ci
Copy link

openshift-ci bot commented Aug 1, 2023

@evidolob: 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-microshift-crc f1a3ce9 link true /test e2e-microshift-crc
ci/prow/integration-crc f1a3ce9 link true /test integration-crc
ci/prow/e2e-crc f1a3ce9 link true /test e2e-crc

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.

@gbraad gbraad linked an issue Aug 2, 2023 that may be closed by this pull request
@gbraad gbraad removed the request for review from praveenkumar August 2, 2023 14:05
@gbraad
Copy link
Contributor

gbraad commented Aug 2, 2023

since @anjannath was ale to repro, please have a look

Copy link
Member

@anjannath anjannath left a comment

Choose a reason for hiding this comment

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

this fixes the issue reported in #3743

@@ -90,6 +90,14 @@ func runWatchStatus(writer io.Writer, client *daemonclient.Client, cacheDir stri
if err != nil {
return
}
} else if len(loadResult.CPUUse) > len(cpuBars) {
Copy link
Member

@anjannath anjannath Aug 4, 2023

Choose a reason for hiding this comment

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

should we also consider the case when loadResult.CPUUse would be less then cpuBars which would occur if the user sets config option cpus with a value less then current, currently we have a stale or extra progress bar (fixed value and doesn't change) in this case.

@openshift-ci
Copy link

openshift-ci bot commented Aug 4, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anjannath

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

@openshift-ci openshift-ci bot added the approved label Aug 4, 2023
@anjannath anjannath merged commit 5d48458 into crc-org:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

crc status -w during start can result in a panic of the command
3 participants