google-apis-testing_v1 0.31.0 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c30c67fba1777dd891f054be183b9962dfdfe3d6bcea299b04508e29edae56a
4
- data.tar.gz: efda3490f14984c608a3c4700a79a279d379e08a2463cc33a4fce842f48bdc22
3
+ metadata.gz: 43eb9d07bd2db524d52656c4d2d465ac4e84c73ac794850d0884910679cea7bd
4
+ data.tar.gz: 888adb5ddfe6c2e1def419741b7933187a4c019c82c5f7b1cb4d94cc836db6fb
5
5
  SHA512:
6
- metadata.gz: 5d0efe756f95ae170d8b32bbe82eaf6c017351f7b214a131b5af920f40fdbd1823bfb53d5c19ebaecf59972ab9644e882810094f6281bad9a883432cd6543317
7
- data.tar.gz: 3ad1adc35f80351fbd6c2449b3f33036bd646a18b30b279e61c23022a414d27540b94fcd15fb46b00177dbfbc0a857ba29d1be463aa66318bcb2f5d356da5da5
6
+ metadata.gz: a77e56b210ca0ed764728287dc11e6e2660d7f74c01dadafec5be6c03f9657b9d905cec9b190a6567b4029cec1198f0121652af36ee5306fb284fc5f489630f5
7
+ data.tar.gz: 70e334e32bf02d070a5ed9b1b057a43a1e32dc2ce412c6a61381d3854f49f6dbab4623e3fd216415e15fcfd02b554051c056b6632d6c70210c7560b5671d3095
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-testing_v1
2
2
 
3
+ ### v0.33.0 (2023-05-07)
4
+
5
+ * Regenerated from discovery document revision 20230503
6
+
7
+ ### v0.32.0 (2023-04-16)
8
+
9
+ * Regenerated from discovery document revision 20230411
10
+
3
11
  ### v0.31.0 (2023-03-05)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -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
@@ -2428,12 +2477,9 @@ module Google
2428
2477
  # @return [String]
2429
2478
  attr_accessor :network_profile
2430
2479
 
2431
- # Deprecated: Systrace uses Python 2 which has been sunset 2020-01-01. Support
2432
- # of Systrace may stop at any time, at which point no Systrace file will be
2433
- # provided in the results. Systrace configuration for the run. If set a systrace
2434
- # will be taken, starting on test start and lasting for the configured duration.
2435
- # The systrace file thus obtained is put in the results bucket together with the
2436
- # other artifacts from the run.
2480
+ # Systrace configuration for the run. Deprecated: Systrace used Python 2 which
2481
+ # was sunsetted on 2020-01-01. Systrace is no longer supported in the Cloud
2482
+ # Testing API, and no Systrace file will be provided in the results.
2437
2483
  # Corresponds to the JSON property `systrace`
2438
2484
  # @return [Google::Apis::TestingV1::SystraceSetup]
2439
2485
  attr_accessor :systrace
@@ -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.31.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 = "20230124"
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
@@ -120,7 +120,9 @@ module Google
120
120
 
121
121
  # Creates and runs a matrix of tests according to the given specifications.
122
122
  # Unsupported environments will be returned in the state UNSUPPORTED. A test
123
- # matrix is limited to use at most 2000 devices in parallel. May return any of
123
+ # matrix is limited to use at most 2000 devices in parallel. The returned matrix
124
+ # will not yet contain the executions that will be created for this matrix. That
125
+ # happens later on and will require a call to GetTestMatrix. May return any of
124
126
  # the following canonical error codes: - PERMISSION_DENIED - if the user is not
125
127
  # authorized to write to project - INVALID_ARGUMENT - if the request is
126
128
  # malformed or if the matrix tries to use too many simultaneous devices.
@@ -161,10 +163,13 @@ module Google
161
163
  execute_or_queue_command(command, &block)
162
164
  end
163
165
 
164
- # Checks the status of a test matrix. May return any of the following canonical
165
- # error codes: - PERMISSION_DENIED - if the user is not authorized to read
166
- # project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
167
- # Test Matrix does not exist
166
+ # Checks the status of a test matrix and the executions once they are created.
167
+ # The test matrix will contain the list of test executions to run if and only if
168
+ # the resultStorage.toolResultsExecution fields have been populated. Note: Flaky
169
+ # test executions may still be added to the matrix at a later stage. May return
170
+ # any of the following canonical error codes: - PERMISSION_DENIED - if the user
171
+ # is not authorized to read project - INVALID_ARGUMENT - if the request is
172
+ # malformed - NOT_FOUND - if the Test Matrix does not exist
168
173
  # @param [String] project_id
169
174
  # Cloud project that owns the test matrix.
170
175
  # @param [String] test_matrix_id
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.31.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-03-05 00:00:00.000000000 Z
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.31.0
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: []