@maxim_mazurok/gapi.client.testing-v1 0.0.20230425 → 0.0.20230503

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.
Files changed (3) hide show
  1. package/index.d.ts +21 -1
  2. package/package.json +1 -1
  3. package/tests.ts +7 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://testing.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230425
12
+ // Revision: 20230503
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -752,10 +752,30 @@ declare namespace gapi.client {
752
752
  /** Shards test cases into the specified groups of packages, classes, and/or methods. */
753
753
  manualSharding?:
754
754
  ManualSharding;
755
+ /** Shards test based on previous test case timing records. */
756
+ smartSharding?:
757
+ SmartSharding;
755
758
  /** Uniformly shards test cases given a total number of shards. */
756
759
  uniformSharding?:
757
760
  UniformSharding;
758
761
  }
762
+ interface SmartSharding {
763
+ /**
764
+ * 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
765
+ * 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
766
+ * 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
767
+ * 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
768
+ * 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,
769
+ * 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
770
+ * 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
771
+ * 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
772
+ * 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
773
+ * 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
774
+ * exceed the number of test cases. Each shard created will count toward daily test quota.
775
+ */
776
+ targetedShardDuration?:
777
+ string;
778
+ }
759
779
  interface StartActivityIntent {
760
780
  /** Action name. Required for START_ACTIVITY. */
761
781
  action?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.testing-v1",
3
- "version": "0.0.20230425",
3
+ "version": "0.0.20230503",
4
4
  "description": "TypeScript typings for Cloud Testing API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230425
6
+ // Revision: 20230503
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -178,6 +178,9 @@ gapi.load('client', async () => {
178
178
  }
179
179
  ],
180
180
  },
181
+ smartSharding: {
182
+ targetedShardDuration: "Test string",
183
+ },
181
184
  uniformSharding: {
182
185
  numShards: 42,
183
186
  },
@@ -373,6 +376,9 @@ gapi.load('client', async () => {
373
376
  }
374
377
  ],
375
378
  },
379
+ smartSharding: {
380
+ targetedShardDuration: "Test string",
381
+ },
376
382
  uniformSharding: {
377
383
  numShards: 42,
378
384
  },