playwright-performance-regression 0.1.0-next.1 → 0.1.0-next.4
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 +431 -0
- package/README.md +96 -64
- package/dist/{chunk-L5C63HEF.js → chunk-CISGJCFW.js} +378 -48
- package/dist/chunk-CXE5IWZY.js +1648 -0
- package/dist/{chunk-B64P2D5A.js → chunk-E2IX265O.js} +395 -206
- package/dist/chunk-IUI4AFE5.cjs +658 -0
- package/dist/{chunk-WZVQK7CQ.cjs → chunk-KELMALEG.cjs} +408 -218
- package/dist/{chunk-GCA73FFP.cjs → chunk-LUA4WRIQ.cjs} +382 -47
- package/dist/chunk-RL27E3AB.js +595 -0
- package/dist/{chunk-DYLCGMI2.js → chunk-S6UH6QPK.js} +6 -1
- package/dist/cli.js +2761 -2339
- package/dist/config.cjs +122 -137
- package/dist/config.d.cts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/config.js +117 -132
- package/dist/fixture.cjs +9 -5
- package/dist/fixture.d.cts +10 -4
- package/dist/fixture.d.ts +10 -4
- package/dist/fixture.js +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +121 -25
- package/dist/index.d.ts +121 -25
- package/dist/index.js +1 -1
- package/dist/perf-api-2DH_keLh.d.cts +17 -0
- package/dist/perf-api-2DH_keLh.d.ts +17 -0
- package/dist/reporter.cjs +5713 -1237
- package/dist/reporter.js +6905 -693
- package/dist/test.cjs +4 -4
- package/dist/test.js +4 -4
- package/package.json +19 -1
- package/schemas/common.schema.json +2 -2
- package/schemas/config.schema.json +72 -26
- package/schemas/outcome.schema.json +2 -2
- package/schemas/run-report.schema.json +549 -20
- package/schemas/samples.schema.json +48 -37
- package/schemas/thresholds.schema.json +1 -1
- package/dist/chunk-3CLCMD2Q.js +0 -3411
- package/dist/chunk-4SFI55HF.cjs +0 -319
- package/dist/chunk-HBGADXLP.js +0 -254
- package/dist/perf-api-V4PeHVE0.d.cts +0 -22
- package/dist/perf-api-V4PeHVE0.d.ts +0 -22
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
"configDir",
|
|
17
17
|
"config",
|
|
18
18
|
"normalization",
|
|
19
|
+
"stepNormalization",
|
|
19
20
|
"ci",
|
|
20
21
|
"host",
|
|
21
22
|
"playwright",
|
|
23
|
+
"passes",
|
|
22
24
|
"runConditions",
|
|
23
25
|
"tests",
|
|
24
26
|
"evaluation",
|
|
@@ -27,10 +29,11 @@
|
|
|
27
29
|
"toolErrors",
|
|
28
30
|
"origins",
|
|
29
31
|
"endpoints",
|
|
30
|
-
"
|
|
32
|
+
"steps",
|
|
33
|
+
"testBreakdown"
|
|
31
34
|
],
|
|
32
35
|
"properties": {
|
|
33
|
-
"schemaVersion": {"const":
|
|
36
|
+
"schemaVersion": {"const": 4},
|
|
34
37
|
"tool": {"$ref": "common.schema.json#/$defs/tool"},
|
|
35
38
|
"runId": {"$ref": "common.schema.json#/$defs/runId"},
|
|
36
39
|
"mode": {"$ref": "common.schema.json#/$defs/mode"},
|
|
@@ -42,6 +45,16 @@
|
|
|
42
45
|
"type": "string",
|
|
43
46
|
"minLength": 1
|
|
44
47
|
},
|
|
48
|
+
"suite": {
|
|
49
|
+
"description": "What the report is about (02-REQ-42, 11-REQ-49): the name of the package.json in configDir (source package), else the Playwright config path relative to the repository root (source config). Left out when neither is known.",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["name", "source"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"name": {"type": "string", "minLength": 1},
|
|
55
|
+
"source": {"enum": ["package", "config"]}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
45
58
|
"config": {
|
|
46
59
|
"description": "Effective package config after merging with defaults (00, 4.4), in JSON form (02-REQ-17, 03).",
|
|
47
60
|
"$ref": "config.schema.json"
|
|
@@ -50,6 +63,10 @@
|
|
|
50
63
|
"description": "Normalization fingerprint of this run (07-REQ-21); copied to generated.normalization of derived thresholds files and compared with it (09-REQ-04).",
|
|
51
64
|
"$ref": "common.schema.json#/$defs/fingerprint"
|
|
52
65
|
},
|
|
66
|
+
"stepNormalization": {
|
|
67
|
+
"description": "Step normalization fingerprint (06-REQ-25); null when measure.steps is disabled. Copied to generated.normalization of derived step thresholds files.",
|
|
68
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/fingerprint"}, {"type": "null"}]
|
|
69
|
+
},
|
|
53
70
|
"ci": {
|
|
54
71
|
"description": "CI metadata read from well-known environment variables (02-REQ-28); null outside CI or when no known provider is detected and CI is unset.",
|
|
55
72
|
"oneOf": [{"$ref": "#/$defs/ciInfo"}, {"type": "null"}]
|
|
@@ -74,6 +91,29 @@
|
|
|
74
91
|
"required": ["version"],
|
|
75
92
|
"properties": {"version": {"description": "FullConfig.version", "type": "string"}}
|
|
76
93
|
},
|
|
94
|
+
"passes": {
|
|
95
|
+
"description": "Passes of the run (D-39, 02-REQ-37): the test command runs once per pass and the first pass merges them.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["planned", "completed", "failed"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"planned": {
|
|
101
|
+
"description": "Passes of the run (run.passes.<mode>, PW_PERF_PASSES).",
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"minimum": 1
|
|
104
|
+
},
|
|
105
|
+
"completed": {
|
|
106
|
+
"description": "Passes whose data are in the report, including the first one.",
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 1
|
|
109
|
+
},
|
|
110
|
+
"failed": {
|
|
111
|
+
"description": "Numbers of passes without data (RUN_PASS_FAILED), ascending.",
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": { "type": "integer", "minimum": 2 }
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
77
117
|
"runConditions": {
|
|
78
118
|
"description": "Effective run conditions read from FullConfig in onBegin (ADR-0006).",
|
|
79
119
|
"type": "object",
|
|
@@ -95,7 +135,11 @@
|
|
|
95
135
|
},
|
|
96
136
|
"browserName": {"oneOf": [{"type": "string"}, {"type": "null"}]},
|
|
97
137
|
"repeatEach": {"type": "integer", "minimum": 1},
|
|
98
|
-
"retries": {"type": "integer", "minimum": 0}
|
|
138
|
+
"retries": {"type": "integer", "minimum": 0},
|
|
139
|
+
"requestOnly": {
|
|
140
|
+
"description": "true for a measured project that recorded request calls and no browser sample (02-REQ-42); left out otherwise.",
|
|
141
|
+
"const": true
|
|
142
|
+
}
|
|
99
143
|
}
|
|
100
144
|
}
|
|
101
145
|
},
|
|
@@ -120,7 +164,7 @@
|
|
|
120
164
|
}
|
|
121
165
|
},
|
|
122
166
|
"evaluation": {
|
|
123
|
-
"description": "Run-level evaluation summary. Per-key details live in endpoints
|
|
167
|
+
"description": "Run-level evaluation summary. Per-key details live in endpoints and steps (02-REQ-15).",
|
|
124
168
|
"type": "object",
|
|
125
169
|
"additionalProperties": false,
|
|
126
170
|
"required": ["status", "gateEnabled", "counts"],
|
|
@@ -130,8 +174,8 @@
|
|
|
130
174
|
"counts": {
|
|
131
175
|
"type": "object",
|
|
132
176
|
"additionalProperties": false,
|
|
133
|
-
"required": ["api", "
|
|
134
|
-
"properties": {"api": {"$ref": "#/$defs/evaluationCounts"}, "
|
|
177
|
+
"required": ["api", "step"],
|
|
178
|
+
"properties": {"api": {"$ref": "#/$defs/evaluationCounts"}, "step": {"$ref": "#/$defs/evaluationCounts"}}
|
|
135
179
|
}
|
|
136
180
|
}
|
|
137
181
|
},
|
|
@@ -142,7 +186,7 @@
|
|
|
142
186
|
},
|
|
143
187
|
"warnings": {"type": "array", "items": {"$ref": "common.schema.json#/$defs/issue"}},
|
|
144
188
|
"toolErrors": {
|
|
145
|
-
"description": "Problems that make the run result incomplete or untrustworthy; non-empty means exit code 3 (09-REQ-23). Collector
|
|
189
|
+
"description": "Problems that make the run result incomplete or untrustworthy; non-empty means exit code 3 (09-REQ-23). Collector diagnostics go to warnings.",
|
|
146
190
|
"type": "array",
|
|
147
191
|
"items": {"$ref": "common.schema.json#/$defs/issue"}
|
|
148
192
|
},
|
|
@@ -166,11 +210,37 @@
|
|
|
166
210
|
"propertyNames": {"$ref": "common.schema.json#/$defs/key"},
|
|
167
211
|
"additionalProperties": {"$ref": "#/$defs/aggregate"}
|
|
168
212
|
},
|
|
169
|
-
"
|
|
170
|
-
"description": "Aggregates of
|
|
213
|
+
"steps": {
|
|
214
|
+
"description": "Aggregates of test.step durations by step key (06); empty when measure.steps is disabled.",
|
|
171
215
|
"type": "object",
|
|
172
216
|
"propertyNames": {"$ref": "common.schema.json#/$defs/key"},
|
|
173
|
-
"additionalProperties": {"$ref": "#/$defs/
|
|
217
|
+
"additionalProperties": {"$ref": "#/$defs/stepAggregate"}
|
|
218
|
+
},
|
|
219
|
+
"testBreakdown": {
|
|
220
|
+
"description": "Per-test costs and the waterfall of the slowest test runs (08-REQ-37, 08-REQ-38); null only in a report migrated from version 1.",
|
|
221
|
+
"oneOf": [
|
|
222
|
+
{
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"required": ["tests", "omitted", "waterfalls"],
|
|
226
|
+
"properties": {
|
|
227
|
+
"tests": {
|
|
228
|
+
"description": "Tests with at least one api request, most expensive first; at most 500 (08-REQ-37).",
|
|
229
|
+
"type": "array",
|
|
230
|
+
"maxItems": 500,
|
|
231
|
+
"items": {"$ref": "#/$defs/testCost"}
|
|
232
|
+
},
|
|
233
|
+
"omitted": {"description": "Tests with requests beyond the first 500.", "$ref": "common.schema.json#/$defs/count"},
|
|
234
|
+
"waterfalls": {
|
|
235
|
+
"description": "Slowest test runs, one per test; at most 5 (08-REQ-38).",
|
|
236
|
+
"type": "array",
|
|
237
|
+
"maxItems": 5,
|
|
238
|
+
"items": {"$ref": "#/$defs/waterfall"}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{"type": "null"}
|
|
243
|
+
]
|
|
174
244
|
}
|
|
175
245
|
},
|
|
176
246
|
"$defs": {
|
|
@@ -255,16 +325,18 @@
|
|
|
255
325
|
"slowest",
|
|
256
326
|
"topTests",
|
|
257
327
|
"samples",
|
|
258
|
-
"evaluation"
|
|
328
|
+
"evaluation",
|
|
329
|
+
"histogram",
|
|
330
|
+
"hints"
|
|
259
331
|
],
|
|
260
332
|
"properties": {
|
|
261
333
|
"count": {"description": "All samples, successful or not.", "$ref": "common.schema.json#/$defs/count"},
|
|
262
334
|
"successCount": {
|
|
263
|
-
"description": "Successful samples with browser timing
|
|
335
|
+
"description": "Successful samples with browser timing; only these enter time statistics (08-REQ-02).",
|
|
264
336
|
"$ref": "common.schema.json#/$defs/count"
|
|
265
337
|
},
|
|
266
338
|
"errorCount": {
|
|
267
|
-
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses
|
|
339
|
+
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses (08-REQ-05).",
|
|
268
340
|
"$ref": "common.schema.json#/$defs/count"
|
|
269
341
|
},
|
|
270
342
|
"fromFailedTests": {
|
|
@@ -276,7 +348,7 @@
|
|
|
276
348
|
"$ref": "common.schema.json#/$defs/count"
|
|
277
349
|
},
|
|
278
350
|
"statuses": {
|
|
279
|
-
"description": "Sample count per status. Endpoints: HTTP code, FAILED (failed without response), ABORTED (cancelled by the browser), PENDING (in flight at test end).
|
|
351
|
+
"description": "Sample count per status. Endpoints: HTTP code, FAILED (failed without response), ABORTED (cancelled by the browser), PENDING (in flight at test end). The labels ok, error and unfinished are reserved for step outcomes (06) (08-REQ-05).",
|
|
280
352
|
"type": "object",
|
|
281
353
|
"propertyNames": {"pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$"},
|
|
282
354
|
"additionalProperties": {"type": "integer", "minimum": 1}
|
|
@@ -292,13 +364,20 @@
|
|
|
292
364
|
"oneOf": [{"$ref": "#/$defs/stats"}, {"type": "null"}]
|
|
293
365
|
},
|
|
294
366
|
"ttfb": {
|
|
295
|
-
"description": "TTFB of successful samples that have it. Null
|
|
367
|
+
"description": "TTFB of successful samples that have it. Null when no sample has TTFB.",
|
|
296
368
|
"oneOf": [
|
|
297
369
|
{
|
|
298
370
|
"type": "object",
|
|
299
371
|
"additionalProperties": false,
|
|
300
|
-
"required": ["p50", "p95"],
|
|
301
|
-
"properties": {
|
|
372
|
+
"required": ["p50", "p95", "otherP50"],
|
|
373
|
+
"properties": {
|
|
374
|
+
"p50": {"$ref": "common.schema.json#/$defs/ms"},
|
|
375
|
+
"p95": {"$ref": "common.schema.json#/$defs/ms"},
|
|
376
|
+
"otherP50": {
|
|
377
|
+
"description": "p50 of max(0, duration - ttfb) over the samples of p50 (08-REQ-35); null only in a report migrated from version 1.",
|
|
378
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
379
|
+
}
|
|
380
|
+
}
|
|
302
381
|
},
|
|
303
382
|
{"type": "null"}
|
|
304
383
|
]
|
|
@@ -343,7 +422,453 @@
|
|
|
343
422
|
}
|
|
344
423
|
}
|
|
345
424
|
},
|
|
346
|
-
"evaluation": {"$ref": "#/$defs/keyEvaluation"}
|
|
425
|
+
"evaluation": {"$ref": "#/$defs/keyEvaluation"},
|
|
426
|
+
"histogram": {
|
|
427
|
+
"description": "Histogram of the retained durations on a fixed log scale (08-REQ-34); bin i is [edges[i], edges[i+1]). counts has edges.length - 1 entries that sum to samples.durations.length (checked by the parser). Null when stats is null, or in a report migrated from version 1.",
|
|
428
|
+
"oneOf": [
|
|
429
|
+
{
|
|
430
|
+
"type": "object",
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"required": ["edges", "counts"],
|
|
433
|
+
"properties": {
|
|
434
|
+
"edges": {
|
|
435
|
+
"description": "Bin edges in ms, strictly ascending (checked by the parser); constants of the scale, not rounded to 0.1 ms.",
|
|
436
|
+
"type": "array",
|
|
437
|
+
"minItems": 2,
|
|
438
|
+
"maxItems": 31,
|
|
439
|
+
"items": {"type": "number", "minimum": 0}
|
|
440
|
+
},
|
|
441
|
+
"counts": {
|
|
442
|
+
"description": "Retained durations per bin.",
|
|
443
|
+
"type": "array",
|
|
444
|
+
"minItems": 1,
|
|
445
|
+
"maxItems": 30,
|
|
446
|
+
"items": {"$ref": "common.schema.json#/$defs/count"}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{"type": "null"}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"hints": {
|
|
454
|
+
"description": "Hints that explain the result of the key, in rule priority order (11-REQ-34); at most 3.",
|
|
455
|
+
"type": "array",
|
|
456
|
+
"maxItems": 3,
|
|
457
|
+
"items": {"$ref": "#/$defs/hint"}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"stepAggregate": {
|
|
462
|
+
"description": "Statistics of all samples of one step key (06-REQ-28): the aggregate fields plus location and stepErrorsFromFailedTests. ttfb is null; time sources count node samples.",
|
|
463
|
+
"type": "object",
|
|
464
|
+
"additionalProperties": false,
|
|
465
|
+
"required": [
|
|
466
|
+
"count",
|
|
467
|
+
"successCount",
|
|
468
|
+
"errorCount",
|
|
469
|
+
"fromFailedTests",
|
|
470
|
+
"testCount",
|
|
471
|
+
"statuses",
|
|
472
|
+
"timeSources",
|
|
473
|
+
"stats",
|
|
474
|
+
"ttfb",
|
|
475
|
+
"slowest",
|
|
476
|
+
"topTests",
|
|
477
|
+
"samples",
|
|
478
|
+
"evaluation",
|
|
479
|
+
"histogram",
|
|
480
|
+
"hints",
|
|
481
|
+
"location",
|
|
482
|
+
"stepErrorsFromFailedTests"
|
|
483
|
+
],
|
|
484
|
+
"properties": {
|
|
485
|
+
"count": {
|
|
486
|
+
"description": "All samples, successful or not.",
|
|
487
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
488
|
+
},
|
|
489
|
+
"successCount": {
|
|
490
|
+
"description": "Successful samples with browser timing; only these enter time statistics (08-REQ-02).",
|
|
491
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
492
|
+
},
|
|
493
|
+
"errorCount": {
|
|
494
|
+
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses (08-REQ-05).",
|
|
495
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
496
|
+
},
|
|
497
|
+
"fromFailedTests": {
|
|
498
|
+
"description": "Samples that came from tests that did not pass (D-05).",
|
|
499
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
500
|
+
},
|
|
501
|
+
"testCount": {
|
|
502
|
+
"description": "Distinct tests in which the key occurred; repetitions of the same test count once (08-REQ-06).",
|
|
503
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
504
|
+
},
|
|
505
|
+
"statuses": {
|
|
506
|
+
"description": "Sample count per status. Endpoints: HTTP code, FAILED (failed without response), ABORTED (cancelled by the browser), PENDING (in flight at test end). The labels ok, error and unfinished are reserved for step outcomes (06) (08-REQ-05).",
|
|
507
|
+
"type": "object",
|
|
508
|
+
"propertyNames": {
|
|
509
|
+
"pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$"
|
|
510
|
+
},
|
|
511
|
+
"additionalProperties": {
|
|
512
|
+
"type": "integer",
|
|
513
|
+
"minimum": 1
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"timeSources": {
|
|
517
|
+
"type": "object",
|
|
518
|
+
"additionalProperties": false,
|
|
519
|
+
"required": [
|
|
520
|
+
"browser",
|
|
521
|
+
"node"
|
|
522
|
+
],
|
|
523
|
+
"properties": {
|
|
524
|
+
"browser": {
|
|
525
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
526
|
+
},
|
|
527
|
+
"node": {
|
|
528
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"stats": {
|
|
533
|
+
"description": "Time statistics of successful samples; null when successCount is 0.",
|
|
534
|
+
"oneOf": [
|
|
535
|
+
{
|
|
536
|
+
"$ref": "#/$defs/stats"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"type": "null"
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
"ttfb": {
|
|
544
|
+
"description": "TTFB of successful samples that have it. Null when no sample has TTFB.",
|
|
545
|
+
"oneOf": [
|
|
546
|
+
{
|
|
547
|
+
"type": "object",
|
|
548
|
+
"additionalProperties": false,
|
|
549
|
+
"required": [
|
|
550
|
+
"p50",
|
|
551
|
+
"p95",
|
|
552
|
+
"otherP50"
|
|
553
|
+
],
|
|
554
|
+
"properties": {
|
|
555
|
+
"p50": {
|
|
556
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
557
|
+
},
|
|
558
|
+
"p95": {
|
|
559
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
560
|
+
},
|
|
561
|
+
"otherP50": {
|
|
562
|
+
"description": "p50 of max(0, duration - ttfb) over the samples of p50 (08-REQ-35); null only in a report migrated from version 1.",
|
|
563
|
+
"oneOf": [
|
|
564
|
+
{
|
|
565
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"type": "null"
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"type": "null"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"slowest": {
|
|
580
|
+
"description": "Up to 3 slowest successful samples, slowest first.",
|
|
581
|
+
"type": "array",
|
|
582
|
+
"maxItems": 3,
|
|
583
|
+
"items": {
|
|
584
|
+
"$ref": "#/$defs/slowSample"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"topTests": {
|
|
588
|
+
"description": "Up to 5 tests with the most samples of this key (08-REQ-33), most samples first.",
|
|
589
|
+
"type": "array",
|
|
590
|
+
"maxItems": 5,
|
|
591
|
+
"items": {
|
|
592
|
+
"type": "object",
|
|
593
|
+
"additionalProperties": false,
|
|
594
|
+
"required": [
|
|
595
|
+
"title",
|
|
596
|
+
"project",
|
|
597
|
+
"file",
|
|
598
|
+
"line",
|
|
599
|
+
"sampleCount"
|
|
600
|
+
],
|
|
601
|
+
"properties": {
|
|
602
|
+
"title": {
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
"project": {
|
|
606
|
+
"type": "string"
|
|
607
|
+
},
|
|
608
|
+
"file": {
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"line": {
|
|
612
|
+
"type": "integer",
|
|
613
|
+
"minimum": 1
|
|
614
|
+
},
|
|
615
|
+
"sampleCount": {
|
|
616
|
+
"description": "Samples of this key from all repetitions of the test.",
|
|
617
|
+
"type": "integer",
|
|
618
|
+
"minimum": 1
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
"samples": {
|
|
624
|
+
"description": "Retained successful durations, used to derive thresholds without rerunning tests (thresholds --from).",
|
|
625
|
+
"type": "object",
|
|
626
|
+
"additionalProperties": false,
|
|
627
|
+
"required": [
|
|
628
|
+
"durations",
|
|
629
|
+
"sampled"
|
|
630
|
+
],
|
|
631
|
+
"properties": {
|
|
632
|
+
"durations": {
|
|
633
|
+
"description": "Sorted ascending. At most advanced.maxSamplesPerKey values (08).",
|
|
634
|
+
"type": "array",
|
|
635
|
+
"items": {
|
|
636
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"sampled": {
|
|
640
|
+
"description": "True when successCount exceeded the limit and durations is a seeded uniform sample (P-06).",
|
|
641
|
+
"type": "boolean"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"evaluation": {
|
|
646
|
+
"$ref": "#/$defs/keyEvaluation"
|
|
647
|
+
},
|
|
648
|
+
"histogram": {
|
|
649
|
+
"description": "Histogram of the retained durations on a fixed log scale (08-REQ-34); bin i is [edges[i], edges[i+1]). counts has edges.length - 1 entries that sum to samples.durations.length (checked by the parser). Null when stats is null, or in a report migrated from version 1.",
|
|
650
|
+
"oneOf": [
|
|
651
|
+
{
|
|
652
|
+
"type": "object",
|
|
653
|
+
"additionalProperties": false,
|
|
654
|
+
"required": [
|
|
655
|
+
"edges",
|
|
656
|
+
"counts"
|
|
657
|
+
],
|
|
658
|
+
"properties": {
|
|
659
|
+
"edges": {
|
|
660
|
+
"description": "Bin edges in ms, strictly ascending (checked by the parser); constants of the scale, not rounded to 0.1 ms.",
|
|
661
|
+
"type": "array",
|
|
662
|
+
"minItems": 2,
|
|
663
|
+
"maxItems": 31,
|
|
664
|
+
"items": {
|
|
665
|
+
"type": "number",
|
|
666
|
+
"minimum": 0
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"counts": {
|
|
670
|
+
"description": "Retained durations per bin.",
|
|
671
|
+
"type": "array",
|
|
672
|
+
"minItems": 1,
|
|
673
|
+
"maxItems": 30,
|
|
674
|
+
"items": {
|
|
675
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"type": "null"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
"hints": {
|
|
686
|
+
"description": "Hints that explain the result of the key, in rule priority order (11-REQ-34); at most 3.",
|
|
687
|
+
"type": "array",
|
|
688
|
+
"maxItems": 3,
|
|
689
|
+
"items": {
|
|
690
|
+
"$ref": "#/$defs/hint"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"location": {
|
|
694
|
+
"description": "Smallest (file, line) location among the key's samples, file relative to configDir with '/'; null when no sample has one (06-REQ-28).",
|
|
695
|
+
"oneOf": [
|
|
696
|
+
{
|
|
697
|
+
"type": "object",
|
|
698
|
+
"additionalProperties": false,
|
|
699
|
+
"required": [
|
|
700
|
+
"file",
|
|
701
|
+
"line"
|
|
702
|
+
],
|
|
703
|
+
"properties": {
|
|
704
|
+
"file": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"minLength": 1
|
|
707
|
+
},
|
|
708
|
+
"line": {
|
|
709
|
+
"type": "integer",
|
|
710
|
+
"minimum": 1
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "null"
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
"stepErrorsFromFailedTests": {
|
|
720
|
+
"description": "error and unfinished samples from failed tests; not counted in errorCount or the errors rule (06-REQ-32).",
|
|
721
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"hint": {
|
|
726
|
+
"description": "A rule-based one-sentence explanation of the key result; the HTML report builds the text from code and params (11-REQ-34).",
|
|
727
|
+
"type": "object",
|
|
728
|
+
"additionalProperties": false,
|
|
729
|
+
"required": ["code", "params"],
|
|
730
|
+
"properties": {
|
|
731
|
+
"code": {
|
|
732
|
+
"description": "Hint rule.",
|
|
733
|
+
"enum": [
|
|
734
|
+
"HINT_HARD_LIMIT",
|
|
735
|
+
"HINT_SLOWDOWN",
|
|
736
|
+
"HINT_TAIL",
|
|
737
|
+
"HINT_SHIFT",
|
|
738
|
+
"HINT_OUTLIERS",
|
|
739
|
+
"HINT_ERRORS_DOMINANT",
|
|
740
|
+
"HINT_ERRORS_MIXED",
|
|
741
|
+
"HINT_APDEX",
|
|
742
|
+
"HINT_SLOW_SHARE",
|
|
743
|
+
"HINT_MEDIAN_ONLY",
|
|
744
|
+
"HINT_MUTED",
|
|
745
|
+
"HINT_FAILED_TESTS",
|
|
746
|
+
"HINT_NEAR_LIMIT"
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
"params": {
|
|
750
|
+
"description": "Numbers and names for the text template; the fields per code are listed in 11-REQ-34.",
|
|
751
|
+
"type": "object",
|
|
752
|
+
"propertyNames": {
|
|
753
|
+
"enum": [
|
|
754
|
+
"rule",
|
|
755
|
+
"usage",
|
|
756
|
+
"medianUsage",
|
|
757
|
+
"factor",
|
|
758
|
+
"max",
|
|
759
|
+
"rate",
|
|
760
|
+
"limit",
|
|
761
|
+
"label",
|
|
762
|
+
"count",
|
|
763
|
+
"errors",
|
|
764
|
+
"label1",
|
|
765
|
+
"count1",
|
|
766
|
+
"label2",
|
|
767
|
+
"count2",
|
|
768
|
+
"label3",
|
|
769
|
+
"count3",
|
|
770
|
+
"apdex",
|
|
771
|
+
"share",
|
|
772
|
+
"t",
|
|
773
|
+
"n"
|
|
774
|
+
]
|
|
775
|
+
},
|
|
776
|
+
"additionalProperties": {"oneOf": [{"type": "string"}, {"type": "number"}]}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"testCost": {
|
|
781
|
+
"description": "Cost of one test for the backend over all its runs: api requests only (08-REQ-37).",
|
|
782
|
+
"type": "object",
|
|
783
|
+
"additionalProperties": false,
|
|
784
|
+
"required": [
|
|
785
|
+
"title",
|
|
786
|
+
"project",
|
|
787
|
+
"file",
|
|
788
|
+
"line",
|
|
789
|
+
"executions",
|
|
790
|
+
"requestCount",
|
|
791
|
+
"errorCount",
|
|
792
|
+
"totalMs",
|
|
793
|
+
"maxRequestMs",
|
|
794
|
+
"keyCount",
|
|
795
|
+
"topKeys",
|
|
796
|
+
"violatedKeys",
|
|
797
|
+
"violatedKeyCount"
|
|
798
|
+
],
|
|
799
|
+
"properties": {
|
|
800
|
+
"title": {"description": "Titles from the outermost describe to the test, joined with ' › '.", "type": "string"},
|
|
801
|
+
"project": {"type": "string"},
|
|
802
|
+
"file": {"description": "Relative to configDir, with forward slashes.", "type": "string"},
|
|
803
|
+
"line": {"type": "integer", "minimum": 1},
|
|
804
|
+
"executions": {"description": "Test results with a samples attachment, also without requests.", "type": "integer", "minimum": 1},
|
|
805
|
+
"requestCount": {"description": "All request samples of the test from all runs.", "type": "integer", "minimum": 1},
|
|
806
|
+
"errorCount": {"description": "Request samples counted as errors (08-REQ-30).", "$ref": "common.schema.json#/$defs/count"},
|
|
807
|
+
"totalMs": {
|
|
808
|
+
"description": "Sum of the durations of time-usable requests from all runs; parallel requests count in full.",
|
|
809
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
810
|
+
},
|
|
811
|
+
"maxRequestMs": {
|
|
812
|
+
"description": "Longest time-usable request, or null when there is none.",
|
|
813
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
814
|
+
},
|
|
815
|
+
"keyCount": {"description": "Distinct endpoint keys called by the test.", "type": "integer", "minimum": 1},
|
|
816
|
+
"topKeys": {
|
|
817
|
+
"description": "Up to 3 keys with the largest totalMs, then count, then key.",
|
|
818
|
+
"type": "array",
|
|
819
|
+
"maxItems": 3,
|
|
820
|
+
"items": {
|
|
821
|
+
"type": "object",
|
|
822
|
+
"additionalProperties": false,
|
|
823
|
+
"required": ["key", "count", "totalMs"],
|
|
824
|
+
"properties": {
|
|
825
|
+
"key": {"$ref": "common.schema.json#/$defs/key"},
|
|
826
|
+
"count": {"description": "All samples of the key in the test.", "type": "integer", "minimum": 1},
|
|
827
|
+
"totalMs": {"$ref": "common.schema.json#/$defs/ms"}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"violatedKeys": {
|
|
832
|
+
"description": "Keys of the test with evaluation result fail, sorted, at most 10; length is min(10, violatedKeyCount) (checked by the parser).",
|
|
833
|
+
"type": "array",
|
|
834
|
+
"maxItems": 10,
|
|
835
|
+
"items": {"$ref": "common.schema.json#/$defs/key"}
|
|
836
|
+
},
|
|
837
|
+
"violatedKeyCount": {"description": "Keys of the test with evaluation result fail.", "$ref": "common.schema.json#/$defs/count"}
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"waterfall": {
|
|
841
|
+
"description": "One run of a test as a timeline (08-REQ-38); requests.length + omitted = requestCount (checked by the parser).",
|
|
842
|
+
"type": "object",
|
|
843
|
+
"additionalProperties": false,
|
|
844
|
+
"required": ["test", "totalMs", "requestCount", "spanMs", "requests", "omitted"],
|
|
845
|
+
"properties": {
|
|
846
|
+
"test": {"$ref": "#/$defs/testRef"},
|
|
847
|
+
"totalMs": {"description": "Sum of the durations of time-usable requests of this run.", "$ref": "common.schema.json#/$defs/ms"},
|
|
848
|
+
"requestCount": {"description": "All requests of this run.", "type": "integer", "minimum": 1},
|
|
849
|
+
"spanMs": {"description": "Largest offset + duration of all requests of this run.", "$ref": "common.schema.json#/$defs/ms"},
|
|
850
|
+
"requests": {
|
|
851
|
+
"description": "First 200 requests by offset, then by position in the samples attachment.",
|
|
852
|
+
"type": "array",
|
|
853
|
+
"maxItems": 200,
|
|
854
|
+
"items": {"$ref": "#/$defs/waterfallRequest"}
|
|
855
|
+
},
|
|
856
|
+
"omitted": {"description": "Requests of this run beyond the first 200.", "$ref": "common.schema.json#/$defs/count"}
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"waterfallRequest": {
|
|
860
|
+
"description": "Start of a request relative to the start of the test run (TestResult.startTime).",
|
|
861
|
+
"type": "object",
|
|
862
|
+
"additionalProperties": false,
|
|
863
|
+
"required": ["offset", "duration", "key", "status"],
|
|
864
|
+
"properties": {
|
|
865
|
+
"offset": {"description": "Whole ms from the start of the test run; 0 for requests that started earlier.", "type": "integer", "minimum": 0},
|
|
866
|
+
"duration": {
|
|
867
|
+
"description": "Duration of a time-usable request, otherwise null.",
|
|
868
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
869
|
+
},
|
|
870
|
+
"key": {"description": "Endpoint key (07).", "$ref": "common.schema.json#/$defs/key"},
|
|
871
|
+
"status": {"description": "Status label (08-REQ-05).", "type": "string", "pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING)$"}
|
|
347
872
|
}
|
|
348
873
|
},
|
|
349
874
|
"stats": {
|
|
@@ -370,7 +895,7 @@
|
|
|
370
895
|
"properties": {
|
|
371
896
|
"duration": {"$ref": "common.schema.json#/$defs/ms"},
|
|
372
897
|
"startedAt": {
|
|
373
|
-
"description": "Start of the request (startTime)
|
|
898
|
+
"description": "Start of the request (startTime), UTC.",
|
|
374
899
|
"$ref": "common.schema.json#/$defs/timestamp"
|
|
375
900
|
},
|
|
376
901
|
"test": {"$ref": "#/$defs/testRef"},
|
|
@@ -446,7 +971,7 @@
|
|
|
446
971
|
"check": {
|
|
447
972
|
"type": "object",
|
|
448
973
|
"additionalProperties": false,
|
|
449
|
-
"required": ["rule", "n", "actual", "observed", "limit", "passed", "hardLimitExceeded", "blocking"],
|
|
974
|
+
"required": ["rule", "n", "actual", "observed", "limit", "passed", "hardLimitExceeded", "blocking", "usage"],
|
|
450
975
|
"properties": {
|
|
451
976
|
"rule": {
|
|
452
977
|
"description": "Rule name (09, 5.2). apdex, wilson and errors compare a bound of a 95% interval (09-REQ-09).",
|
|
@@ -475,6 +1000,10 @@
|
|
|
475
1000
|
"blocking": {
|
|
476
1001
|
"description": "This failed check fails the run under the gate policy (D-16, D-17). False for passed checks.",
|
|
477
1002
|
"type": "boolean"
|
|
1003
|
+
},
|
|
1004
|
+
"usage": {
|
|
1005
|
+
"description": "Part of the limit used, 4 decimal places (11-REQ-30): actual / limit, for apdex (1 - actual) / (1 - limit); at most 1 for a passed check. Null when the limit leaves no headroom (limit 0, apdex limit 1) and the value is not at it, or in a report migrated from version 1.",
|
|
1006
|
+
"oneOf": [{"type": "number", "minimum": 0}, {"type": "null"}]
|
|
478
1007
|
}
|
|
479
1008
|
}
|
|
480
1009
|
},
|