Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261013-2.0.0</version>
<version>v1alpha-rev20261019-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261013-2.0.0'
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261019-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public final class AndroidInstrumentationTest extends com.google.api.client.json
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AndroidInstrumentationTestSmartSharding smartSharding;
private SmartSharding smartSharding;

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

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

Expand All @@ -215,7 +215,7 @@ public AndroidInstrumentationTestSmartSharding getSmartSharding() {
* methods and their execution time.
* @param smartSharding smartSharding or {@code null} for none
*/
public AndroidInstrumentationTest setSmartSharding(AndroidInstrumentationTestSmartSharding smartSharding) {
public AndroidInstrumentationTest setSmartSharding(SmartSharding smartSharding) {
this.smartSharding = smartSharding;
return this;
}
Expand Down Expand Up @@ -296,7 +296,7 @@ public AndroidInstrumentationTest setTestTargets(java.util.List<java.lang.String
* test methods.
* @return value or {@code null} for none
*/
public AndroidInstrumentationTestUniformSharding getUniformSharding() {
public UniformSharding getUniformSharding() {
return uniformSharding;
}

Expand All @@ -305,7 +305,7 @@ public AndroidInstrumentationTestUniformSharding getUniformSharding() {
* test methods.
* @param uniformSharding uniformSharding or {@code null} for none
*/
public AndroidInstrumentationTest setUniformSharding(AndroidInstrumentationTestUniformSharding uniformSharding) {
public AndroidInstrumentationTest setUniformSharding(UniformSharding uniformSharding) {
this.uniformSharding = uniformSharding;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
@SuppressWarnings("javadoc")
public final class IosXcTest extends com.google.api.client.json.GenericJson {

/**
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
* methods and their execution time.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SmartSharding smartSharding;

/**
* Required. The .zip containing the .xctestrun file and the contents of the
* DerivedData/Build/Products directory.
Expand All @@ -37,6 +45,14 @@ public final class IosXcTest extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private InputFile testsZip;

/**
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
* test methods.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private UniformSharding uniformSharding;

/**
* Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3 hours].
* The value may be {@code null}.
Expand All @@ -59,6 +75,25 @@ public final class IosXcTest extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private InputFile xctestrun;

/**
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
* methods and their execution time.
* @return value or {@code null} for none
*/
public SmartSharding getSmartSharding() {
return smartSharding;
}

/**
* Optional. Smart sharding strategy to split the job into multiple shards based on the test
* methods and their execution time.
* @param smartSharding smartSharding or {@code null} for none
*/
public IosXcTest setSmartSharding(SmartSharding smartSharding) {
this.smartSharding = smartSharding;
return this;
}

/**
* Required. The .zip containing the .xctestrun file and the contents of the
* DerivedData/Build/Products directory.
Expand All @@ -78,6 +113,25 @@ public IosXcTest setTestsZip(InputFile testsZip) {
return this;
}

/**
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
* test methods.
* @return value or {@code null} for none
*/
public UniformSharding getUniformSharding() {
return uniformSharding;
}

/**
* Optional. Uniform sharding strategy to split the job into multiple shards with equal number of
* test methods.
* @param uniformSharding uniformSharding or {@code null} for none
*/
public IosXcTest setUniformSharding(UniformSharding uniformSharding) {
this.uniformSharding = uniformSharding;
return this;
}

/**
* Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3 hours].
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AndroidInstrumentationTestSmartSharding extends com.google.api.client.json.GenericJson {
public final class SmartSharding extends com.google.api.client.json.GenericJson {

/**
* Optional. The maximum number of shards to create. If unset or less than 1, system-defined max
Expand All @@ -48,8 +48,8 @@ public final class AndroidInstrumentationTestSmartSharding extends com.google.ap
* cases, the average duration of other known test cases. - A system-chosen, default duration if
* there are no previous timing records available. Because the actual shard duration can exceed
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
* shard before all tests can finish.
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
* all tests can finish.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -82,7 +82,7 @@ public java.lang.Integer getMaxShardCount() {
* devices, the number of shards must be <= 200.
* @param maxShardCount maxShardCount or {@code null} for none
*/
public AndroidInstrumentationTestSmartSharding setMaxShardCount(java.lang.Integer maxShardCount) {
public SmartSharding setMaxShardCount(java.lang.Integer maxShardCount) {
this.maxShardCount = maxShardCount;
return this;
}
Expand All @@ -95,8 +95,8 @@ public AndroidInstrumentationTestSmartSharding setMaxShardCount(java.lang.Intege
* cases, the average duration of other known test cases. - A system-chosen, default duration if
* there are no previous timing records available. Because the actual shard duration can exceed
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
* shard before all tests can finish.
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
* all tests can finish.
* @return value or {@code null} for none
*/
public String getTargetedShardDuration() {
Expand All @@ -111,11 +111,11 @@ public String getTargetedShardDuration() {
* cases, the average duration of other known test cases. - A system-chosen, default duration if
* there are no previous timing records available. Because the actual shard duration can exceed
* the targeted shard duration, we recommend that you set the targeted value at least 5 minutes
* less than the maximum allowed instrumentation timeout. This approach avoids cancelling the
* shard before all tests can finish.
* less than the maximum allowed test timeout. This approach avoids cancelling the shard before
* all tests can finish.
* @param targetedShardDuration targetedShardDuration or {@code null} for none
*/
public AndroidInstrumentationTestSmartSharding setTargetedShardDuration(String targetedShardDuration) {
public SmartSharding setTargetedShardDuration(String targetedShardDuration) {
this.targetedShardDuration = targetedShardDuration;
return this;
}
Expand All @@ -136,19 +136,19 @@ public InputFile getTimingRecord() {
* shards. This file will be overwritten with the latest timing record after the job is completed.
* @param timingRecord timingRecord or {@code null} for none
*/
public AndroidInstrumentationTestSmartSharding setTimingRecord(InputFile timingRecord) {
public SmartSharding setTimingRecord(InputFile timingRecord) {
this.timingRecord = timingRecord;
return this;
}

@Override
public AndroidInstrumentationTestSmartSharding set(String fieldName, Object value) {
return (AndroidInstrumentationTestSmartSharding) super.set(fieldName, value);
public SmartSharding set(String fieldName, Object value) {
return (SmartSharding) super.set(fieldName, value);
}

@Override
public AndroidInstrumentationTestSmartSharding clone() {
return (AndroidInstrumentationTestSmartSharding) super.clone();
public SmartSharding clone() {
return (SmartSharding) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
package com.google.api.services.devicerun.v1alpha.model;

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

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

@Override
public AndroidInstrumentationTestUniformSharding set(String fieldName, Object value) {
return (AndroidInstrumentationTestUniformSharding) super.set(fieldName, value);
public UniformSharding set(String fieldName, Object value) {
return (UniformSharding) super.set(fieldName, value);
}

@Override
public AndroidInstrumentationTestUniformSharding clone() {
return (AndroidInstrumentationTestUniformSharding) super.clone();
public UniformSharding clone() {
return (UniformSharding) super.clone();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-devicerun/v1alpha/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261013-2.0.0</version>
<name>Device Run API v1alpha-rev20261013-2.0.0</name>
<version>v1alpha-rev20261019-2.0.0</version>
<name>Device Run API v1alpha-rev20261019-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-devicerun/v1alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261013-2.0.0</version>
<version>v1alpha-rev20261019-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261013-2.0.0'
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261019-2.0.0'
}
```

Expand Down
Loading