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

Fix upstream CI and remove molecule #1300

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

rjeffman
Copy link
Member

This PR removes the last bits of dependency on molecule used for testing and image creation.

Upstream CI tests are fixed and updated to use infra/image/start.sh to run the containers, with some changes:

  • Support for testing CentOS 7, which was not working, is removed
  • VM image is updated to Ubuntu 22.04
  • Azure files moved from tests to infra

The whole Azure playbooks were redesigned so that we have only two "steps" files, one to setup the container, the other to actually run the tests. Configuration of different test types are done trough template parameters.

The TEMP commit is there just to show the PR Pipeline execution.

See pipeline runs at:

Note that when this PR is merged, all the Azure pipelines will need to be recreated.

Move Azure scripts to infra directory, as only roles and modules test
playbooks should exist in the tests directory.
CentOS 7 containers are not working in recent versions of systemd.
The upstream CI tests can be simplified by using the script
infra/image/start.sh to start the testing container and using a steps
template playbook to prepare the environment.

Although not required, the environment and test template separation
aid on the future modification of the pipelines.
On Github and Azure, Ubuntu 22.04 images do not allow the selection of
the CPU numbers.
For some time now, we had some issues with molecule when building test
images for ansible-freeipa, and replaced the image creation with custom
build scripts that use commom container tools (like Dockerfiles and the
build command).

As there's no more tasks that require the use of molecule, this patch
removes the last bits used by it, and fixes documentation and lint
scripts and configuration.
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.

1 participant