diff --git a/dev/breeze/README.md b/dev/breeze/README.md index 0a6ef086ffd42..b9b7b2e15923f 100644 --- a/dev/breeze/README.md +++ b/dev/breeze/README.md @@ -66,6 +66,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY UPDATED BY PRE-COMMIT. --------------------------------------------------------------------------------------------------------- -Package config hash: 64737d477cded72bb31d3b440bb2e5b76d48e865fd5d7ecc3b2cf9d1f0c889a7232e78f74854e9d2d0a1fd0dd653cb3ff81aee7387fea5afddec91f16ee63cd0 +Package config hash: fdb1d2f95db1e0dba03a84a0854eb69ee931c09845071d69229e02f8ce0ffcca3da51a277a17a517119c3280a4055eee7138a6b2bba34f07f9e941f92578b67b --------------------------------------------------------------------------------------------------------- diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 803f69f01e520..d84270840c56a 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -101,6 +101,9 @@ python_files = [ testpaths = [ "tests", ] +# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. +tmp_path_retention_count = "2" +tmp_path_retention_policy = "failed" [tool.ruff] extend = "../../pyproject.toml" diff --git a/docker_tests/pyproject.toml b/docker_tests/pyproject.toml index 21f3b5c11995c..b92131158ee61 100644 --- a/docker_tests/pyproject.toml +++ b/docker_tests/pyproject.toml @@ -26,3 +26,6 @@ filterwarnings = [ python_files = [ "*.py", ] +# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. +tmp_path_retention_count = "2" +tmp_path_retention_policy = "failed" diff --git a/kubernetes_tests/pyproject.toml b/kubernetes_tests/pyproject.toml index 21f3b5c11995c..b92131158ee61 100644 --- a/kubernetes_tests/pyproject.toml +++ b/kubernetes_tests/pyproject.toml @@ -26,3 +26,6 @@ filterwarnings = [ python_files = [ "*.py", ] +# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. +tmp_path_retention_count = "2" +tmp_path_retention_policy = "failed" diff --git a/pyproject.toml b/pyproject.toml index c8c684536c755..1282a86896d1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -484,6 +484,9 @@ python_files = [ testpaths = [ "tests", ] +# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. +tmp_path_retention_count = "2" +tmp_path_retention_policy = "failed" ## coverage.py settings ##