Skip to content

Commit

Permalink
[maintenance] CI maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
hb-man committed Oct 5, 2024
1 parent c996c28 commit 1aeb672
Show file tree
Hide file tree
Showing 5 changed files with 10,960 additions and 10,613 deletions.
3 changes: 3 additions & 0 deletions .teamcity/configurations/baseConfiguration.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ open class BaseBuildType(
failureConditions: FailureConditions.() -> Unit = {},
requirements: (Requirements.() -> Unit)? = null,
params: ParametrizedWithType.() -> Unit = {},
dockerSupport: DockerSupportFeature.() -> Unit = {},
) : BuildType({

this.name = name
Expand Down Expand Up @@ -51,6 +52,8 @@ open class BaseBuildType(
}
}

this.features.dockerSupport(dockerSupport)

features {
perfmon {
}
Expand Down
16 changes: 13 additions & 3 deletions .teamcity/configurations/pluginBenchmark.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ open class Benchmark(vcsRoot: GitVcsRoot, requirements: (Requirements.() -> Unit
requirements = requirements,
artifactRules = Utils.CommonParams.BazelTestlogsArtifactRules,
steps = {
val sysArgs = "--jvmopt=\"-Dbsp.benchmark.project.path=/home/hirschuser/project_10\" --jvmopt=\"-Dbsp.benchmark.teamcity.url=https://bazel.teamcity.com\""
bazel {
val url = "--jvmopt=\"-Dbsp.benchmark.teamcity.url=https://bazel.teamcity.com\""
val projectNameArg = "--jvmopt=\"-Dbsp.benchmark.project.name=benchmark_10_targets\""
val reportErrors = "--jvmopt=\"-DDO_NOT_REPORT_ERRORS=true\""
val projectPath =
"--jvmopt=\"-Dbsp.benchmark.project.path=/home/hirschuser/project_10\""
val cachePath = "--jvmopt=\"-Dbsp.benchmark.cache.directory=%system.teamcity.build.tempDir%\""
val memArg = "--jvmopt=\"-Xmx12g\""
val sandboxArg = "--sandbox_writable_path=/"
val actionEnvArg = "--action_env=PATH"

val sysArgs = "$url $projectNameArg $reportErrors $projectPath $cachePath $memArg $sandboxArg $actionEnvArg"

name = "run benchmark"
id = "run_benchmark"
command = "test"
targets = "//plugin-bsp/performance-testing"
arguments =
"--jvmopt=\"-Xmx12g\" $sysArgs --sandbox_writable_path=/ --action_env=PATH ${Utils.CommonParams.BazelCiSpecificArgs}"
arguments = "$sysArgs ${Utils.CommonParams.BazelCiSpecificArgs}"
toolPath = "/usr/local/bin"
logging = BazelStep.Verbosity.Diagnostic
Utils.DockerParams.get().forEach { (key, value) ->
Expand Down
13 changes: 10 additions & 3 deletions .teamcity/configurations/staticAnalysis.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.bazel
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.qodana
import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot


open class Analyze(vcsRoot: GitVcsRoot) :
BaseConfiguration.BaseBuildType(
name = "[analysis] Qodana",
Expand Down Expand Up @@ -41,7 +42,7 @@ open class Analyze(vcsRoot: GitVcsRoot) :
qodana {
name = "run qodana"
id = "run_qodana"
reportAsTests = true
reportAsTests = false
linter = customLinter {
image = Utils.CommonParams.DockerQodanaImage
}
Expand All @@ -64,8 +65,14 @@ open class Analyze(vcsRoot: GitVcsRoot) :
vcsRoot = vcsRoot,
params = {
password("qodana.cloud.token", "credentialsJSON:d57ead0e-b567-440d-817e-f92e084a1cc0", label = "qodana.cloud.token", description = "Qodana token for Hirschgarten statistics", display = ParameterDisplay.HIDDEN)
}
)
},
dockerSupport = {
loginToRegistry = on {
dockerRegistryId = "PROJECT_EXT_3"
}
},
failureConditions = { executionTimeoutMin = 30 }
)

object GitHub : Analyze(
vcsRoot = BaseConfiguration.GitHubVcs,
Expand Down
1 change: 0 additions & 1 deletion .teamcity/settings.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import configurations.*
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.Qodana
import jetbrains.buildServer.configs.kotlin.v10.toExtId
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
Expand Down
Loading

0 comments on commit 1aeb672

Please sign in to comment.