You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/07/07 19:52:53 UTC

[airflow] branch v2-6-test updated: Ignore error on mssql temp removal when cleaning (#32433)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-6-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-6-test by this push:
     new b26c344d8b Ignore error on mssql temp removal when cleaning (#32433)
b26c344d8b is described below

commit b26c344d8b94c8d5c6bc386203afaae7fe3c7866
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri Jul 7 21:52:18 2023 +0200

    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.
    
    (cherry picked from commit 8303ad1b94d3b541a63248f0af0fea2817a15356)
---
 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 c35fa34302..526ef30735 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.")