Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
George Pirlea
Iris
Commits
a56e6ab8
Commit
a56e6ab8
authored
Mar 11, 2016
by
Ralf Jung
Browse files
benchmark extractor: deal with builds that are still running
parent
96a43618
Changes
1
Hide whitespace changes
Inline
Side-by-side
benchmark/gitlab-extract.py
View file @
a56e6ab8
...
@@ -65,6 +65,9 @@ for commit in parse_log.parse_git_commits(args.commits):
...
@@ -65,6 +65,9 @@ for commit in parse_log.parse_git_commits(args.commits):
if
build
[
'status'
]
==
'failed'
:
if
build
[
'status'
]
==
'failed'
:
# build failed
# build failed
continue
continue
if
build
[
'status'
]
==
'running'
:
# build still running, don't fetch this or any later commit
break
# now fetch the build times
# now fetch the build times
build_times
=
requests
.
get
(
"{}/builds/{}/artifacts/file/build-time.txt"
.
format
(
project
[
'web_url'
],
build
[
'id'
]))
build_times
=
requests
.
get
(
"{}/builds/{}/artifacts/file/build-time.txt"
.
format
(
project
[
'web_url'
],
build
[
'id'
]))
if
build_times
.
status_code
!=
200
:
if
build_times
.
status_code
!=
200
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment