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

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new b818a199ac Change sorting order of parallel test types (#39579)
b818a199ac is described below

commit b818a199ac11a2495428ab6a491cd6a703efba7f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon May 13 06:05:29 2024 +0200

    Change sorting order of parallel test types (#39579)
    
    Sorting order for test type has an impact for total execution time - the
    longest running test types should be run first, because when tests are
    run in parallel, the long running tests started later will remain
    running alone when all shorter running tests complete.
    
    This new sorting order should optimize the tests a bit better when they
    are run as complete set of tests.
---
 dev/breeze/src/airflow_breeze/commands/testing_commands.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/commands/testing_commands.py 
b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
index 49435b6a82..0daf3978a0 100644
--- a/dev/breeze/src/airflow_breeze/commands/testing_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
@@ -284,13 +284,13 @@ def _run_tests_in_pool(
     sorting_order = [
         "Providers",
         "Providers[-amazon,google]",
+        "Other",
         "Core",
+        "PythonVenv",
         "WWW",
         "CLI",
-        "Other",
         "Serialization",
         "Always",
-        "PythonVenv",
     ]
     sort_key = {item: i for i, item in enumerate(sorting_order)}
     # Put the test types in the order we want them to run

Reply via email to