playwright-performance-regression 0.1.0-next.0 → 0.1.0-next.3
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 +199 -0
- package/README.md +73 -52
- package/dist/{chunk-GCA73FFP.cjs → chunk-2JO5HVPC.cjs} +351 -44
- package/dist/{chunk-R2NPYGB7.cjs → chunk-44ASXVQN.cjs} +96 -198
- package/dist/{chunk-HES6BVZT.js → chunk-AQ2XKYNV.js} +349 -47
- package/dist/chunk-BAOTUUTV.cjs +611 -0
- package/dist/chunk-DX36GFOZ.js +558 -0
- package/dist/chunk-LTRHMBVY.js +5592 -0
- package/dist/{chunk-UTTU4FUC.js → chunk-MUZFQKGQ.js} +82 -184
- package/dist/cli.js +3500 -1157
- package/dist/config.cjs +91 -44
- package/dist/config.d.cts +4 -2
- package/dist/config.d.ts +4 -2
- package/dist/config.js +84 -37
- package/dist/fixture.cjs +5 -5
- package/dist/fixture.d.cts +2 -2
- package/dist/fixture.d.ts +2 -2
- package/dist/fixture.js +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +110 -22
- package/dist/index.d.ts +110 -22
- package/dist/index.js +1 -1
- package/dist/perf-api-Rm1h1O_-.d.cts +12 -0
- package/dist/perf-api-Rm1h1O_-.d.ts +12 -0
- package/dist/reporter.cjs +5204 -1209
- package/dist/reporter.js +2035 -254
- package/dist/test.cjs +4 -4
- package/dist/test.js +3 -3
- package/package.json +5 -3
- package/schemas/common.schema.json +2 -2
- package/schemas/config.schema.json +57 -21
- package/schemas/outcome.schema.json +1 -1
- package/schemas/run-report.schema.json +534 -19
- package/schemas/samples.schema.json +4 -39
- package/schemas/thresholds.schema.json +1 -1
- package/dist/chunk-6AB42SPF.js +0 -254
- package/dist/chunk-JEHUFIY3.js +0 -3390
- package/dist/chunk-LV3O2BAT.cjs +0 -319
- 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": 3},
|
|
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"},
|
|
@@ -50,6 +53,10 @@
|
|
|
50
53
|
"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
54
|
"$ref": "common.schema.json#/$defs/fingerprint"
|
|
52
55
|
},
|
|
56
|
+
"stepNormalization": {
|
|
57
|
+
"description": "Step normalization fingerprint (06-REQ-25); null when measure.steps is disabled. Copied to generated.normalization of derived step thresholds files.",
|
|
58
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/fingerprint"}, {"type": "null"}]
|
|
59
|
+
},
|
|
53
60
|
"ci": {
|
|
54
61
|
"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
62
|
"oneOf": [{"$ref": "#/$defs/ciInfo"}, {"type": "null"}]
|
|
@@ -74,6 +81,29 @@
|
|
|
74
81
|
"required": ["version"],
|
|
75
82
|
"properties": {"version": {"description": "FullConfig.version", "type": "string"}}
|
|
76
83
|
},
|
|
84
|
+
"passes": {
|
|
85
|
+
"description": "Passes of the run (D-39, 02-REQ-37): the test command runs once per pass and the first pass merges them.",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["planned", "completed", "failed"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"planned": {
|
|
91
|
+
"description": "Passes of the run (run.passes.<mode>, PW_PERF_PASSES).",
|
|
92
|
+
"type": "integer",
|
|
93
|
+
"minimum": 1
|
|
94
|
+
},
|
|
95
|
+
"completed": {
|
|
96
|
+
"description": "Passes whose data are in the report, including the first one.",
|
|
97
|
+
"type": "integer",
|
|
98
|
+
"minimum": 1
|
|
99
|
+
},
|
|
100
|
+
"failed": {
|
|
101
|
+
"description": "Numbers of passes without data (RUN_PASS_FAILED), ascending.",
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": { "type": "integer", "minimum": 2 }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
77
107
|
"runConditions": {
|
|
78
108
|
"description": "Effective run conditions read from FullConfig in onBegin (ADR-0006).",
|
|
79
109
|
"type": "object",
|
|
@@ -120,7 +150,7 @@
|
|
|
120
150
|
}
|
|
121
151
|
},
|
|
122
152
|
"evaluation": {
|
|
123
|
-
"description": "Run-level evaluation summary. Per-key details live in endpoints
|
|
153
|
+
"description": "Run-level evaluation summary. Per-key details live in endpoints and steps (02-REQ-15).",
|
|
124
154
|
"type": "object",
|
|
125
155
|
"additionalProperties": false,
|
|
126
156
|
"required": ["status", "gateEnabled", "counts"],
|
|
@@ -130,8 +160,8 @@
|
|
|
130
160
|
"counts": {
|
|
131
161
|
"type": "object",
|
|
132
162
|
"additionalProperties": false,
|
|
133
|
-
"required": ["api", "
|
|
134
|
-
"properties": {"api": {"$ref": "#/$defs/evaluationCounts"}, "
|
|
163
|
+
"required": ["api", "step"],
|
|
164
|
+
"properties": {"api": {"$ref": "#/$defs/evaluationCounts"}, "step": {"$ref": "#/$defs/evaluationCounts"}}
|
|
135
165
|
}
|
|
136
166
|
}
|
|
137
167
|
},
|
|
@@ -142,7 +172,7 @@
|
|
|
142
172
|
},
|
|
143
173
|
"warnings": {"type": "array", "items": {"$ref": "common.schema.json#/$defs/issue"}},
|
|
144
174
|
"toolErrors": {
|
|
145
|
-
"description": "Problems that make the run result incomplete or untrustworthy; non-empty means exit code 3 (09-REQ-23). Collector
|
|
175
|
+
"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
176
|
"type": "array",
|
|
147
177
|
"items": {"$ref": "common.schema.json#/$defs/issue"}
|
|
148
178
|
},
|
|
@@ -166,11 +196,37 @@
|
|
|
166
196
|
"propertyNames": {"$ref": "common.schema.json#/$defs/key"},
|
|
167
197
|
"additionalProperties": {"$ref": "#/$defs/aggregate"}
|
|
168
198
|
},
|
|
169
|
-
"
|
|
170
|
-
"description": "Aggregates of
|
|
199
|
+
"steps": {
|
|
200
|
+
"description": "Aggregates of test.step durations by step key (06); empty when measure.steps is disabled.",
|
|
171
201
|
"type": "object",
|
|
172
202
|
"propertyNames": {"$ref": "common.schema.json#/$defs/key"},
|
|
173
|
-
"additionalProperties": {"$ref": "#/$defs/
|
|
203
|
+
"additionalProperties": {"$ref": "#/$defs/stepAggregate"}
|
|
204
|
+
},
|
|
205
|
+
"testBreakdown": {
|
|
206
|
+
"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.",
|
|
207
|
+
"oneOf": [
|
|
208
|
+
{
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"required": ["tests", "omitted", "waterfalls"],
|
|
212
|
+
"properties": {
|
|
213
|
+
"tests": {
|
|
214
|
+
"description": "Tests with at least one api request, most expensive first; at most 500 (08-REQ-37).",
|
|
215
|
+
"type": "array",
|
|
216
|
+
"maxItems": 500,
|
|
217
|
+
"items": {"$ref": "#/$defs/testCost"}
|
|
218
|
+
},
|
|
219
|
+
"omitted": {"description": "Tests with requests beyond the first 500.", "$ref": "common.schema.json#/$defs/count"},
|
|
220
|
+
"waterfalls": {
|
|
221
|
+
"description": "Slowest test runs, one per test; at most 5 (08-REQ-38).",
|
|
222
|
+
"type": "array",
|
|
223
|
+
"maxItems": 5,
|
|
224
|
+
"items": {"$ref": "#/$defs/waterfall"}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{"type": "null"}
|
|
229
|
+
]
|
|
174
230
|
}
|
|
175
231
|
},
|
|
176
232
|
"$defs": {
|
|
@@ -255,16 +311,18 @@
|
|
|
255
311
|
"slowest",
|
|
256
312
|
"topTests",
|
|
257
313
|
"samples",
|
|
258
|
-
"evaluation"
|
|
314
|
+
"evaluation",
|
|
315
|
+
"histogram",
|
|
316
|
+
"hints"
|
|
259
317
|
],
|
|
260
318
|
"properties": {
|
|
261
319
|
"count": {"description": "All samples, successful or not.", "$ref": "common.schema.json#/$defs/count"},
|
|
262
320
|
"successCount": {
|
|
263
|
-
"description": "Successful samples with browser timing
|
|
321
|
+
"description": "Successful samples with browser timing; only these enter time statistics (08-REQ-02).",
|
|
264
322
|
"$ref": "common.schema.json#/$defs/count"
|
|
265
323
|
},
|
|
266
324
|
"errorCount": {
|
|
267
|
-
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses
|
|
325
|
+
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses (08-REQ-05).",
|
|
268
326
|
"$ref": "common.schema.json#/$defs/count"
|
|
269
327
|
},
|
|
270
328
|
"fromFailedTests": {
|
|
@@ -276,7 +334,7 @@
|
|
|
276
334
|
"$ref": "common.schema.json#/$defs/count"
|
|
277
335
|
},
|
|
278
336
|
"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).
|
|
337
|
+
"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
338
|
"type": "object",
|
|
281
339
|
"propertyNames": {"pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$"},
|
|
282
340
|
"additionalProperties": {"type": "integer", "minimum": 1}
|
|
@@ -292,13 +350,20 @@
|
|
|
292
350
|
"oneOf": [{"$ref": "#/$defs/stats"}, {"type": "null"}]
|
|
293
351
|
},
|
|
294
352
|
"ttfb": {
|
|
295
|
-
"description": "TTFB of successful samples that have it. Null
|
|
353
|
+
"description": "TTFB of successful samples that have it. Null when no sample has TTFB.",
|
|
296
354
|
"oneOf": [
|
|
297
355
|
{
|
|
298
356
|
"type": "object",
|
|
299
357
|
"additionalProperties": false,
|
|
300
|
-
"required": ["p50", "p95"],
|
|
301
|
-
"properties": {
|
|
358
|
+
"required": ["p50", "p95", "otherP50"],
|
|
359
|
+
"properties": {
|
|
360
|
+
"p50": {"$ref": "common.schema.json#/$defs/ms"},
|
|
361
|
+
"p95": {"$ref": "common.schema.json#/$defs/ms"},
|
|
362
|
+
"otherP50": {
|
|
363
|
+
"description": "p50 of max(0, duration - ttfb) over the samples of p50 (08-REQ-35); null only in a report migrated from version 1.",
|
|
364
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
302
367
|
},
|
|
303
368
|
{"type": "null"}
|
|
304
369
|
]
|
|
@@ -343,7 +408,453 @@
|
|
|
343
408
|
}
|
|
344
409
|
}
|
|
345
410
|
},
|
|
346
|
-
"evaluation": {"$ref": "#/$defs/keyEvaluation"}
|
|
411
|
+
"evaluation": {"$ref": "#/$defs/keyEvaluation"},
|
|
412
|
+
"histogram": {
|
|
413
|
+
"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.",
|
|
414
|
+
"oneOf": [
|
|
415
|
+
{
|
|
416
|
+
"type": "object",
|
|
417
|
+
"additionalProperties": false,
|
|
418
|
+
"required": ["edges", "counts"],
|
|
419
|
+
"properties": {
|
|
420
|
+
"edges": {
|
|
421
|
+
"description": "Bin edges in ms, strictly ascending (checked by the parser); constants of the scale, not rounded to 0.1 ms.",
|
|
422
|
+
"type": "array",
|
|
423
|
+
"minItems": 2,
|
|
424
|
+
"maxItems": 31,
|
|
425
|
+
"items": {"type": "number", "minimum": 0}
|
|
426
|
+
},
|
|
427
|
+
"counts": {
|
|
428
|
+
"description": "Retained durations per bin.",
|
|
429
|
+
"type": "array",
|
|
430
|
+
"minItems": 1,
|
|
431
|
+
"maxItems": 30,
|
|
432
|
+
"items": {"$ref": "common.schema.json#/$defs/count"}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{"type": "null"}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"hints": {
|
|
440
|
+
"description": "Hints that explain the result of the key, in rule priority order (11-REQ-34); at most 3.",
|
|
441
|
+
"type": "array",
|
|
442
|
+
"maxItems": 3,
|
|
443
|
+
"items": {"$ref": "#/$defs/hint"}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"stepAggregate": {
|
|
448
|
+
"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.",
|
|
449
|
+
"type": "object",
|
|
450
|
+
"additionalProperties": false,
|
|
451
|
+
"required": [
|
|
452
|
+
"count",
|
|
453
|
+
"successCount",
|
|
454
|
+
"errorCount",
|
|
455
|
+
"fromFailedTests",
|
|
456
|
+
"testCount",
|
|
457
|
+
"statuses",
|
|
458
|
+
"timeSources",
|
|
459
|
+
"stats",
|
|
460
|
+
"ttfb",
|
|
461
|
+
"slowest",
|
|
462
|
+
"topTests",
|
|
463
|
+
"samples",
|
|
464
|
+
"evaluation",
|
|
465
|
+
"histogram",
|
|
466
|
+
"hints",
|
|
467
|
+
"location",
|
|
468
|
+
"stepErrorsFromFailedTests"
|
|
469
|
+
],
|
|
470
|
+
"properties": {
|
|
471
|
+
"count": {
|
|
472
|
+
"description": "All samples, successful or not.",
|
|
473
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
474
|
+
},
|
|
475
|
+
"successCount": {
|
|
476
|
+
"description": "Successful samples with browser timing; only these enter time statistics (08-REQ-02).",
|
|
477
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
478
|
+
},
|
|
479
|
+
"errorCount": {
|
|
480
|
+
"description": "Samples counted as errors: endpoints with a status in checks.errors.statuses (08-REQ-05).",
|
|
481
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
482
|
+
},
|
|
483
|
+
"fromFailedTests": {
|
|
484
|
+
"description": "Samples that came from tests that did not pass (D-05).",
|
|
485
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
486
|
+
},
|
|
487
|
+
"testCount": {
|
|
488
|
+
"description": "Distinct tests in which the key occurred; repetitions of the same test count once (08-REQ-06).",
|
|
489
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
490
|
+
},
|
|
491
|
+
"statuses": {
|
|
492
|
+
"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).",
|
|
493
|
+
"type": "object",
|
|
494
|
+
"propertyNames": {
|
|
495
|
+
"pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$"
|
|
496
|
+
},
|
|
497
|
+
"additionalProperties": {
|
|
498
|
+
"type": "integer",
|
|
499
|
+
"minimum": 1
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"timeSources": {
|
|
503
|
+
"type": "object",
|
|
504
|
+
"additionalProperties": false,
|
|
505
|
+
"required": [
|
|
506
|
+
"browser",
|
|
507
|
+
"node"
|
|
508
|
+
],
|
|
509
|
+
"properties": {
|
|
510
|
+
"browser": {
|
|
511
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
512
|
+
},
|
|
513
|
+
"node": {
|
|
514
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"stats": {
|
|
519
|
+
"description": "Time statistics of successful samples; null when successCount is 0.",
|
|
520
|
+
"oneOf": [
|
|
521
|
+
{
|
|
522
|
+
"$ref": "#/$defs/stats"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "null"
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"ttfb": {
|
|
530
|
+
"description": "TTFB of successful samples that have it. Null when no sample has TTFB.",
|
|
531
|
+
"oneOf": [
|
|
532
|
+
{
|
|
533
|
+
"type": "object",
|
|
534
|
+
"additionalProperties": false,
|
|
535
|
+
"required": [
|
|
536
|
+
"p50",
|
|
537
|
+
"p95",
|
|
538
|
+
"otherP50"
|
|
539
|
+
],
|
|
540
|
+
"properties": {
|
|
541
|
+
"p50": {
|
|
542
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
543
|
+
},
|
|
544
|
+
"p95": {
|
|
545
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
546
|
+
},
|
|
547
|
+
"otherP50": {
|
|
548
|
+
"description": "p50 of max(0, duration - ttfb) over the samples of p50 (08-REQ-35); null only in a report migrated from version 1.",
|
|
549
|
+
"oneOf": [
|
|
550
|
+
{
|
|
551
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"type": "null"
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"type": "null"
|
|
562
|
+
}
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
"slowest": {
|
|
566
|
+
"description": "Up to 3 slowest successful samples, slowest first.",
|
|
567
|
+
"type": "array",
|
|
568
|
+
"maxItems": 3,
|
|
569
|
+
"items": {
|
|
570
|
+
"$ref": "#/$defs/slowSample"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"topTests": {
|
|
574
|
+
"description": "Up to 5 tests with the most samples of this key (08-REQ-33), most samples first.",
|
|
575
|
+
"type": "array",
|
|
576
|
+
"maxItems": 5,
|
|
577
|
+
"items": {
|
|
578
|
+
"type": "object",
|
|
579
|
+
"additionalProperties": false,
|
|
580
|
+
"required": [
|
|
581
|
+
"title",
|
|
582
|
+
"project",
|
|
583
|
+
"file",
|
|
584
|
+
"line",
|
|
585
|
+
"sampleCount"
|
|
586
|
+
],
|
|
587
|
+
"properties": {
|
|
588
|
+
"title": {
|
|
589
|
+
"type": "string"
|
|
590
|
+
},
|
|
591
|
+
"project": {
|
|
592
|
+
"type": "string"
|
|
593
|
+
},
|
|
594
|
+
"file": {
|
|
595
|
+
"type": "string"
|
|
596
|
+
},
|
|
597
|
+
"line": {
|
|
598
|
+
"type": "integer",
|
|
599
|
+
"minimum": 1
|
|
600
|
+
},
|
|
601
|
+
"sampleCount": {
|
|
602
|
+
"description": "Samples of this key from all repetitions of the test.",
|
|
603
|
+
"type": "integer",
|
|
604
|
+
"minimum": 1
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"samples": {
|
|
610
|
+
"description": "Retained successful durations, used to derive thresholds without rerunning tests (thresholds --from).",
|
|
611
|
+
"type": "object",
|
|
612
|
+
"additionalProperties": false,
|
|
613
|
+
"required": [
|
|
614
|
+
"durations",
|
|
615
|
+
"sampled"
|
|
616
|
+
],
|
|
617
|
+
"properties": {
|
|
618
|
+
"durations": {
|
|
619
|
+
"description": "Sorted ascending. At most advanced.maxSamplesPerKey values (08).",
|
|
620
|
+
"type": "array",
|
|
621
|
+
"items": {
|
|
622
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
"sampled": {
|
|
626
|
+
"description": "True when successCount exceeded the limit and durations is a seeded uniform sample (P-06).",
|
|
627
|
+
"type": "boolean"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"evaluation": {
|
|
632
|
+
"$ref": "#/$defs/keyEvaluation"
|
|
633
|
+
},
|
|
634
|
+
"histogram": {
|
|
635
|
+
"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.",
|
|
636
|
+
"oneOf": [
|
|
637
|
+
{
|
|
638
|
+
"type": "object",
|
|
639
|
+
"additionalProperties": false,
|
|
640
|
+
"required": [
|
|
641
|
+
"edges",
|
|
642
|
+
"counts"
|
|
643
|
+
],
|
|
644
|
+
"properties": {
|
|
645
|
+
"edges": {
|
|
646
|
+
"description": "Bin edges in ms, strictly ascending (checked by the parser); constants of the scale, not rounded to 0.1 ms.",
|
|
647
|
+
"type": "array",
|
|
648
|
+
"minItems": 2,
|
|
649
|
+
"maxItems": 31,
|
|
650
|
+
"items": {
|
|
651
|
+
"type": "number",
|
|
652
|
+
"minimum": 0
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"counts": {
|
|
656
|
+
"description": "Retained durations per bin.",
|
|
657
|
+
"type": "array",
|
|
658
|
+
"minItems": 1,
|
|
659
|
+
"maxItems": 30,
|
|
660
|
+
"items": {
|
|
661
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "null"
|
|
668
|
+
}
|
|
669
|
+
]
|
|
670
|
+
},
|
|
671
|
+
"hints": {
|
|
672
|
+
"description": "Hints that explain the result of the key, in rule priority order (11-REQ-34); at most 3.",
|
|
673
|
+
"type": "array",
|
|
674
|
+
"maxItems": 3,
|
|
675
|
+
"items": {
|
|
676
|
+
"$ref": "#/$defs/hint"
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"location": {
|
|
680
|
+
"description": "Smallest (file, line) location among the key's samples, file relative to configDir with '/'; null when no sample has one (06-REQ-28).",
|
|
681
|
+
"oneOf": [
|
|
682
|
+
{
|
|
683
|
+
"type": "object",
|
|
684
|
+
"additionalProperties": false,
|
|
685
|
+
"required": [
|
|
686
|
+
"file",
|
|
687
|
+
"line"
|
|
688
|
+
],
|
|
689
|
+
"properties": {
|
|
690
|
+
"file": {
|
|
691
|
+
"type": "string",
|
|
692
|
+
"minLength": 1
|
|
693
|
+
},
|
|
694
|
+
"line": {
|
|
695
|
+
"type": "integer",
|
|
696
|
+
"minimum": 1
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"type": "null"
|
|
702
|
+
}
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
"stepErrorsFromFailedTests": {
|
|
706
|
+
"description": "error and unfinished samples from failed tests; not counted in errorCount or the errors rule (06-REQ-32).",
|
|
707
|
+
"$ref": "common.schema.json#/$defs/count"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"hint": {
|
|
712
|
+
"description": "A rule-based one-sentence explanation of the key result; the HTML report builds the text from code and params (11-REQ-34).",
|
|
713
|
+
"type": "object",
|
|
714
|
+
"additionalProperties": false,
|
|
715
|
+
"required": ["code", "params"],
|
|
716
|
+
"properties": {
|
|
717
|
+
"code": {
|
|
718
|
+
"description": "Hint rule.",
|
|
719
|
+
"enum": [
|
|
720
|
+
"HINT_HARD_LIMIT",
|
|
721
|
+
"HINT_SLOWDOWN",
|
|
722
|
+
"HINT_TAIL",
|
|
723
|
+
"HINT_SHIFT",
|
|
724
|
+
"HINT_OUTLIERS",
|
|
725
|
+
"HINT_ERRORS_DOMINANT",
|
|
726
|
+
"HINT_ERRORS_MIXED",
|
|
727
|
+
"HINT_APDEX",
|
|
728
|
+
"HINT_SLOW_SHARE",
|
|
729
|
+
"HINT_MEDIAN_ONLY",
|
|
730
|
+
"HINT_MUTED",
|
|
731
|
+
"HINT_FAILED_TESTS",
|
|
732
|
+
"HINT_NEAR_LIMIT"
|
|
733
|
+
]
|
|
734
|
+
},
|
|
735
|
+
"params": {
|
|
736
|
+
"description": "Numbers and names for the text template; the fields per code are listed in 11-REQ-34.",
|
|
737
|
+
"type": "object",
|
|
738
|
+
"propertyNames": {
|
|
739
|
+
"enum": [
|
|
740
|
+
"rule",
|
|
741
|
+
"usage",
|
|
742
|
+
"medianUsage",
|
|
743
|
+
"factor",
|
|
744
|
+
"max",
|
|
745
|
+
"rate",
|
|
746
|
+
"limit",
|
|
747
|
+
"label",
|
|
748
|
+
"count",
|
|
749
|
+
"errors",
|
|
750
|
+
"label1",
|
|
751
|
+
"count1",
|
|
752
|
+
"label2",
|
|
753
|
+
"count2",
|
|
754
|
+
"label3",
|
|
755
|
+
"count3",
|
|
756
|
+
"apdex",
|
|
757
|
+
"share",
|
|
758
|
+
"t",
|
|
759
|
+
"n"
|
|
760
|
+
]
|
|
761
|
+
},
|
|
762
|
+
"additionalProperties": {"oneOf": [{"type": "string"}, {"type": "number"}]}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"testCost": {
|
|
767
|
+
"description": "Cost of one test for the backend over all its runs: api requests only (08-REQ-37).",
|
|
768
|
+
"type": "object",
|
|
769
|
+
"additionalProperties": false,
|
|
770
|
+
"required": [
|
|
771
|
+
"title",
|
|
772
|
+
"project",
|
|
773
|
+
"file",
|
|
774
|
+
"line",
|
|
775
|
+
"executions",
|
|
776
|
+
"requestCount",
|
|
777
|
+
"errorCount",
|
|
778
|
+
"totalMs",
|
|
779
|
+
"maxRequestMs",
|
|
780
|
+
"keyCount",
|
|
781
|
+
"topKeys",
|
|
782
|
+
"violatedKeys",
|
|
783
|
+
"violatedKeyCount"
|
|
784
|
+
],
|
|
785
|
+
"properties": {
|
|
786
|
+
"title": {"description": "Titles from the outermost describe to the test, joined with ' › '.", "type": "string"},
|
|
787
|
+
"project": {"type": "string"},
|
|
788
|
+
"file": {"description": "Relative to configDir, with forward slashes.", "type": "string"},
|
|
789
|
+
"line": {"type": "integer", "minimum": 1},
|
|
790
|
+
"executions": {"description": "Test results with a samples attachment, also without requests.", "type": "integer", "minimum": 1},
|
|
791
|
+
"requestCount": {"description": "All request samples of the test from all runs.", "type": "integer", "minimum": 1},
|
|
792
|
+
"errorCount": {"description": "Request samples counted as errors (08-REQ-30).", "$ref": "common.schema.json#/$defs/count"},
|
|
793
|
+
"totalMs": {
|
|
794
|
+
"description": "Sum of the durations of time-usable requests from all runs; parallel requests count in full.",
|
|
795
|
+
"$ref": "common.schema.json#/$defs/ms"
|
|
796
|
+
},
|
|
797
|
+
"maxRequestMs": {
|
|
798
|
+
"description": "Longest time-usable request, or null when there is none.",
|
|
799
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
800
|
+
},
|
|
801
|
+
"keyCount": {"description": "Distinct endpoint keys called by the test.", "type": "integer", "minimum": 1},
|
|
802
|
+
"topKeys": {
|
|
803
|
+
"description": "Up to 3 keys with the largest totalMs, then count, then key.",
|
|
804
|
+
"type": "array",
|
|
805
|
+
"maxItems": 3,
|
|
806
|
+
"items": {
|
|
807
|
+
"type": "object",
|
|
808
|
+
"additionalProperties": false,
|
|
809
|
+
"required": ["key", "count", "totalMs"],
|
|
810
|
+
"properties": {
|
|
811
|
+
"key": {"$ref": "common.schema.json#/$defs/key"},
|
|
812
|
+
"count": {"description": "All samples of the key in the test.", "type": "integer", "minimum": 1},
|
|
813
|
+
"totalMs": {"$ref": "common.schema.json#/$defs/ms"}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"violatedKeys": {
|
|
818
|
+
"description": "Keys of the test with evaluation result fail, sorted, at most 10; length is min(10, violatedKeyCount) (checked by the parser).",
|
|
819
|
+
"type": "array",
|
|
820
|
+
"maxItems": 10,
|
|
821
|
+
"items": {"$ref": "common.schema.json#/$defs/key"}
|
|
822
|
+
},
|
|
823
|
+
"violatedKeyCount": {"description": "Keys of the test with evaluation result fail.", "$ref": "common.schema.json#/$defs/count"}
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"waterfall": {
|
|
827
|
+
"description": "One run of a test as a timeline (08-REQ-38); requests.length + omitted = requestCount (checked by the parser).",
|
|
828
|
+
"type": "object",
|
|
829
|
+
"additionalProperties": false,
|
|
830
|
+
"required": ["test", "totalMs", "requestCount", "spanMs", "requests", "omitted"],
|
|
831
|
+
"properties": {
|
|
832
|
+
"test": {"$ref": "#/$defs/testRef"},
|
|
833
|
+
"totalMs": {"description": "Sum of the durations of time-usable requests of this run.", "$ref": "common.schema.json#/$defs/ms"},
|
|
834
|
+
"requestCount": {"description": "All requests of this run.", "type": "integer", "minimum": 1},
|
|
835
|
+
"spanMs": {"description": "Largest offset + duration of all requests of this run.", "$ref": "common.schema.json#/$defs/ms"},
|
|
836
|
+
"requests": {
|
|
837
|
+
"description": "First 200 requests by offset, then by position in the samples attachment.",
|
|
838
|
+
"type": "array",
|
|
839
|
+
"maxItems": 200,
|
|
840
|
+
"items": {"$ref": "#/$defs/waterfallRequest"}
|
|
841
|
+
},
|
|
842
|
+
"omitted": {"description": "Requests of this run beyond the first 200.", "$ref": "common.schema.json#/$defs/count"}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"waterfallRequest": {
|
|
846
|
+
"description": "Start of a request relative to the start of the test run (TestResult.startTime).",
|
|
847
|
+
"type": "object",
|
|
848
|
+
"additionalProperties": false,
|
|
849
|
+
"required": ["offset", "duration", "key", "status"],
|
|
850
|
+
"properties": {
|
|
851
|
+
"offset": {"description": "Whole ms from the start of the test run; 0 for requests that started earlier.", "type": "integer", "minimum": 0},
|
|
852
|
+
"duration": {
|
|
853
|
+
"description": "Duration of a time-usable request, otherwise null.",
|
|
854
|
+
"oneOf": [{"$ref": "common.schema.json#/$defs/ms"}, {"type": "null"}]
|
|
855
|
+
},
|
|
856
|
+
"key": {"description": "Endpoint key (07).", "$ref": "common.schema.json#/$defs/key"},
|
|
857
|
+
"status": {"description": "Status label (08-REQ-05).", "type": "string", "pattern": "^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING)$"}
|
|
347
858
|
}
|
|
348
859
|
},
|
|
349
860
|
"stats": {
|
|
@@ -370,7 +881,7 @@
|
|
|
370
881
|
"properties": {
|
|
371
882
|
"duration": {"$ref": "common.schema.json#/$defs/ms"},
|
|
372
883
|
"startedAt": {
|
|
373
|
-
"description": "Start of the request (startTime)
|
|
884
|
+
"description": "Start of the request (startTime), UTC.",
|
|
374
885
|
"$ref": "common.schema.json#/$defs/timestamp"
|
|
375
886
|
},
|
|
376
887
|
"test": {"$ref": "#/$defs/testRef"},
|
|
@@ -446,7 +957,7 @@
|
|
|
446
957
|
"check": {
|
|
447
958
|
"type": "object",
|
|
448
959
|
"additionalProperties": false,
|
|
449
|
-
"required": ["rule", "n", "actual", "observed", "limit", "passed", "hardLimitExceeded", "blocking"],
|
|
960
|
+
"required": ["rule", "n", "actual", "observed", "limit", "passed", "hardLimitExceeded", "blocking", "usage"],
|
|
450
961
|
"properties": {
|
|
451
962
|
"rule": {
|
|
452
963
|
"description": "Rule name (09, 5.2). apdex, wilson and errors compare a bound of a 95% interval (09-REQ-09).",
|
|
@@ -475,6 +986,10 @@
|
|
|
475
986
|
"blocking": {
|
|
476
987
|
"description": "This failed check fails the run under the gate policy (D-16, D-17). False for passed checks.",
|
|
477
988
|
"type": "boolean"
|
|
989
|
+
},
|
|
990
|
+
"usage": {
|
|
991
|
+
"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.",
|
|
992
|
+
"oneOf": [{"type": "number", "minimum": 0}, {"type": "null"}]
|
|
478
993
|
}
|
|
479
994
|
}
|
|
480
995
|
},
|