Skip to content

Commit

Permalink
Return parallel execution to 1 and adjust modulo for deterministic te…
Browse files Browse the repository at this point in the history
…st runs

Signed-off-by: elronbandel <[email protected]>
  • Loading branch information
elronbandel committed Jan 29, 2025
1 parent 119d07e commit 6b84f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/catalog/test_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
# Make sure the order in which the tests are run is deterministic
# Having a different order for local testing and github testing may cause diffs in results.
all_preparation_files.sort()
num_par = 8 # num of parallel executions
num_par = 1 # num of parallel executions
logger.critical(
f"Over all, {len(all_preparation_files)} files will now be tested over {num_par} parallel processes."
)
# the following should be any of modulo num_par: 0,1,2,3,4,5,6,7,8,.. num_par-1
modulo = 2
modulo = 0
all_preparation_files = [
file for i, file in enumerate(all_preparation_files) if i % num_par == modulo
]
Expand Down

0 comments on commit 6b84f81

Please sign in to comment.