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

Make tests compatible with venv bundle #662

Merged

Conversation

m-czernek
Copy link
Contributor

@m-czernek m-czernek commented Jul 8, 2024

What does this PR do?

In this PR, we fix the test_pip and test_fileserver tests to be compatible with venv minion bundle.

This PR is a part of https://github.com/SUSE/spacewalk/issues/23536.

NOTE: This change includes the following commit: 96391b8

This commit will be reverted before merging. The commit modifies the skip list temporarily to actually test the modified tests.

In https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/testing-failing-tests/skipped_tests.toml, I have commented out tests that are fixed by this PR for better readability.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@m-czernek m-czernek force-pushed the mczernek-fix-tests branch from fb319b4 to a041979 Compare July 8, 2024 10:41
Copy link
Member

@meaksh meaksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think any of these changes makes sense upstream?

@m-czernek m-czernek force-pushed the mczernek-fix-tests branch from dcc1323 to 21ed917 Compare July 10, 2024 08:58
@m-czernek
Copy link
Contributor Author

m-czernek commented Jul 11, 2024

@m-czernek m-czernek force-pushed the mczernek-fix-tests branch 2 times, most recently from ee06a5a to d8359f3 Compare July 17, 2024 14:21
@m-czernek
Copy link
Contributor Author

Note: After the PR is merged, this issue returns to backlog, since there are still more tests to take a look at.

After the PR is merged, we should wait for the next Salt minor release and then merge https://github.com/openSUSE/salt-test-skiplist/tree/testing-failing-tests to enable the tests for our Jenkins pipelines.

Copy link
Member

@agraul agraul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM! I left a few comments inline, but they aren't blocking this PR.

tests/pytests/functional/modules/test_sdb.py Show resolved Hide resolved
tests/pytests/unit/test_fileserver.py Outdated Show resolved Hide resolved
tests/unit/test_config.py Show resolved Hide resolved
@m-czernek m-czernek force-pushed the mczernek-fix-tests branch from 0e890ef to 52e4b3b Compare August 7, 2024 07:32
@m-czernek
Copy link
Contributor Author

Squashing commits before merge such that:

  • I remove the modifications to the workflow files.
  • I squash my commits into one.
  • I leave cherry-picked commits.

@m-czernek m-czernek merged commit 25c3df7 into openSUSE:openSUSE/release/3006.0 Aug 7, 2024
8 checks passed
@m-czernek m-czernek deleted the mczernek-fix-tests branch August 7, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants