@empiricalrun/playwright-utils 0.70.1 → 0.70.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.70.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 25fbbb5: Share the R2 report bucket, base URL and `<repo_name>/<run_id>` key layout from `@empiricalrun/r2-uploader/report-storage`
8
+ - bc3d4c9: Upload R2 reports only through presigned URLs; drop direct R2 credentials (R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY).
9
+ - 5c3bb21: Take report URLs from the API for presigned uploads and require REPORTS_BASE_URL for S3 uploads instead of building them from fixed hosts
10
+ - Updated dependencies [25fbbb5]
11
+ - Updated dependencies [f82d240]
12
+ - Updated dependencies [e47bd0f]
13
+ - Updated dependencies [53aee21]
14
+ - @empiricalrun/r2-uploader@0.11.8
15
+ - @empiricalrun/reporter@0.30.6
16
+ - @empiricalrun/cua@0.6.0
17
+
3
18
  ## 0.70.1
4
19
 
5
20
  ### Patch Changes
@@ -34,6 +34,7 @@ export type TestCaseRunEndEventRequest = NonNullable<paths["/api/test-runs/event
34
34
  export type TestReportUploadUrlsRequest = components["schemas"]["CreateTestReportUploadUrlsRequest"];
35
35
  export type ReportLocalTestRunRequest = components["schemas"]["ReportLocalTestRunRequest"];
36
36
  export type TestReportUploadUrlsResponse = components["schemas"]["CreateTestReportUploadUrlsResponse"];
37
+ type TestReportStorage = components["schemas"]["TestReportStorageResponse"]["data"];
37
38
  export type TestCaseRunBeginEventRequest = NonNullable<paths["/api/test-runs/events/begin"]["put"]["requestBody"]>["content"]["application/json"];
38
39
  export declare function llmProxyOpenAIConfig(): {
39
40
  baseURL: string;
@@ -72,6 +73,7 @@ export declare class ApiWorkerClient {
72
73
  putTestCaseRunEndEvent(body: TestCaseRunEndEventRequest): Promise<void>;
73
74
  putTestCaseRunBeginEvent(body: TestCaseRunBeginEventRequest): Promise<void>;
74
75
  reportLocalTestRun(body: ReportLocalTestRunRequest): Promise<void>;
76
+ getTestReportStorage(): Promise<TestReportStorage>;
75
77
  createTestReportUploadUrls(body: TestReportUploadUrlsRequest): Promise<TestReportUploadUrlsResponse>;
76
78
  unwrap<T>(result: {
77
79
  data?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"api-worker-client.d.ts","sourceRoot":"","sources":["../src/api-worker-client.ts"],"names":[],"mappings":"AACA,OAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAExE,KAAK,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAEzC,KAAK,iBAAiB,GAAG,sBAAsB,GAAG,yBAAyB,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAC9B,UAAU,CAAC,SAAS,CAAC,CAAC,6BAA6B,CAAC,CAAC;AACvD,MAAM,MAAM,qBAAqB,GAC/B,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAChC,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAClD,MAAM,MAAM,uBAAuB,GACjC,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAC9B,KAAK,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAC9B,UAAU,CAAC,SAAS,CA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IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAKhC;IAEK,sBAAsB,CAC1B,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,IAAI,CAAC,CAGf;IAEK,wBAAwB,CAC5B,IAAI,EAAE,4BAA4B,GACjC,OAAO,CAAC,IAAI,CAAC,CAKf;IAEK,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKvE;IAEK,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAMvD;IAEK,0BAA0B,CAC9B,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,4BAA4B,CAAC,CAKvC;IAED,MAAM,CAAC,CAAC,EACN,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,QAAQ,CAAC;KACpB,EACD,KAAK,EAAE,MAAM,GACZ,CAAC,CAUH;CACF"}
@@ -233,6 +233,10 @@ class ApiWorkerClient {
233
233
  });
234
234
  this.unwrap(result, "POST /api/test-reports/local-runs");
235
235
  }
236
+ async getTestReportStorage() {
237
+ const result = await this.client.GET("/api/test-reports/storage");
238
+ return this.unwrap(result, "GET /api/test-reports/storage").data;
239
+ }
236
240
  async createTestReportUploadUrls(body) {
237
241
  const result = await this.client.POST("/api/test-reports/upload-urls", {
238
242
  body,
@@ -424,7 +424,7 @@ export interface paths {
424
424
  };
425
425
  /**
426
426
  * ⚙️ Get test case durations for shard planning
427
- * @description Returns the 7-day and last-day average duration per test case in the run's project and environment (project-wide when the run has no environment; skipped results excluded), keyed by the normalized 41-char Playwright test id, addressed by the run's external run_id. Used by the `run_setup` container to pack a shard plan: the analytics token is account-scoped and cannot be handed to a sandbox running customer test code, so the api-worker holds it and serves the numbers. Not filtered to the run's tests — the container filters to the tests it listed. An environment with no history returns an empty object; a broken analytics query returns 503, so the container can tell the two apart and fall back rather than plan off nothing.
427
+ * @description Returns the 7-day and last-day average duration per test case in the run's project and environment (project-wide when the run has no environment), keyed by the normalized 41-char Playwright test id, addressed by the run's external run_id. Skipped results are counted apart from the duration statistics, so a test that only skips is served with `total_runs: 0` and its skip count and duration. Used by the `run_setup` container to pack a shard plan: the analytics token is account-scoped and cannot be handed to a sandbox running customer test code, so the api-worker holds it and serves the numbers. Not filtered to the run's tests — the container filters to the tests it listed. An environment with no history returns an empty object; a broken analytics query returns 503, so the container can tell the two apart and fall back rather than plan off nothing.
428
428
  */
429
429
  get: operations["getTestRunTestCaseDurations"];
430
430
  put?: never;
@@ -1157,7 +1157,7 @@ export interface paths {
1157
1157
  put?: never;
1158
1158
  /**
1159
1159
  * 🤖 Post a Slack message
1160
- * @description Posts Markdown to a Slack channel/thread, or a recipient-addressed DM, as the Empirical bot. Provide exactly one of channel, slack_user_id, or user_id. Recipient sends create a new DM root and require idempotency_key. Channel-wide mentions (<!channel>, <!here>, <!everyone>) are rejected; tag a subteam or users instead. Bare user IDs (@U…) outside code are rejected unless allow_bare_user_ids is true; write <@U…> to tag someone. Channel sends use the channel and root timestamp coordinates the agent was given. Sandbox-delegated principals only; the channel must be one the calling project can reach. Every send claims its idempotency key for the sending session before posting, so a resend returns the earlier message instead of posting twice. New roots are registered and bound to the sending session after posting; if a send fails after Slack accepted it, check Slack before retrying with a new key.
1160
+ * @description Posts Markdown to a Slack channel/thread, or a recipient-addressed DM, as the Empirical bot. Provide exactly one of channel, slack_user_id, or user_id. Recipient sends create a new DM root and require idempotency_key. Channel-wide mentions (<!channel>, <!here>, <!everyone>) are rejected; tag a subteam or users instead. Bare user IDs (@U…) outside code are rejected unless allow_bare_user_ids is true; write <@U…> to tag someone. Slack link syntax (<https://…|label>) outside code is rejected; write Markdown links ([label](https://…)). Channel sends use the channel and root timestamp coordinates the agent was given. Sandbox-delegated principals only; the channel must be one the calling project can reach. Every send claims its idempotency key for the sending session before posting, so a resend returns the earlier message instead of posting twice. New roots are registered and bound to the sending session after posting; if a send fails after Slack accepted it, check Slack before retrying with a new key.
1161
1161
  */
1162
1162
  post: operations["slackSendMessage"];
1163
1163
  delete?: never;
@@ -1185,7 +1185,7 @@ export interface paths {
1185
1185
  head?: never;
1186
1186
  /**
1187
1187
  * 🤖 Edit a Slack message
1188
- * @description Replaces the Markdown and buttons of a message the calling project's agent posted with POST /api/slack/messages. Messages whose input buttons were already selected cannot be edited. Channel-wide mentions are rejected. Sandbox-delegated principals only.
1188
+ * @description Replaces the Markdown and buttons of a message the calling project's agent posted with POST /api/slack/messages. Messages whose input buttons were already selected cannot be edited. Channel-wide mentions, bare user IDs and Slack link syntax are rejected as in POST /api/slack/messages. Sandbox-delegated principals only.
1189
1189
  */
1190
1190
  patch: operations["slackUpdateMessage"];
1191
1191
  trace?: never;
@@ -2968,6 +2968,30 @@ export interface paths {
2968
2968
  patch?: never;
2969
2969
  trace?: never;
2970
2970
  };
2971
+ "/api/chat-sessions/{id}/impacted-tests": {
2972
+ parameters: {
2973
+ query?: never;
2974
+ header?: never;
2975
+ path?: never;
2976
+ cookie?: never;
2977
+ };
2978
+ /**
2979
+ * ⚙️ Get the latest impacted tests for a branch or session
2980
+ * @description With `branch`, returns the most recently computed impacted tests for that branch in the session's project, whichever session computed them. Without it, returns the latest result this session's sandbox computed, on whichever branch it had checked out. `data` is null when there is no result yet.
2981
+ */
2982
+ get: operations["getChatSessionImpactedTests"];
2983
+ /**
2984
+ * ⚙️ Save impacted tests for a commit
2985
+ * @description Stores the impacted tests the session's sandbox computed for one commit of a branch, replacing any earlier result for that commit. Side effect: broadcasts an `impacted_tests` realtime update for the session.
2986
+ */
2987
+ put: operations["putChatSessionImpactedTests"];
2988
+ post?: never;
2989
+ delete?: never;
2990
+ options?: never;
2991
+ head?: never;
2992
+ patch?: never;
2993
+ trace?: never;
2994
+ };
2971
2995
  "/api/chat-sessions/{id}/lineage": {
2972
2996
  parameters: {
2973
2997
  query?: never;
@@ -3826,6 +3850,26 @@ export interface paths {
3826
3850
  patch?: never;
3827
3851
  trace?: never;
3828
3852
  };
3853
+ "/api/github/files/raw-image": {
3854
+ parameters: {
3855
+ query?: never;
3856
+ header?: never;
3857
+ path?: never;
3858
+ cookie?: never;
3859
+ };
3860
+ /**
3861
+ * ⚙️ Get an image file's bytes
3862
+ * @description Streams an image file from a repository the caller's project is connected to, with its image content type.
3863
+ */
3864
+ get: operations["getRepoRawImage"];
3865
+ put?: never;
3866
+ post?: never;
3867
+ delete?: never;
3868
+ options?: never;
3869
+ head?: never;
3870
+ patch?: never;
3871
+ trace?: never;
3872
+ };
3829
3873
  "/api/github/main-app/installations": {
3830
3874
  parameters: {
3831
3875
  query?: never;
@@ -6344,6 +6388,26 @@ export interface paths {
6344
6388
  patch?: never;
6345
6389
  trace?: never;
6346
6390
  };
6391
+ "/api/report-tokens": {
6392
+ parameters: {
6393
+ query?: never;
6394
+ header?: never;
6395
+ path?: never;
6396
+ cookie?: never;
6397
+ };
6398
+ get?: never;
6399
+ put?: never;
6400
+ /**
6401
+ * Create a report read token
6402
+ * @description Issues a token for reading the test report files of the projects behind `report_url`, if the caller can access all of them.
6403
+ */
6404
+ post: operations["createReportToken"];
6405
+ delete?: never;
6406
+ options?: never;
6407
+ head?: never;
6408
+ patch?: never;
6409
+ trace?: never;
6410
+ };
6347
6411
  "/api/runner-backends/claim": {
6348
6412
  parameters: {
6349
6413
  query?: never;
@@ -6588,6 +6652,26 @@ export interface paths {
6588
6652
  patch?: never;
6589
6653
  trace?: never;
6590
6654
  };
6655
+ "/api/test-reports/storage": {
6656
+ parameters: {
6657
+ query?: never;
6658
+ header?: never;
6659
+ path?: never;
6660
+ cookie?: never;
6661
+ };
6662
+ /**
6663
+ * ⚙️ Get where uploaded reports are served
6664
+ * @description Returns the base URL of the reports that `upload-urls` presigns into.
6665
+ */
6666
+ get: operations["getTestReportStorage"];
6667
+ put?: never;
6668
+ post?: never;
6669
+ delete?: never;
6670
+ options?: never;
6671
+ head?: never;
6672
+ patch?: never;
6673
+ trace?: never;
6674
+ };
6591
6675
  "/api/test-reports/upload-urls": {
6592
6676
  parameters: {
6593
6677
  query?: never;
@@ -7665,6 +7749,25 @@ export interface components {
7665
7749
  /** @description Whether the branch exists. */
7666
7750
  exists: boolean;
7667
7751
  };
7752
+ BranchImpactedTestsResponse: {
7753
+ /** @description Response payload. */
7754
+ data: {
7755
+ /** @description Branch the commit is on. */
7756
+ branch: string;
7757
+ /** @description Commit the result is for. */
7758
+ head_sha: string;
7759
+ /** @description Merge-base with the default branch the diff ran against. */
7760
+ base_sha: string;
7761
+ /** @description Session whose sandbox computed the result. */
7762
+ chat_session_id: number | null;
7763
+ impacted_tests: components["schemas"]["ImpactedTests"];
7764
+ /**
7765
+ * Format: date-time
7766
+ * @description When the result last changed.
7767
+ */
7768
+ updated_at: string;
7769
+ } | null;
7770
+ };
7668
7771
  CancelTestRunFailureResponse: {
7669
7772
  /** @description Reason the test run could not be cancelled. */
7670
7773
  message: string;
@@ -8328,7 +8431,7 @@ export interface components {
8328
8431
  playwright_projects_match?: string[];
8329
8432
  /** @description Playwright project names to exclude. */
8330
8433
  playwright_projects_ignore?: string[];
8331
- /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when its title or tags contain any of them. Saved for runs in this environment; a trigger request that sends this field replaces it. */
8434
+ /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when one of its tags contains any of them, so `smoke` also selects `@smoke-nightly`. A test title is not a tag: `checkout flow` matches no test. To run specific tests, use `test_case_ids`. Saved for runs in this environment; a trigger request that sends this field replaces it. */
8332
8435
  tags?: string[];
8333
8436
  /** @description Tags whose tests are skipped (e.g. `@slow`). Applied after every other selection, so it can only remove tests: with `tags` it runs tests matching `tags` but not `exclude_tags`; alone it runs every test except the excluded ones. Saved for runs in this environment; a trigger request that sends this field replaces it. */
8334
8437
  exclude_tags?: string[];
@@ -8612,6 +8715,21 @@ export interface components {
8612
8715
  /** @description Channel names to subscribe to, e.g. `chat-sessions-project-<id>-<env>`, `test-run-<id>-<env>` or `user-<user uuid>-<env>`. */
8613
8716
  channels: string[];
8614
8717
  };
8718
+ CreateReportTokenRequest: {
8719
+ /** @description A report file on a report host, e.g. `https://reports-us.empirical.run/acme-tests/1795/index.html`. The token covers every report of the same projects. */
8720
+ report_url: string;
8721
+ };
8722
+ CreateReportTokenResponse: {
8723
+ /** @description Response payload. */
8724
+ data: {
8725
+ /** @description Credential for the report files of the projects behind `report_url`, sent as a bearer token. */
8726
+ token: string;
8727
+ /** @description Opening this URL in a browser stores the token as a cookie on the report host and continues to `report_url`. */
8728
+ session_url: string;
8729
+ /** @description Seconds until the token expires. */
8730
+ expires_in: number;
8731
+ };
8732
+ };
8615
8733
  CreateRuleRequest: {
8616
8734
  /** @enum {string|null} */
8617
8735
  verdict?: "app" | "test" | "env" | null;
@@ -8744,6 +8862,8 @@ export interface components {
8744
8862
  path: string;
8745
8863
  /** @description Presigned PUT URL, valid for 1 hour. */
8746
8864
  upload_url: string;
8865
+ /** @description Public URL the file is served at once uploaded. */
8866
+ url: string;
8747
8867
  }[];
8748
8868
  };
8749
8869
  };
@@ -9361,7 +9481,7 @@ export interface components {
9361
9481
  playwright_projects_match: string[];
9362
9482
  /** @description Glob patterns of the Playwright projects to skip, applied after `playwright_projects_match`. Saved for runs in this environment; a trigger request that sends this field replaces it. */
9363
9483
  playwright_projects_ignore: string[];
9364
- /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when its title or tags contain any of them. Saved for runs in this environment; a trigger request that sends this field replaces it. */
9484
+ /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when one of its tags contains any of them, so `smoke` also selects `@smoke-nightly`. A test title is not a tag: `checkout flow` matches no test. To run specific tests, use `test_case_ids`. Saved for runs in this environment; a trigger request that sends this field replaces it. */
9365
9485
  tags: string[];
9366
9486
  /** @description Tags whose tests are skipped (e.g. `@slow`). Applied after every other selection, so it can only remove tests: with `tags` it runs tests matching `tags` but not `exclude_tags`; alone it runs every test except the excluded ones. Saved for runs in this environment; a trigger request that sends this field replaces it. */
9367
9487
  exclude_tags: string[];
@@ -10470,6 +10590,25 @@ export interface components {
10470
10590
  /** @description Response payload. */
10471
10591
  data: components["schemas"]["HiveModel"][];
10472
10592
  };
10593
+ ImpactedTests: {
10594
+ test_case: {
10595
+ name: string;
10596
+ suites: string[];
10597
+ file_path: string;
10598
+ start_line: number;
10599
+ end_line: number;
10600
+ };
10601
+ /** @enum {string} */
10602
+ type: "added" | "removed" | "modified";
10603
+ modified_by: {
10604
+ file_path: string;
10605
+ line: {
10606
+ number: number;
10607
+ /** @enum {string} */
10608
+ type: "added" | "removed" | "modified";
10609
+ };
10610
+ }[] | null;
10611
+ }[];
10473
10612
  ImportLoomFileRequest: {
10474
10613
  /** @description Loom share URL (loom.com/share/<id>). */
10475
10614
  url: string;
@@ -12559,6 +12698,12 @@ export interface components {
12559
12698
  baseline_makespan_ms?: number;
12560
12699
  /** @description Heaviest single schedulable unit, in ms. The floor no shard count can beat. */
12561
12700
  longest_unit_ms?: number;
12701
+ /** @description Planner key of the heaviest unit: `test:<pw_test_id>` for a single test, `group:<id>` for a serial, default-mode or worker-capped group. */
12702
+ longest_unit_key?: string;
12703
+ /** @description Playwright test ids (`pw_test_id`) in the heaviest unit. */
12704
+ longest_unit_test_ids?: string[];
12705
+ /** @description Whether every test in the heaviest unit had duration history. False means at least one was costed at the fallback duration. */
12706
+ longest_unit_modelled?: boolean;
12562
12707
  /** @description Fraction of planned tests that had a real historical duration. */
12563
12708
  coverage?: number;
12564
12709
  };
@@ -12968,6 +13113,15 @@ export interface components {
12968
13113
  /** @description Rules that do not affect how Empirical merges, e.g. "Blocks force pushes". */
12969
13114
  other_rules: string[];
12970
13115
  };
13116
+ PutBranchImpactedTestsBody: {
13117
+ /** @description Checked-out branch. */
13118
+ branch: string;
13119
+ /** @description Checked-out commit. */
13120
+ head_sha: string;
13121
+ /** @description Merge-base with the default branch. */
13122
+ base_sha: string;
13123
+ impacted_tests: components["schemas"]["ImpactedTests"];
13124
+ };
12971
13125
  PutKvEntryRequest: {
12972
13126
  /** @description JSON value to store (max 1 MB serialized). */
12973
13127
  value: (string | number | boolean | unknown[] | {
@@ -15350,6 +15504,13 @@ export interface components {
15350
15504
  /** @description Percentage change (0-100) between first and latest day. */
15351
15505
  change_percent: number;
15352
15506
  };
15507
+ TestReportStorageResponse: {
15508
+ /** @description Response payload. */
15509
+ data: {
15510
+ /** @description Public URL that report files uploaded through `upload-urls` are served under, as `<base_url>/<repo_name>/<run_id>/<path>`. */
15511
+ base_url: string;
15512
+ };
15513
+ };
15353
15514
  TestRunBranchListResponse: {
15354
15515
  /** @description Response payload. */
15355
15516
  data: {
@@ -16258,6 +16419,33 @@ export interface components {
16258
16419
  data: {
16259
16420
  /** @description Shards for the run, ordered by shard index. */
16260
16421
  shards: components["schemas"]["TestRunShard"][];
16422
+ /** @description The duration-based shard plan, or null when the run used Playwright's `--shard=i/N` split. */
16423
+ plan: {
16424
+ /** @description Shard count the planner chose. */
16425
+ total_shards: number;
16426
+ /** @description Planned test count per run_test shard, by shard index. */
16427
+ shard_test_counts: number[];
16428
+ /** @description Why the planner chose this shard count. */
16429
+ reason: string | null;
16430
+ /** @description Modelled wall-clock of the slowest shard, in ms. */
16431
+ predicted_makespan_ms: number | null;
16432
+ /** @description Modelled wall-clock at the shard ceiling, in ms. */
16433
+ baseline_makespan_ms: number | null;
16434
+ /** @description Modelled duration of the heaviest unit, in ms. No shard count can finish sooner. */
16435
+ longest_unit_ms: number | null;
16436
+ /** @description Planner key of the heaviest unit: `test:<pw_test_id>` or `group:<id>`. */
16437
+ longest_unit_key: string | null;
16438
+ /** @description Playwright test ids in the heaviest unit. */
16439
+ longest_unit_test_ids: string[] | null;
16440
+ /** @description False when a test in the heaviest unit was costed at the fallback duration because it had no history. */
16441
+ longest_unit_modelled: boolean | null;
16442
+ /** @description Fraction of planned tests that had duration history. */
16443
+ coverage: number | null;
16444
+ /** @description Test code commit the plan was listed from. */
16445
+ planned_from_commit_sha: string | null;
16446
+ /** @description ISO 8601 timestamp the plan was stored. */
16447
+ created_at: string;
16448
+ } | null;
16261
16449
  };
16262
16450
  };
16263
16451
  TestRunStatusResponse: {
@@ -16307,8 +16495,18 @@ export interface components {
16307
16495
  p75_duration_total?: number;
16308
16496
  /** @description Sample-weighted 75th percentile of total duration over the last day, in ms; null without recent results. */
16309
16497
  recent_p75_duration_total?: number | null;
16310
- /** @description Results the average was taken over. */
16498
+ /** @description Non-skipped results the averages and percentiles were taken over. */
16311
16499
  total_runs: number;
16500
+ /** @description Skipped results over the window. */
16501
+ skip_runs?: number;
16502
+ /** @description Mean duration of the skipped results, in ms; null when none were skipped. */
16503
+ avg_skip_duration_total?: number | null;
16504
+ /** @description Passing results over the window. */
16505
+ pass_runs?: number;
16506
+ /** @description Sample-weighted 75th percentile of passing results over the window, in ms; null without passes. */
16507
+ p75_pass_duration_total?: number | null;
16508
+ /** @description 75th percentile of passing results over the last day, in ms; null without recent passes. */
16509
+ recent_p75_pass_duration_total?: number | null;
16312
16510
  };
16313
16511
  };
16314
16512
  };
@@ -16385,11 +16583,11 @@ export interface components {
16385
16583
  playwright_projects_match?: string[];
16386
16584
  /** @description Glob patterns of the Playwright projects to skip, applied after `playwright_projects_match`. Omit to use the environment's `playwright_projects_ignore`; send `[]` for none. */
16387
16585
  playwright_projects_ignore?: string[];
16388
- /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when its title or tags contain any of them. Omit to use the environment's `tags`; send `[]` for none. */
16586
+ /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when one of its tags contains any of them, so `smoke` also selects `@smoke-nightly`. A test title is not a tag: `checkout flow` matches no test. To run specific tests, use `test_case_ids`. Omit to use the environment's `tags`; send `[]` for none. */
16389
16587
  tags?: string[];
16390
16588
  /** @description Tags whose tests are skipped (e.g. `@slow`). Applied after every other selection, so it can only remove tests: with `tags` it runs tests matching `tags` but not `exclude_tags`; alone it runs every test except the excluded ones. Omit to use the environment's `exclude_tags`; send `[]` for none. */
16391
16589
  exclude_tags?: string[];
16392
- /** @description Specific test case ids (Playwright per-project `test.id`) to run. Only these tests will be executed. */
16590
+ /** @description Specific test case ids (Playwright per-project `test.id`, e.g. `1bd02eced4141fc31282-084163cf0ce372bd31e7`) to run. Only these tests will be executed. */
16393
16591
  test_case_ids?: string[];
16394
16592
  /** @description Existing test-repository branch to run. A missing explicit branch creates an errored run; Empirical never creates it. May be supplied alongside `build`, which describes the application code under test. */
16395
16593
  branch?: string;
@@ -16678,7 +16876,7 @@ export interface components {
16678
16876
  playwright_projects_match?: string[];
16679
16877
  /** @description Playwright project names to exclude. */
16680
16878
  playwright_projects_ignore?: string[];
16681
- /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when its title or tags contain any of them. Saved for runs in this environment; a trigger request that sends this field replaces it. */
16879
+ /** @description Tags selecting the tests to run (e.g. `@smoke`); a missing `@` is added. A test runs when one of its tags contains any of them, so `smoke` also selects `@smoke-nightly`. A test title is not a tag: `checkout flow` matches no test. To run specific tests, use `test_case_ids`. Saved for runs in this environment; a trigger request that sends this field replaces it. */
16682
16880
  tags?: string[];
16683
16881
  /** @description Tags whose tests are skipped (e.g. `@slow`). Applied after every other selection, so it can only remove tests: with `tags` it runs tests matching `tags` but not `exclude_tags`; alone it runs every test except the excluded ones. Saved for runs in this environment; a trigger request that sends this field replaces it. */
16684
16882
  exclude_tags?: string[];
@@ -25960,6 +26158,77 @@ export interface operations {
25960
26158
  };
25961
26159
  };
25962
26160
  };
26161
+ getChatSessionImpactedTests: {
26162
+ parameters: {
26163
+ query?: {
26164
+ /** @description Branch name; omit for the session's latest. */
26165
+ branch?: string;
26166
+ };
26167
+ header?: never;
26168
+ path: {
26169
+ /** @description Chat session ID. */
26170
+ id: number;
26171
+ };
26172
+ cookie?: never;
26173
+ };
26174
+ requestBody?: never;
26175
+ responses: {
26176
+ /** @description The latest result. */
26177
+ 200: {
26178
+ headers: {
26179
+ [name: string]: unknown;
26180
+ };
26181
+ content: {
26182
+ "application/json": components["schemas"]["BranchImpactedTestsResponse"];
26183
+ };
26184
+ };
26185
+ /** @description Chat session not found. */
26186
+ 404: {
26187
+ headers: {
26188
+ [name: string]: unknown;
26189
+ };
26190
+ content: {
26191
+ "application/json": components["schemas"]["ErrorResponse"];
26192
+ };
26193
+ };
26194
+ };
26195
+ };
26196
+ putChatSessionImpactedTests: {
26197
+ parameters: {
26198
+ query?: never;
26199
+ header?: never;
26200
+ path: {
26201
+ /** @description Chat session ID. */
26202
+ id: number;
26203
+ };
26204
+ cookie?: never;
26205
+ };
26206
+ requestBody?: {
26207
+ content: {
26208
+ "application/json": components["schemas"]["PutBranchImpactedTestsBody"];
26209
+ };
26210
+ };
26211
+ responses: {
26212
+ /** @description The stored result. */
26213
+ 200: {
26214
+ headers: {
26215
+ [name: string]: unknown;
26216
+ };
26217
+ content: {
26218
+ "application/json": components["schemas"]["BranchImpactedTestsResponse"];
26219
+ };
26220
+ };
26221
+ /** @description Chat session not found. */
26222
+ 404: {
26223
+ headers: {
26224
+ [name: string]: unknown;
26225
+ };
26226
+ content: {
26227
+ "application/json": components["schemas"]["ErrorResponse"];
26228
+ };
26229
+ };
26230
+ };
26231
+ };
25963
26232
  getChatSessionLineage: {
25964
26233
  parameters: {
25965
26234
  query?: never;
@@ -28299,6 +28568,55 @@ export interface operations {
28299
28568
  };
28300
28569
  };
28301
28570
  };
28571
+ getRepoRawImage: {
28572
+ parameters: {
28573
+ query: {
28574
+ /** @description Repository owner. */
28575
+ owner: string;
28576
+ /** @description Repository name. */
28577
+ repo: string;
28578
+ /** @description Repository host; only `github` is supported. */
28579
+ repo_host?: string;
28580
+ /** @description Image path within the repo (png, jpg, gif, webp). */
28581
+ path: string;
28582
+ /** @description Branch, tag, or commit SHA to read from. */
28583
+ ref: string;
28584
+ };
28585
+ header?: never;
28586
+ path?: never;
28587
+ cookie?: never;
28588
+ };
28589
+ requestBody?: never;
28590
+ responses: {
28591
+ /** @description The image bytes. */
28592
+ 200: {
28593
+ headers: {
28594
+ [name: string]: unknown;
28595
+ };
28596
+ content: {
28597
+ "image/*": string;
28598
+ };
28599
+ };
28600
+ /** @description Unsupported repo host or image type. */
28601
+ 400: {
28602
+ headers: {
28603
+ [name: string]: unknown;
28604
+ };
28605
+ content: {
28606
+ "application/json": components["schemas"]["ErrorResponse"];
28607
+ };
28608
+ };
28609
+ /** @description Repository or file not found. */
28610
+ 404: {
28611
+ headers: {
28612
+ [name: string]: unknown;
28613
+ };
28614
+ content: {
28615
+ "application/json": components["schemas"]["ErrorResponse"];
28616
+ };
28617
+ };
28618
+ };
28619
+ };
28302
28620
  listMainInstallations: {
28303
28621
  parameters: {
28304
28622
  query: {
@@ -34708,6 +35026,48 @@ export interface operations {
34708
35026
  };
34709
35027
  };
34710
35028
  };
35029
+ createReportToken: {
35030
+ parameters: {
35031
+ query?: never;
35032
+ header?: never;
35033
+ path?: never;
35034
+ cookie?: never;
35035
+ };
35036
+ requestBody: {
35037
+ content: {
35038
+ "application/json": components["schemas"]["CreateReportTokenRequest"];
35039
+ };
35040
+ };
35041
+ responses: {
35042
+ /** @description The report token. */
35043
+ 200: {
35044
+ headers: {
35045
+ [name: string]: unknown;
35046
+ };
35047
+ content: {
35048
+ "application/json": components["schemas"]["CreateReportTokenResponse"];
35049
+ };
35050
+ };
35051
+ /** @description `report_url` is not a file on a report host. */
35052
+ 400: {
35053
+ headers: {
35054
+ [name: string]: unknown;
35055
+ };
35056
+ content: {
35057
+ "application/json": components["schemas"]["ErrorResponse"];
35058
+ };
35059
+ };
35060
+ /** @description The caller can't read these reports. */
35061
+ 403: {
35062
+ headers: {
35063
+ [name: string]: unknown;
35064
+ };
35065
+ content: {
35066
+ "application/json": components["schemas"]["ErrorResponse"];
35067
+ };
35068
+ };
35069
+ };
35070
+ };
34711
35071
  claimRunnerBackend: {
34712
35072
  parameters: {
34713
35073
  query?: never;
@@ -35314,6 +35674,26 @@ export interface operations {
35314
35674
  };
35315
35675
  };
35316
35676
  };
35677
+ getTestReportStorage: {
35678
+ parameters: {
35679
+ query?: never;
35680
+ header?: never;
35681
+ path?: never;
35682
+ cookie?: never;
35683
+ };
35684
+ requestBody?: never;
35685
+ responses: {
35686
+ /** @description Where uploaded reports are served. */
35687
+ 200: {
35688
+ headers: {
35689
+ [name: string]: unknown;
35690
+ };
35691
+ content: {
35692
+ "application/json": components["schemas"]["TestReportStorageResponse"];
35693
+ };
35694
+ };
35695
+ };
35696
+ };
35317
35697
  createTestReportUploadUrls: {
35318
35698
  parameters: {
35319
35699
  query?: never;