-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3006.x] Remove psutil_compat.py file, (RHEL 6 EOL era file) and fix pkg downgrade test #66763
Conversation
@@ -821,14 +837,21 @@ def install_previous(self, downgrade=False): | |||
self._install_ssm_service() | |||
|
|||
elif platform.is_darwin(): | |||
if relenv and platform.is_aarch64(): |
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.
Seems like this could be simplified
if platform.is_aarch64():
arch = "arm64"
else:
arch = "x86_64"
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, I thought of cleaning up and removing classic stuff, but I wanted to minimize the changes and use the format, used in the existing other code, in the hope to minimize changes and have the tests run cleanly.
Always time to go back and do it better 🤣 . Planning with #66672 to go through and clean up all that classic stuff, since pre-3006 is no longer supported.
What does this PR do?
Removes file psutil_compat.py which provided support for psutil < 2.0, which should have been removed when RHEL 6 reached End Of Life. And fix downgrade package tests for Debian/Ubuntu systems.
What issues does this PR fix or reference?
Fixes #66467
Previous Behavior
Generated Deprecation Warnings (added 4 months ago), the file should have been removed then.
Fix package downgrade tests failing on Ubuntu 24.04 arm64
New Behavior
Removed the file, which is no longer used, esp. in onedir architecture where Salt controls psutil verson uuesd (currently 5.8.0)
Fixed package downgrade tests
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices, including the
PR Guidelines.
See GitHub's page on GPG signing for more information about signing commits with GPG.