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

DAOS-12946 test: fix telemetry_pool_metrics with ior error #12478

Merged
merged 10 commits into from
Jun 30, 2023

Conversation

knard-intel
Copy link
Contributor

@knard-intel knard-intel commented Jun 21, 2023

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:

  • Two review approvals and any prior change requests have been resolved.
  • Testing is complete and all tests passed or there is a reason documented in the PR why it should be force landed and forced-landing tag is set.
  • Features: (or Test-tag*) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.
  • Commit messages follows the guidelines outlined here.
  • Any tests skipped by the ticket being addressed have been run and passed in the PR.

Gatekeeper:

  • You are the appropriate gatekeeper to be landing the patch.
  • The PR has 2 reviews by people familiar with the code, including appropriate watchers.
  • Githooks were used. If not, request that user install them and check copyright dates.
  • Checkpatch issues are resolved. Pay particular attention to ones that will show up on future PRs.
  • All builds have passed. Check non-required builds for any new compiler warnings.
  • Sufficient testing is done. Check feature pragmas and test tags and that tests skipped for the ticket are run and now pass with the changes.
  • If applicable, the PR has addressed any potential version compatibility issues.
  • Check the target branch. If it is master branch, should the PR go to a feature branch? If it is a release branch, does it have merge approval in the JIRA ticket.
  • Extra checks if forced landing is requested
    • Review comments are sufficiently resolved, particularly by prior reviewers that requested changes.
    • No new NLT or valgrind warnings. Check the classic view.
    • Quick-build or Quick-functional is not used.
  • Fix the commit message upon landing. Check the standard here. Edit it to create a single commit. If necessary, ask submitter for a new summary.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@github-actions
Copy link

github-actions bot commented Jun 21, 2023

Bug-tracker data:
Ticket title is 'telemetry/telemetry_pool_metrics.py:TelemetryPoolMetrics.test_telemetry_pool_metrics - Aggregated value of the metric engine_pool_ops_fetch for oclass RP_3GX is invalid: got=4, wait_in=[519, 577]'
Status is 'In Progress'
Labels: 'ci_impact,daily_test,triaged'
https://daosio.atlassian.net/browse/DAOS-12946

@daosbuild1
Copy link
Collaborator

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

@daosbuild1
Copy link
Collaborator

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

@daosbuild1
Copy link
Collaborator

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

@knard-intel knard-intel force-pushed the ckochhof/fix/master/daos-12946 branch from a2e0cf2 to f6b7187 Compare June 22, 2023 06:56
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@knard-intel knard-intel force-pushed the ckochhof/fix/master/daos-12946 branch from f6b7187 to 5414f06 Compare June 22, 2023 07:02
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>
@knard-intel knard-intel force-pushed the ckochhof/fix/master/daos-12946 branch from 5414f06 to 8456e86 Compare June 22, 2023 07:04
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@knard-intel knard-intel marked this pull request as ready for review June 23, 2023 08:45
@knard-intel knard-intel requested a review from a team as a code owner June 23, 2023 08:45
Comment on lines 161 to 167
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))
Copy link
Contributor

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

Copy link
Contributor Author

@knard-intel knard-intel Jun 23, 2023

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

@daosbuild1
Copy link
Collaborator

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>
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>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@daosbuild1
Copy link
Collaborator

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

shimizukko
shimizukko previously approved these changes Jun 23, 2023
…/daos-12946

Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics
Required-githooks: true
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

Comment on lines 161 to 169
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))

Copy link
Contributor

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.

Copy link
Contributor Author

@knard-intel knard-intel Jun 26, 2023

Choose a reason for hiding this comment

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

  • Remove useless exception catch

Integrate reviewers comments.

Test-tag: TelemetryPoolMetrics,test_telemetry_pool_metrics
Required-githooks: true
Signed-off-by: Cedric Koch-Hofer <cedric.koch-hofer@intel.com>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

daltonbohning
daltonbohning previously approved these changes Jun 26, 2023
Copy link
Contributor

@daltonbohning daltonbohning left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

shimizukko
shimizukko previously approved these changes Jun 26, 2023
Copy link
Contributor

@shimizukko shimizukko left a 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

@daltonbohning
Copy link
Contributor

You might want to remove from avocado.core.exceptions import TestFail

Good catch! That pylint check is failing:
https://github.com/daos-stack/daos/actions/runs/5383214549

@knard-intel
Copy link
Contributor Author

knard-intel commented Jun 29, 2023

You might want to remove from avocado.core.exceptions import TestFail

  • Remove useless package import

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>
Copy link
Collaborator

@daosbuild1 daosbuild1 left a 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.

@knard-intel knard-intel requested a review from a team June 30, 2023 07:49
@knard-intel
Copy link
Contributor Author

knard-intel commented Jun 30, 2023

@daos-stack/daos-gatekeeper Test-Tag was used to limit functional tests to the fixed one.

@phender phender merged commit 54b6e0f into master Jun 30, 2023
@phender phender deleted the ckochhof/fix/master/daos-12946 branch June 30, 2023 14:58
knard-intel added a commit that referenced this pull request Oct 24, 2023
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>
daltonbohning pushed a commit that referenced this pull request Oct 27, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants