From 8303ad1b94d3b541a63248f0af0fea2817a15356 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 7 Jul 2023 21:52:18 +0200 Subject: [PATCH] Ignore error on mssql temp removal when cleaning (#32433) When there is a loack of sudo capability, clean command might return with error. We should ignore it. --- dev/breeze/src/airflow_breeze/commands/ci_commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/commands/ci_commands.py b/dev/breeze/src/airflow_breeze/commands/ci_commands.py index c35fa3430294d..526ef307353a1 100644 --- a/dev/breeze/src/airflow_breeze/commands/ci_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/ci_commands.py @@ -81,9 +81,7 @@ def free_space(): run_command(["docker", "system", "prune", "--all", "--force", "--volumes"]) run_command(["df", "-h"]) run_command(["docker", "logout", "ghcr.io"], check=False) - run_command( - ["sudo", "rm", "-f", os.fspath(Path.home() / MSSQL_TMP_DIR_NAME)], - ) + run_command(["sudo", "rm", "-f", os.fspath(Path.home() / MSSQL_TMP_DIR_NAME)], check=False) @ci_group.command(name="resource-check", help="Check if available docker resources are enough.")