Skip to content
Snippets Groups Projects
Commit a56e6ab8 authored by Ralf Jung's avatar Ralf Jung
Browse files

benchmark extractor: deal with builds that are still running

parent 96a43618
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment