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

Revive tests #44

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Revive tests #44

merged 1 commit into from
Dec 18, 2023

Conversation

fajpunk
Copy link
Contributor

@fajpunk fajpunk commented Dec 18, 2023

This PR gets the tests to pass with all the latest minor versions of all currently existing Python and Ansible versions. It was not pleasant work. There have been a lot of Ansible versions and a lot of Python versions and a lot of changes to... just about everything involved here... since I last had the time to work on this!

By some miracle, the plugin itself has NOT needed ANY changes. It still totally works.

  • Add new Python and Ansible version combos to the generated tox.ini
  • Restrict the Jinja2 version for some combos because it was too broadly specified in the Ansible deps
  • Remove the deprecated Templar.set_available_variables method in a test util function (luckily there is another way to do this that works for all Ansible versions)
  • Run each job in official python images: the setup-python action no longer supports 2.7, and not all 3.x versions can be installed in the same Ubuntu runner anyway.
  • Don't use tox-gh-actions: the version that supports running in containers isn't compatible with all of the python versions that we need issue
  • Restrict tox to a version that both supports Python 2.7 and supports filtering envs
  • Explicitly call out asdf dependency for getting all tox combos to pass locally
  • Add messaging about how most folks probably don't need this plugin anymore :)

This PR gets the tests to pass with all the latest minor versions of all currently existing Python and Ansible versions.  It was not pleasant work. There have been a lot of Ansible versions and a lot of Python versions and a lot of changes to... just about everything involved here... since I last had the time to work on this!

By some miracle, the plugin itself has *NOT* needed *ANY* changes.  It still totally works.

* Add new Python and Ansible version combos to the generated tox.ini
* Restrict the Jinja2 version for some combos because it was [too broadly specified in the Ansible deps](ansible/ansible#77356)
* Remove the [deprecated](ansible/ansible#75828) `Templar.set_available_variables` method in a test util function (luckily there is another way to do this that works for all Ansible versions)
* Run each job in official python images: the [setup-python](https://github.com/actions/setup-python) action [no longer supports 2.7](actions/setup-python#672), and not all 3.x versions can be installed in the same Ubuntu runner anyway.
* Don't use [tox-gh-actions](https://pypi.org/project/tox-gh-actions/): the version that supports running in containers isn't compatible with all of the python versions that we need [issue](https://github.com/ymyzk/tox-gh-actions/pull/114/files)
* Restrict tox to a version that both supports Python 2.7 and supports filtering envs
* Explicitly call out `asdf` dependency for getting all tox combos to pass locally
* Add a link to [a proposed alternative way to do this](leapfrogonline#43) with pure Ansible to the Readme
@fajpunk fajpunk merged commit 413ee17 into leapfrogonline:master Dec 18, 2023
10 checks passed
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.

None yet

1 participant