def METHOD_NAME(
    docker_registry: UrlStr,
    core_stack_namespace: str,
    ops_stack_namespace: str,
    core_stack_compose_specs: ComposeSpec,
    docker_client: DockerClient,
) -> list[Service]:
    # NOTE: the goal here is NOT to test time-to-deploy but
    # rather guaranteing that the framework is fully deployed before starting
    # tests. Obviously in a critical state in which the frameworks has a problem
    # the fixture will fail
    try:
        for attempt in Retrying(
            wait=wait_fixed(5),
            stop=stop_after_delay(4 * _MINUTE),
            before_sleep=before_sleep_log(log, logging.INFO),
            reraise=True,
        ):
            with attempt:
                for service in docker_client.services.list():
                    assert_service_is_running(service)
    finally:
        for stack_namespace in (core_stack_namespace, ops_stack_namespace):
            subprocess.run(
                f"docker stack ps {stack_namespace}", shell=True, check=False
            )
        # logs table like
        #  ID                  NAME                  IMAGE                                      NODE                DESIRED STATE       CURRENT STATE                ERROR
        # xbrhmaygtb76        simcore_sidecar.1     itisfoundation/sidecar:latest              crespo-wkstn        Running             Running 53 seconds ago
        # zde7p8qdwk4j        simcore_rabbit.1      itisfoundation/rabbitmq:3.11.2-management   crespo-wkstn        Running             Running 59 seconds ago
        # f2gxmhwq7hhk        simcore_postgres.1    postgres:10.10                             crespo-wkstn        Running             Running about a minute ago
        # 1lh2hulxmc4q        simcore_director.1    itisfoundation/director:latest             crespo-wkstn        Running             Running 34 seconds ago
        # ...
    # TODO: find a more reliable way to list services in a stack
    core_stack_services: list[Service] = list(
        docker_client.services.list(
            filters={"label": f"com.docker.stack.namespace={core_stack_namespace}"}
        )
    )
    assert (
        core_stack_services
    ), f"Expected some services in core stack '{core_stack_namespace}'"
    assert len(core_stack_compose_specs["services"].keys()) == len(core_stack_services)
    return core_stack_services