Repository navigation
qa: Handle TypeError in test_filelock - #68389
Merged
Merged
Conversation
Contributor
|
@karthik-us1 - please update the commit message to explain the issue and the fix in a bit of detail. |
karthik-us1
force-pushed
the
fix_test_filelock
branch
from
April 16, 2026 05:38
0cfa613 to
b32e2f2
Compare
Contributor
Author
Done. |
kotreshhr
reviewed
Apr 21, 2026
| @@ -349,9 +349,24 @@ def test_trim_caps(self): | |||
| count, num_caps | |||
| )) | |||
|
|
|||
| def _fuse_package_version(self): | |||
| for pkg in ("fuse", "fuse3"): | |||
| ver = get_package_version(self.mount_b.client_remote, pkg) | |||
Contributor
There was a problem hiding this comment.
it's always fetching package version from mount_b
kotreshhr
previously requested changes
Apr 21, 2026
karthik-us1
force-pushed
the
fix_test_filelock
branch
from
April 21, 2026 07:33
b32e2f2 to
d7cd980
Compare
vshankar
requested changes
Apr 22, 2026
vshankar
left a comment
Contributor
There was a problem hiding this comment.
Minor nits. Otherwise LGTM.
| for pkg in ("fuse", "fuse3"): | ||
| ver = get_package_version(client_remote, pkg) | ||
| if ver: | ||
| log.info("using {pkg} package version {ver} for flock check".format( |
| for pkg in ("fuse", "fuse3"): | ||
| ver = get_package_version(client_remote, pkg) | ||
| if ver: | ||
| log.info("using {pkg} package version {ver} for flock check".format( |
Latest versions of OS comes with fuse3 installed and we are checking for only fuse in the get_package_version check in the test case. Checking just for the package string fuse will return None if only fuse3 is installed. Adding check for both fuse and fuse3 packages now and also handling NoneType return in _is_flockable() if the package is actually missing. Fixes: https://tracker.ceph.com/issues/75959 Signed-off-by: Karthik U S <[email protected]>
karthik-us1
force-pushed
the
fix_test_filelock
branch
from
April 22, 2026 10:00
d7cd980 to
1c70ef1
Compare
Contributor
|
This PR is under test in https://tracker.ceph.com/issues/76232. |
vshankar
approved these changes
May 12, 2026
4 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handling NoneType return in _is_flockable() if version strings are not returned.
Fixes: https://tracker.ceph.com/issues/75959
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.