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

Inject venv site-packages at the top of collection path (test isolation) #447

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Jan 17, 2025

  • Inject venv site-packages into collection patch in order to ensure that by default ansible-galaxy commands will install content in these instead of user configuration. (test isolation)
  • Adapt smoke testing to test both molecule and ansible-lint, which before this change would have failed one test, test_podman on molecule because it uses an external ansible-galaxy install command, one that would have installed requirements it another location.

Fixes: AAP-38731
Reference: https://ansible.readthedocs.io/projects/dev-tools/user-guide/test-isolation/

ssbarnea added a commit to ansible/ansible-lint that referenced this pull request Jan 20, 2025
ssbarnea added a commit to ansible/ansible-lint that referenced this pull request Jan 20, 2025
This bug caused some testing failures in a very limited use scenarios.
Related: ansible/ansible-compat#447
@ssbarnea ssbarnea changed the title Adapt smoke testing to test both molecule and ansible-lint Adapt smoke testing to run molecule and ansible-lint own tests Jan 21, 2025
@ssbarnea ssbarnea changed the title Adapt smoke testing to run molecule and ansible-lint own tests Adapt smoke testing to include molecule and ansible-lint tests Jan 21, 2025
@ssbarnea ssbarnea marked this pull request as ready for review January 23, 2025 09:17
@ssbarnea ssbarnea requested a review from a team as a code owner January 23, 2025 09:17
@ssbarnea ssbarnea changed the title Adapt smoke testing to include molecule and ansible-lint tests Inject venv site-packages at the top of collection path (test isolation) Jan 23, 2025
@ssbarnea ssbarnea added enhancement New feature or request and removed skip-changelog labels Jan 23, 2025
@ssbarnea ssbarnea mentioned this pull request Jan 23, 2025
- Inject venv site-packages into collection patch in order to ensure
  that by default ansible-galaxy commands will install content in
  these instead of user configuration. (test isolation)
- Adapt smoke testing to test both molecule and ansible-lint, which
  before this change would have failed one test.
@audgirka audgirka merged commit 83c5cfb into main Jan 27, 2025
32 checks passed
@audgirka audgirka deleted the chore/devel branch January 27, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants