Commit a56e6ab8 authored by Ralf Jung's avatar Ralf Jung

benchmark extractor: deal with builds that are still running

parent 96a43618
Pipeline #317 passed with stage
......@@ -65,6 +65,9 @@ for commit in parse_log.parse_git_commits(args.commits):
if build['status'] == 'failed':
# build failed
continue
if build['status'] == 'running':
# build still running, don't fetch this or any later commit
break
# now fetch the build times
build_times = requests.get("{}/builds/{}/artifacts/file/build-time.txt".format(project['web_url'], build['id']))
if build_times.status_code != 200:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment