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
08e610ab
Commit
08e610ab
authored
4 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Make paths exchangeable by environment variables
parent
a733333f
No related branches found
No related tags found
4 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!108
Feature/185 Make Paths Configurable
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteYamlExecutor.kt
+12
-9
12 additions, 9 deletions
...ain/kotlin/theodolite/execution/TheodoliteYamlExecutor.kt
with
12 additions
and
9 deletions
theodolite-quarkus/src/main/kotlin/theodolite/execution/TheodoliteYamlExecutor.kt
+
12
−
9
View file @
08e610ab
...
@@ -5,7 +5,6 @@ import mu.KotlinLogging
...
@@ -5,7 +5,6 @@ import mu.KotlinLogging
import
theodolite.benchmark.BenchmarkExecution
import
theodolite.benchmark.BenchmarkExecution
import
theodolite.benchmark.KubernetesBenchmark
import
theodolite.benchmark.KubernetesBenchmark
import
theodolite.util.YamlParser
import
theodolite.util.YamlParser
import
java.nio.file.Paths
import
kotlin.system.exitProcess
import
kotlin.system.exitProcess
private
val
logger
=
KotlinLogging
.
logger
{}
private
val
logger
=
KotlinLogging
.
logger
{}
...
@@ -15,19 +14,23 @@ object TheodoliteYamlExecutor {
...
@@ -15,19 +14,23 @@ object TheodoliteYamlExecutor {
@JvmStatic
@JvmStatic
fun
main
(
args
:
Array
<
String
>)
{
fun
main
(
args
:
Array
<
String
>)
{
logger
.
info
{
"Theodolite started"
}
logger
.
info
{
"Theodolite started"
}
val
path
=
Paths
.
get
(
""
).
toAbsolutePath
().
toString
()
logger
.
info
{
path
}
val
executionPath
=
System
.
getenv
(
"THEODOLITE_EXECUTION"
)
?:
"./config/BenchmarkExecution.yaml"
val
benchmarkPath
=
System
.
getenv
(
"THEODOLITE_BENCHMARK_TYPE"
)
?:
"./config/BenchmarkType.yaml"
val
appResource
=
System
.
getenv
(
"THEODOLITE_RESOURCES"
)
?:
"./config"
logger
.
info
{
"Using $executionPath for BenchmarkExecution"
}
logger
.
info
{
"Using $benchmarkPath for BenchmarkType"
}
logger
.
info
{
"Using $appResource for Resources"
}
// load the BenchmarkExecution and the BenchmarkType
// load the BenchmarkExecution and the BenchmarkType
val
parser
=
YamlParser
()
val
parser
=
YamlParser
()
val
benchmarkExecution
=
val
benchmarkExecution
=
parser
.
parse
(
"./config/BenchmarkExecution.yaml"
,
BenchmarkExecution
::
class
.
java
)
!!
parser
.
parse
(
path
=
executionPath
,
E
=
BenchmarkExecution
::
class
.
java
)
!!
val
benchmark
=
val
benchmark
=
parser
.
parse
(
"./config/BenchmarkType.yaml"
,
KubernetesBenchmark
::
class
.
java
)
!!
parser
.
parse
(
path
=
benchmarkPath
,
E
=
KubernetesBenchmark
::
class
.
java
)
!!
benchmark
.
path
=
appResource
//logger.info { benchmark.name.toString() }
benchmark
.
path
=
"config/"
val
executor
=
TheodoliteExecutor
(
benchmarkExecution
,
benchmark
)
val
executor
=
TheodoliteExecutor
(
benchmarkExecution
,
benchmark
)
executor
.
run
()
executor
.
run
()
...
...
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