Skip to content

Commit

Permalink
Merge pull request #7206 from chaen/startExtraServices
Browse files Browse the repository at this point in the history
test: manually start extra-services for integration tests
  • Loading branch information
chrisburr authored Sep 18, 2023
2 parents 21634fb + 40b64a5 commit 93f6551
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
from contextlib import contextmanager
from itertools import chain
from pathlib import Path
from typing import Optional

Expand Down Expand Up @@ -223,10 +224,15 @@ def prepare_environment(
server_config = _make_config(modules, server_flags, release_var, editable)
client_config = _make_config(modules, client_flags, release_var, editable)

# The dependencies of dirac-server and dirac-client will be automatically
# started but we need to add manually all the extra services
module_configs = _load_module_configs(modules)
extra_services = list(chain(*[config["extra-services"] for config in module_configs.values()]))

typer.secho("Running docker-compose to create containers", fg=c.GREEN)
with _gen_docker_compose(modules) as docker_compose_fn:
subprocess.run(
["docker-compose", "-f", docker_compose_fn, "up", "-d", "dirac-server", "dirac-client"],
["docker-compose", "-f", docker_compose_fn, "up", "-d", "dirac-server", "dirac-client"] + extra_services,
check=True,
env=docker_compose_env,
)
Expand Down

0 comments on commit 93f6551

Please sign in to comment.