diff --git a/benchmark/gitlab-extract.py b/benchmark/gitlab-extract.py index 93cb1c1c16823526f29ba5cca25b0584ad986ce8..8be4a51da8d585c47cbe0bb42c079d6c1c10b299 100755 --- a/benchmark/gitlab-extract.py +++ b/benchmark/gitlab-extract.py @@ -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: