Skip to content

Commit 573aafd

Browse files
1 parent 0b73760 commit 573aafd

7 files changed

Lines changed: 91 additions & 37 deletions

File tree

‎clients/google-api-services-devicerun/v1alpha/2.0.0/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-devicerun</artifactId>
25-
<version>v1alpha-rev20261013-2.0.0</version>
25+
<version>v1alpha-rev20261019-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261013-2.0.0'
38+
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261019-2.0.0'
3939
}
4040
```
4141

‎clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/AndroidInstrumentationTest.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class AndroidInstrumentationTest extends com.google.api.client.json
7474
* The value may be {@code null}.
7575
*/
7676
@com.google.api.client.util.Key
77-
private AndroidInstrumentationTestSmartSharding smartSharding;
77+
private SmartSharding smartSharding;
7878

7979
/**
8080
* Required. The test package to install and run the test.
@@ -113,7 +113,7 @@ public final class AndroidInstrumentationTest extends com.google.api.client.json
113113
* The value may be {@code null}.
114114
*/
115115
@com.google.api.client.util.Key
116-
private AndroidInstrumentationTestUniformSharding uniformSharding;
116+
private UniformSharding uniformSharding;
117117

118118
/**
119119
* Optional. Additional test options to pass to the test runner. Passed to `am instrument` command
@@ -206,7 +206,7 @@ public AndroidInstrumentationTest setOrchestratorVersion(java.lang.String orches
206206
* methods and their execution time.
207207
* @return value or {@code null} for none
208208
*/
209-
public AndroidInstrumentationTestSmartSharding getSmartSharding() {
209+
public SmartSharding getSmartSharding() {
210210
return smartSharding;
211211
}
212212

@@ -215,7 +215,7 @@ public AndroidInstrumentationTestSmartSharding getSmartSharding() {
215215
* methods and their execution time.
216216
* @param smartSharding smartSharding or {@code null} for none
217217
*/
218-
public AndroidInstrumentationTest setSmartSharding(AndroidInstrumentationTestSmartSharding smartSharding) {
218+
public AndroidInstrumentationTest setSmartSharding(SmartSharding smartSharding) {
219219
this.smartSharding = smartSharding;
220220
return this;
221221
}
@@ -296,7 +296,7 @@ public AndroidInstrumentationTest setTestTargets(java.util.List<java.lang.String
296296
* test methods.
297297
* @return value or {@code null} for none
298298
*/
299-
public AndroidInstrumentationTestUniformSharding getUniformSharding() {
299+
public UniformSharding getUniformSharding() {
300300
return uniformSharding;
301301
}
302302

@@ -305,7 +305,7 @@ public AndroidInstrumentationTestUniformSharding getUniformSharding() {
305305
* test methods.
306306
* @param uniformSharding uniformSharding or {@code null} for none
307307
*/
308-
public AndroidInstrumentationTest setUniformSharding(AndroidInstrumentationTestUniformSharding uniformSharding) {
308+
public AndroidInstrumentationTest setUniformSharding(UniformSharding uniformSharding) {
309309
this.uniformSharding = uniformSharding;
310310
return this;
311311
}

‎clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/IosXcTest.java‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
@SuppressWarnings("javadoc")
3030
public final class IosXcTest extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
34+
* methods and their execution time.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private SmartSharding smartSharding;
39+
3240
/**
3341
* Required. The .zip containing the .xctestrun file and the contents of the
3442
* DerivedData/Build/Products directory.
@@ -37,6 +45,14 @@ public final class IosXcTest extends com.google.api.client.json.GenericJson {
3745
@com.google.api.client.util.Key
3846
private InputFile testsZip;
3947

48+
/**
49+
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
50+
* test methods.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private UniformSharding uniformSharding;
55+
4056
/**
4157
* Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3 hours].
4258
* The value may be {@code null}.
@@ -59,6 +75,25 @@ public final class IosXcTest extends com.google.api.client.json.GenericJson {
5975
@com.google.api.client.util.Key
6076
private InputFile xctestrun;
6177

78+
/**
79+
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
80+
* methods and their execution time.
81+
* @return value or {@code null} for none
82+
*/
83+
public SmartSharding getSmartSharding() {
84+
return smartSharding;
85+
}
86+
87+
/**
88+
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
89+
* methods and their execution time.
90+
* @param smartSharding smartSharding or {@code null} for none
91+
*/
92+
public IosXcTest setSmartSharding(SmartSharding smartSharding) {
93+
this.smartSharding = smartSharding;
94+
return this;
95+
}
96+
6297
/**
6398
* Required. The .zip containing the .xctestrun file and the contents of the
6499
* DerivedData/Build/Products directory.
@@ -78,6 +113,25 @@ public IosXcTest setTestsZip(InputFile testsZip) {
78113
return this;
79114
}
80115

116+
/**
117+
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
118+
* test methods.
119+
* @return value or {@code null} for none
120+
*/
121+
public UniformSharding getUniformSharding() {
122+
return uniformSharding;
123+
}
124+
125+
/**
126+
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
127+
* test methods.
128+
* @param uniformSharding uniformSharding or {@code null} for none
129+
*/
130+
public IosXcTest setUniformSharding(UniformSharding uniformSharding) {
131+
this.uniformSharding = uniformSharding;
132+
return this;
133+
}
134+
81135
/**
82136
* Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3 hours].
83137
* @return value or {@code null} for none

clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/AndroidInstrumentationTestSmartSharding.java renamed to clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/SmartSharding.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @author Google, Inc.
2929
*/
3030
@SuppressWarnings("javadoc")
31-
public final class AndroidInstrumentationTestSmartSharding extends com.google.api.client.json.GenericJson {
31+
public final class SmartSharding extends com.google.api.client.json.GenericJson {
3232

3333
/**
3434
* Optional. The maximum number of shards to create. If unset or less than 1, system-defined max
@@ -48,8 +48,8 @@ public final class AndroidInstrumentationTestSmartSharding extends com.google.ap
4848
* cases, the average duration of other known test cases. - A system-chosen, default duration if
4949
* there are no previous timing records available. Because the actual shard duration can exceed
5050
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
51-
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
52-
* shard before all tests can finish.
51+
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
52+
* all tests can finish.
5353
* The value may be {@code null}.
5454
*/
5555
@com.google.api.client.util.Key
@@ -82,7 +82,7 @@ public java.lang.Integer getMaxShardCount() {
8282
* devices, the number of shards must be <= 200.
8383
* @param maxShardCount maxShardCount or {@code null} for none
8484
*/
85-
public AndroidInstrumentationTestSmartSharding setMaxShardCount(java.lang.Integer maxShardCount) {
85+
public SmartSharding setMaxShardCount(java.lang.Integer maxShardCount) {
8686
this.maxShardCount = maxShardCount;
8787
return this;
8888
}
@@ -95,8 +95,8 @@ public AndroidInstrumentationTestSmartSharding setMaxShardCount(java.lang.Intege
9595
* cases, the average duration of other known test cases. - A system-chosen, default duration if
9696
* there are no previous timing records available. Because the actual shard duration can exceed
9797
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
98-
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
99-
* shard before all tests can finish.
98+
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
99+
* all tests can finish.
100100
* @return value or {@code null} for none
101101
*/
102102
public String getTargetedShardDuration() {
@@ -111,11 +111,11 @@ public String getTargetedShardDuration() {
111111
* cases, the average duration of other known test cases. - A system-chosen, default duration if
112112
* there are no previous timing records available. Because the actual shard duration can exceed
113113
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
114-
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
115-
* shard before all tests can finish.
114+
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
115+
* all tests can finish.
116116
* @param targetedShardDuration targetedShardDuration or {@code null} for none
117117
*/
118-
public AndroidInstrumentationTestSmartSharding setTargetedShardDuration(String targetedShardDuration) {
118+
public SmartSharding setTargetedShardDuration(String targetedShardDuration) {
119119
this.targetedShardDuration = targetedShardDuration;
120120
return this;
121121
}
@@ -136,19 +136,19 @@ public InputFile getTimingRecord() {
136136
* shards. This file will be overwritten with the latest timing record after the job is completed.
137137
* @param timingRecord timingRecord or {@code null} for none
138138
*/
139-
public AndroidInstrumentationTestSmartSharding setTimingRecord(InputFile timingRecord) {
139+
public SmartSharding setTimingRecord(InputFile timingRecord) {
140140
this.timingRecord = timingRecord;
141141
return this;
142142
}
143143

144144
@Override
145-
public AndroidInstrumentationTestSmartSharding set(String fieldName, Object value) {
146-
return (AndroidInstrumentationTestSmartSharding) super.set(fieldName, value);
145+
public SmartSharding set(String fieldName, Object value) {
146+
return (SmartSharding) super.set(fieldName, value);
147147
}
148148

149149
@Override
150-
public AndroidInstrumentationTestSmartSharding clone() {
151-
return (AndroidInstrumentationTestSmartSharding) super.clone();
150+
public SmartSharding clone() {
151+
return (SmartSharding) super.clone();
152152
}
153153

154154
}

clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/AndroidInstrumentationTestUniformSharding.java renamed to clients/google-api-services-devicerun/v1alpha/2.0.0/com/google/api/services/devicerun/v1alpha/model/UniformSharding.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
package com.google.api.services.devicerun.v1alpha.model;
1818

1919
/**
20-
* Uniformly shards test cases given a total number of shards. It will be translated to `-e
21-
* numShard` and `-e shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
22-
* specifying either of these sharding arguments via `environment_variables` is invalid. Based on
23-
* the sharding mechanism AndroidJUnitRunner uses, there is no guarantee that test cases will be
24-
* distributed uniformly across all shards.
20+
* Uniformly shards test cases given a total number of shards. For Android instrumentation tests, it
21+
* will be translated to `-e numShard` and `-e shardIndex` AndroidJUnitRunner arguments. With
22+
* uniform sharding enabled, specifying either of these sharding arguments via
23+
* `environment_variables` is invalid. There is no guarantee that test cases will be distributed
24+
* uniformly across all shards.
2525
*
2626
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2727
* transmitted over HTTP when working with the Device Run API. For a detailed explanation see:
@@ -31,7 +31,7 @@
3131
* @author Google, Inc.
3232
*/
3333
@SuppressWarnings("javadoc")
34-
public final class AndroidInstrumentationTestUniformSharding extends com.google.api.client.json.GenericJson {
34+
public final class UniformSharding extends com.google.api.client.json.GenericJson {
3535

3636
/**
3737
* Required. The total number of shards to create. This must always be a positive number that is
@@ -58,19 +58,19 @@ public java.lang.Integer getShardCount() {
5858
* shards must be <= 20. - For virtual devices, the number of shards must be <= 200.
5959
* @param shardCount shardCount or {@code null} for none
6060
*/
61-
public AndroidInstrumentationTestUniformSharding setShardCount(java.lang.Integer shardCount) {
61+
public UniformSharding setShardCount(java.lang.Integer shardCount) {
6262
this.shardCount = shardCount;
6363
return this;
6464
}
6565

6666
@Override
67-
public AndroidInstrumentationTestUniformSharding set(String fieldName, Object value) {
68-
return (AndroidInstrumentationTestUniformSharding) super.set(fieldName, value);
67+
public UniformSharding set(String fieldName, Object value) {
68+
return (UniformSharding) super.set(fieldName, value);
6969
}
7070

7171
@Override
72-
public AndroidInstrumentationTestUniformSharding clone() {
73-
return (AndroidInstrumentationTestUniformSharding) super.clone();
72+
public UniformSharding clone() {
73+
return (UniformSharding) super.clone();
7474
}
7575

7676
}

‎clients/google-api-services-devicerun/v1alpha/2.0.0/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-devicerun</artifactId>
11-
<version>v1alpha-rev20261013-2.0.0</version>
12-
<name>Device Run API v1alpha-rev20261013-2.0.0</name>
11+
<version>v1alpha-rev20261019-2.0.0</version>
12+
<name>Device Run API v1alpha-rev20261019-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

‎clients/google-api-services-devicerun/v1alpha/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-devicerun</artifactId>
25-
<version>v1alpha-rev20261013-2.0.0</version>
25+
<version>v1alpha-rev20261019-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261013-2.0.0'
38+
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261019-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)