Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Commits
8bbb60f6
Commit
8bbb60f6
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Enhance logging
parent
4c70e44c
No related branches found
No related tags found
3 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slope-evaluator/app/main.py
+6
-6
6 additions, 6 deletions
slope-evaluator/app/main.py
with
6 additions
and
6 deletions
slope-evaluator/app/main.py
+
6
−
6
View file @
8bbb60f6
...
...
@@ -18,7 +18,7 @@ if os.getenv('LOG_LEVEL') == 'INFO':
elif
os
.
getenv
(
'
LOG_LEVEL
'
)
==
'
WARNING
'
:
logger
.
setLevel
(
logging
.
WARNING
)
elif
os
.
getenv
(
'
LOG_LEVEL
'
)
==
'
DEBUG
'
:
logger
.
setLevel
(
(
logging
.
DEBUG
)
)
logger
.
setLevel
(
logging
.
DEBUG
)
def
execute
(
results
,
threshold
,
warmup
):
d
=
[]
...
...
@@ -34,14 +34,14 @@ def execute(results, threshold, warmup):
try
:
trend_slope
=
trend_slope_computer
.
compute
(
df
,
warmup
)
except
Exception
as
e
:
err_msg
=
'
Computing trend slope failed
'
err_msg
=
'
Computing trend slope failed
.
'
logger
.
exception
(
err_msg
)
logger
.
error
(
'
Mark this subexperiment as not successful and continue benchmark
'
)
logger
.
error
(
'
Mark this subexperiment as not successful and continue benchmark
.
'
)
return
False
logger
.
info
(
"
T
rend
S
lope
: %s
"
,
tre
nd_slope
)
return
t
re
nd_slope
<
threshold
result
=
t
rend
_s
lope
<
t
h
re
shold
logger
.
info
(
"
Computed lag trend slope is
'
%s
'
. Result is: %s
"
,
trend_slope
,
result
)
return
re
sult
@app.post
(
"
/evaluate-slope
"
,
response_model
=
bool
)
async
def
evaluate_slope
(
request
:
Request
):
...
...
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