-
Notifications
You must be signed in to change notification settings - Fork 664
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
The CI is too slow #1669
Comments
Is this something that could be fixed using a tool like detox? |
I am not sure if there is much to be done about it as molecule needs to test a huge combination of python versions, ansible versions, platforms/distributions, containers/vms/clouds... Even with a paid travis plan this could be limited. I wonder if using openstack build infrastructure would not be a better way to test changes. |
Detox would help the execution of python / ansible tests as they would happen concurrently which could speed some things up. Maybe "fixed" was the incorrect word to use but I could see concurrent builds working fairly quickly. |
OK,
So, perhaps we can improve by simply passing |
Something for ansible#1669. Signed-off-by: Luke Murphy <lukewm@riseup.net>
OK, after some experimenting. I see that we can't get anything out of |
Would |
Some tests don't need the all armada of requirements to be installed, so we could gain time here also. For instance, AFAIK, lint only need flake8 (and should not depend on, let's say, having lxc up and running) |
#1695 addresses the linting install skips? Think so. |
Related to: #1702 (comment) Once the problem with parallel Molecule execution is solved, we can try using thread-based parallelism which via pytest-xdist. It could improve things dramatically. |
🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 |
Are we not installing the packages twice ? First time with |
@themr0c I hope once pbr is removed, we'll have it in one place anyway. I'd not touch it right now. |
It won't be a huge gain, maybe only 5 minutes in total, because we are targeting 3 to 4 minutes jobs, and travis runners have only 2 cores. PR ansible#1706. Ref ansible#1669. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
I think we've done a lot of good things with regard to this. The major remaining issue (run things in parallel) is tracked elsewhere and we're also moving forward with Zuul integration (see #1770) too! I'm gonna close this off. |
Issue Type
On https://travis-ci.com/ansible/molecule/builds/97459293, we saw:
Hopefully this ticket can be a place to gather ideas on how to speed this process up.
PS. I am thankful for all the great work that has been done to get this CI in place.
The text was updated successfully, but these errors were encountered: