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

ZTS: Improve zts-auto_offline_001_pos #9827

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

behlendorf
Copy link
Contributor

@behlendorf behlendorf commented Jan 9, 2020

Motivation and Context

Resolve frequent Ubuntu 16.04 CI failures:

http://build.zfsonlinux.org/builders/Ubuntu%2016.04%20x86_64%20%28TEST%29/builds/10291
http://build.zfsonlinux.org/builders/Ubuntu%2016.04%20x86_64%20%28TEST%29/builds/10281

These coincide with updating CI infrastructure which is why the
failures were previously not observed.

Description

The zts-auto_offline_001_pos test could exceed the 10 minute test
limit and be KILLED by the test infrastructure. To prevent this
speed up the test case by:

  • Removing redundant pool configuations. Each of the following
    vdev types is tested once: mirror, raidz, cache, and special.

  • The block_device_wait function need only wait on the block
    device which has been removed as part of the test.

How Has This Been Tested?

Locally ran the modified ZTS test case. Pending confirmation
from the CI that this change sped up the test enough to prevent
it from being regularly killed.

The following are set to in order to get a quick CI test run.

TEST_ZTEST_SKIP="yes"
TEST_ZFSTESTS_TAGS="fault"

[edit] Removed after a successful run. Resubmitted for a full ZTS run.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • All commit messages are properly formatted and contain Signed-off-by.

@behlendorf behlendorf added Component: Test Suite Indicates an issue with the test framework or a test case Status: Code Review Needed Ready for review and testing labels Jan 9, 2020
@codecov
Copy link

codecov bot commented Jan 9, 2020

Codecov Report

Merging #9827 into master will decrease coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #9827    +/-   ##
========================================
- Coverage      80%      79%   -<1%     
========================================
  Files         385      385            
  Lines      121492   121492            
========================================
- Hits        96638    96541    -97     
- Misses      24854    24951    +97
Flag Coverage Δ
#kernel 80% <ø> (ø) ⬆️
#user 67% <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90ae487...35b1726. Read the comment docs.

The zts-auto_offline_001_pos test could exceed the 10 minute test
limit and be KILLED by the test infrastructure.  To prevent this
speed up the test case by:

* Removing redundant pool configuations.  Each of the following
  vdev types is tested once: mirror, raidz, cache, and special.

* The block_device_wait function need only wait on the block
  device which has been removed as part of the test.

Signed-off-by: Brian Behlendorf <[email protected]>
@behlendorf behlendorf force-pushed the zts-auto_offline_001_pos branch from daa9385 to 35b1726 Compare January 9, 2020 19:47
Copy link
Contributor

@PaulZ-98 PaulZ-98 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jan 10, 2020
@behlendorf behlendorf merged commit 9ab6109 into openzfs:master Jan 10, 2020
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Sep 16, 2020
The zts-auto_offline_001_pos test could exceed the 10 minute test
limit and be KILLED by the test infrastructure.  To prevent this
speed up the test case by:

* Removing redundant pool configurations.  Each of the following
  vdev types is tested once: mirror, raidz, cache, and special.

* The block_device_wait function need only wait on the block
  device which has been removed as part of the test.

Reviewed-by: Paul Zuchowski <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#9827
@behlendorf behlendorf deleted the zts-auto_offline_001_pos branch April 19, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Test Suite Indicates an issue with the test framework or a test case Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants