-
Notifications
You must be signed in to change notification settings - Fork 209
Fix for XFSTest failing to build on older linux distros #3848
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
base: main
Are you sure you want to change the base?
Fix for XFSTest failing to build on older linux distros #3848
Conversation
Bug fix for xfstesting.py, missing tab in test list is causing xfstest for SMB to fail.
Update xfstesting.py to account for missing tab in test list
add fixes for legacy Distros that are not able to build newer release of XFStest. In this case we fall back to last known Tag that can build on the respective distros without requirement of additional or "out of band" packages from non-official repos.
return "default" | ||
os_info = self.node.os.information | ||
full_version = getattr(os_info, 'full_version', '') | ||
major = getattr(os_info.version, 'major', 0) if hasattr(os_info, 'version') else 0 |
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.
@LiliDeng can you work with @shekharsorot to use the right pattern of os version comparison?
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.
@squirrelsc do you mean the way used like here ?
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, mostly. But the following should be sufficient. Using <
can handle temporary test versions (like Ubuntu) and minor version upgrads.
if isinstance(node.os, Redhat) and full_version < "7.1":
pass
elif isinstance(node.os, Redhat) and full_version < "7.2":
pass
else:
# newer versions
pass
This PR addresses a key issue where any XFStest based cases are failing due to build compilation errors when using the latest branch of code from repo "https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git"
Upon investigation we found major changes being done to the code base in January of 2025., which caused build failures on system with glibc-devel < 2.23 deployed.
To work around this, a table has been added to the tool to specifically look for azure supported Linux Distros that were failing XFStest build and specified a last known release tag that was known to build without any issues.
This approach also allows us to add additional distros and version ID's in the future as needed and lock them to specific XFStest release tags.