Show / Hide Table of Contents

Class AndroidInstrumentationTestSmartSharding

The smart sharding strategy to split the job into multiple shards based on the test methods and their recorded execution time.

Inheritance
object
AndroidInstrumentationTestSmartSharding
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DeviceRun.v1alpha.Data
Assembly: Google.Apis.DeviceRun.v1alpha.dll
Syntax
public class AndroidInstrumentationTestSmartSharding : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

MaxShardCount

Optional. The maximum number of shards to create. If unset or less than 1, system-defined max limits are used. This limit takes precedence if the targeted_shard_duration cannot be satisfied. Limits: - For physical devices, the number of shards must be <= 20. - For virtual devices, the number of shards must be <= 200.

Declaration
[JsonProperty("maxShardCount")]
public virtual int? MaxShardCount { get; set; }
Property Value
Type Description
int?

TargetedShardDuration

Required. The targeted duration of each shard. Limits: - Must be at least 2 minutes. - Must be at most 3 hours. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. Durations are calculated based on the following inputs: - Timing records from previous runs of the same test case. - For new test 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.

Declaration
[JsonProperty("targetedShardDuration")]
public virtual object TargetedShardDuration { get; set; }
Property Value
Type Description
object

TimingRecord

Required. The timing record file to use for smart sharding. If the file does not exist, smart sharding will use default test time (30s) for each test method to shard the job into multiple shards. This file will be overwritten with the latest timing record after the job is completed.

Declaration
[JsonProperty("timingRecord")]
public virtual InputFile TimingRecord { get; set; }
Property Value
Type Description
InputFile

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX