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

Update tox.yml #4191

Merged
merged 11 commits into from
Jun 5, 2024
Merged

Update tox.yml #4191

merged 11 commits into from
Jun 5, 2024

Conversation

cidrblock
Copy link
Contributor

@cidrblock cidrblock commented Jun 4, 2024

Switch to shared tox.yml

A couple changes for the tests:

Skip the macos podman and docker test as we don't have podman or docker installed
The test_command_dependency[dependency-default-shell] fixture was changed to set the collection path for ansible to the directory where the collection is installed.

PYTEST_REQPASS will be reintroduced consistently across the board later

@cidrblock
Copy link
Contributor Author

Related: ansible/ansible-compat#387

This is why the collection can't be found

@@ -3,7 +3,7 @@ dependency:
name: shell
command: >
bash -c "
ansible-galaxy collection install -p '${MOLECULE_EPHEMERAL_DIRECTORY}/collections' community.molecule &&
ansible-galaxy collection install -p '${MOLECULE_EPHEMERAL_DIRECTORY}/collections' community.molecule --force &&
Copy link
Contributor Author

@cidrblock cidrblock Jun 5, 2024

Choose a reason for hiding this comment

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

This was added to ensure the collection is installed because the environment is not isolated and the ANSIBLE_COLLECTIONS_PATH not managed when calling with bash. This will force install the collection even if it exists in a standard location.

The following scenarios will have their collection path set to the ephmeral directory by default.

@cidrblock
Copy link
Contributor Author

no runtime changes, self approving to match the common tox

@cidrblock cidrblock merged commit e6d63ad into ansible:main Jun 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant