Skip to content

Commit 915293c

Browse files
aparajonsvc-squareup-copybara
authored andcommitted
Update Misk CI pipelines
GitOrigin-RevId: 52307565e12af71752231ca17a208d665aebadd4
1 parent a61d550 commit 915293c

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

Diff for: .github/workflows/Build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
matrix:
5454
cmd:
5555
- gradle testShardHibernate -i --scan --no-parallel
56+
- gradle testShardMiskAws -i --scan --no-parallel
57+
- gradle testShardMiskJdbc -i --scan --no-parallel
58+
- gradle testShardSchemaMigratorGradlePlugin -i --scan --no-parallel
59+
- gradle testShardVitess -i --scan --no-parallel
60+
- gradle testShardVitessGradlePlugin -i --scan --no-parallel
5661
- gradle testShardRedis -i --scan --no-parallel
5762
- gradle testShardNonHibernate -i --scan --parallel
5863

Diff for: build.gradle.kts

+39-4
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,44 @@ apiValidation {
111111
additionalSourceSets.add("testFixtures")
112112
}
113113

114-
val testShardNonHibernate = tasks.register("testShardNonHibernate") {
114+
val testShardHibernate = tasks.register("testShardHibernate") {
115115
group = "Continuous integration"
116-
description = "These tests don't have shared infra and can run in parallel"
116+
description = "These tests use a DB and thus can't run in parallel"
117+
}
118+
119+
val testShardMiskAws = tasks.register("testShardMiskAws") {
120+
group = "Continuous integration"
121+
description = "Misk AWS tests"
122+
}
123+
124+
val testShardMiskJdbc = tasks.register("testShardMiskJdbc") {
125+
group = "Continuous integration"
126+
description = "Misk JDBC tests"
127+
}
128+
129+
val testShardSchemaMigratorGradlePlugin = tasks.register("testShardSchemaMigratorGradlePlugin") {
130+
group = "Continuous integration"
131+
description = "Misk JDBC tests"
132+
}
133+
134+
val testShardVitess = tasks.register("testShardVitess") {
135+
group = "Continuous integration"
136+
description = "These tests stand-up a lot of Vitess containers and are run in an isolated shard to reduce test times"
137+
}
138+
139+
val testShardVitessGradlePlugin = tasks.register("testShardVitessGradlePlugin") {
140+
group = "Continuous integration"
141+
description = "These tests stand-up a Vitess container and are run in an isolated shard to reduce test times"
117142
}
118143

119144
val testShardRedis = tasks.register("testShardRedis") {
120145
group = "Continuous integration"
121146
description = "These tests use redis and thus can't run in parallel"
122147
}
123148

124-
val testShardHibernate = tasks.register("testShardHibernate") {
149+
val testShardNonHibernate = tasks.register("testShardNonHibernate") {
125150
group = "Continuous integration"
126-
description = "These tests use a DB and thus can't run in parallel"
151+
description = "These tests don't have shared infra and can run in parallel"
127152
}
128153

129154
val hibernateProjects = listOf(
@@ -274,6 +299,16 @@ subprojects {
274299
val subproj = project
275300
if (hibernateProjects.contains(project.name)) {
276301
testShardHibernate.configure { dependsOn("${subproj.path}:check") }
302+
} else if (project.name.equals("misk-aws")) {
303+
testShardMiskAws.configure { dependsOn("${subproj.path}:check") }
304+
} else if (project.name.equals("misk-jdbc")) {
305+
testShardMiskJdbc.configure { dependsOn("${subproj.path}:check") }
306+
} else if (project.name.equals("misk-schema-migrator-gradle-plugin")) {
307+
testShardSchemaMigratorGradlePlugin.configure { dependsOn("${subproj.path}:check") }
308+
} else if (project.name.equals("misk-vitess")) {
309+
testShardVitess.configure { dependsOn("${subproj.path}:check") }
310+
} else if (project.name.equals("misk-vitess-database-gradle-plugin")) {
311+
testShardVitessGradlePlugin.configure { dependsOn("${subproj.path}:check") }
277312
} else if (redisProjects.contains(project.name)) {
278313
testShardRedis.configure { dependsOn("${subproj.path}:check") }
279314
} else {

0 commit comments

Comments
 (0)