Skip to content

Commit

Permalink
preserve shards ordering (#558)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikko Korpela <mikko.korpela@gmail.com>
  • Loading branch information
patrikwilliam and mkorpela authored Nov 30, 2024
1 parent 3e8cc21 commit 60d2a28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pabot/pabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,10 +1976,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))
)
Expand Down

0 comments on commit 60d2a28

Please sign in to comment.