Skip to content

Commit

Permalink
run: alternate commit ordering in interleaving processes
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed Aug 15, 2018
1 parent 59d4e50 commit 89f9204
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion asv/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,16 @@ def run(cls, conf, range_spec=None, steps=None, bench=None, attribute=None, para
else:
run_round_set = [None]

for run_rounds, commit_hash in itertools.product(run_round_set, commit_hashes):
def iter_rounds_commits():
for run_rounds in run_round_set:
if interleave_processes and run_rounds[0] % 2 == 0:
for commit_hash in commit_hashes[::-1]:
yield run_rounds, commit_hash
else:
for commit_hash in commit_hashes:
yield run_rounds, commit_hash

for run_rounds, commit_hash in iter_rounds_commits():
if commit_hash in skipped_benchmarks:
for env in environments:
for bench in benchmarks:
Expand Down

0 comments on commit 89f9204

Please sign in to comment.