-
Notifications
You must be signed in to change notification settings - Fork 35
CherryPicked: [cnv-4.18] Fix MemoryDeltaFromRequestedBytes tests flakiness (#762) #1140
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
CherryPicked: [cnv-4.18] Fix MemoryDeltaFromRequestedBytes tests flakiness (#762) #1140
Conversation
* Fix MemoryDeltaFromRequestedBytes tests flakiness Fixed MemoryDeltaFromRequestedBytes tests by coverting the fixtures used into utils that used in sampler so the expected value will be updated, before the expected value pulled one time and sometime it is higher than the metric value and it needs to be updated. * Update tests/observability/metrics/utils.py Co-authored-by: Den Shchedrivyi <[email protected]> * Refactored functions and vars names Renamed functions and vars according to comments. * Combined expected kubvievirt memory delta functions * Combine MemoryDeltaFromRequestedBytes tests under the same test with parametrize. * changed get_highest_memory_usage_virt_api_pod_dict to return tuple * Fixed get_metrics_value --------- Co-authored-by: Den Shchedrivyi <[email protected]>
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Report bugs in Issues The following are automatically added:
Available user actions:
PR will be approved when the following conditions are met:
Approvers and Reviewers
Supported /retest check runs
Supported labels
|
/build-and-push-container |
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-1140 published |
/verified |
/approve |
/retest build-container |
Successfully removed PR tag: quay.io/openshift-cnv/openshift-virtualization-tests:pr-1140. |
New container for quay.io/openshift-cnv/openshift-virtualization-tests:cnv-4.18 published |
Short description:
Fixed MemoryDeltaFromRequestedBytes tests by coverting
the fixtures used into utils that used in sampler so the expected
value will be updated, before the expected value pulled one time
and sometime it is higher than the metric value and it needs to be
updated.
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:
https://issues.redhat.com/browse/CNV-62973