-
Notifications
You must be signed in to change notification settings - Fork 301
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
DAOS-12946 test: fix telemetry_pool_metrics with ior error #12478
Conversation
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.
LGTM. No errors found by checkpatch.
Bug-tracker data: |
Test stage Build RPM on Leap 15.4 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12478/1/execution/node/288/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12478/1/execution/node/347/log |
Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12478/1/execution/node/366/log |
a2e0cf2
to
f6b7187
Compare
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.
LGTM. No errors found by checkpatch.
f6b7187
to
5414f06
Compare
Fix management of ior errors: canceling the test as we do not know how much data have been transferred. Test-tag: pr test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
5414f06
to
8456e86
Compare
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.
LGTM. No errors found by checkpatch.
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.
LGTM. No errors found by checkpatch.
except TestFail as error: | ||
# NOTE DAOS-12946: it is not possible to properly test the metrics as we do not know | ||
# how much data have been transferred. Thus we cancel the test, as the purpose of this | ||
# test is not to check the ior command. | ||
self.log.error(">>>>>> IOR command failed: %s", str(error)) | ||
self.log.info("------ Test canceled ------") | ||
self.cancel("IOR command failed: {}".format(error)) |
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.
I wonder if the test should just fail here - self.fail
- since if IOR fails that's probably a different problem that needs to be investigated. I commented on the ticket as well
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.
Good point, I will change the PR according to that.
- Fail on ior error
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-12478/4/execution/node/1290/log |
Integrate Reviewers comments. Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
…/daos-12946 Required-githooks: true
Fix flake8 code formating. Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
Typo hotfix. Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
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.
LGTM. No errors found by checkpatch.
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.
LGTM. No errors found by checkpatch.
Test stage Unit Test on EL 8 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-12478/6/display/redirect |
…/daos-12946 Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true
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.
LGTM. No errors found by checkpatch.
except TestFail as error: | ||
# NOTE DAOS-12946: it is not possible to properly test the metrics as we do not know | ||
# how much data have been transferred. However, the reason of the ior failure should be | ||
# investigated and thus we fail the test. | ||
self.log.error( | ||
">>>>>> Failure of IOR is unexpected and should be investigated: %s", | ||
str(error)) | ||
self.fail("IOR command failed: {}".format(error)) | ||
|
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.
Sorry, I didn't realize before that this is TestFail
. self.fail()
will raise another TestFail
. So we could just remove the try..except
to get the same behavior. I think Failure of IOR is unexpected and should be investigated
is implied. I.e. if IOR fails, the test fails and it's understood that it needs to be investigated.
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.
- Remove useless exception catch
…/daos-12946 Required-githooks: true
Integrate reviewers comments. Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
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.
LGTM. No errors found by checkpatch.
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.
LGTM. Thanks!
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.
You might want to remove from avocado.core.exceptions import TestFail
Good catch! That pylint check is failing: |
|
…/daos-12946 Required-githooks: true
Integrate reviewers comments: * Remove useless package import #12478 (comment) Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics Required-githooks: true Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
8a47ce7
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.
LGTM. No errors found by checkpatch.
@daos-stack/daos-gatekeeper Test-Tag was used to limit functional tests to the fixed one. |
When the ior command is failing, it is not possible to properly test the metrics as we do not know how much data have been transferred. Thus we cancel the test when such error is occurring, as the purpose of this test is not to check the ior command. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
…12478 #13122 (#13229) When the ior command is failing, it is not possible to properly test the metrics as we do not know how much data have been transferred. Thus we cancel the test when such error is occurring, as the purpose of this test is not to check the ior command. Update engine_pool_xferred_fetch metric threshold to manage extra networking control traffic. Add some comments on the limitation of the tests. Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
Description
When the ior command is failing, it is not possible to properly test the metrics as we do not know how much data have been transferred.
Thus we cancel the test when such error is occurring, as the purpose of this test is not to check the ior command.
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: