@maxim_mazurok/gapi.client.testing-v1 0.0.20230516 → 0.0.20230523

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 +16 -14
  2. package/package.json +1 -1
  3. package/tests.ts +7 -6
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: 20230516
12
+ // Revision: 20230523
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -749,6 +749,9 @@ declare namespace gapi.client {
749
749
  string;
750
750
  }
751
751
  interface Shard {
752
+ /** Output only. The estimated shard duration based on previous test case timing records, if available. */
753
+ estimatedShardDuration?:
754
+ string;
752
755
  /** Output only. The total number of shards. */
753
756
  numShards?:
754
757
  number;
@@ -776,13 +779,13 @@ declare namespace gapi.client {
776
779
  * 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
777
780
  * 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
778
781
  * 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
779
- * 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,
780
- * 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
781
- * 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
782
- * 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
783
- * 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
784
- * 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
785
- * exceed the number of test cases. Each shard created will count toward daily test quota.
782
+ * for finding the test case timing records are: - If the service has processed a test case in the last 30 days, the record of the latest successful test case will be used. - For new
783
+ * test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the default test case duration is 15 seconds.
784
+ * 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 test timeout
785
+ * (45 minutes for physical devices and 60 minutes for virtual), or that you use the custom test timeout value that you set. This approach avoids cancelling the shard before all tests
786
+ * 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
787
+ * 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
788
+ * exceed the number of test cases. Each shard created counts toward daily test quota.
786
789
  */
787
790
  targetedShardDuration?:
788
791
  string;
@@ -1187,9 +1190,9 @@ declare namespace gapi.client {
1187
1190
  }): Request<CancelTestMatrixResponse>;
1188
1191
  /**
1189
1192
  * Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most
1190
- * 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. That happens later on and will require a call to
1191
- * GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is
1192
- * malformed or if the matrix tries to use too many simultaneous devices.
1193
+ * 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call
1194
+ * to GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request
1195
+ * is malformed or if the matrix tries to use too many simultaneous devices.
1193
1196
  */
1194
1197
  create(request: {
1195
1198
  /** V1 error format. */
@@ -1285,9 +1288,8 @@ declare namespace gapi.client {
1285
1288
  body: TestMatrix): Request<TestMatrix>;
1286
1289
  /**
1287
1290
  * Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the
1288
- * resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may still be added to the matrix at a later stage. May return any of the following
1289
- * canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not
1290
- * exist
1291
+ * resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical
1292
+ * error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
1291
1293
  */
1292
1294
  get(request?: {
1293
1295
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.testing-v1",
3
- "version": "0.0.20230516",
3
+ "version": "0.0.20230523",
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: 20230516
6
+ // Revision: 20230523
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -47,9 +47,9 @@ gapi.load('client', async () => {
47
47
  });
48
48
  /**
49
49
  * Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most
50
- * 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. That happens later on and will require a call to GetTestMatrix.
51
- * May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the
52
- * matrix tries to use too many simultaneous devices.
50
+ * 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to
51
+ * GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is
52
+ * malformed or if the matrix tries to use too many simultaneous devices.
53
53
  */
54
54
  await gapi.client.testing.projects.testMatrices.create({
55
55
  projectId: "Test string",
@@ -141,6 +141,7 @@ gapi.load('client', async () => {
141
141
  matrixId: "Test string",
142
142
  projectId: "Test string",
143
143
  shard: {
144
+ estimatedShardDuration: "Test string",
144
145
  numShards: 42,
145
146
  shardIndex: 42,
146
147
  testTargetsForShard: {
@@ -546,8 +547,8 @@ gapi.load('client', async () => {
546
547
  });
547
548
  /**
548
549
  * Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the
549
- * resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may still be added to the matrix at a later stage. May return any of the following canonical
550
- * error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
550
+ * resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical error
551
+ * codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
551
552
  */
552
553
  await gapi.client.testing.projects.testMatrices.get({
553
554
  projectId: "Test string",