This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit fbca47eba4c0a37a7bb669fc609124eabb3252cf Author: Jarek Potiuk <[email protected]> AuthorDate: Sat Jun 25 11:27:21 2022 +0200 Remove misleading message from CI (#24650) The CI jobs do not usually have mypy_cache volume created and almost all jobs print misleading "mypy_cache_volume" error at the beginning. This is a noise - we are not interested in this stderr printed message - we are only interested in returncode from checking if it exists. (cherry picked from commit ac104025f45b54efff26407e460a5e4279c6495b) --- dev/breeze/src/airflow_breeze/utils/path_utils.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/utils/path_utils.py b/dev/breeze/src/airflow_breeze/utils/path_utils.py index c7ee6d9802..413401c0e8 100644 --- a/dev/breeze/src/airflow_breeze/utils/path_utils.py +++ b/dev/breeze/src/airflow_breeze/utils/path_utils.py @@ -254,10 +254,18 @@ def create_volume_if_missing(volume_name: str): from airflow_breeze.utils.run_utils import run_command res_inspect = run_command( - cmd=["docker", "volume", "inspect", volume_name], stdout=subprocess.DEVNULL, check=False + cmd=["docker", "volume", "inspect", volume_name], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + check=False, ) if res_inspect.returncode != 0: - run_command(cmd=["docker", "volume", "create", volume_name], check=True) + run_command( + cmd=["docker", "volume", "create", volume_name], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + check=True, + ) def create_static_check_volumes():
