You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/dyn/testing_v1.projects.testMatrices.html
+21
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,7 @@ <h3>Method Details</h3>
208
208
"matrixId": "A String", # Output only. Id of the containing TestMatrix.
209
209
"projectId": "A String", # Output only. The cloud project that owns the test execution.
210
210
"shard": { # Output only. Details about the shard. # Output only. Details about the shard.
211
+
"estimatedShardDuration": "A String", # Output only. The estimated shard duration based on previous test case timing records, if available.
211
212
"numShards": 42, # Output only. The total number of shards.
212
213
"shardIndex": 42, # Output only. The index of the shard among all the shards.
213
214
"testTargetsForShard": { # Test targets for a shard. # Output only. Test targets for each shard. Only set for manual sharding.
@@ -245,6 +246,9 @@ <h3>Method Details</h3>
245
246
},
246
247
],
247
248
},
249
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
250
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
251
+
},
248
252
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
249
253
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
250
254
},
@@ -440,6 +444,9 @@ <h3>Method Details</h3>
440
444
},
441
445
],
442
446
},
447
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
448
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
449
+
},
443
450
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
444
451
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
445
452
},
@@ -702,6 +709,7 @@ <h3>Method Details</h3>
702
709
"matrixId": "A String", # Output only. Id of the containing TestMatrix.
703
710
"projectId": "A String", # Output only. The cloud project that owns the test execution.
704
711
"shard": { # Output only. Details about the shard. # Output only. Details about the shard.
712
+
"estimatedShardDuration": "A String", # Output only. The estimated shard duration based on previous test case timing records, if available.
705
713
"numShards": 42, # Output only. The total number of shards.
706
714
"shardIndex": 42, # Output only. The index of the shard among all the shards.
707
715
"testTargetsForShard": { # Test targets for a shard. # Output only. Test targets for each shard. Only set for manual sharding.
@@ -739,6 +747,9 @@ <h3>Method Details</h3>
739
747
},
740
748
],
741
749
},
750
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
751
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
752
+
},
742
753
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
743
754
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
744
755
},
@@ -934,6 +945,9 @@ <h3>Method Details</h3>
934
945
},
935
946
],
936
947
},
948
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
949
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
950
+
},
937
951
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
938
952
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
939
953
},
@@ -1203,6 +1217,7 @@ <h3>Method Details</h3>
1203
1217
"matrixId": "A String", # Output only. Id of the containing TestMatrix.
1204
1218
"projectId": "A String", # Output only. The cloud project that owns the test execution.
1205
1219
"shard": { # Output only. Details about the shard. # Output only. Details about the shard.
1220
+
"estimatedShardDuration": "A String", # Output only. The estimated shard duration based on previous test case timing records, if available.
1206
1221
"numShards": 42, # Output only. The total number of shards.
1207
1222
"shardIndex": 42, # Output only. The index of the shard among all the shards.
1208
1223
"testTargetsForShard": { # Test targets for a shard. # Output only. Test targets for each shard. Only set for manual sharding.
@@ -1240,6 +1255,9 @@ <h3>Method Details</h3>
1240
1255
},
1241
1256
],
1242
1257
},
1258
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
1259
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
1260
+
},
1243
1261
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
1244
1262
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
1245
1263
},
@@ -1435,6 +1453,9 @@ <h3>Method Details</h3>
1435
1453
},
1436
1454
],
1437
1455
},
1456
+
"smartSharding": { # Shards test based on previous test case timing records. # Shards test based on previous test case timing records.
1457
+
"targetedShardDuration": "A String", # The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.
1458
+
},
1438
1459
"uniformSharding": { # Uniformly shards test cases given a total number of shards. For 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. 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.
1439
1460
"numShards": 42, # Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500.
Copy file name to clipboardexpand all lines: googleapiclient/discovery_cache/documents/testing.v1.json
+52-2
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@
282
282
}
283
283
}
284
284
},
285
-
"revision": "20230411",
285
+
"revision": "20230519",
286
286
"rootUrl": "https://testing.googleapis.com/",
287
287
"schemas": {
288
288
"Account": {
@@ -778,6 +778,13 @@
778
778
"description": "Full Java-style package name for this application, e.g. \"com.example.foo\".",
779
779
"type": "string"
780
780
},
781
+
"services": {
782
+
"description": "Services contained in the tag.",
783
+
"items": {
784
+
"$ref": "Service"
785
+
},
786
+
"type": "array"
787
+
},
781
788
"targetSdkVersion": {
782
789
"description": "Specifies the API Level on which the application is designed to run.",
783
790
"format": "int32",
@@ -1692,23 +1699,50 @@
1692
1699
},
1693
1700
"type": "object"
1694
1701
},
1702
+
"Service": {
1703
+
"description": "The section of an tag. https://developer.android.com/guide/topics/manifest/service-element",
1704
+
"id": "Service",
1705
+
"properties": {
1706
+
"intentFilter": {
1707
+
"description": "Intent filters in the service",
1708
+
"items": {
1709
+
"$ref": "IntentFilter"
1710
+
},
1711
+
"type": "array"
1712
+
},
1713
+
"name": {
1714
+
"description": "The android:name value",
1715
+
"type": "string"
1716
+
}
1717
+
},
1718
+
"type": "object"
1719
+
},
1695
1720
"Shard": {
1696
1721
"description": "Output only. Details about the shard.",
1697
1722
"id": "Shard",
1698
1723
"properties": {
1724
+
"estimatedShardDuration": {
1725
+
"description": "Output only. The estimated shard duration based on previous test case timing records, if available.",
1726
+
"format": "google-duration",
1727
+
"readOnly": true,
1728
+
"type": "string"
1729
+
},
1699
1730
"numShards": {
1700
1731
"description": "Output only. The total number of shards.",
1701
1732
"format": "int32",
1733
+
"readOnly": true,
1702
1734
"type": "integer"
1703
1735
},
1704
1736
"shardIndex": {
1705
1737
"description": "Output only. The index of the shard among all the shards.",
1706
1738
"format": "int32",
1739
+
"readOnly": true,
1707
1740
"type": "integer"
1708
1741
},
1709
1742
"testTargetsForShard": {
1710
1743
"$ref": "TestTargetsForShard",
1711
-
"description": "Output only. Test targets for each shard. Only set for manual sharding."
1744
+
"description": "Output only. Test targets for each shard. Only set for manual sharding.",
1745
+
"readOnly": true
1712
1746
}
1713
1747
},
1714
1748
"type": "object"
@@ -1721,13 +1755,29 @@
1721
1755
"$ref": "ManualSharding",
1722
1756
"description": "Shards test cases into the specified groups of packages, classes, and/or methods."
1723
1757
},
1758
+
"smartSharding": {
1759
+
"$ref": "SmartSharding",
1760
+
"description": "Shards test based on previous test case timing records."
1761
+
},
1724
1762
"uniformSharding": {
1725
1763
"$ref": "UniformSharding",
1726
1764
"description": "Uniformly shards test cases given a total number of shards."
1727
1765
}
1728
1766
},
1729
1767
"type": "object"
1730
1768
},
1769
+
"SmartSharding": {
1770
+
"description": "Shards test based on previous test case timing records.",
1771
+
"id": "SmartSharding",
1772
+
"properties": {
1773
+
"targetedShardDuration": {
1774
+
"description": "The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created will count toward daily test quota.",
1775
+
"format": "google-duration",
1776
+
"type": "string"
1777
+
}
1778
+
},
1779
+
"type": "object"
1780
+
},
1731
1781
"StartActivityIntent": {
1732
1782
"description": "A starting intent specified by an action, uri, and categories.",
0 commit comments