Skip to content
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

Merged
merged 20 commits into from
Aug 12, 2024

Conversation

dmurphy18
Copy link
Contributor

@dmurphy18 dmurphy18 commented Jul 30, 2024

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.

@dmurphy18 dmurphy18 self-assigned this Jul 30, 2024
@dmurphy18 dmurphy18 requested a review from a team as a code owner July 30, 2024 16:44
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Remove psutil_compat.py file, which should have been removed when RHEL 6 EOL [3006.x] Remove psutil_compat.py file, which should have been removed when RHEL 6 EOL Jul 30, 2024
@dmurphy18 dmurphy18 added this to the Sulfur v3006.10 milestone Jul 30, 2024
@dmurphy18 dmurphy18 added test:slow Enable Slow Tests test:full Run the full test suite test:pkg Run the package tests test:os:all Run Tests Against ALL OS'es labels Jul 30, 2024
@@ -821,14 +837,21 @@ def install_previous(self, downgrade=False):
self._install_ssm_service()

elif platform.is_darwin():
if relenv and platform.is_aarch64():
Copy link
Contributor

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"

Copy link
Contributor Author

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.

@dwoz dwoz merged commit 6e43c93 into saltstack:3006.x Aug 12, 2024
846 of 849 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite test:os:all Run Tests Against ALL OS'es test:pkg Run the package tests test:slow Enable Slow Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants