-
Notifications
You must be signed in to change notification settings - Fork 182
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
DPDK: install path fixes for meson and Ubuntu 24.04 #3598
base: main
Are you sure you want to change the base?
Conversation
I still saw issues when run test against canonical ubuntu-24_04-lts server 24.04.202411030
|
lisa/operating_system.py
Outdated
install_result = self._node.execute( | ||
command, shell=True, sudo=True, timeout=timeout | ||
) | ||
assert_that(install_result.exit_code).described_as( |
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.
install_result.assert_exist_code implemented the similar error message, please reuse it.
lisa/operating_system.py
Outdated
remove_packages = " ".join(packages) | ||
command += f" rm {remove_packages}" | ||
self.wait_running_process("zypper") | ||
install_result = self._node.execute( |
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.
install_result
-> uninstall_result
lisa/tools/meson.py
Outdated
@@ -15,13 +15,18 @@ | |||
|
|||
|
|||
class Meson(Tool): | |||
_minimum_version = VersionInfo(major=0, minor=52, patch=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.
use lisa.util.parse_version
.
if posix_os.package_exists(pkg, minimum_version=self._minimum_version): | ||
package_installed = pkg | ||
break | ||
elif posix_os.is_package_in_repo(pkg): |
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.
elif
to if
is the same, but it means the two if
blocks are actually independent.
Undoing a change I added which enabled a _minimum_version check on _check_exists. This is a bad system because you'll end up needing to do things like this: if not posix_os._check_exists(pkg, minimum_version=...): # Now what? Was it installed or not? # Was it installed and just the wrong version? The ultimate fix should be is_package_in_repo(pkg, minimum_version) Since we should be checking if an available package is the right version _before_ installing it blindly. This all seems out-of-scope for fixing a bug installing meson in _just_ the DPDK suite. So, I'm removing it. We can move the fixed install pattern to the operating_system.py level later if anyone else needs it.
|
Fixing some bugs which were noted after testing on Ubuntu 24.04: