X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace-benchmark%2Fbenchmark.py;fp=scripts%2Fbabeltrace-benchmark%2Fbenchmark.py;h=d1805cf70941846482714d5acdae21739a6f53c8;hb=73fe8ab44b7018864dad056448057c7b2d1e6050;hp=0c8476d0151a0d1b2573061c593d7a34877b6f42;hpb=f60ee0576be226373ee735b93901516cd54af7e5;p=lttng-ci.git diff --git a/scripts/babeltrace-benchmark/benchmark.py b/scripts/babeltrace-benchmark/benchmark.py index 0c8476d..d1805cf 100644 --- a/scripts/babeltrace-benchmark/benchmark.py +++ b/scripts/babeltrace-benchmark/benchmark.py @@ -394,19 +394,20 @@ def launch_jobs(branches, git_path, wait_for_completion, debug, force): Lauch jobs for all missing results. """ client = get_client() + commits_to_test = set() for branch, cutoff in branches.items(): - commits = get_git_log(branch, cutoff, git_path) - + commits = [x for x in get_git_log(branch, cutoff, git_path) if x not in invalid_commits] with tempfile.TemporaryDirectory() as workdir: for commit in commits: - if commit in invalid_commits: - continue b_results = get_benchmark_results(client, commit, workdir)[0] if b_results and not force: continue - lava_submit.submit( - commit, wait_for_completion=wait_for_completion, debug=debug - ) + commits_to_test.add(commit) + for index, commit in enumerate(commits_to_test): + print("Job {}/{}".format(index+1, len(commits_to_test))) + lava_submit.submit( + commit, wait_for_completion=wait_for_completion, debug=debug + ) def main():