@@ -111,19 +111,44 @@ apiValidation {
111
111
additionalSourceSets.add(" testFixtures" )
112
112
}
113
113
114
- val testShardNonHibernate = tasks.register(" testShardNonHibernate " ) {
114
+ val testShardHibernate = tasks.register(" testShardHibernate " ) {
115
115
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"
117
142
}
118
143
119
144
val testShardRedis = tasks.register(" testShardRedis" ) {
120
145
group = " Continuous integration"
121
146
description = " These tests use redis and thus can't run in parallel"
122
147
}
123
148
124
- val testShardHibernate = tasks.register(" testShardHibernate " ) {
149
+ val testShardNonHibernate = tasks.register(" testShardNonHibernate " ) {
125
150
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"
127
152
}
128
153
129
154
val hibernateProjects = listOf (
@@ -274,6 +299,16 @@ subprojects {
274
299
val subproj = project
275
300
if (hibernateProjects.contains(project.name)) {
276
301
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" ) }
277
312
} else if (redisProjects.contains(project.name)) {
278
313
testShardRedis.configure { dependsOn(" ${subproj.path} :check" ) }
279
314
} else {
0 commit comments