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: Various test case fixes #9748

Merged
merged 1 commit into from Dec 19, 2019
Merged

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Resolve recently observed ZTS failures. It's still unclear why they failures
were not caught by the zts-report.py script, but they were caught by the known-issues page.

Description

  • devices_001_pos and devices_002_neg - Failing after FreeBSD ZTS
    merged due to missing 'function' keyword for create_dev_file_linux.

  • pool_state - Occasionally fails due to an insufficient delay
    before checking 'zpool status'. Increasing the delay from 1 to 3
    seconds resolved the issue in local testing.

  • procfs_list_basic - Fails when run in-tree because the logged
    command is actually 'lt-zfs'. Updated the regex accordingly.

How Has This Been Tested?

Locally ran the updated tests cases and verified they are now passing:

$ ./scripts/zfs-tests.sh -T devices,procfs
Test (Linux): tests/functional/devices/setup (run as root) [00:00] [PASS]
Test (Linux): tests/functional/devices/devices_001_pos (run as root) [00:00] [PASS]
Test (Linux): tests/functional/devices/devices_002_neg (run as root) [00:00] [PASS]
Test (Linux): tests/functional/devices/devices_003_pos (run as root) [00:00] [PASS]
Test (Linux): tests/functional/devices/cleanup (run as root) [00:00] [PASS]
Test (Linux): tests/functional/procfs/setup (run as root) [00:01] [PASS]
Test (Linux): tests/functional/procfs/procfs_list_basic (run as root) [00:06] [PASS]
Test (Linux): tests/functional/procfs/procfs_list_concurrent_readers (run as root) [00:07] [PASS]
Test (Linux): tests/functional/procfs/procfs_list_stale_read (run as root) [00:04] [PASS]
Test (Linux): tests/functional/procfs/pool_state (run as root) [00:14] [PASS]
Test (Linux): tests/functional/procfs/cleanup (run as root) [00:01] [PASS]

Results Summary
PASS      11

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:

* devices_001_pos and devices_002_neg - Failing after FreeBSD ZTS
  merged due to missing 'function' keyword for create_dev_file_linux.

* pool_state - Occasionally fails due to an insufficient delay
  before checking 'zpool status'.  Increasing the delay from 1 to 3
  seconds resolved the issue in local testing.

* procfs_list_basic - Fails when run in-tree because the logged
  command is actually 'lt-zfs'.  Updated the regex accordingly.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Dec 19, 2019
@behlendorf behlendorf requested review from a user, tonyhutter and jwk404 December 19, 2019 18:12
Copy link
Contributor

@tonyhutter tonyhutter left a comment

Choose a reason for hiding this comment

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

Nice fixes!

@ghost
Copy link

ghost commented Dec 19, 2019

I've found the problem in zts-report.py, fix incoming.

Copy link
Contributor

@Ornias1993 Ornias1993 left a comment

Choose a reason for hiding this comment

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

Clean, Simply, much-good! :)

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Dec 19, 2019
@behlendorf behlendorf merged commit 5e8ac05 into openzfs:master Dec 19, 2019
@behlendorf behlendorf mentioned this pull request Dec 19, 2019
12 tasks
@codecov
Copy link

codecov bot commented Dec 20, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #9748    +/-   ##
========================================
- Coverage      80%      80%   -<1%     
========================================
  Files         385      385            
  Lines      121302   121302            
========================================
- Hits        96526    96485    -41     
- Misses      24776    24817    +41
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 a364048...baf2ce5. Read the comment docs.

tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 2, 2020
* devices_001_pos and devices_002_neg - Failing after FreeBSD ZTS
  merged due to missing 'function' keyword for create_dev_file_linux.

* pool_state - Occasionally fails due to an insufficient delay
  before checking 'zpool status'.  Increasing the delay from 1 to 3
  seconds resolved the issue in local testing.

* procfs_list_basic - Fails when run in-tree because the logged
  command is actually 'lt-zfs'.  Updated the regex accordingly.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#9748
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 7, 2020
* devices_001_pos and devices_002_neg - Failing after FreeBSD ZTS
  merged due to missing 'function' keyword for create_dev_file_linux.

* pool_state - Occasionally fails due to an insufficient delay
  before checking 'zpool status'.  Increasing the delay from 1 to 3
  seconds resolved the issue in local testing.

* procfs_list_basic - Fails when run in-tree because the logged
  command is actually 'lt-zfs'.  Updated the regex accordingly.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#9748
tonyhutter pushed a commit that referenced this pull request Jan 23, 2020
* devices_001_pos and devices_002_neg - Failing after FreeBSD ZTS
  merged due to missing 'function' keyword for create_dev_file_linux.

* pool_state - Occasionally fails due to an insufficient delay
  before checking 'zpool status'.  Increasing the delay from 1 to 3
  seconds resolved the issue in local testing.

* procfs_list_basic - Fails when run in-tree because the logged
  command is actually 'lt-zfs'.  Updated the regex accordingly.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9748
@behlendorf behlendorf deleted the zts-fixes branch April 19, 2021 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants