Skip to content

Commit 6fd2f36

Browse files
authored
Apply suggestions from code review
1 parent 19154ef commit 6fd2f36

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/build-common.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ jobs:
249249
- 3
250250
- 4
251251
- 5
252+
- 6
253+
- 7
252254
test-indy:
253255
- false
254256
- true

.github/workflows/reusable-muzzle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- ":instrumentation:muzzle4"
2323
- ":instrumentation:muzzle5"
2424
- ":instrumentation:muzzle6"
25+
- ":instrumentation:muzzle7"
26+
- ":instrumentation:muzzle8"
2527
fail-fast: false
2628
steps:
2729
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ if (gradle.startParameter.taskNames.contains("listTestsInPartition")) {
6868
group = "Help"
6969
description = "List test tasks in given partition"
7070

71-
// total of 6 partitions (see modulo 6 below)
71+
// total of 8 partitions (see modulo 8 below)
7272
var testPartition = (project.findProperty("testPartition") as String?)?.toInt()
7373
if (testPartition == null) {
7474
throw GradleException("Test partition must be specified")
75-
} else if (testPartition < 0 || testPartition >= 6) {
75+
} else if (testPartition < 0 || testPartition >= 8) {
7676
throw GradleException("Invalid test partition")
7777
}
7878

@@ -82,7 +82,7 @@ if (gradle.startParameter.taskNames.contains("listTestsInPartition")) {
8282
// relying on predictable ordering of subprojects
8383
// (see https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#N14CB4)
8484
// since we are splitting these tasks across different github action jobs
85-
val enabled = testPartitionCounter++ % 6 == testPartition
85+
val enabled = testPartitionCounter++ % 8 == testPartition
8686
if (enabled) {
8787
tasks.withType<Test>().configureEach {
8888
partitionTasks.add(this)

instrumentation/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
val instrumentationProjectTest = tasks.named("test")
66

7-
// batching up the muzzle tasks alphabetically into 6 chunks
7+
// batching up the muzzle tasks alphabetically into 8 chunks
88
// to split them up into separate CI jobs (but not too many CI job)
99
val instrumentationProjectMuzzle = listOf(
1010
tasks.register("muzzle1"),
@@ -13,6 +13,8 @@ val instrumentationProjectMuzzle = listOf(
1313
tasks.register("muzzle4"),
1414
tasks.register("muzzle5"),
1515
tasks.register("muzzle6"),
16+
tasks.register("muzzle7"),
17+
tasks.register("muzzle8"),
1618
)
1719

1820
var counter = 0
@@ -35,6 +37,6 @@ subprojects {
3537
// relying on predictable ordering of subprojects
3638
// (see https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#N14CB4)
3739
// since we are splitting these muzzleX tasks across different github action jobs
38-
instrumentationProjectMuzzle[counter++ % 6].get().dependsOn(subProj.tasks.named("muzzle"))
40+
instrumentationProjectMuzzle[counter++ % 8].get().dependsOn(subProj.tasks.named("muzzle"))
3941
}
4042
}

0 commit comments

Comments
 (0)