@empiricalrun/playwright-utils 0.70.0 → 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 +25 -0
- package/README.md +6 -3
- package/dist/api-worker-client.d.ts +2 -0
- package/dist/api-worker-client.d.ts.map +1 -1
- package/dist/api-worker-client.js +4 -0
- package/dist/generated/api-worker-openapi.d.ts +391 -11
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/inbox-client.d.ts +5 -0
- package/dist/inbox-client.d.ts.map +1 -1
- package/dist/inbox-client.js +1 -0
- package/dist/reporter/empirical-reporter.js +1 -1
- package/dist/reporter/presigned-upload.d.ts +1 -3
- package/dist/reporter/presigned-upload.d.ts.map +1 -1
- package/dist/reporter/presigned-upload.js +2 -2
- package/dist/reporter/uploader.d.ts +11 -15
- package/dist/reporter/uploader.d.ts.map +1 -1
- package/dist/reporter/uploader.js +49 -101
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/auth.md +0 -116
- package/docs/email.md +0 -97
- package/docs/fixtures.md +0 -106
- package/docs/kv.md +0 -90
- package/docs/video-labels.md +0 -36
|
@@ -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
|
|
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;
|
|
@@ -1649,7 +1649,7 @@ export interface paths {
|
|
|
1649
1649
|
put?: never;
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Send an email
|
|
1652
|
-
* @description Sends an email from an @empiricalrun.email address, with optional attachments. Each recipient must be an @empiricalrun.email address, someone who emailed the sender (with DMARC passing), or one of the project's allowed recipients (see Allowed recipients). Use it to test apps that receive email (reply-by-email, email-to-ticket, forwarding). Replies arrive in the sender's inbox; read them with `listAddressMessages`. Limits: 5 recipients and 5 attachments (5 MiB in total) per email; 10 emails per minute and 100 per rolling 24 hours per project. Over a limit the request fails with 429.
|
|
1652
|
+
* @description Sends an email from an @empiricalrun.email address, with optional attachments. Each recipient must be an @empiricalrun.email address, someone who emailed the sender (with DMARC passing), or one of the project's allowed recipients (see Allowed recipients). Use it to test apps that receive email (reply-by-email, email-to-ticket, forwarding). Replies arrive in the sender's inbox; read them with `listAddressMessages`. Limits: 5 recipients and 5 attachments (5 MiB in total) per email; 10 emails per minute and 100 per rolling 24 hours per project. Emails whose recipients are all @empiricalrun.email addresses have separate, higher limits: 60 per minute and 1000 per rolling 24 hours. Over a limit the request fails with 429.
|
|
1653
1653
|
*/
|
|
1654
1654
|
post: operations["sendInboxMessage"];
|
|
1655
1655
|
delete?: 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;
|
|
@@ -7128,7 +7212,7 @@ export interface components {
|
|
|
7128
7212
|
* @description The session's latest state, or what last happened to one of its pull requests. A session with pull requests appears once per pull request.
|
|
7129
7213
|
* @enum {string}
|
|
7130
7214
|
*/
|
|
7131
|
-
action: "created" | "closed" | "pr_opened" | "pr_reopened" | "pr_merged" | "pr_closed";
|
|
7215
|
+
action: "created" | "messaged" | "closed" | "pr_opened" | "pr_reopened" | "pr_merged" | "pr_closed";
|
|
7132
7216
|
chat_session: {
|
|
7133
7217
|
id: number;
|
|
7134
7218
|
title: string | null;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|