-
Notifications
You must be signed in to change notification settings - Fork 400
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
test(NFS): run either nfsv4 or nfsv3 tests #2456
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. Thanks. This helps having passing CI without compromising test coverage significantly.
test/TEST-20-NFS/test.sh
Outdated
test_nfsv3 \ | ||
&& test_nfsv4 | ||
# run either nfsv4 or nfsv3 tests | ||
if grep -q '\-nfs4' /etc/portage/package.use/nfs-utils 2>/dev/null; then |
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.
isn't this check only for gentoo?
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.
Yes, this check would only pass on Gentoo. In practice only the Gentoo container does not support NFSv4, so only Gentoo would run the NFSv3 tests by default.
I am not aware of how to test for this in a non-distribution specific way.
Perhaps one alternative is to introduce a command line option for tests and pass in in the test run command line if we only want to run NFSv3 or NFSv4 tests (or both).
This is a discussion meant to focus on what is running on CI (and not what can or should be tested outside of CI). To get to a state where CI is green and/or we enable this test for other distributions also, we need to either:
CC @bdrung for visibility and feedback. @bdrung what do you think of the goal of this PR and/or the way it is trying to do it ? Is there a better way to detect installed NFS versions in a distribution agonistic way ? |
The first question to answer is: Do we want to run only NFS v3 or v4 tests? How widely used is NFS v3 vs v4? If v3 is legacy and most of all systems use v4, I am fine with only running v4 tests (if v4 support is available). Other having tested both would be preferred. |
|
Run only nfsv4 tests unless nfs4 is not available
Checklist
Fixes #2455