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-6916 test: Fix interception library tests by letting threads to have independent data #4828

Merged
merged 13 commits into from
Mar 30, 2021

Conversation

shimizukko
Copy link
Contributor

@shimizukko shimizukko commented Mar 2, 2021

Fixed the interception library tests by letting threads to have independent data so that they don't collide; and we don't need to
wait between starting the threads.

Updated ior_intercept_dfuse_mix.py so that we'll use 2 clients to run IOR with IL and 2 clients without, making the environment
as equal as possible outside of the use of IL. Also simplified the test steps.

Added control_method: dmg to yaml.

Removed use_json from dmg pool query function.

Refactored tags.

Quick-build: true
Skip-unit-tests: true
Test-tag: ior_intercept_verify_data
Signed-off-by: Makito Kano makito.kano@intel.com

Added control_method: dmg to yaml.
Also refactored tags.

Quick-build: true
Skip-unit-tests: true
Test-tag: ior_intercept_verify_data
Signed-off-by: Makito Kano <makito.kano@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.

Quick-build: true
Skip-unit-tests: true
Test-tag: ior_intercept_verify_data
Signed-off-by: Makito Kano <makito.kano@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.

FYI: Errors found in lines not modified in the patch:

src/tests/ftest/util/ior_test_base.py:36:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:48:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:104:
(pylint-too-many-arguments) Too many arguments (11/10)

@daosbuild1
Copy link
Collaborator

Test stage Scan CentOS 7 RPMs completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4828/2/execution/node/706/log

Quick-build: true
Skip-unit-tests: true
Test-tag: ior_intercept_verify_data iorinterceptmix
Signed-off-by: Makito Kano <makito.kano@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.

FYI: Errors found in lines not modified in the patch:

src/tests/ftest/util/ior_test_base.py:36:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:48:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:97:
(pylint-too-many-arguments) Too many arguments (11/10)

@daosbuild1
Copy link
Collaborator

Test stage Scan CentOS 7 RPMs completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-4828/3/execution/node/682/log

Quick-build: true
Skip-unit-tests: true
Test-tag: ior_intercept_verify_data iorinterceptmix
Signed-off-by: Makito Kano <makito.kano@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.

FYI: Errors found in lines not modified in the patch:

src/tests/ftest/util/ior_test_base.py:36:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:48:
(pylint-super-with-arguments) Consider using Python 3 style super() without arguments

src/tests/ftest/util/ior_test_base.py:97:
(pylint-too-many-arguments) Too many arguments (11/10)

src/tests/ftest/util/ior_test_base.py:9:
(pylint-unused-import) Unused import time

IOR thread was using self.ior_cmd. This will lead to a collision between threads because many things, such as ior command
arguments, are shared. Updated ior_test_base.py so that each thread will have its own IorCommand object so that they are
independent and no need to sleep between the thread starts.

Updated ior_intercept_dfuse_mix.py test steps to do a comaprison of 2 IOR threads throughput performance. Also print out
a summary of improvements.

Removed use_json from pool_query.

Quick-build: true
Skip-unit-tests: true
Test-tag-hw-large: pr,hw,large ior_intercept_verify_data ior_intercept_mix
Signed-off-by: Makito Kano <makito.kano@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.

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-4828/5/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

FYI: Errors found in lines not modified in the patch:

src/tests/ftest/ior/ior_intercept_dfuse_mix.py:23:
(pylint-too-many-locals) Too many local variables (34/30)

src/tests/ftest/util/ior_test_base.py:9:
(pylint-unused-import) Unused import time

src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
src/tests/ftest/util/ior_test_base.py Outdated Show resolved Hide resolved
src/tests/ftest/util/ior_test_base.py Outdated Show resolved Hide resolved
src/tests/ftest/util/ior_test_base.py Outdated Show resolved Hide resolved
@daosbuild1
Copy link
Collaborator

Quick-build: true
Skip-unit-tests: true
Test-tag-hw-large: pr,hw,large ior_intercept_verify_data ior_intercept_mix
Signed-off-by: Makito Kano <makito.kano@intel.com>
@daosbuild1 daosbuild1 dismissed their stale review March 23, 2021 13:25

Updated patch

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.

src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
@daosbuild1
Copy link
Collaborator

@shimizukko shimizukko requested a review from cibervicho March 25, 2021 19:09
Quick-build: true
Skip-unit-tests: true
Test-tag-hw-large: pr,hw,large ior_intercept_verify_data ior_intercept_mix
Signed-off-by: Makito Kano <makito.kano@intel.com>
@daosbuild1 daosbuild1 dismissed their stale review March 26, 2021 17:15

Updated patch

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.

Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-4828/7/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules

FYI: Errors found in lines not modified in the patch:

src/tests/ftest/ior/ior_intercept_dfuse_mix.py:23:
(pylint-too-many-locals) Too many local variables (33/30)

src/tests/ftest/ior/ior_intercept_dfuse_mix.py Outdated Show resolved Hide resolved
@daosbuild1
Copy link
Collaborator

Quick-build: true
Skip-unit-tests: true
Test-tag-hw-large: pr,hw,large ior_intercept_verify_data ior_intercept_mix
Signed-off-by: Makito Kano <makito.kano@intel.com>
@daosbuild1 daosbuild1 dismissed their stale review March 26, 2021 17:25

Updated patch

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.

@shimizukko shimizukko changed the title DAOS-6916 test: Fix ior/ior_intercept_verify_data_integrity.py in weekly DAOS-6916 test: Fix interception library tests by letting threads to have independent data Mar 27, 2021
Copy link
Contributor

@dinghwah dinghwah left a comment

Choose a reason for hiding this comment

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

All functional tests are passed.
LGTM.

@shimizukko shimizukko requested a review from a team March 30, 2021 15:14
@sylviachanoiyee sylviachanoiyee merged commit f803021 into master Mar 30, 2021
@sylviachanoiyee sylviachanoiyee deleted the DAOS-6916 branch March 30, 2021 15:32
shimizukko added a commit that referenced this pull request Mar 30, 2021
…have independent data (#4828)

IOR thread was using self.ior_cmd. This will lead to a collision between threads because many things, such as ior command
arguments, are shared. Updated ior_test_base.py so that each thread will have its own IorCommand object so that they are
independent and no need to sleep between the thread starts.
Updated ior_intercept_dfuse_mix.py test steps to do a comparison of 2 IOR threads throughput performance. Also print out
a summary of improvements.
Removed use_json from pool_query.
Added control_method: dmg to yaml.
Also refactored tags.

Quick-build: true
Skip-unit-tests: true
Test-tag-hw-large: pr,hw,large ior_intercept_verify_data ior_intercept_mix
Signed-off-by: Makito Kano <makito.kano@intel.com>
sylviachanoiyee pushed a commit that referenced this pull request Apr 1, 2021
…have independent data (#4828) (#5243)

IOR thread was using self.ior_cmd. This will lead to a collision between threads because many things, such as ior command
arguments, are shared. Updated ior_test_base.py so that each thread will have its own IorCommand object so that they are
independent and no need to sleep between the thread starts.
Updated ior_intercept_dfuse_mix.py test steps to do a comparison of 2 IOR threads throughput performance. Also print out
a summary of improvements.
Removed use_json from pool_query.
Added control_method: dmg to yaml.
Also refactored tags.

Signed-off-by: Makito Kano <makito.kano@intel.com>
@ashleypittman ashleypittman mentioned this pull request Apr 28, 2021
@ashleypittman ashleypittman mentioned this pull request May 20, 2021
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.

5 participants