-
Notifications
You must be signed in to change notification settings - Fork 39
fix(anta.tests): Added fix for issue: VerifyCPUUtilization failing when added in the middle of other tests #1294
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
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #1294 will not alter performanceComparing Summary
|
| self.result.is_failure(f"Device has reported agent crashes:\n * {agents}") | ||
|
|
||
|
|
||
| class VerifyCPUUtilization(AntaTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have separate test (i.e VerifyRunningProcesses) where we can verify the average runnable or uninterruptible processes.
So we can have two separate tests
- The existing VerifyCPUUtilization test focus only on CPU usage (with a deprecation warning to the new test).
- A new test, VerifyRunningProcesses, to handle the process
@carl-baillargeon could you please confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the current test VerifyCPUUtilization is broken and leads to false positives so it's fine to modify its behavior so it's more robust.
…en added in the middle of other tests
975c8c4 to
24823b9
Compare
|
carl-baillargeon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's investigate more about the proper default values for the averages. It depends on the CPU count on EOS. Maybe fetch the CPU count first using lscpu or something and then check the averages.
Description
Added fix for issue: VerifyCPUUtilization failing when added in the middle of other tests
Fixes #1283
Checklist:
pre-commit run)tox -e testenv)