From a0d36f47dc66b721a9bfba9de30785c7d846ad0f Mon Sep 17 00:00:00 2001 From: Patrik William Date: Mon, 23 Oct 2023 23:06:40 +0200 Subject: [PATCH] preserve shards ordering --- src/pabot/pabot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pabot/pabot.py b/src/pabot/pabot.py index 8738db20..229e2a88 100644 --- a/src/pabot/pabot.py +++ b/src/pabot/pabot.py @@ -1958,10 +1958,10 @@ def main_program(args): def _group_suites(outs_dir, datasources, options, pabot_args): suite_names = solve_suite_names(outs_dir, datasources, options, pabot_args) _verify_depends(suite_names) - shard_suites = solve_shard_suites(suite_names, pabot_args) - ordered_suites = _preserve_order(shard_suites, pabot_args.get("ordering")) + ordered_suites = _preserve_order(suite_names, pabot_args.get("ordering")) + shard_suites = solve_shard_suites(ordered_suites, pabot_args) grouped_suites = ( - _chunked_suite_names(ordered_suites, pabot_args["processes"]) + _chunked_suite_names(shard_suites, pabot_args["processes"]) if pabot_args["chunk"] else _group_by_wait(_group_by_groups(ordered_suites)) )