projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt benchmark: Collect commits to benchmark into a set
[lttng-ci.git]
/
scripts
/
babeltrace-benchmark
/
benchmark.py
diff --git
a/scripts/babeltrace-benchmark/benchmark.py
b/scripts/babeltrace-benchmark/benchmark.py
index 0c8476d0151a0d1b2573061c593d7a34877b6f42..d1805cf70941846482714d5acdae21739a6f53c8 100644
(file)
--- 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()
Lauch jobs for all missing results.
"""
client = get_client()
+ commits_to_test = set()
for branch, cutoff in branches.items():
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:
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
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():
def main():
This page took
0.035674 seconds
and
4
git commands to generate.