Skip to content
Permalink
Browse files
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.
  • Loading branch information
potiuk committed Jun 25, 2022
1 parent aa8cd30 commit ac104025f45b54efff26407e460a5e4279c6495b
Showing 1 changed file with 10 additions and 2 deletions.
@@ -256,10 +256,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():

0 comments on commit ac10402

Please sign in to comment.