Skip to content

Commit 7a8bba8

Browse files
chore(ci): increase timeout for docker container to come online
Have been seeing timeout issues more and more. Increase timeout from 200 seconds to 300 seconds (5 minutes).
1 parent f0ac3cd commit 7a8bba8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/functional/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,16 @@ def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, fixture_
191191
config_file = temp_dir / "python-gitlab.cfg"
192192
port = docker_services.port_for("gitlab", 80)
193193

194+
start_time = time.perf_counter()
194195
logging.info("Waiting for GitLab container to become ready.")
195196
docker_services.wait_until_responsive(
196-
timeout=200, pause=10, check=lambda: check_is_alive("gitlab-test")
197+
timeout=300, pause=10, check=lambda: check_is_alive("gitlab-test")
198+
)
199+
setup_time = time.perf_counter() - start_time
200+
minutes, seconds = int(setup_time / 60), int(setup_time % 60)
201+
logging.info(
202+
f"GitLab container is now ready after {minutes} minute(s), {seconds} seconds"
197203
)
198-
logging.info("GitLab container is now ready.")
199204

200205
token = set_token("gitlab-test", fixture_dir=fixture_dir)
201206

0 commit comments

Comments
 (0)