google-apis-testing_v1 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43eb9d07bd2db524d52656c4d2d465ac4e84c73ac794850d0884910679cea7bd
|
4
|
+
data.tar.gz: 888adb5ddfe6c2e1def419741b7933187a4c019c82c5f7b1cb4d94cc836db6fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a77e56b210ca0ed764728287dc11e6e2660d7f74c01dadafec5be6c03f9657b9d905cec9b190a6567b4029cec1198f0121652af36ee5306fb284fc5f489630f5
|
7
|
+
data.tar.gz: 70e334e32bf02d070a5ed9b1b057a43a1e32dc2ce412c6a61381d3854f49f6dbab4623e3fd216415e15fcfd02b554051c056b6632d6c70210c7560b5671d3095
|
data/CHANGELOG.md
CHANGED
@@ -2056,6 +2056,11 @@ module Google
|
|
2056
2056
|
# @return [Google::Apis::TestingV1::ManualSharding]
|
2057
2057
|
attr_accessor :manual_sharding
|
2058
2058
|
|
2059
|
+
# Shards test based on previous test case timing records.
|
2060
|
+
# Corresponds to the JSON property `smartSharding`
|
2061
|
+
# @return [Google::Apis::TestingV1::SmartSharding]
|
2062
|
+
attr_accessor :smart_sharding
|
2063
|
+
|
2059
2064
|
# Uniformly shards test cases given a total number of shards. For
|
2060
2065
|
# instrumentation tests, it will be translated to "-e numShard" and "-e
|
2061
2066
|
# shardIndex" AndroidJUnitRunner arguments. With uniform sharding enabled,
|
@@ -2073,10 +2078,54 @@ module Google
|
|
2073
2078
|
# Update properties of this object
|
2074
2079
|
def update!(**args)
|
2075
2080
|
@manual_sharding = args[:manual_sharding] if args.key?(:manual_sharding)
|
2081
|
+
@smart_sharding = args[:smart_sharding] if args.key?(:smart_sharding)
|
2076
2082
|
@uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding)
|
2077
2083
|
end
|
2078
2084
|
end
|
2079
2085
|
|
2086
|
+
# Shards test based on previous test case timing records.
|
2087
|
+
class SmartSharding
|
2088
|
+
include Google::Apis::Core::Hashable
|
2089
|
+
|
2090
|
+
# The amount of time tests within a shard should take. Default: 300 seconds (5
|
2091
|
+
# minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is
|
2092
|
+
# dynamically set based on time, up to the maximum shard limit (described below).
|
2093
|
+
# To guarantee at least one test case for each shard, the number of shards will
|
2094
|
+
# not exceed the number of test cases. Shard duration will be exceeded if: - The
|
2095
|
+
# maximum shard limit is reached and there is more calculated test time
|
2096
|
+
# remaining to allocate into shards. - Any individual test is estimated to be
|
2097
|
+
# longer than the targeted shard duration. Shard duration is not guaranteed
|
2098
|
+
# because smart sharding uses test case history and default durations which may
|
2099
|
+
# not be accurate. The rules for finding the test case timing records are: - If
|
2100
|
+
# the service has seen a test case in the last 30 days, the record of the latest
|
2101
|
+
# successful one will be used. - For new test cases, the average duration of
|
2102
|
+
# other known test cases will be used. - If there are no previous test case
|
2103
|
+
# timing records available, the test case is considered to be 15 seconds long by
|
2104
|
+
# default. Because the actual shard duration can exceed the targeted shard
|
2105
|
+
# duration, we recommend setting the targeted value at least 5 minutes less than
|
2106
|
+
# the maximum allowed test timeout (45 minutes for physical devices and 60
|
2107
|
+
# minutes for virtual), or using the custom test timeout value you set. This
|
2108
|
+
# approach avoids cancelling the shard before all tests can finish. Note that
|
2109
|
+
# there is a limit for maximum number of shards. When you select one or more
|
2110
|
+
# physical devices, the number of shards must be <= 50. When you select one or
|
2111
|
+
# more ARM virtual devices, it must be <= 100. When you select only x86 virtual
|
2112
|
+
# devices, it must be <= 500. To guarantee at least one test case for per shard,
|
2113
|
+
# the number of shards will not exceed the number of test cases. Each shard
|
2114
|
+
# created will count toward daily test quota.
|
2115
|
+
# Corresponds to the JSON property `targetedShardDuration`
|
2116
|
+
# @return [String]
|
2117
|
+
attr_accessor :targeted_shard_duration
|
2118
|
+
|
2119
|
+
def initialize(**args)
|
2120
|
+
update!(**args)
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
# Update properties of this object
|
2124
|
+
def update!(**args)
|
2125
|
+
@targeted_shard_duration = args[:targeted_shard_duration] if args.key?(:targeted_shard_duration)
|
2126
|
+
end
|
2127
|
+
end
|
2128
|
+
|
2080
2129
|
# A starting intent specified by an action, uri, and categories.
|
2081
2130
|
class StartActivityIntent
|
2082
2131
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TestingV1
|
18
18
|
# Version of the google-apis-testing_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230503"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -370,6 +370,12 @@ module Google
|
|
370
370
|
include Google::Apis::Core::JsonObjectSupport
|
371
371
|
end
|
372
372
|
|
373
|
+
class SmartSharding
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
373
379
|
class StartActivityIntent
|
374
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
381
|
|
@@ -1062,11 +1068,20 @@ module Google
|
|
1062
1068
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1063
1069
|
property :manual_sharding, as: 'manualSharding', class: Google::Apis::TestingV1::ManualSharding, decorator: Google::Apis::TestingV1::ManualSharding::Representation
|
1064
1070
|
|
1071
|
+
property :smart_sharding, as: 'smartSharding', class: Google::Apis::TestingV1::SmartSharding, decorator: Google::Apis::TestingV1::SmartSharding::Representation
|
1072
|
+
|
1065
1073
|
property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::TestingV1::UniformSharding, decorator: Google::Apis::TestingV1::UniformSharding::Representation
|
1066
1074
|
|
1067
1075
|
end
|
1068
1076
|
end
|
1069
1077
|
|
1078
|
+
class SmartSharding
|
1079
|
+
# @private
|
1080
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1081
|
+
property :targeted_shard_duration, as: 'targetedShardDuration'
|
1082
|
+
end
|
1083
|
+
end
|
1084
|
+
|
1070
1085
|
class StartActivityIntent
|
1071
1086
|
# @private
|
1072
1087
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-testing_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.33.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|