Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaëtan Gilbert
Iris
Commits
60ae00eb
Commit
60ae00eb
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
tweak benchmark exporter
parent
b71ae795
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmark/export.py
+1
-2
1 addition, 2 deletions
benchmark/export.py
benchmark/parse_log.py
+2
-0
2 additions, 0 deletions
benchmark/parse_log.py
with
3 additions
and
2 deletions
benchmark/export.py
+
1
−
2
View file @
60ae00eb
...
@@ -46,6 +46,5 @@ for datapoint in results:
...
@@ -46,6 +46,5 @@ for datapoint in results:
date
=
subprocess
.
check_output
([
'
git
'
,
'
show
'
,
commit
,
'
-s
'
,
'
--pretty=%cI
'
]).
strip
().
decode
(
'
UTF-8
'
)
date
=
subprocess
.
check_output
([
'
git
'
,
'
show
'
,
commit
,
'
-s
'
,
'
--pretty=%cI
'
]).
strip
().
decode
(
'
UTF-8
'
)
headers
=
{
'
X-Project
'
:
args
.
project
,
'
X-Branch
'
:
args
.
branch
,
'
X-Commit
'
:
commit
,
'
X-Config
'
:
args
.
config
,
'
X-Date
'
:
date
}
headers
=
{
'
X-Project
'
:
args
.
project
,
'
X-Branch
'
:
args
.
branch
,
'
X-Commit
'
:
commit
,
'
X-Config
'
:
args
.
config
,
'
X-Date
'
:
date
}
r
=
requests
.
post
(
args
.
server
+
"
/build_times_8.6
"
,
data
=
times
,
headers
=
headers
,
auth
=
(
args
.
user
,
args
.
password
))
r
=
requests
.
post
(
args
.
server
+
"
/build_times_8.6
"
,
data
=
times
,
headers
=
headers
,
auth
=
(
args
.
user
,
args
.
password
))
print
(
"
{}
"
.
format
(
r
.
text
.
strip
()))
r
.
raise_for_status
()
r
.
raise_for_status
()
print
(
"
done
"
)
This diff is collapsed.
Click to expand it.
benchmark/parse_log.py
+
2
−
0
View file @
60ae00eb
...
@@ -17,6 +17,7 @@ def parse(file, parse_times = PARSE_FULL):
...
@@ -17,6 +17,7 @@ def parse(file, parse_times = PARSE_FULL):
commit
=
None
commit
=
None
times
=
None
times
=
None
for
line
in
file
:
for
line
in
file
:
line
=
line
.
strip
()
# next commit?
# next commit?
m
=
commit_re
.
match
(
line
)
m
=
commit_re
.
match
(
line
)
if
m
is
not
None
:
if
m
is
not
None
:
...
@@ -40,6 +41,7 @@ def parse(file, parse_times = PARSE_FULL):
...
@@ -40,6 +41,7 @@ def parse(file, parse_times = PARSE_FULL):
times
[
name
]
=
time
times
[
name
]
=
time
continue
continue
# nothing else we know about, ignore
# nothing else we know about, ignore
print
(
"
Ignoring line
"
,
line
)
# end of file. previous commit, if any, is done now.
# end of file. previous commit, if any, is done now.
if
commit
is
not
None
:
if
commit
is
not
None
:
yield
Result
(
commit
,
times
)
yield
Result
(
commit
,
times
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment