-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
improve docker_* test speed #53417
improve docker_* test speed #53417
Conversation
… lookup if image is up-to-date.
docker_swarm_service is now down to 2 1/2 minutes, docker_node to 30 seconds. I'll try to see whether I can improve docker_network and docker_container tomorrow. |
The problem with docker_network is that creating a network with IPAM config takes 15 seconds. Happens both on my local machine and on the RHEL7 CI VM. Here's a
As you can see, by far the most time was eaten by creating networks with IPAM config. I'm not sure we can really improve this (except by removing tests). |
@WojciechowskiPiotr @dariko @hannseman @jwitko FYI: we merged this pretty quickly because a) tests were still passing, and b) tests ran a lot faster, so hopefully there won't be a timeout on the nightly coverage test this time. Please still take a look at these changes if they are OK from your point of view! If not, we can always change some of them back :) @WojciechowskiPiotr I think the change to module_utils/docker/swarm.py should be harmless: it simply leves the last @dariko @hannseman @jwitko I've added |
@felixfontein Looks good, thank you! |
SUMMARY
Trying to speed up docker_* tests. The longest are (taken from a CI run on RHEL7):
First try: using
resolve_image: no
fordocker_swarm_service
, which should stop registry lookups for the image (with a new enough docker daemon).ISSUE TYPE
COMPONENT NAME
docker_swarm_service