playwright-performance-regression 0.1.0-next.4 → 1.0.0
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 +138 -0
- package/README.md +16 -17
- package/dist/{chunk-E2IX265O.js → chunk-4WX3Z5MJ.js} +2 -2
- package/dist/{chunk-CISGJCFW.js → chunk-5Y34Q4DR.js} +3 -3
- package/dist/{chunk-CXE5IWZY.js → chunk-B4XTLSRN.js} +169 -29
- package/dist/{chunk-KELMALEG.cjs → chunk-PWK5XSP2.cjs} +25 -25
- package/dist/{chunk-IUI4AFE5.cjs → chunk-VREOANPX.cjs} +1 -1
- package/dist/{chunk-LUA4WRIQ.cjs → chunk-W7NEFS5V.cjs} +3 -3
- package/dist/{chunk-RL27E3AB.js → chunk-YKBX6SAT.js} +1 -1
- package/dist/cli.js +398 -786
- package/dist/config.cjs +16 -16
- package/dist/config.js +3 -3
- package/dist/fixture.cjs +6 -6
- package/dist/fixture.js +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/dist/reporter.cjs +1356 -644
- package/dist/reporter.js +829 -253
- package/dist/test.cjs +4 -4
- package/dist/test.js +3 -3
- package/package.json +1 -3
- package/schemas/config.schema.json +8 -3
package/dist/reporter.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkVREOANPX_cjs = require('./chunk-VREOANPX.cjs');
|
|
6
|
+
var chunkW7NEFS5V_cjs = require('./chunk-W7NEFS5V.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var os = require('os');
|
|
@@ -188,6 +188,51 @@ function stringifyStable(value) {
|
|
|
188
188
|
`;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
// src/core/format/violation.ts
|
|
192
|
+
var TIME_RULES = /* @__PURE__ */ new Set([
|
|
193
|
+
"median",
|
|
194
|
+
"percentile",
|
|
195
|
+
"p99"
|
|
196
|
+
]);
|
|
197
|
+
var SHARE_RULES = /* @__PURE__ */ new Set([
|
|
198
|
+
"apdex",
|
|
199
|
+
"wilson",
|
|
200
|
+
"errors"
|
|
201
|
+
]);
|
|
202
|
+
function exceedance(check2) {
|
|
203
|
+
if (check2.rule === "apdex") return check2.actual === 0 ? Infinity : check2.limit / check2.actual;
|
|
204
|
+
return check2.limit === 0 ? Infinity : check2.actual / check2.limit;
|
|
205
|
+
}
|
|
206
|
+
function overText(check2) {
|
|
207
|
+
if (SHARE_RULES.has(check2.rule)) {
|
|
208
|
+
const points = Math.max(1, Math.round(Math.abs(check2.actual - check2.limit) * 100));
|
|
209
|
+
return `+${String(points)} pp`;
|
|
210
|
+
}
|
|
211
|
+
const r2 = exceedance(check2);
|
|
212
|
+
if (!Number.isFinite(r2)) return ">999%";
|
|
213
|
+
const over = Math.max(1, Math.round((r2 - 1) * 100));
|
|
214
|
+
return over > 999 ? ">999%" : `+${String(over)}%`;
|
|
215
|
+
}
|
|
216
|
+
function formatFactor(ratio2, threshold = null) {
|
|
217
|
+
const scaled = Math.round(ratio2 * 1e6) / 1e4;
|
|
218
|
+
let hundredths = Math.round(scaled);
|
|
219
|
+
if (threshold !== null && hundredths / 100 <= threshold && ratio2 > threshold) {
|
|
220
|
+
hundredths = Math.ceil(scaled);
|
|
221
|
+
}
|
|
222
|
+
return (hundredths / 100).toFixed(2);
|
|
223
|
+
}
|
|
224
|
+
function formatMs(ms2) {
|
|
225
|
+
return `${Math.round(ms2)} ms`;
|
|
226
|
+
}
|
|
227
|
+
function formatActual(check2) {
|
|
228
|
+
if (TIME_RULES.has(check2.rule)) return formatMs(check2.actual);
|
|
229
|
+
const observed = check2.observed === null ? "" : ` (${check2.observed.toFixed(3)})`;
|
|
230
|
+
return `${check2.actual.toFixed(3)}${observed}`;
|
|
231
|
+
}
|
|
232
|
+
function formatLimit(check2) {
|
|
233
|
+
return TIME_RULES.has(check2.rule) ? formatMs(check2.limit) : check2.limit.toFixed(3);
|
|
234
|
+
}
|
|
235
|
+
|
|
191
236
|
// src/io/json.ts
|
|
192
237
|
async function writeTextAtomic(path$1, text2) {
|
|
193
238
|
const dir = path.dirname(path$1);
|
|
@@ -362,33 +407,33 @@ function readHostInfo(env) {
|
|
|
362
407
|
}
|
|
363
408
|
|
|
364
409
|
// src/core/schema/formats.ts
|
|
365
|
-
var nonEmpty =
|
|
366
|
-
var nonEmptyOrNull =
|
|
410
|
+
var nonEmpty = chunkW7NEFS5V_cjs.str({ minLength: 1 });
|
|
411
|
+
var nonEmptyOrNull = chunkW7NEFS5V_cjs.nullable(nonEmpty);
|
|
367
412
|
function present(value, pointer, sink, properties) {
|
|
368
413
|
for (const [name, schema] of Object.entries(properties)) {
|
|
369
414
|
if (Object.hasOwn(value, name)) schema.check(value[name], `${pointer}/${name}`, sink);
|
|
370
415
|
}
|
|
371
416
|
}
|
|
372
417
|
var noTiming = {
|
|
373
|
-
duration:
|
|
374
|
-
requestStart:
|
|
375
|
-
ttfb:
|
|
376
|
-
timeSource:
|
|
377
|
-
fromServiceWorker:
|
|
418
|
+
duration: chunkW7NEFS5V_cjs.nul,
|
|
419
|
+
requestStart: chunkW7NEFS5V_cjs.nul,
|
|
420
|
+
ttfb: chunkW7NEFS5V_cjs.nul,
|
|
421
|
+
timeSource: chunkW7NEFS5V_cjs.constant("browser"),
|
|
422
|
+
fromServiceWorker: chunkW7NEFS5V_cjs.constant(false)
|
|
378
423
|
};
|
|
379
|
-
var requestSample =
|
|
424
|
+
var requestSample = chunkW7NEFS5V_cjs.obj(
|
|
380
425
|
{
|
|
381
|
-
method:
|
|
426
|
+
method: chunkW7NEFS5V_cjs.str({ pattern: /^[A-Z]+$/u }),
|
|
382
427
|
url: nonEmpty,
|
|
383
428
|
resourceType: nonEmpty,
|
|
384
|
-
status:
|
|
429
|
+
status: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.int({ minimum: 100, maximum: 599 }), chunkW7NEFS5V_cjs.constant("FAILED"), chunkW7NEFS5V_cjs.constant("PENDING")),
|
|
385
430
|
failureText: nonEmpty,
|
|
386
|
-
startTime:
|
|
387
|
-
duration:
|
|
388
|
-
requestStart:
|
|
389
|
-
ttfb:
|
|
390
|
-
timeSource:
|
|
391
|
-
fromServiceWorker:
|
|
431
|
+
startTime: chunkW7NEFS5V_cjs.epochMs,
|
|
432
|
+
duration: chunkW7NEFS5V_cjs.msOrNull,
|
|
433
|
+
requestStart: chunkW7NEFS5V_cjs.msOrNull,
|
|
434
|
+
ttfb: chunkW7NEFS5V_cjs.msOrNull,
|
|
435
|
+
timeSource: chunkW7NEFS5V_cjs.enumOf(["browser", "node"]),
|
|
436
|
+
fromServiceWorker: chunkW7NEFS5V_cjs.bool
|
|
392
437
|
},
|
|
393
438
|
{
|
|
394
439
|
required: [
|
|
@@ -417,15 +462,15 @@ var requestSample = chunkLUA4WRIQ_cjs.obj(
|
|
|
417
462
|
}
|
|
418
463
|
}
|
|
419
464
|
);
|
|
420
|
-
var apiRequestSample =
|
|
465
|
+
var apiRequestSample = chunkW7NEFS5V_cjs.obj(
|
|
421
466
|
{
|
|
422
|
-
method:
|
|
467
|
+
method: chunkW7NEFS5V_cjs.str({ pattern: /^[A-Z]+$/u }),
|
|
423
468
|
url: nonEmpty,
|
|
424
|
-
status:
|
|
469
|
+
status: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.int({ minimum: 100, maximum: 599 }), chunkW7NEFS5V_cjs.constant("FAILED"), chunkW7NEFS5V_cjs.constant("PENDING")),
|
|
425
470
|
failureText: nonEmpty,
|
|
426
|
-
startTime:
|
|
427
|
-
duration:
|
|
428
|
-
source:
|
|
471
|
+
startTime: chunkW7NEFS5V_cjs.epochMs,
|
|
472
|
+
duration: chunkW7NEFS5V_cjs.msOrNull,
|
|
473
|
+
source: chunkW7NEFS5V_cjs.enumOf(["request", "context", "tracked"])
|
|
429
474
|
},
|
|
430
475
|
{
|
|
431
476
|
required: ["method", "url", "status", "startTime", "duration", "source"],
|
|
@@ -438,42 +483,42 @@ var apiRequestSample = chunkLUA4WRIQ_cjs.obj(
|
|
|
438
483
|
sink.add(`${pointer}/failureText`, "must NOT be present unless status is FAILED");
|
|
439
484
|
}
|
|
440
485
|
if (status === "FAILED" || status === "PENDING" || !Object.hasOwn(value, "status")) {
|
|
441
|
-
present(value, pointer, sink, { duration:
|
|
486
|
+
present(value, pointer, sink, { duration: chunkW7NEFS5V_cjs.nul });
|
|
442
487
|
}
|
|
443
488
|
}
|
|
444
489
|
}
|
|
445
490
|
);
|
|
446
|
-
var sampleBatch =
|
|
491
|
+
var sampleBatch = chunkW7NEFS5V_cjs.obj(
|
|
447
492
|
{
|
|
448
|
-
schemaVersion:
|
|
449
|
-
collector:
|
|
493
|
+
schemaVersion: chunkW7NEFS5V_cjs.constant(3),
|
|
494
|
+
collector: chunkW7NEFS5V_cjs.obj(
|
|
450
495
|
{
|
|
451
|
-
name:
|
|
496
|
+
name: chunkW7NEFS5V_cjs.str({ pattern: /^[a-z0-9-]+$/u }),
|
|
452
497
|
version: nonEmpty,
|
|
453
498
|
browserName: nonEmptyOrNull
|
|
454
499
|
},
|
|
455
500
|
{ required: ["name", "version", "browserName"] }
|
|
456
501
|
),
|
|
457
|
-
requests:
|
|
458
|
-
apiRequests:
|
|
459
|
-
diagnostics:
|
|
502
|
+
requests: chunkW7NEFS5V_cjs.arr(requestSample),
|
|
503
|
+
apiRequests: chunkW7NEFS5V_cjs.arr(apiRequestSample),
|
|
504
|
+
diagnostics: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.issue)
|
|
460
505
|
},
|
|
461
506
|
{ required: ["schemaVersion", "collector", "requests", "apiRequests", "diagnostics"] }
|
|
462
507
|
);
|
|
463
508
|
var LIMIT_FIELDS = ["t", "median", "percentile", "p99", "minApdex", "maxWilson", "maxErrorRate"];
|
|
464
|
-
var thresholdsEntry =
|
|
509
|
+
var thresholdsEntry = chunkW7NEFS5V_cjs.obj(
|
|
465
510
|
{
|
|
466
|
-
t:
|
|
467
|
-
median:
|
|
468
|
-
percentile:
|
|
469
|
-
p99:
|
|
470
|
-
minApdex:
|
|
471
|
-
maxWilson:
|
|
472
|
-
maxErrorRate:
|
|
473
|
-
locked:
|
|
474
|
-
note:
|
|
475
|
-
gate:
|
|
476
|
-
until:
|
|
511
|
+
t: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.msLimit),
|
|
512
|
+
median: chunkW7NEFS5V_cjs.msLimit,
|
|
513
|
+
percentile: chunkW7NEFS5V_cjs.msLimit,
|
|
514
|
+
p99: chunkW7NEFS5V_cjs.msLimit,
|
|
515
|
+
minApdex: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.ratio),
|
|
516
|
+
maxWilson: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.ratio),
|
|
517
|
+
maxErrorRate: chunkW7NEFS5V_cjs.ratio,
|
|
518
|
+
locked: chunkW7NEFS5V_cjs.constant(true),
|
|
519
|
+
note: chunkW7NEFS5V_cjs.str({ minLength: 1, maxLength: 500 }),
|
|
520
|
+
gate: chunkW7NEFS5V_cjs.constant("warn"),
|
|
521
|
+
until: chunkW7NEFS5V_cjs.isoDate
|
|
477
522
|
},
|
|
478
523
|
{
|
|
479
524
|
refine(value, pointer, sink) {
|
|
@@ -493,19 +538,19 @@ var thresholdsEntry = chunkLUA4WRIQ_cjs.obj(
|
|
|
493
538
|
}
|
|
494
539
|
}
|
|
495
540
|
);
|
|
496
|
-
var thresholdsGenerated =
|
|
541
|
+
var thresholdsGenerated = chunkW7NEFS5V_cjs.obj(
|
|
497
542
|
{
|
|
498
|
-
tool:
|
|
499
|
-
env:
|
|
500
|
-
sourceRunId:
|
|
501
|
-
sourceRunStartedAt:
|
|
502
|
-
sourceSampleCount:
|
|
503
|
-
evaluatedPercentile:
|
|
504
|
-
derivation:
|
|
505
|
-
browsers:
|
|
543
|
+
tool: chunkW7NEFS5V_cjs.tool,
|
|
544
|
+
env: chunkW7NEFS5V_cjs.envLabelOrNull,
|
|
545
|
+
sourceRunId: chunkW7NEFS5V_cjs.runId,
|
|
546
|
+
sourceRunStartedAt: chunkW7NEFS5V_cjs.timestamp,
|
|
547
|
+
sourceSampleCount: chunkW7NEFS5V_cjs.count,
|
|
548
|
+
evaluatedPercentile: chunkW7NEFS5V_cjs.percentileName,
|
|
549
|
+
derivation: chunkW7NEFS5V_cjs.derivationSettings,
|
|
550
|
+
browsers: chunkW7NEFS5V_cjs.arr(nonEmpty, { uniqueItems: true }),
|
|
506
551
|
playwrightVersion: nonEmpty,
|
|
507
|
-
host:
|
|
508
|
-
normalization:
|
|
552
|
+
host: chunkW7NEFS5V_cjs.hostFingerprint,
|
|
553
|
+
normalization: chunkW7NEFS5V_cjs.fingerprint
|
|
509
554
|
},
|
|
510
555
|
{
|
|
511
556
|
required: [
|
|
@@ -523,16 +568,16 @@ var thresholdsGenerated = chunkLUA4WRIQ_cjs.obj(
|
|
|
523
568
|
]
|
|
524
569
|
}
|
|
525
570
|
);
|
|
526
|
-
var thresholdsFile =
|
|
571
|
+
var thresholdsFile = chunkW7NEFS5V_cjs.obj(
|
|
527
572
|
{
|
|
528
|
-
schemaVersion:
|
|
529
|
-
kind:
|
|
530
|
-
generated:
|
|
531
|
-
entries:
|
|
573
|
+
schemaVersion: chunkW7NEFS5V_cjs.constant(2),
|
|
574
|
+
kind: chunkW7NEFS5V_cjs.kind,
|
|
575
|
+
generated: chunkW7NEFS5V_cjs.oneOf(thresholdsGenerated, chunkW7NEFS5V_cjs.nul),
|
|
576
|
+
entries: chunkW7NEFS5V_cjs.record(chunkW7NEFS5V_cjs.key, thresholdsEntry)
|
|
532
577
|
},
|
|
533
578
|
{ required: ["schemaVersion", "kind", "generated", "entries"] }
|
|
534
579
|
);
|
|
535
|
-
var evaluationCounts =
|
|
580
|
+
var evaluationCounts = chunkW7NEFS5V_cjs.obj(
|
|
536
581
|
Object.fromEntries(
|
|
537
582
|
[
|
|
538
583
|
"keys",
|
|
@@ -546,7 +591,7 @@ var evaluationCounts = chunkLUA4WRIQ_cjs.obj(
|
|
|
546
591
|
"violations",
|
|
547
592
|
"blockingViolations",
|
|
548
593
|
"muted"
|
|
549
|
-
].map((name) => [name,
|
|
594
|
+
].map((name) => [name, chunkW7NEFS5V_cjs.count])
|
|
550
595
|
),
|
|
551
596
|
{
|
|
552
597
|
required: [
|
|
@@ -564,50 +609,50 @@ var evaluationCounts = chunkLUA4WRIQ_cjs.obj(
|
|
|
564
609
|
]
|
|
565
610
|
}
|
|
566
611
|
);
|
|
567
|
-
var thresholdFileInfo =
|
|
612
|
+
var thresholdFileInfo = chunkW7NEFS5V_cjs.obj(
|
|
568
613
|
{
|
|
569
|
-
kind:
|
|
614
|
+
kind: chunkW7NEFS5V_cjs.kind,
|
|
570
615
|
path: nonEmpty,
|
|
571
|
-
status:
|
|
572
|
-
generated:
|
|
573
|
-
unseenKeys:
|
|
616
|
+
status: chunkW7NEFS5V_cjs.enumOf(["loaded", "missing", "invalid"]),
|
|
617
|
+
generated: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.anyObject, chunkW7NEFS5V_cjs.nul),
|
|
618
|
+
unseenKeys: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.key)
|
|
574
619
|
},
|
|
575
620
|
{ required: ["kind", "path", "status", "generated", "unseenKeys"] }
|
|
576
621
|
);
|
|
577
|
-
var testRef =
|
|
622
|
+
var testRef = chunkW7NEFS5V_cjs.obj(
|
|
578
623
|
{
|
|
579
|
-
title:
|
|
580
|
-
project:
|
|
581
|
-
file:
|
|
582
|
-
line:
|
|
583
|
-
repeatEachIndex:
|
|
624
|
+
title: chunkW7NEFS5V_cjs.str(),
|
|
625
|
+
project: chunkW7NEFS5V_cjs.str(),
|
|
626
|
+
file: chunkW7NEFS5V_cjs.str(),
|
|
627
|
+
line: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
628
|
+
repeatEachIndex: chunkW7NEFS5V_cjs.int({ minimum: 0 })
|
|
584
629
|
},
|
|
585
630
|
{ required: ["title", "project", "file", "line", "repeatEachIndex"] }
|
|
586
631
|
);
|
|
587
|
-
var slowSample =
|
|
588
|
-
{ duration:
|
|
632
|
+
var slowSample = chunkW7NEFS5V_cjs.obj(
|
|
633
|
+
{ duration: chunkW7NEFS5V_cjs.ms, startedAt: chunkW7NEFS5V_cjs.timestamp, test: testRef, url: nonEmpty },
|
|
589
634
|
{ required: ["duration", "startedAt", "test"] }
|
|
590
635
|
);
|
|
591
|
-
var stats =
|
|
636
|
+
var stats = chunkW7NEFS5V_cjs.obj(
|
|
592
637
|
{
|
|
593
|
-
min:
|
|
594
|
-
avg:
|
|
595
|
-
max:
|
|
596
|
-
percentiles:
|
|
638
|
+
min: chunkW7NEFS5V_cjs.ms,
|
|
639
|
+
avg: chunkW7NEFS5V_cjs.ms,
|
|
640
|
+
max: chunkW7NEFS5V_cjs.ms,
|
|
641
|
+
percentiles: chunkW7NEFS5V_cjs.record(chunkW7NEFS5V_cjs.percentileName, chunkW7NEFS5V_cjs.ms, { required: ["p50", "p90", "p95", "p99"] })
|
|
597
642
|
},
|
|
598
643
|
{ required: ["min", "avg", "max", "percentiles"] }
|
|
599
644
|
);
|
|
600
|
-
var check =
|
|
645
|
+
var check = chunkW7NEFS5V_cjs.obj(
|
|
601
646
|
{
|
|
602
|
-
rule:
|
|
603
|
-
n:
|
|
604
|
-
actual:
|
|
605
|
-
observed:
|
|
606
|
-
limit:
|
|
607
|
-
passed:
|
|
608
|
-
hardLimitExceeded:
|
|
609
|
-
blocking:
|
|
610
|
-
usage:
|
|
647
|
+
rule: chunkW7NEFS5V_cjs.enumOf(["median", "percentile", "p99", "apdex", "wilson", "errors"]),
|
|
648
|
+
n: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
649
|
+
actual: chunkW7NEFS5V_cjs.num({ minimum: 0 }),
|
|
650
|
+
observed: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.num({ minimum: 0, maximum: 1 }), chunkW7NEFS5V_cjs.nul),
|
|
651
|
+
limit: chunkW7NEFS5V_cjs.num({ minimum: 0 }),
|
|
652
|
+
passed: chunkW7NEFS5V_cjs.bool,
|
|
653
|
+
hardLimitExceeded: chunkW7NEFS5V_cjs.bool,
|
|
654
|
+
blocking: chunkW7NEFS5V_cjs.bool,
|
|
655
|
+
usage: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.num({ minimum: 0 }))
|
|
611
656
|
},
|
|
612
657
|
{
|
|
613
658
|
required: [
|
|
@@ -623,30 +668,30 @@ var check = chunkLUA4WRIQ_cjs.obj(
|
|
|
623
668
|
]
|
|
624
669
|
}
|
|
625
670
|
);
|
|
626
|
-
var keyEvaluation =
|
|
671
|
+
var keyEvaluation = chunkW7NEFS5V_cjs.obj(
|
|
627
672
|
{
|
|
628
|
-
result:
|
|
629
|
-
reason:
|
|
630
|
-
thresholdSource:
|
|
631
|
-
limits:
|
|
673
|
+
result: chunkW7NEFS5V_cjs.enumOf(["pass", "fail", "not-evaluated"]),
|
|
674
|
+
reason: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.enumOf(["too-few-samples", "no-rules", "thresholds-error"]), chunkW7NEFS5V_cjs.nul),
|
|
675
|
+
thresholdSource: chunkW7NEFS5V_cjs.enumOf(["file", "default"]),
|
|
676
|
+
limits: chunkW7NEFS5V_cjs.obj(
|
|
632
677
|
{
|
|
633
|
-
t:
|
|
634
|
-
median:
|
|
635
|
-
percentile:
|
|
636
|
-
p99:
|
|
637
|
-
minApdex:
|
|
638
|
-
maxWilson:
|
|
639
|
-
maxErrorRate:
|
|
678
|
+
t: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.msLimit),
|
|
679
|
+
median: chunkW7NEFS5V_cjs.msLimit,
|
|
680
|
+
percentile: chunkW7NEFS5V_cjs.msLimit,
|
|
681
|
+
p99: chunkW7NEFS5V_cjs.msLimit,
|
|
682
|
+
minApdex: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.ratio),
|
|
683
|
+
maxWilson: chunkW7NEFS5V_cjs.nullable(chunkW7NEFS5V_cjs.ratio),
|
|
684
|
+
maxErrorRate: chunkW7NEFS5V_cjs.ratio
|
|
640
685
|
},
|
|
641
686
|
{ required: LIMIT_FIELDS }
|
|
642
687
|
),
|
|
643
|
-
checks:
|
|
644
|
-
muted:
|
|
645
|
-
|
|
646
|
-
{ until:
|
|
688
|
+
checks: chunkW7NEFS5V_cjs.arr(check),
|
|
689
|
+
muted: chunkW7NEFS5V_cjs.oneOf(
|
|
690
|
+
chunkW7NEFS5V_cjs.obj(
|
|
691
|
+
{ until: chunkW7NEFS5V_cjs.isoDate, note: nonEmpty, expired: chunkW7NEFS5V_cjs.bool },
|
|
647
692
|
{ required: ["until", "note", "expired"] }
|
|
648
693
|
),
|
|
649
|
-
|
|
694
|
+
chunkW7NEFS5V_cjs.nul
|
|
650
695
|
)
|
|
651
696
|
},
|
|
652
697
|
{ required: ["result", "reason", "thresholdSource", "limits", "checks", "muted"] }
|
|
@@ -688,41 +733,41 @@ var HINT_PARAMS = [
|
|
|
688
733
|
"t",
|
|
689
734
|
"n"
|
|
690
735
|
];
|
|
691
|
-
var hint =
|
|
692
|
-
{ code:
|
|
736
|
+
var hint = chunkW7NEFS5V_cjs.obj(
|
|
737
|
+
{ code: chunkW7NEFS5V_cjs.enumOf(HINT_CODES), params: chunkW7NEFS5V_cjs.record(chunkW7NEFS5V_cjs.enumOf(HINT_PARAMS), chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.str(), chunkW7NEFS5V_cjs.num())) },
|
|
693
738
|
{ required: ["code", "params"] }
|
|
694
739
|
);
|
|
695
|
-
var histogram =
|
|
696
|
-
|
|
740
|
+
var histogram = chunkW7NEFS5V_cjs.oneOf(
|
|
741
|
+
chunkW7NEFS5V_cjs.obj(
|
|
697
742
|
{
|
|
698
|
-
edges:
|
|
699
|
-
counts:
|
|
743
|
+
edges: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.num({ minimum: 0 }), { minItems: 2, maxItems: 31 }),
|
|
744
|
+
counts: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.count, { minItems: 1, maxItems: 30 })
|
|
700
745
|
},
|
|
701
746
|
{ required: ["edges", "counts"] }
|
|
702
747
|
),
|
|
703
|
-
|
|
748
|
+
chunkW7NEFS5V_cjs.nul
|
|
704
749
|
);
|
|
705
|
-
var testCost =
|
|
750
|
+
var testCost = chunkW7NEFS5V_cjs.obj(
|
|
706
751
|
{
|
|
707
|
-
title:
|
|
708
|
-
project:
|
|
709
|
-
file:
|
|
710
|
-
line:
|
|
711
|
-
executions:
|
|
712
|
-
requestCount:
|
|
713
|
-
errorCount:
|
|
714
|
-
totalMs:
|
|
715
|
-
maxRequestMs:
|
|
716
|
-
keyCount:
|
|
717
|
-
topKeys:
|
|
718
|
-
|
|
719
|
-
{ key:
|
|
752
|
+
title: chunkW7NEFS5V_cjs.str(),
|
|
753
|
+
project: chunkW7NEFS5V_cjs.str(),
|
|
754
|
+
file: chunkW7NEFS5V_cjs.str(),
|
|
755
|
+
line: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
756
|
+
executions: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
757
|
+
requestCount: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
758
|
+
errorCount: chunkW7NEFS5V_cjs.count,
|
|
759
|
+
totalMs: chunkW7NEFS5V_cjs.ms,
|
|
760
|
+
maxRequestMs: chunkW7NEFS5V_cjs.msOrNull,
|
|
761
|
+
keyCount: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
762
|
+
topKeys: chunkW7NEFS5V_cjs.arr(
|
|
763
|
+
chunkW7NEFS5V_cjs.obj(
|
|
764
|
+
{ key: chunkW7NEFS5V_cjs.key, count: chunkW7NEFS5V_cjs.int({ minimum: 1 }), totalMs: chunkW7NEFS5V_cjs.ms },
|
|
720
765
|
{ required: ["key", "count", "totalMs"] }
|
|
721
766
|
),
|
|
722
767
|
{ maxItems: 3 }
|
|
723
768
|
),
|
|
724
|
-
violatedKeys:
|
|
725
|
-
violatedKeyCount:
|
|
769
|
+
violatedKeys: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.key, { maxItems: 10 }),
|
|
770
|
+
violatedKeyCount: chunkW7NEFS5V_cjs.count
|
|
726
771
|
},
|
|
727
772
|
{
|
|
728
773
|
required: [
|
|
@@ -742,71 +787,71 @@ var testCost = chunkLUA4WRIQ_cjs.obj(
|
|
|
742
787
|
]
|
|
743
788
|
}
|
|
744
789
|
);
|
|
745
|
-
var waterfallRequest =
|
|
790
|
+
var waterfallRequest = chunkW7NEFS5V_cjs.obj(
|
|
746
791
|
{
|
|
747
|
-
offset:
|
|
748
|
-
duration:
|
|
749
|
-
key:
|
|
750
|
-
status:
|
|
792
|
+
offset: chunkW7NEFS5V_cjs.int({ minimum: 0 }),
|
|
793
|
+
duration: chunkW7NEFS5V_cjs.msOrNull,
|
|
794
|
+
key: chunkW7NEFS5V_cjs.key,
|
|
795
|
+
status: chunkW7NEFS5V_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING)$/u })
|
|
751
796
|
},
|
|
752
797
|
{ required: ["offset", "duration", "key", "status"] }
|
|
753
798
|
);
|
|
754
|
-
var waterfall =
|
|
799
|
+
var waterfall = chunkW7NEFS5V_cjs.obj(
|
|
755
800
|
{
|
|
756
801
|
test: testRef,
|
|
757
|
-
totalMs:
|
|
758
|
-
requestCount:
|
|
759
|
-
spanMs:
|
|
760
|
-
requests:
|
|
761
|
-
omitted:
|
|
802
|
+
totalMs: chunkW7NEFS5V_cjs.ms,
|
|
803
|
+
requestCount: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
804
|
+
spanMs: chunkW7NEFS5V_cjs.ms,
|
|
805
|
+
requests: chunkW7NEFS5V_cjs.arr(waterfallRequest, { maxItems: 200 }),
|
|
806
|
+
omitted: chunkW7NEFS5V_cjs.count
|
|
762
807
|
},
|
|
763
808
|
{ required: ["test", "totalMs", "requestCount", "spanMs", "requests", "omitted"] }
|
|
764
809
|
);
|
|
765
|
-
var testBreakdown =
|
|
766
|
-
|
|
810
|
+
var testBreakdown = chunkW7NEFS5V_cjs.oneOf(
|
|
811
|
+
chunkW7NEFS5V_cjs.obj(
|
|
767
812
|
{
|
|
768
|
-
tests:
|
|
769
|
-
omitted:
|
|
770
|
-
waterfalls:
|
|
813
|
+
tests: chunkW7NEFS5V_cjs.arr(testCost, { maxItems: 500 }),
|
|
814
|
+
omitted: chunkW7NEFS5V_cjs.count,
|
|
815
|
+
waterfalls: chunkW7NEFS5V_cjs.arr(waterfall, { maxItems: 5 })
|
|
771
816
|
},
|
|
772
817
|
{ required: ["tests", "omitted", "waterfalls"] }
|
|
773
818
|
),
|
|
774
|
-
|
|
819
|
+
chunkW7NEFS5V_cjs.nul
|
|
775
820
|
);
|
|
776
821
|
var aggregateProps = {
|
|
777
|
-
count:
|
|
778
|
-
successCount:
|
|
779
|
-
errorCount:
|
|
780
|
-
fromFailedTests:
|
|
781
|
-
testCount:
|
|
782
|
-
statuses:
|
|
783
|
-
|
|
784
|
-
|
|
822
|
+
count: chunkW7NEFS5V_cjs.count,
|
|
823
|
+
successCount: chunkW7NEFS5V_cjs.count,
|
|
824
|
+
errorCount: chunkW7NEFS5V_cjs.count,
|
|
825
|
+
fromFailedTests: chunkW7NEFS5V_cjs.count,
|
|
826
|
+
testCount: chunkW7NEFS5V_cjs.count,
|
|
827
|
+
statuses: chunkW7NEFS5V_cjs.record(
|
|
828
|
+
chunkW7NEFS5V_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$/u }),
|
|
829
|
+
chunkW7NEFS5V_cjs.int({ minimum: 1 })
|
|
785
830
|
),
|
|
786
|
-
timeSources:
|
|
787
|
-
stats:
|
|
788
|
-
ttfb:
|
|
789
|
-
|
|
790
|
-
|
|
831
|
+
timeSources: chunkW7NEFS5V_cjs.obj({ browser: chunkW7NEFS5V_cjs.count, node: chunkW7NEFS5V_cjs.count }, { required: ["browser", "node"] }),
|
|
832
|
+
stats: chunkW7NEFS5V_cjs.oneOf(stats, chunkW7NEFS5V_cjs.nul),
|
|
833
|
+
ttfb: chunkW7NEFS5V_cjs.oneOf(
|
|
834
|
+
chunkW7NEFS5V_cjs.obj({ p50: chunkW7NEFS5V_cjs.ms, p95: chunkW7NEFS5V_cjs.ms, otherP50: chunkW7NEFS5V_cjs.msOrNull }, { required: ["p50", "p95", "otherP50"] }),
|
|
835
|
+
chunkW7NEFS5V_cjs.nul
|
|
791
836
|
),
|
|
792
|
-
slowest:
|
|
793
|
-
topTests:
|
|
794
|
-
|
|
837
|
+
slowest: chunkW7NEFS5V_cjs.arr(slowSample, { maxItems: 3 }),
|
|
838
|
+
topTests: chunkW7NEFS5V_cjs.arr(
|
|
839
|
+
chunkW7NEFS5V_cjs.obj(
|
|
795
840
|
{
|
|
796
|
-
title:
|
|
797
|
-
project:
|
|
798
|
-
file:
|
|
799
|
-
line:
|
|
800
|
-
sampleCount:
|
|
841
|
+
title: chunkW7NEFS5V_cjs.str(),
|
|
842
|
+
project: chunkW7NEFS5V_cjs.str(),
|
|
843
|
+
file: chunkW7NEFS5V_cjs.str(),
|
|
844
|
+
line: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
845
|
+
sampleCount: chunkW7NEFS5V_cjs.int({ minimum: 1 })
|
|
801
846
|
},
|
|
802
847
|
{ required: ["title", "project", "file", "line", "sampleCount"] }
|
|
803
848
|
),
|
|
804
849
|
{ maxItems: 5 }
|
|
805
850
|
),
|
|
806
|
-
samples:
|
|
851
|
+
samples: chunkW7NEFS5V_cjs.obj({ durations: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.ms), sampled: chunkW7NEFS5V_cjs.bool }, { required: ["durations", "sampled"] }),
|
|
807
852
|
evaluation: keyEvaluation,
|
|
808
853
|
histogram,
|
|
809
|
-
hints:
|
|
854
|
+
hints: chunkW7NEFS5V_cjs.arr(hint, { maxItems: 3 })
|
|
810
855
|
};
|
|
811
856
|
var aggregateRequired = [
|
|
812
857
|
"count",
|
|
@@ -825,120 +870,120 @@ var aggregateRequired = [
|
|
|
825
870
|
"histogram",
|
|
826
871
|
"hints"
|
|
827
872
|
];
|
|
828
|
-
var aggregate =
|
|
829
|
-
var stepAggregate =
|
|
873
|
+
var aggregate = chunkW7NEFS5V_cjs.obj(aggregateProps, { required: aggregateRequired });
|
|
874
|
+
var stepAggregate = chunkW7NEFS5V_cjs.obj(
|
|
830
875
|
{
|
|
831
876
|
...aggregateProps,
|
|
832
|
-
location:
|
|
833
|
-
|
|
834
|
-
|
|
877
|
+
location: chunkW7NEFS5V_cjs.oneOf(
|
|
878
|
+
chunkW7NEFS5V_cjs.obj({ file: nonEmpty, line: chunkW7NEFS5V_cjs.int({ minimum: 1 }) }, { required: ["file", "line"] }),
|
|
879
|
+
chunkW7NEFS5V_cjs.nul
|
|
835
880
|
),
|
|
836
|
-
stepErrorsFromFailedTests:
|
|
881
|
+
stepErrorsFromFailedTests: chunkW7NEFS5V_cjs.count
|
|
837
882
|
},
|
|
838
883
|
{ required: [...aggregateRequired, "location", "stepErrorsFromFailedTests"] }
|
|
839
884
|
);
|
|
840
|
-
var runReport =
|
|
885
|
+
var runReport = chunkW7NEFS5V_cjs.obj(
|
|
841
886
|
{
|
|
842
|
-
schemaVersion:
|
|
843
|
-
tool:
|
|
844
|
-
runId:
|
|
845
|
-
mode:
|
|
846
|
-
startedAt:
|
|
847
|
-
finishedAt:
|
|
848
|
-
env:
|
|
887
|
+
schemaVersion: chunkW7NEFS5V_cjs.constant(4),
|
|
888
|
+
tool: chunkW7NEFS5V_cjs.tool,
|
|
889
|
+
runId: chunkW7NEFS5V_cjs.runId,
|
|
890
|
+
mode: chunkW7NEFS5V_cjs.mode,
|
|
891
|
+
startedAt: chunkW7NEFS5V_cjs.timestamp,
|
|
892
|
+
finishedAt: chunkW7NEFS5V_cjs.timestamp,
|
|
893
|
+
env: chunkW7NEFS5V_cjs.envLabelOrNull,
|
|
849
894
|
configDir: nonEmpty,
|
|
850
895
|
// Optional (02-REQ-42): left out when neither a package name nor a repository root is known.
|
|
851
|
-
suite:
|
|
852
|
-
{ name: nonEmpty, source:
|
|
896
|
+
suite: chunkW7NEFS5V_cjs.obj(
|
|
897
|
+
{ name: nonEmpty, source: chunkW7NEFS5V_cjs.enumOf(["package", "config"]) },
|
|
853
898
|
{ required: ["name", "source"] }
|
|
854
899
|
),
|
|
855
|
-
config:
|
|
856
|
-
normalization:
|
|
857
|
-
stepNormalization:
|
|
858
|
-
ci:
|
|
859
|
-
|
|
900
|
+
config: chunkW7NEFS5V_cjs.packageConfig,
|
|
901
|
+
normalization: chunkW7NEFS5V_cjs.fingerprint,
|
|
902
|
+
stepNormalization: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.fingerprint, chunkW7NEFS5V_cjs.nul),
|
|
903
|
+
ci: chunkW7NEFS5V_cjs.oneOf(
|
|
904
|
+
chunkW7NEFS5V_cjs.obj(
|
|
860
905
|
{
|
|
861
|
-
provider:
|
|
906
|
+
provider: chunkW7NEFS5V_cjs.enumOf(["github", "gitlab", "jenkins", "azure", "other"]),
|
|
862
907
|
commit: nonEmptyOrNull,
|
|
863
908
|
branch: nonEmptyOrNull,
|
|
864
909
|
buildUrl: nonEmptyOrNull
|
|
865
910
|
},
|
|
866
911
|
{ required: ["provider", "commit", "branch", "buildUrl"] }
|
|
867
912
|
),
|
|
868
|
-
|
|
913
|
+
chunkW7NEFS5V_cjs.nul
|
|
869
914
|
),
|
|
870
|
-
host:
|
|
915
|
+
host: chunkW7NEFS5V_cjs.obj(
|
|
871
916
|
{
|
|
872
|
-
platform:
|
|
873
|
-
arch:
|
|
874
|
-
nodeVersion:
|
|
875
|
-
ci:
|
|
876
|
-
cpuCount:
|
|
877
|
-
cpuModel:
|
|
917
|
+
platform: chunkW7NEFS5V_cjs.str(),
|
|
918
|
+
arch: chunkW7NEFS5V_cjs.str(),
|
|
919
|
+
nodeVersion: chunkW7NEFS5V_cjs.str(),
|
|
920
|
+
ci: chunkW7NEFS5V_cjs.bool,
|
|
921
|
+
cpuCount: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
922
|
+
cpuModel: chunkW7NEFS5V_cjs.str()
|
|
878
923
|
},
|
|
879
924
|
{ required: ["platform", "arch", "nodeVersion", "ci", "cpuCount", "cpuModel"] }
|
|
880
925
|
),
|
|
881
|
-
playwright:
|
|
882
|
-
passes:
|
|
926
|
+
playwright: chunkW7NEFS5V_cjs.obj({ version: chunkW7NEFS5V_cjs.str() }, { required: ["version"] }),
|
|
927
|
+
passes: chunkW7NEFS5V_cjs.obj(
|
|
883
928
|
{
|
|
884
|
-
planned:
|
|
885
|
-
completed:
|
|
886
|
-
failed:
|
|
929
|
+
planned: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
930
|
+
completed: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
931
|
+
failed: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.int({ minimum: 2 }))
|
|
887
932
|
},
|
|
888
933
|
{ required: ["planned", "completed", "failed"] }
|
|
889
934
|
),
|
|
890
|
-
runConditions:
|
|
935
|
+
runConditions: chunkW7NEFS5V_cjs.obj(
|
|
891
936
|
{
|
|
892
|
-
workers:
|
|
893
|
-
projects:
|
|
894
|
-
|
|
937
|
+
workers: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
938
|
+
projects: chunkW7NEFS5V_cjs.arr(
|
|
939
|
+
chunkW7NEFS5V_cjs.obj(
|
|
895
940
|
{
|
|
896
|
-
name:
|
|
897
|
-
role:
|
|
898
|
-
browserName:
|
|
899
|
-
repeatEach:
|
|
900
|
-
retries:
|
|
901
|
-
requestOnly:
|
|
941
|
+
name: chunkW7NEFS5V_cjs.str(),
|
|
942
|
+
role: chunkW7NEFS5V_cjs.enumOf(["measured", "dependency", "teardown"]),
|
|
943
|
+
browserName: chunkW7NEFS5V_cjs.oneOf(chunkW7NEFS5V_cjs.str(), chunkW7NEFS5V_cjs.nul),
|
|
944
|
+
repeatEach: chunkW7NEFS5V_cjs.int({ minimum: 1 }),
|
|
945
|
+
retries: chunkW7NEFS5V_cjs.int({ minimum: 0 }),
|
|
946
|
+
requestOnly: chunkW7NEFS5V_cjs.constant(true)
|
|
902
947
|
},
|
|
903
948
|
{ required: ["name", "role", "browserName", "repeatEach", "retries"] }
|
|
904
949
|
)
|
|
905
950
|
),
|
|
906
|
-
overriddenSettings:
|
|
951
|
+
overriddenSettings: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.str())
|
|
907
952
|
},
|
|
908
953
|
{ required: ["workers", "projects", "overriddenSettings"] }
|
|
909
954
|
),
|
|
910
|
-
tests:
|
|
955
|
+
tests: chunkW7NEFS5V_cjs.obj(
|
|
911
956
|
{
|
|
912
|
-
status:
|
|
913
|
-
expected:
|
|
914
|
-
unexpected:
|
|
915
|
-
flaky:
|
|
916
|
-
skipped:
|
|
957
|
+
status: chunkW7NEFS5V_cjs.testsStatus,
|
|
958
|
+
expected: chunkW7NEFS5V_cjs.count,
|
|
959
|
+
unexpected: chunkW7NEFS5V_cjs.count,
|
|
960
|
+
flaky: chunkW7NEFS5V_cjs.count,
|
|
961
|
+
skipped: chunkW7NEFS5V_cjs.count
|
|
917
962
|
},
|
|
918
963
|
{ required: ["status", "expected", "unexpected", "flaky", "skipped"] }
|
|
919
964
|
),
|
|
920
|
-
evaluation:
|
|
965
|
+
evaluation: chunkW7NEFS5V_cjs.obj(
|
|
921
966
|
{
|
|
922
|
-
status:
|
|
923
|
-
gateEnabled:
|
|
924
|
-
counts:
|
|
967
|
+
status: chunkW7NEFS5V_cjs.evaluationStatus,
|
|
968
|
+
gateEnabled: chunkW7NEFS5V_cjs.bool,
|
|
969
|
+
counts: chunkW7NEFS5V_cjs.obj(
|
|
925
970
|
{ api: evaluationCounts, step: evaluationCounts },
|
|
926
971
|
{ required: ["api", "step"] }
|
|
927
972
|
)
|
|
928
973
|
},
|
|
929
974
|
{ required: ["status", "gateEnabled", "counts"] }
|
|
930
975
|
),
|
|
931
|
-
thresholdFiles:
|
|
932
|
-
warnings:
|
|
933
|
-
toolErrors:
|
|
934
|
-
origins:
|
|
935
|
-
|
|
936
|
-
{ origin: nonEmpty, label:
|
|
976
|
+
thresholdFiles: chunkW7NEFS5V_cjs.arr(thresholdFileInfo),
|
|
977
|
+
warnings: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.issue),
|
|
978
|
+
toolErrors: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.issue),
|
|
979
|
+
origins: chunkW7NEFS5V_cjs.arr(
|
|
980
|
+
chunkW7NEFS5V_cjs.obj(
|
|
981
|
+
{ origin: nonEmpty, label: chunkW7NEFS5V_cjs.str(), requestCount: chunkW7NEFS5V_cjs.count },
|
|
937
982
|
{ required: ["origin", "label", "requestCount"] }
|
|
938
983
|
)
|
|
939
984
|
),
|
|
940
|
-
endpoints:
|
|
941
|
-
steps:
|
|
985
|
+
endpoints: chunkW7NEFS5V_cjs.record(chunkW7NEFS5V_cjs.key, aggregate),
|
|
986
|
+
steps: chunkW7NEFS5V_cjs.record(chunkW7NEFS5V_cjs.key, stepAggregate),
|
|
942
987
|
testBreakdown
|
|
943
988
|
},
|
|
944
989
|
{
|
|
@@ -971,24 +1016,24 @@ var runReport = chunkLUA4WRIQ_cjs.obj(
|
|
|
971
1016
|
]
|
|
972
1017
|
}
|
|
973
1018
|
);
|
|
974
|
-
|
|
1019
|
+
chunkW7NEFS5V_cjs.obj(
|
|
975
1020
|
{
|
|
976
|
-
schemaVersion:
|
|
977
|
-
runId:
|
|
1021
|
+
schemaVersion: chunkW7NEFS5V_cjs.constant(1),
|
|
1022
|
+
runId: chunkW7NEFS5V_cjs.runId,
|
|
978
1023
|
// The outcome has its own modes: a check writes neither a report nor thresholds (02-REQ-34).
|
|
979
|
-
mode:
|
|
980
|
-
exitCode:
|
|
981
|
-
tests:
|
|
982
|
-
evaluation:
|
|
983
|
-
{ status:
|
|
1024
|
+
mode: chunkW7NEFS5V_cjs.enumOf(["test", "thresholds", "check"]),
|
|
1025
|
+
exitCode: chunkW7NEFS5V_cjs.enumOf([0, 2, 3]),
|
|
1026
|
+
tests: chunkW7NEFS5V_cjs.obj({ status: chunkW7NEFS5V_cjs.testsStatus }, { required: ["status"] }),
|
|
1027
|
+
evaluation: chunkW7NEFS5V_cjs.obj(
|
|
1028
|
+
{ status: chunkW7NEFS5V_cjs.evaluationStatus, gateEnabled: chunkW7NEFS5V_cjs.bool },
|
|
984
1029
|
{ required: ["status", "gateEnabled"] }
|
|
985
1030
|
),
|
|
986
|
-
toolErrors:
|
|
987
|
-
paths:
|
|
1031
|
+
toolErrors: chunkW7NEFS5V_cjs.arr(chunkW7NEFS5V_cjs.issue),
|
|
1032
|
+
paths: chunkW7NEFS5V_cjs.obj(
|
|
988
1033
|
{
|
|
989
1034
|
reportJson: nonEmptyOrNull,
|
|
990
1035
|
reportHtml: nonEmptyOrNull,
|
|
991
|
-
thresholds:
|
|
1036
|
+
thresholds: chunkW7NEFS5V_cjs.arr(nonEmpty),
|
|
992
1037
|
thresholdsDiff: nonEmptyOrNull
|
|
993
1038
|
},
|
|
994
1039
|
{ required: ["reportJson", "reportHtml", "thresholds", "thresholdsDiff"] }
|
|
@@ -1056,7 +1101,7 @@ function migrate(document, from, to, migrations) {
|
|
|
1056
1101
|
return current;
|
|
1057
1102
|
}
|
|
1058
1103
|
function validate(document, source, format) {
|
|
1059
|
-
const sink = new
|
|
1104
|
+
const sink = new chunkW7NEFS5V_cjs.Sink(MAX_PROBLEMS + 1);
|
|
1060
1105
|
format.schema.check(document, "", sink);
|
|
1061
1106
|
if (sink.problems.length === 0) format.extraChecks?.(document, sink);
|
|
1062
1107
|
if (sink.problems.length === 0) return null;
|
|
@@ -1071,7 +1116,7 @@ function parseVersioned(text2, source, format, options = {}) {
|
|
|
1071
1116
|
const parsed = parseJson(text2, source, format);
|
|
1072
1117
|
if (!parsed.ok) return parsed;
|
|
1073
1118
|
const document = parsed.value;
|
|
1074
|
-
if (!
|
|
1119
|
+
if (!chunkW7NEFS5V_cjs.isRecord(document)) {
|
|
1075
1120
|
return failure(
|
|
1076
1121
|
issueOf("SCHEMA_VALIDATION_FAILED", source, `${format.name} does not match the format`, [
|
|
1077
1122
|
{ pointer: "", message: "must be object" }
|
|
@@ -1134,21 +1179,21 @@ var SAMPLES_FORMAT = {
|
|
|
1134
1179
|
};
|
|
1135
1180
|
function migrateRunReportV1(document) {
|
|
1136
1181
|
const aggregates = (value) => {
|
|
1137
|
-
if (!
|
|
1182
|
+
if (!chunkW7NEFS5V_cjs.isRecord(value)) return value;
|
|
1138
1183
|
return Object.fromEntries(
|
|
1139
1184
|
Object.entries(value).map(([name, aggregate2]) => {
|
|
1140
|
-
if (!
|
|
1185
|
+
if (!chunkW7NEFS5V_cjs.isRecord(aggregate2)) return [name, aggregate2];
|
|
1141
1186
|
const evaluation = aggregate2.evaluation;
|
|
1142
1187
|
const ttfb = aggregate2.ttfb;
|
|
1143
1188
|
return [
|
|
1144
1189
|
name,
|
|
1145
1190
|
{
|
|
1146
1191
|
...aggregate2,
|
|
1147
|
-
ttfb:
|
|
1148
|
-
evaluation:
|
|
1192
|
+
ttfb: chunkW7NEFS5V_cjs.isRecord(ttfb) ? { ...ttfb, otherP50: null } : ttfb,
|
|
1193
|
+
evaluation: chunkW7NEFS5V_cjs.isRecord(evaluation) && Array.isArray(evaluation.checks) ? {
|
|
1149
1194
|
...evaluation,
|
|
1150
1195
|
checks: evaluation.checks.map(
|
|
1151
|
-
(check2) =>
|
|
1196
|
+
(check2) => chunkW7NEFS5V_cjs.isRecord(check2) ? { ...check2, usage: null } : check2
|
|
1152
1197
|
)
|
|
1153
1198
|
} : evaluation,
|
|
1154
1199
|
histogram: null,
|
|
@@ -1166,22 +1211,22 @@ function migrateRunReportV1(document) {
|
|
|
1166
1211
|
};
|
|
1167
1212
|
}
|
|
1168
1213
|
function withoutCustomOptions(config) {
|
|
1169
|
-
if (!
|
|
1214
|
+
if (!chunkW7NEFS5V_cjs.isRecord(config) || !chunkW7NEFS5V_cjs.isRecord(config.checks)) return config;
|
|
1170
1215
|
const drop = (value) => {
|
|
1171
|
-
if (!
|
|
1216
|
+
if (!chunkW7NEFS5V_cjs.isRecord(value)) return value;
|
|
1172
1217
|
const { custom: _removed, ...rest } = value;
|
|
1173
1218
|
return rest;
|
|
1174
1219
|
};
|
|
1175
1220
|
const checks = Object.fromEntries(
|
|
1176
1221
|
Object.entries(config.checks).map(([group, rules]) => {
|
|
1177
|
-
if (!
|
|
1222
|
+
if (!chunkW7NEFS5V_cjs.isRecord(rules)) return [group, rules];
|
|
1178
1223
|
if (group === "errors") return [group, { ...rules, limit: drop(rules.limit) }];
|
|
1179
1224
|
return [
|
|
1180
1225
|
group,
|
|
1181
1226
|
Object.fromEntries(
|
|
1182
1227
|
Object.entries(rules).map(([name, rule]) => {
|
|
1183
1228
|
if (group === "slowShare" && name === "t") return [name, drop(rule)];
|
|
1184
|
-
if (!
|
|
1229
|
+
if (!chunkW7NEFS5V_cjs.isRecord(rule) || !Object.hasOwn(rule, "limit")) return [name, rule];
|
|
1185
1230
|
return [name, { ...rule, limit: drop(rule.limit) }];
|
|
1186
1231
|
})
|
|
1187
1232
|
)
|
|
@@ -1191,18 +1236,18 @@ function withoutCustomOptions(config) {
|
|
|
1191
1236
|
return { ...config, checks };
|
|
1192
1237
|
}
|
|
1193
1238
|
function withStepOptions(config) {
|
|
1194
|
-
if (!
|
|
1239
|
+
if (!chunkW7NEFS5V_cjs.isRecord(config)) return config;
|
|
1195
1240
|
const out = { ...config };
|
|
1196
|
-
if (
|
|
1197
|
-
out.measure = { ...config.measure, steps:
|
|
1241
|
+
if (chunkW7NEFS5V_cjs.isRecord(config.measure) && !Object.hasOwn(config.measure, "steps")) {
|
|
1242
|
+
out.measure = { ...config.measure, steps: chunkW7NEFS5V_cjs.expandSteps(false) };
|
|
1198
1243
|
}
|
|
1199
|
-
if (
|
|
1200
|
-
const defaults =
|
|
1201
|
-
const withStep = (value, fallback) =>
|
|
1244
|
+
if (chunkW7NEFS5V_cjs.isRecord(config.checks)) {
|
|
1245
|
+
const defaults = chunkW7NEFS5V_cjs.DEFAULT_CONFIG.checks;
|
|
1246
|
+
const withStep = (value, fallback) => chunkW7NEFS5V_cjs.isRecord(value) && !Object.hasOwn(value, "step") && chunkW7NEFS5V_cjs.isRecord(fallback) ? { ...value, step: structuredClone(fallback.step) } : value;
|
|
1202
1247
|
out.checks = Object.fromEntries(
|
|
1203
1248
|
Object.entries(config.checks).map(([group, rules]) => {
|
|
1204
1249
|
const groupDefaults = defaults[group];
|
|
1205
|
-
if (!
|
|
1250
|
+
if (!chunkW7NEFS5V_cjs.isRecord(rules) || !chunkW7NEFS5V_cjs.isRecord(groupDefaults)) return [group, rules];
|
|
1206
1251
|
if (group === "errors") {
|
|
1207
1252
|
return [group, { ...rules, limit: withStep(rules.limit, groupDefaults.limit) }];
|
|
1208
1253
|
}
|
|
@@ -1213,7 +1258,7 @@ function withStepOptions(config) {
|
|
|
1213
1258
|
const ruleDefaults = groupDefaults[name];
|
|
1214
1259
|
if (group === "slowShare" && name === "t")
|
|
1215
1260
|
return [name, withStep(rule, ruleDefaults)];
|
|
1216
|
-
if (!
|
|
1261
|
+
if (!chunkW7NEFS5V_cjs.isRecord(rule) || !chunkW7NEFS5V_cjs.isRecord(ruleDefaults)) return [name, rule];
|
|
1217
1262
|
if (!Object.hasOwn(rule, "limit")) return [name, rule];
|
|
1218
1263
|
return [name, { ...rule, limit: withStep(rule.limit, ruleDefaults.limit) }];
|
|
1219
1264
|
})
|
|
@@ -1225,21 +1270,21 @@ function withStepOptions(config) {
|
|
|
1225
1270
|
return out;
|
|
1226
1271
|
}
|
|
1227
1272
|
function withPassesOption(config) {
|
|
1228
|
-
if (!
|
|
1273
|
+
if (!chunkW7NEFS5V_cjs.isRecord(config) || !chunkW7NEFS5V_cjs.isRecord(config.run)) return config;
|
|
1229
1274
|
const { repeat, ...run } = config.run;
|
|
1230
1275
|
return repeat === void 0 ? config : { ...config, run: { ...run, passes: repeat } };
|
|
1231
1276
|
}
|
|
1232
1277
|
function withGateAndPresetOptions(config) {
|
|
1233
|
-
if (!
|
|
1278
|
+
if (!chunkW7NEFS5V_cjs.isRecord(config)) return config;
|
|
1234
1279
|
const out = { ...config };
|
|
1235
|
-
if (
|
|
1280
|
+
if (chunkW7NEFS5V_cjs.isRecord(config.gate)) {
|
|
1236
1281
|
const { warnOnly: _warnOnly, ...gate } = config.gate;
|
|
1237
1282
|
out.gate = gate;
|
|
1238
1283
|
}
|
|
1239
|
-
if (
|
|
1284
|
+
if (chunkW7NEFS5V_cjs.isRecord(config.thresholds) && !Object.hasOwn(config.thresholds, "preset")) {
|
|
1240
1285
|
out.thresholds = { preset: "normal", ...config.thresholds };
|
|
1241
1286
|
}
|
|
1242
|
-
if (
|
|
1287
|
+
if (chunkW7NEFS5V_cjs.isRecord(config.run) && !Object.hasOwn(config.run, "grep")) {
|
|
1243
1288
|
out.run = { ...config.run, grep: null };
|
|
1244
1289
|
}
|
|
1245
1290
|
return out;
|
|
@@ -1247,7 +1292,7 @@ function withGateAndPresetOptions(config) {
|
|
|
1247
1292
|
function migrateRunReportV2(document) {
|
|
1248
1293
|
const { custom: _custom, ...rest } = document;
|
|
1249
1294
|
const evaluation = document.evaluation;
|
|
1250
|
-
const counts =
|
|
1295
|
+
const counts = chunkW7NEFS5V_cjs.isRecord(evaluation) ? evaluation.counts : void 0;
|
|
1251
1296
|
const files = document.thresholdFiles;
|
|
1252
1297
|
return {
|
|
1253
1298
|
...rest,
|
|
@@ -1258,14 +1303,14 @@ function migrateRunReportV2(document) {
|
|
|
1258
1303
|
config: withGateAndPresetOptions(
|
|
1259
1304
|
withPassesOption(withStepOptions(withoutCustomOptions(document.config)))
|
|
1260
1305
|
),
|
|
1261
|
-
evaluation:
|
|
1306
|
+
evaluation: chunkW7NEFS5V_cjs.isRecord(evaluation) && chunkW7NEFS5V_cjs.isRecord(counts) ? {
|
|
1262
1307
|
...evaluation,
|
|
1263
1308
|
counts: {
|
|
1264
1309
|
...Object.fromEntries(Object.entries(counts).filter(([k]) => k !== "custom")),
|
|
1265
1310
|
step: Object.fromEntries(Object.keys(counts.api ?? {}).map((name) => [name, 0]))
|
|
1266
1311
|
}
|
|
1267
1312
|
} : evaluation,
|
|
1268
|
-
thresholdFiles: Array.isArray(files) ? files.filter((file) => !(
|
|
1313
|
+
thresholdFiles: Array.isArray(files) ? files.filter((file) => !(chunkW7NEFS5V_cjs.isRecord(file) && file.kind === "custom")) : files
|
|
1269
1314
|
};
|
|
1270
1315
|
}
|
|
1271
1316
|
function sum(values) {
|
|
@@ -1277,17 +1322,17 @@ function checkRunReport(document, sink) {
|
|
|
1277
1322
|
for (const [name, aggregate2] of Object.entries(map)) {
|
|
1278
1323
|
const histogram3 = aggregate2.histogram;
|
|
1279
1324
|
if (histogram3 === null) continue;
|
|
1280
|
-
const pointer =
|
|
1325
|
+
const pointer = chunkW7NEFS5V_cjs.child(chunkW7NEFS5V_cjs.child(`/${kind2}`, name), "histogram");
|
|
1281
1326
|
const { edges, counts } = histogram3;
|
|
1282
1327
|
if (edges.some((edge, i) => i > 0 && edge <= (edges[i - 1] ?? 0))) {
|
|
1283
|
-
sink.add(
|
|
1328
|
+
sink.add(chunkW7NEFS5V_cjs.child(pointer, "edges"), "must be strictly ascending");
|
|
1284
1329
|
}
|
|
1285
1330
|
if (counts.length !== edges.length - 1) {
|
|
1286
|
-
sink.add(
|
|
1331
|
+
sink.add(chunkW7NEFS5V_cjs.child(pointer, "counts"), "must have one item fewer than edges");
|
|
1287
1332
|
}
|
|
1288
1333
|
const retained = aggregate2.samples.durations.length;
|
|
1289
1334
|
if (sum(counts) !== retained) {
|
|
1290
|
-
sink.add(
|
|
1335
|
+
sink.add(chunkW7NEFS5V_cjs.child(pointer, "counts"), "must sum to the number of samples.durations");
|
|
1291
1336
|
}
|
|
1292
1337
|
}
|
|
1293
1338
|
}
|
|
@@ -1309,12 +1354,13 @@ function checkRunReport(document, sink) {
|
|
|
1309
1354
|
}
|
|
1310
1355
|
function migrateRunReportV3(document) {
|
|
1311
1356
|
const config = document.config;
|
|
1312
|
-
if (!
|
|
1357
|
+
if (!chunkW7NEFS5V_cjs.isRecord(config) || !chunkW7NEFS5V_cjs.isRecord(config.run)) return document;
|
|
1313
1358
|
const { projects: _projects, ...run } = config.run;
|
|
1314
|
-
const measure =
|
|
1359
|
+
const measure = chunkW7NEFS5V_cjs.isRecord(config.measure) ? { api: true, ...config.measure } : config.measure;
|
|
1360
|
+
const report = chunkW7NEFS5V_cjs.isRecord(config.report) ? { ...config.report, junit: false } : config.report;
|
|
1315
1361
|
return {
|
|
1316
1362
|
...document,
|
|
1317
|
-
config: { ...config, run: { ...run, overrideSlowMo: false }, measure }
|
|
1363
|
+
config: { ...config, run: { ...run, overrideSlowMo: false }, measure, report }
|
|
1318
1364
|
};
|
|
1319
1365
|
}
|
|
1320
1366
|
var RUN_REPORT_FORMAT = {
|
|
@@ -1336,7 +1382,7 @@ var THRESHOLDS_FORMAT = {
|
|
|
1336
1382
|
const entries2 = document.entries;
|
|
1337
1383
|
for (const [name, entry] of Object.entries(entries2)) {
|
|
1338
1384
|
if (typeof entry.until === "string" && !isCalendarDate(entry.until)) {
|
|
1339
|
-
sink.add(
|
|
1385
|
+
sink.add(chunkW7NEFS5V_cjs.child(chunkW7NEFS5V_cjs.child("/entries", name), "until"), "must be an existing calendar date");
|
|
1340
1386
|
}
|
|
1341
1387
|
}
|
|
1342
1388
|
}
|
|
@@ -1378,7 +1424,7 @@ function thresholdsFileName(prefix, kind2, env) {
|
|
|
1378
1424
|
function thresholdsFilePaths(location) {
|
|
1379
1425
|
const dir = resolvePath(location.configDir, location.dir);
|
|
1380
1426
|
const path = (kind2) => resolvePath(dir, thresholdsFileName(location.filePrefix, kind2, location.env));
|
|
1381
|
-
return Object.fromEntries(
|
|
1427
|
+
return Object.fromEntries(chunkVREOANPX_cjs.KINDS.map((kind2) => [kind2, path(kind2)]));
|
|
1382
1428
|
}
|
|
1383
1429
|
async function loadFile(location, kind2) {
|
|
1384
1430
|
const absolute = thresholdsFilePaths(location)[kind2];
|
|
@@ -1426,8 +1472,8 @@ async function loadFile(location, kind2) {
|
|
|
1426
1472
|
};
|
|
1427
1473
|
}
|
|
1428
1474
|
async function loadThresholds(location) {
|
|
1429
|
-
const files = await Promise.all(
|
|
1430
|
-
return Object.fromEntries(
|
|
1475
|
+
const files = await Promise.all(chunkVREOANPX_cjs.KINDS.map((kind2) => loadFile(location, kind2)));
|
|
1476
|
+
return Object.fromEntries(chunkVREOANPX_cjs.KINDS.map((kind2, i) => [kind2, files[i]]));
|
|
1431
1477
|
}
|
|
1432
1478
|
|
|
1433
1479
|
// src/core/evaluate/files.ts
|
|
@@ -1443,7 +1489,7 @@ function envlessPath(path, env) {
|
|
|
1443
1489
|
return path.endsWith(suffix) ? `${path.slice(0, -suffix.length)}.json` : path;
|
|
1444
1490
|
}
|
|
1445
1491
|
function missingFileWarning(file, env) {
|
|
1446
|
-
const derive = `Derive thresholds with \`${
|
|
1492
|
+
const derive = `Derive thresholds with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`;
|
|
1447
1493
|
const envless = env !== null && file.envlessFileExists ? ` ${envlessPath(file.path, env)} exists but is not used for environment "${env}": thresholds of another environment would give false alarms or hide regressions.` : "";
|
|
1448
1494
|
return {
|
|
1449
1495
|
code: "THRESHOLDS_FILE_MISSING",
|
|
@@ -1451,6 +1497,25 @@ function missingFileWarning(file, env) {
|
|
|
1451
1497
|
hint: `${derive}${envless}`
|
|
1452
1498
|
};
|
|
1453
1499
|
}
|
|
1500
|
+
function emptyFileWarning(path, kind2, env) {
|
|
1501
|
+
return {
|
|
1502
|
+
code: "THRESHOLDS_FILE_EMPTY",
|
|
1503
|
+
message: `Thresholds file ${path} has no entries; ${KIND_NOUN[kind2]} keys are evaluated with default thresholds.`,
|
|
1504
|
+
hint: `Derive thresholds with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
var MAX_KEYS_IN_MESSAGE = 3;
|
|
1508
|
+
function keysOnDefaultsWarning(path, kind2, keys, env) {
|
|
1509
|
+
const one = keys.length === 1;
|
|
1510
|
+
const named = keys.slice(0, MAX_KEYS_IN_MESSAGE).join(", ");
|
|
1511
|
+
const rest = keys.length - MAX_KEYS_IN_MESSAGE;
|
|
1512
|
+
const list2 = rest > 0 ? `${named} and ${plural(rest, "other key")}` : named;
|
|
1513
|
+
return {
|
|
1514
|
+
code: "THRESHOLDS_KEYS_ON_DEFAULTS",
|
|
1515
|
+
message: `${plural(keys.length, `${KIND_NOUN[kind2]} key`)} ${one ? "has" : "have"} no entry in ${path} and ${one ? "is" : "are"} evaluated with default thresholds: ${list2}.`,
|
|
1516
|
+
hint: `New endpoints or steps, or keys renamed by a code or normalization change, get the default thresholds. Add entries with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}; locked entries are kept.`
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1454
1519
|
function majorMinor(version2) {
|
|
1455
1520
|
return version2.split(".").slice(0, 2).join(".");
|
|
1456
1521
|
}
|
|
@@ -1497,7 +1562,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
|
|
|
1497
1562
|
issues.push({
|
|
1498
1563
|
code: "EVAL_PERCENTILE_MISMATCH",
|
|
1499
1564
|
message: `Thresholds in ${path} were derived for ${generated.evaluatedPercentile}, but this run evaluates ${level}; the percentile limits are compared with ${level}.`,
|
|
1500
|
-
hint: `Derive thresholds again with \`${
|
|
1565
|
+
hint: `Derive thresholds again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\` after changing checks.time.percentile.level.`
|
|
1501
1566
|
});
|
|
1502
1567
|
}
|
|
1503
1568
|
if (generated.env !== env) {
|
|
@@ -1518,7 +1583,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
|
|
|
1518
1583
|
}
|
|
1519
1584
|
if (keys) {
|
|
1520
1585
|
hints.push(
|
|
1521
|
-
`Another normalization changes the keys: derive thresholds again with \`${
|
|
1586
|
+
`Another normalization changes the keys: derive thresholds again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`.`
|
|
1522
1587
|
);
|
|
1523
1588
|
}
|
|
1524
1589
|
issues.push({
|
|
@@ -1533,14 +1598,14 @@ function unseenWarning(path, unseen) {
|
|
|
1533
1598
|
return {
|
|
1534
1599
|
code: "THRESHOLDS_UNSEEN_ENTRIES",
|
|
1535
1600
|
message: `${plural(unseen.length, "entry", "entries")} in ${path} ${unseen.length === 1 ? "was" : "were"} not seen in this run.`,
|
|
1536
|
-
hint: `Run the full suite, or remove stale entries with \`${
|
|
1601
|
+
hint: `Run the full suite, or remove stale entries with \`${chunkVREOANPX_cjs.PRUNE_COMMAND}\`.`
|
|
1537
1602
|
};
|
|
1538
1603
|
}
|
|
1539
1604
|
function outdatedWarning(path, from, current) {
|
|
1540
1605
|
return {
|
|
1541
1606
|
code: "THRESHOLDS_FILE_OUTDATED",
|
|
1542
1607
|
message: `Thresholds file ${path} has format version ${from}; it was read after migration to version ${current}.`,
|
|
1543
|
-
hint: `The next thresholds run (\`${
|
|
1608
|
+
hint: `The next thresholds run (\`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`) writes it in the current version and keeps locked entries.`
|
|
1544
1609
|
};
|
|
1545
1610
|
}
|
|
1546
1611
|
function fileInfo(file, unseenKeys) {
|
|
@@ -1656,7 +1721,7 @@ function hashHex(input) {
|
|
|
1656
1721
|
}
|
|
1657
1722
|
|
|
1658
1723
|
// src/core/stats/classification.ts
|
|
1659
|
-
var ABORT_TEXTS = new Set(
|
|
1724
|
+
var ABORT_TEXTS = new Set(chunkVREOANPX_cjs.ABORT_FAILURE_TEXTS);
|
|
1660
1725
|
function requestStatusLabel(sample) {
|
|
1661
1726
|
const { status } = sample;
|
|
1662
1727
|
if (typeof status === "number") return String(status);
|
|
@@ -2042,7 +2107,7 @@ function costOf(test) {
|
|
|
2042
2107
|
const topKeys = keys.map((key2) => {
|
|
2043
2108
|
const index = test.keys.get(key2) ?? -1;
|
|
2044
2109
|
return { key: key2, count: test.counts[index] ?? 0, tenths: test.sums[index] ?? 0 };
|
|
2045
|
-
}).sort((a, b) => b.tenths - a.tenths || b.count - a.count || compareText3(a.key, b.key)).slice(0, TOP_KEYS).map(({ key: key2, count:
|
|
2110
|
+
}).sort((a, b) => b.tenths - a.tenths || b.count - a.count || compareText3(a.key, b.key)).slice(0, TOP_KEYS).map(({ key: key2, count: count3, tenths }) => ({ key: key2, count: count3, totalMs: tenths / 10 }));
|
|
2046
2111
|
return {
|
|
2047
2112
|
title: test.title,
|
|
2048
2113
|
project: test.project,
|
|
@@ -2433,7 +2498,7 @@ function addKeyedRequest(aggregator, keyOf, sample, browserName) {
|
|
|
2433
2498
|
function addKeyedApiRequest(aggregator, keyOf, sample) {
|
|
2434
2499
|
const result2 = keyOf({ method: sample.method, url: sample.url, resourceType: "request" });
|
|
2435
2500
|
if (!result2.ok) return result2;
|
|
2436
|
-
const key2 = `${
|
|
2501
|
+
const key2 = `${chunkVREOANPX_cjs.REQUEST_KEY_PREFIX}${result2.key}`;
|
|
2437
2502
|
const request = {
|
|
2438
2503
|
method: sample.method,
|
|
2439
2504
|
url: sample.url,
|
|
@@ -2481,9 +2546,9 @@ function exceedingShare(sorted, t) {
|
|
|
2481
2546
|
function wilsonBounds(k, n) {
|
|
2482
2547
|
if (n === 0) return null;
|
|
2483
2548
|
const z2 = WILSON_Z * WILSON_Z;
|
|
2484
|
-
const
|
|
2485
|
-
const center =
|
|
2486
|
-
const margin = WILSON_Z * Math.sqrt(
|
|
2549
|
+
const share2 = k / n;
|
|
2550
|
+
const center = share2 + z2 / (2 * n);
|
|
2551
|
+
const margin = WILSON_Z * Math.sqrt(share2 * (1 - share2) / n + z2 / (4 * n * n));
|
|
2487
2552
|
const denominator = 1 + z2 / n;
|
|
2488
2553
|
const clamp2 = (x) => Math.min(1, Math.max(0, roundRatio(x)));
|
|
2489
2554
|
return {
|
|
@@ -2493,7 +2558,7 @@ function wilsonBounds(k, n) {
|
|
|
2493
2558
|
}
|
|
2494
2559
|
|
|
2495
2560
|
// src/core/evaluate/rules.ts
|
|
2496
|
-
var
|
|
2561
|
+
var TIME_RULES2 = /* @__PURE__ */ new Set(["median", "percentile", "p99"]);
|
|
2497
2562
|
function timeCheck(rule, actual, limit, m) {
|
|
2498
2563
|
return { rule, n: m, actual, observed: null, limit, passed: !(actual > limit) };
|
|
2499
2564
|
}
|
|
@@ -2593,7 +2658,7 @@ function runRules(stats2, limits, cfg) {
|
|
|
2593
2658
|
applicable = true;
|
|
2594
2659
|
if (input.count < Math.max(1, input.minSamples)) continue;
|
|
2595
2660
|
const check2 = input.run();
|
|
2596
|
-
const hardLimitExceeded = !check2.passed &&
|
|
2661
|
+
const hardLimitExceeded = !check2.passed && TIME_RULES2.has(check2.rule) && hardLimitFactor !== null && check2.actual > check2.limit * hardLimitFactor;
|
|
2597
2662
|
checks.push({ ...check2, hardLimitExceeded, blocking: false });
|
|
2598
2663
|
}
|
|
2599
2664
|
return { checks, applicable };
|
|
@@ -2644,7 +2709,7 @@ function qualifies(evaluation, gate) {
|
|
|
2644
2709
|
return !isMuteActive(evaluation.muted);
|
|
2645
2710
|
}
|
|
2646
2711
|
function applyGate(perKey, gate) {
|
|
2647
|
-
const all =
|
|
2712
|
+
const all = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2]));
|
|
2648
2713
|
const qualified = all.filter(
|
|
2649
2714
|
(e) => qualifies(e, gate) && e.checks.some((check2) => !check2.passed)
|
|
2650
2715
|
);
|
|
@@ -2683,7 +2748,7 @@ function countKind(perKey, unseenThresholdEntries) {
|
|
|
2683
2748
|
}
|
|
2684
2749
|
if (e.thresholdSource === "file") counts.fromFile += 1;
|
|
2685
2750
|
else counts.fromDefaults += 1;
|
|
2686
|
-
const timeRules = e.checks.filter((c) =>
|
|
2751
|
+
const timeRules = e.checks.filter((c) => TIME_RULES2.has(c.rule)).map((c) => c.rule);
|
|
2687
2752
|
if (timeRules.length === 1 && timeRules[0] === "median") counts.medianOnly += 1;
|
|
2688
2753
|
if (e.result === "fail") counts.violations += 1;
|
|
2689
2754
|
if (e.checks.some((c) => c.blocking)) counts.blockingViolations += 1;
|
|
@@ -2694,7 +2759,7 @@ function evaluationStatus2(perKey, thresholds, fatalToolError, kinds) {
|
|
|
2694
2759
|
if (fatalToolError || kinds.some((kind2) => thresholds[kind2].status === "invalid")) {
|
|
2695
2760
|
return "error";
|
|
2696
2761
|
}
|
|
2697
|
-
const checks =
|
|
2762
|
+
const checks = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2])).flatMap((e) => e.checks);
|
|
2698
2763
|
if (checks.some((c) => c.blocking)) return "failed";
|
|
2699
2764
|
if (checks.some((c) => !c.passed)) return "warned";
|
|
2700
2765
|
return "passed";
|
|
@@ -2706,7 +2771,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2706
2771
|
step: aggregates.steps ?? {}
|
|
2707
2772
|
};
|
|
2708
2773
|
const perKey = { api: {}, step: {} };
|
|
2709
|
-
for (const kind2 of
|
|
2774
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
2710
2775
|
for (const key2 of Object.keys(byKind[kind2]).sort(compareText)) {
|
|
2711
2776
|
const stats2 = byKind[kind2][key2];
|
|
2712
2777
|
if (stats2 !== void 0) {
|
|
@@ -2719,7 +2784,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2719
2784
|
const toolErrors = [];
|
|
2720
2785
|
const thresholdFiles = [];
|
|
2721
2786
|
const unseenCount = { api: 0, step: 0 };
|
|
2722
|
-
const activeKinds =
|
|
2787
|
+
const activeKinds = chunkVREOANPX_cjs.KINDS.filter(
|
|
2723
2788
|
(kind2) => kind2 === "step" ? cfg.measure.steps.enabled : cfg.measure.api
|
|
2724
2789
|
);
|
|
2725
2790
|
for (const kind2 of activeKinds) {
|
|
@@ -2735,6 +2800,9 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2735
2800
|
} else if (file.status === "invalid") {
|
|
2736
2801
|
toolErrors.push(...file.issues.map(schemaIssueToIssue));
|
|
2737
2802
|
} else {
|
|
2803
|
+
if (opts.mode === "test" && Object.keys(file.file.entries).length === 0 && Object.keys(byKind[kind2]).length > 0) {
|
|
2804
|
+
warnings.push(emptyFileWarning(file.path, kind2, opts.env));
|
|
2805
|
+
}
|
|
2738
2806
|
if (file.migratedFrom !== void 0) {
|
|
2739
2807
|
warnings.push(outdatedWarning(file.path, file.migratedFrom, SCHEMA_VERSIONS.thresholds));
|
|
2740
2808
|
}
|
|
@@ -2751,6 +2819,12 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2751
2819
|
}
|
|
2752
2820
|
unseen = Object.keys(file.file.entries).filter((key2) => !Object.hasOwn(byKind[kind2], key2)).sort(compareText);
|
|
2753
2821
|
if (unseen.length > 0) warnings.push(unseenWarning(file.path, unseen));
|
|
2822
|
+
if (opts.mode === "test" && Object.keys(file.file.entries).length > 0) {
|
|
2823
|
+
const onDefaults = Object.entries(perKey[kind2]).filter(([, e]) => e.thresholdSource === "default" && e.result !== "not-evaluated").map(([key2]) => key2).sort(compareText);
|
|
2824
|
+
if (onDefaults.length > 0) {
|
|
2825
|
+
warnings.push(keysOnDefaultsWarning(file.path, kind2, onDefaults, opts.env));
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2754
2828
|
}
|
|
2755
2829
|
unseenCount[kind2] = unseen.length;
|
|
2756
2830
|
thresholdFiles.push(fileInfo(file, unseen));
|
|
@@ -2759,14 +2833,14 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2759
2833
|
api: countKind(perKey.api, unseenCount.api),
|
|
2760
2834
|
step: countKind(perKey.step, unseenCount.step)
|
|
2761
2835
|
};
|
|
2762
|
-
if (
|
|
2836
|
+
if (chunkVREOANPX_cjs.KINDS.every((kind2) => Object.keys(byKind[kind2]).length === 0)) {
|
|
2763
2837
|
warnings.push({
|
|
2764
2838
|
code: "EVAL_NO_SAMPLES",
|
|
2765
2839
|
message: "The run recorded no samples, so nothing was evaluated.",
|
|
2766
2840
|
hint: "Check the integration: tests must use the fixtures from withPerfFixtures, and the measure options (include, exclude, resourceTypes) must not filter out every request."
|
|
2767
2841
|
});
|
|
2768
2842
|
}
|
|
2769
|
-
const notEvaluated =
|
|
2843
|
+
const notEvaluated = chunkVREOANPX_cjs.KINDS.reduce((sum3, kind2) => sum3 + counts[kind2].fileEntriesNotEvaluated, 0);
|
|
2770
2844
|
if (notEvaluated > 0) {
|
|
2771
2845
|
warnings.push({
|
|
2772
2846
|
code: "THRESHOLDS_ENTRIES_NOT_EVALUATED",
|
|
@@ -2774,7 +2848,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2774
2848
|
hint: `Run more passes (run.passes or PW_PERF_PASSES), or accept that the endpoint is called rarely.`
|
|
2775
2849
|
});
|
|
2776
2850
|
}
|
|
2777
|
-
const mutedKeys =
|
|
2851
|
+
const mutedKeys = chunkVREOANPX_cjs.KINDS.flatMap(
|
|
2778
2852
|
(kind2) => Object.entries(perKey[kind2]).flatMap(
|
|
2779
2853
|
([key2, e]) => e.muted === null ? [] : [{ kind: kind2, key: key2, muted: e.muted }]
|
|
2780
2854
|
)
|
|
@@ -2792,20 +2866,20 @@ function evaluate(aggregates, thresholds, cfg, opts) {
|
|
|
2792
2866
|
}
|
|
2793
2867
|
|
|
2794
2868
|
// src/core/evaluate/outcome.ts
|
|
2795
|
-
function percent(
|
|
2796
|
-
return `${Math.round(
|
|
2869
|
+
function percent(share2) {
|
|
2870
|
+
return `${Math.round(share2 * 1e3) / 10}%`;
|
|
2797
2871
|
}
|
|
2798
2872
|
function assessRun(input, gate) {
|
|
2799
2873
|
const { tests, maxFailures, sharded } = input;
|
|
2800
2874
|
const warnings = [];
|
|
2801
2875
|
const toolErrors = [];
|
|
2802
2876
|
const executions = tests.expected + tests.unexpected + tests.flaky;
|
|
2803
|
-
const
|
|
2877
|
+
const share2 = executions === 0 ? 0 : tests.unexpected / executions;
|
|
2804
2878
|
const failedText = `${tests.unexpected} of ${plural(executions, "test execution")} failed`;
|
|
2805
|
-
if (
|
|
2879
|
+
if (share2 > gate.maxFailedTestShare) {
|
|
2806
2880
|
toolErrors.push({
|
|
2807
2881
|
code: "TESTS_FAILED_TOO_MANY",
|
|
2808
|
-
message: `${failedText} (${percent(
|
|
2882
|
+
message: `${failedText} (${percent(share2)}, more than gate.maxFailedTestShare ${percent(gate.maxFailedTestShare)}); samples of a large part of the tests are missing, so the performance result is not trustworthy.`,
|
|
2809
2883
|
hint: "Fix the failing tests (run them without perf mode), or raise gate.maxFailedTestShare if the failures are expected."
|
|
2810
2884
|
});
|
|
2811
2885
|
} else if (tests.unexpected > 0) {
|
|
@@ -3010,17 +3084,17 @@ function truncateKey(key2) {
|
|
|
3010
3084
|
function originLabels(origins, baseOrigins) {
|
|
3011
3085
|
const exact = /* @__PURE__ */ new Map();
|
|
3012
3086
|
for (const [origin, label] of Object.entries(origins)) {
|
|
3013
|
-
if (
|
|
3087
|
+
if (chunkW7NEFS5V_cjs.isHostPattern(origin)) continue;
|
|
3014
3088
|
const canonical = canonicalOrigin(origin);
|
|
3015
3089
|
if (canonical !== null) exact.set(canonical, label);
|
|
3016
3090
|
}
|
|
3017
|
-
const patterns =
|
|
3091
|
+
const patterns = chunkW7NEFS5V_cjs.compileHostPatterns(origins);
|
|
3018
3092
|
const base = new Set(canonicalOrigins(baseOrigins));
|
|
3019
3093
|
const memo = /* @__PURE__ */ new Map();
|
|
3020
3094
|
return (url) => {
|
|
3021
3095
|
const known = memo.get(url.origin);
|
|
3022
3096
|
if (known !== void 0) return known;
|
|
3023
|
-
const label = exact.get(url.origin) ??
|
|
3097
|
+
const label = exact.get(url.origin) ?? chunkW7NEFS5V_cjs.matchingPattern(patterns, url)?.label ?? (base.has(url.origin) ? "" : null);
|
|
3024
3098
|
memo.set(url.origin, label);
|
|
3025
3099
|
return label;
|
|
3026
3100
|
};
|
|
@@ -3143,7 +3217,7 @@ function keyHeadroom(checks) {
|
|
|
3143
3217
|
for (const check2 of checks) max = Math.max(max, check2.usage ?? Infinity);
|
|
3144
3218
|
return max;
|
|
3145
3219
|
}
|
|
3146
|
-
var
|
|
3220
|
+
var TIME_RULES3 = ["median", "percentile", "p99"];
|
|
3147
3221
|
var RULE_ORDER = [
|
|
3148
3222
|
"median",
|
|
3149
3223
|
"percentile",
|
|
@@ -3159,7 +3233,7 @@ function finding(checks, rule) {
|
|
|
3159
3233
|
return checks.find((c) => c.rule === rule);
|
|
3160
3234
|
}
|
|
3161
3235
|
function timeChecksPass(checks) {
|
|
3162
|
-
return checks.every((c) => !
|
|
3236
|
+
return checks.every((c) => !TIME_RULES3.includes(c.rule) || c.passed);
|
|
3163
3237
|
}
|
|
3164
3238
|
function errorLabels(facts2, options) {
|
|
3165
3239
|
const isError = compileStatusMatcher(options.errorStatuses);
|
|
@@ -3179,7 +3253,7 @@ function percentileHint(code2) {
|
|
|
3179
3253
|
var RULES = [
|
|
3180
3254
|
({ evaluation: { checks } }, { hardLimitFactor }) => {
|
|
3181
3255
|
if (hardLimitFactor === null) return null;
|
|
3182
|
-
for (const rule of
|
|
3256
|
+
for (const rule of TIME_RULES3) {
|
|
3183
3257
|
const check2 = finding(checks, rule);
|
|
3184
3258
|
if (check2?.hardLimitExceeded === true && check2.blocking && check2.usage !== null) {
|
|
3185
3259
|
return {
|
|
@@ -3271,7 +3345,7 @@ var RULES = [
|
|
|
3271
3345
|
return { code: "HINT_MEDIAN_ONLY", params: { n: median.n } };
|
|
3272
3346
|
},
|
|
3273
3347
|
({ evaluation: { result: result2, muted } }) => result2 === "fail" && muted !== null && !muted.expired ? { code: "HINT_MUTED", params: {} } : null,
|
|
3274
|
-
({ count:
|
|
3348
|
+
({ count: count3, fromFailedTests }) => count3 > 0 && fromFailedTests * 2 >= count3 ? { code: "HINT_FAILED_TESTS", params: { share: roundRatio(fromFailedTests / count3) } } : null,
|
|
3275
3349
|
({ evaluation: { result: result2, checks } }) => {
|
|
3276
3350
|
if (result2 !== "pass") return null;
|
|
3277
3351
|
const headroom = keyHeadroom(checks);
|
|
@@ -3420,8 +3494,8 @@ function buildRunReport(input) {
|
|
|
3420
3494
|
const rawUrls = input.config.report?.rawUrls === true;
|
|
3421
3495
|
const kindOrder = { api: 0, step: 1 };
|
|
3422
3496
|
const hintOptions = {
|
|
3423
|
-
errorStatuses: input.config.checks?.errors?.statuses ??
|
|
3424
|
-
hardLimitFactor: input.config.gate?.hardLimitFactor === void 0 ?
|
|
3497
|
+
errorStatuses: input.config.checks?.errors?.statuses ?? chunkW7NEFS5V_cjs.perfDefaults.checks.errors.statuses,
|
|
3498
|
+
hardLimitFactor: input.config.gate?.hardLimitFactor === void 0 ? chunkW7NEFS5V_cjs.perfDefaults.gate.hardLimitFactor : input.config.gate.hardLimitFactor
|
|
3425
3499
|
};
|
|
3426
3500
|
const endpoints = buildAggregates(
|
|
3427
3501
|
"api",
|
|
@@ -3468,6 +3542,368 @@ function buildRunReport(input) {
|
|
|
3468
3542
|
};
|
|
3469
3543
|
}
|
|
3470
3544
|
|
|
3545
|
+
// src/core/report/junit.ts
|
|
3546
|
+
var JUNIT_FILE = "junit.xml";
|
|
3547
|
+
var JUNIT_MESSAGE_MAX = 500;
|
|
3548
|
+
var JUNIT_TEXT_MAX = 4e3;
|
|
3549
|
+
var JUNIT_MAX_WARNINGS = 50;
|
|
3550
|
+
var RULE_ORDER2 = [
|
|
3551
|
+
"median",
|
|
3552
|
+
"percentile",
|
|
3553
|
+
"p99",
|
|
3554
|
+
"apdex",
|
|
3555
|
+
"wilson",
|
|
3556
|
+
"errors"
|
|
3557
|
+
];
|
|
3558
|
+
var SUITES = [
|
|
3559
|
+
{ kind: "api", name: "pw-perf endpoints", classname: "pw-perf.endpoints" },
|
|
3560
|
+
{ kind: "step", name: "pw-perf steps", classname: "pw-perf.steps" }
|
|
3561
|
+
];
|
|
3562
|
+
var INVALID_CHARS = (
|
|
3563
|
+
// eslint-disable-next-line no-control-regex -- the control characters are what is replaced
|
|
3564
|
+
/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g
|
|
3565
|
+
);
|
|
3566
|
+
function xmlChars(text2) {
|
|
3567
|
+
return text2.replace(INVALID_CHARS, "\uFFFD");
|
|
3568
|
+
}
|
|
3569
|
+
function escapeText(text2) {
|
|
3570
|
+
return xmlChars(text2).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
3571
|
+
}
|
|
3572
|
+
function escapeAttr(text2) {
|
|
3573
|
+
return escapeText(text2).replace(/\t/g, "	").replace(/\n/g, " ").replace(/\r/g, " ");
|
|
3574
|
+
}
|
|
3575
|
+
function truncateEnd(text2, max) {
|
|
3576
|
+
const chars = Array.from(text2);
|
|
3577
|
+
return chars.length <= max ? text2 : `${chars.slice(0, max - 1).join("")}\u2026`;
|
|
3578
|
+
}
|
|
3579
|
+
function seconds(ms2) {
|
|
3580
|
+
const whole = Math.max(0, Math.round(ms2));
|
|
3581
|
+
return `${String(Math.floor(whole / 1e3))}.${String(whole % 1e3).padStart(3, "0")}`;
|
|
3582
|
+
}
|
|
3583
|
+
function attrs(values) {
|
|
3584
|
+
return Object.entries(values).map(([name, value]) => ` ${name}="${escapeAttr(String(value))}"`).join("");
|
|
3585
|
+
}
|
|
3586
|
+
function childXml(child2, indent) {
|
|
3587
|
+
const a = child2.attrs === void 0 ? "" : attrs(
|
|
3588
|
+
Object.fromEntries(
|
|
3589
|
+
Object.entries(child2.attrs).map(([k, v]) => [
|
|
3590
|
+
k,
|
|
3591
|
+
k === "message" ? truncateEnd(String(v), JUNIT_MESSAGE_MAX) : v
|
|
3592
|
+
])
|
|
3593
|
+
)
|
|
3594
|
+
);
|
|
3595
|
+
if (child2.text === void 0 || child2.text === "") return `${indent}<${child2.tag}${a}/>`;
|
|
3596
|
+
return `${indent}<${child2.tag}${a}>${escapeText(truncateEnd(child2.text, JUNIT_TEXT_MAX))}</${child2.tag}>`;
|
|
3597
|
+
}
|
|
3598
|
+
function count2(cases, tag) {
|
|
3599
|
+
return cases.filter((c) => c.children.some((child2) => child2.tag === tag)).length;
|
|
3600
|
+
}
|
|
3601
|
+
function totals(cases) {
|
|
3602
|
+
return {
|
|
3603
|
+
tests: cases.length,
|
|
3604
|
+
failures: count2(cases, "failure"),
|
|
3605
|
+
errors: count2(cases, "error")
|
|
3606
|
+
};
|
|
3607
|
+
}
|
|
3608
|
+
function isMuteActive2(evaluation) {
|
|
3609
|
+
return evaluation.muted !== null && !evaluation.muted.expired;
|
|
3610
|
+
}
|
|
3611
|
+
function failedChecks(evaluation) {
|
|
3612
|
+
const r2 = exceedance;
|
|
3613
|
+
return evaluation.checks.filter((c) => !c.passed).sort(
|
|
3614
|
+
(a, b) => Number(b.blocking) - Number(a.blocking) || (r2(a) === r2(b) ? 0 : r2(b) > r2(a) ? 1 : -1) || RULE_ORDER2.indexOf(a.rule) - RULE_ORDER2.indexOf(b.rule)
|
|
3615
|
+
);
|
|
3616
|
+
}
|
|
3617
|
+
function checkLine(check2, evaluation, ctx) {
|
|
3618
|
+
const rule = check2.rule === "percentile" ? ctx.level : check2.rule;
|
|
3619
|
+
const sign = check2.rule === "apdex" ? "<" : ">";
|
|
3620
|
+
const source = evaluation.thresholdSource === "file" ? "thresholds file" : "default thresholds";
|
|
3621
|
+
let line = `${rule} ${formatActual(check2)} ${sign} limit ${formatLimit(check2)} (${overText(check2)}), ${String(check2.n)} samples, ${source}`;
|
|
3622
|
+
if (check2.hardLimitExceeded) line += ", HARD limit";
|
|
3623
|
+
if (evaluation.muted?.expired === true) line += `, muting expired on ${evaluation.muted.until}`;
|
|
3624
|
+
return line;
|
|
3625
|
+
}
|
|
3626
|
+
function share(value) {
|
|
3627
|
+
return value.toFixed(3);
|
|
3628
|
+
}
|
|
3629
|
+
function violationBody(key2, aggregate2, checks, ctx) {
|
|
3630
|
+
const evaluation = aggregate2.evaluation;
|
|
3631
|
+
const lines = checks.map(
|
|
3632
|
+
(c) => `${checkLine(c, evaluation, ctx)} (${c.blocking ? "blocking" : "not blocking"})`
|
|
3633
|
+
);
|
|
3634
|
+
const l = evaluation.limits;
|
|
3635
|
+
let limits = `Limits: median ${formatMs(l.median)}, ${ctx.level} ${formatMs(l.percentile)}, p99 ${formatMs(l.p99)}, errors <= ${share(l.maxErrorRate)}`;
|
|
3636
|
+
if (l.t !== null) {
|
|
3637
|
+
limits += `, T ${formatMs(l.t)}`;
|
|
3638
|
+
if (l.minApdex !== null) limits += `, apdex >= ${share(l.minApdex)}`;
|
|
3639
|
+
if (l.maxWilson !== null) limits += `, wilson <= ${share(l.maxWilson)}`;
|
|
3640
|
+
}
|
|
3641
|
+
lines.push(limits);
|
|
3642
|
+
lines.push(`Samples: ${String(aggregate2.count)}, errors ${String(aggregate2.errorCount)}`);
|
|
3643
|
+
const slowest = aggregate2.slowest[0];
|
|
3644
|
+
if (slowest !== void 0) {
|
|
3645
|
+
const t = slowest.test;
|
|
3646
|
+
lines.push(
|
|
3647
|
+
`Slowest: ${formatMs(slowest.duration)} in "${t.title}" (${t.file}:${String(t.line)})`
|
|
3648
|
+
);
|
|
3649
|
+
}
|
|
3650
|
+
lines.push(`Details: ${ctx.details} (key "${key2}")`);
|
|
3651
|
+
return lines;
|
|
3652
|
+
}
|
|
3653
|
+
function notBlockingReason(evaluation, report) {
|
|
3654
|
+
const gate = report.config.gate;
|
|
3655
|
+
const defaultThresholds = gate?.defaultThresholds ?? chunkW7NEFS5V_cjs.DEFAULT_CONFIG.gate.defaultThresholds;
|
|
3656
|
+
if (evaluation.thresholdSource === "default" && defaultThresholds === "warn") {
|
|
3657
|
+
return "default thresholds only warn (gate.defaultThresholds: warn)";
|
|
3658
|
+
}
|
|
3659
|
+
if (!report.evaluation.gateEnabled) return "the gate is off";
|
|
3660
|
+
return `within gate.tolerance (${String(gate?.tolerance ?? chunkW7NEFS5V_cjs.DEFAULT_CONFIG.gate.tolerance)})`;
|
|
3661
|
+
}
|
|
3662
|
+
function mildestRule(report) {
|
|
3663
|
+
const checks = report.config.checks;
|
|
3664
|
+
const d = chunkW7NEFS5V_cjs.DEFAULT_CONFIG.checks;
|
|
3665
|
+
const rules = [
|
|
3666
|
+
{
|
|
3667
|
+
rule: "median",
|
|
3668
|
+
enabled: checks?.time?.median?.enabled ?? d.time.median.enabled,
|
|
3669
|
+
minSamples: checks?.time?.median?.minSamples ?? d.time.median.minSamples
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
rule: "percentile",
|
|
3673
|
+
enabled: checks?.time?.percentile?.enabled ?? d.time.percentile.enabled,
|
|
3674
|
+
minSamples: checks?.time?.percentile?.minSamples ?? d.time.percentile.minSamples
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
rule: "p99",
|
|
3678
|
+
enabled: checks?.time?.p99?.enabled ?? d.time.p99.enabled,
|
|
3679
|
+
minSamples: checks?.time?.p99?.minSamples ?? d.time.p99.minSamples
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
rule: "apdex",
|
|
3683
|
+
enabled: checks?.slowShare?.apdex?.enabled ?? d.slowShare.apdex.enabled,
|
|
3684
|
+
minSamples: checks?.slowShare?.apdex?.minSamples ?? d.slowShare.apdex.minSamples
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
rule: "wilson",
|
|
3688
|
+
enabled: checks?.slowShare?.wilson?.enabled ?? d.slowShare.wilson.enabled,
|
|
3689
|
+
minSamples: checks?.slowShare?.wilson?.minSamples ?? d.slowShare.wilson.minSamples
|
|
3690
|
+
},
|
|
3691
|
+
{
|
|
3692
|
+
rule: "errors",
|
|
3693
|
+
enabled: checks?.errors?.enabled ?? d.errors.enabled,
|
|
3694
|
+
minSamples: checks?.errors?.minSamples ?? d.errors.minSamples
|
|
3695
|
+
}
|
|
3696
|
+
];
|
|
3697
|
+
let best = null;
|
|
3698
|
+
for (const r2 of rules) {
|
|
3699
|
+
if (r2.enabled && (best === null || r2.minSamples < best.minSamples)) {
|
|
3700
|
+
best = { rule: r2.rule, minSamples: r2.minSamples };
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
return best;
|
|
3704
|
+
}
|
|
3705
|
+
function notEvaluatedMessage(kind2, aggregate2, report) {
|
|
3706
|
+
switch (aggregate2.evaluation.reason) {
|
|
3707
|
+
case "too-few-samples": {
|
|
3708
|
+
const mildest = mildestRule(report);
|
|
3709
|
+
if (mildest === null) return `too few samples (${String(aggregate2.successCount)})`;
|
|
3710
|
+
const n = mildest.rule === "errors" ? aggregate2.count : aggregate2.successCount;
|
|
3711
|
+
const rule = mildest.rule === "percentile" ? levelOf(report) : mildest.rule;
|
|
3712
|
+
return `too few samples (${String(n)}, the ${rule} rule needs ${String(mildest.minSamples)})`;
|
|
3713
|
+
}
|
|
3714
|
+
case "thresholds-error": {
|
|
3715
|
+
const file = report.thresholdFiles.find((f) => f.kind === kind2 && f.status === "invalid");
|
|
3716
|
+
return file === void 0 ? "the thresholds file is invalid" : `thresholds file ${file.path} is invalid`;
|
|
3717
|
+
}
|
|
3718
|
+
default:
|
|
3719
|
+
return "no enabled rule applies";
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
function levelOf(report) {
|
|
3723
|
+
return report.config.checks?.time?.percentile?.level ?? chunkW7NEFS5V_cjs.DEFAULT_CONFIG.checks.time.percentile.level;
|
|
3724
|
+
}
|
|
3725
|
+
function keyCase(kind2, classname, key2, aggregate2, ctx) {
|
|
3726
|
+
const evaluation = aggregate2.evaluation;
|
|
3727
|
+
const median = aggregate2.stats?.percentiles["p50"];
|
|
3728
|
+
const children = [];
|
|
3729
|
+
const muted = evaluation.muted;
|
|
3730
|
+
if (evaluation.result === "not-evaluated") {
|
|
3731
|
+
children.push({
|
|
3732
|
+
tag: "skipped",
|
|
3733
|
+
attrs: { message: `not evaluated: ${notEvaluatedMessage(kind2, aggregate2, ctx.report)}` }
|
|
3734
|
+
});
|
|
3735
|
+
} else if (evaluation.result === "fail") {
|
|
3736
|
+
const checks = failedChecks(evaluation);
|
|
3737
|
+
const body = violationBody(key2, aggregate2, checks, ctx);
|
|
3738
|
+
const first2 = checks[0];
|
|
3739
|
+
const blocking = checks.find((c) => c.blocking);
|
|
3740
|
+
if (blocking !== void 0) {
|
|
3741
|
+
children.push({
|
|
3742
|
+
tag: "failure",
|
|
3743
|
+
attrs: { type: blocking.rule, message: checkLine(blocking, evaluation, ctx) },
|
|
3744
|
+
text: body.join("\n")
|
|
3745
|
+
});
|
|
3746
|
+
} else if (muted !== null && isMuteActive2(evaluation)) {
|
|
3747
|
+
const exceeded = first2 === void 0 ? "" : `; ${checkLine(first2, evaluation, ctx)}`;
|
|
3748
|
+
children.push({
|
|
3749
|
+
tag: "skipped",
|
|
3750
|
+
attrs: { message: `muted until ${muted.until}: ${muted.note}${exceeded}` },
|
|
3751
|
+
text: body.join("\n")
|
|
3752
|
+
});
|
|
3753
|
+
} else {
|
|
3754
|
+
body.push(`not blocking: ${notBlockingReason(evaluation, ctx.report)}`);
|
|
3755
|
+
children.push({ tag: "system-out", text: body.join("\n") });
|
|
3756
|
+
}
|
|
3757
|
+
} else if (muted !== null && isMuteActive2(evaluation)) {
|
|
3758
|
+
children.push({ tag: "system-out", text: `muted until ${muted.until}: ${muted.note}` });
|
|
3759
|
+
}
|
|
3760
|
+
return {
|
|
3761
|
+
classname,
|
|
3762
|
+
name: key2,
|
|
3763
|
+
ms: median === void 0 ? 0 : median,
|
|
3764
|
+
noTime: median === void 0,
|
|
3765
|
+
children
|
|
3766
|
+
};
|
|
3767
|
+
}
|
|
3768
|
+
function issueLines(issue2) {
|
|
3769
|
+
return issue2.hint === void 0 ? `${issue2.code}: ${issue2.message}` : `${issue2.code}: ${issue2.message}
|
|
3770
|
+
hint: ${issue2.hint}`;
|
|
3771
|
+
}
|
|
3772
|
+
function runCase(report, exitCode) {
|
|
3773
|
+
const children = [];
|
|
3774
|
+
const first2 = report.toolErrors[0];
|
|
3775
|
+
if (first2 !== void 0) {
|
|
3776
|
+
children.push({
|
|
3777
|
+
tag: "error",
|
|
3778
|
+
attrs: { type: first2.code, message: first2.message },
|
|
3779
|
+
text: report.toolErrors.map(issueLines).join("\n")
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
3782
|
+
const t = report.tests;
|
|
3783
|
+
const lines = [
|
|
3784
|
+
`Mode: ${report.mode}${report.env === null ? "" : ` (env ${report.env})`}`,
|
|
3785
|
+
`Tests: ${String(t.expected)} passed, ${String(t.unexpected)} failed, ${String(t.flaky)} flaky, ${String(t.skipped)} skipped; passes ${String(report.passes.completed)}/${String(report.passes.planned)}`,
|
|
3786
|
+
`Evaluation: ${report.evaluation.status} (exit code ${String(exitCode)})`
|
|
3787
|
+
];
|
|
3788
|
+
const warnings = report.warnings;
|
|
3789
|
+
if (warnings.length === 0) {
|
|
3790
|
+
lines.push("Warnings: none");
|
|
3791
|
+
} else {
|
|
3792
|
+
lines.push(`Warnings: ${String(warnings.length)}`);
|
|
3793
|
+
for (const w of warnings.slice(0, JUNIT_MAX_WARNINGS)) lines.push(`${w.code}: ${w.message}`);
|
|
3794
|
+
if (warnings.length > JUNIT_MAX_WARNINGS) {
|
|
3795
|
+
const more = warnings.length - JUNIT_MAX_WARNINGS;
|
|
3796
|
+
lines.push(`\u2026 and ${String(more)} more warning${more === 1 ? "" : "s"} (see report.json)`);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
children.push({ tag: "system-out", text: lines.join("\n") });
|
|
3800
|
+
return { classname: "pw-perf.run", name: "measurement run", ms: 0, noTime: true, children };
|
|
3801
|
+
}
|
|
3802
|
+
function caseTime(c) {
|
|
3803
|
+
return c.noTime ? "0" : seconds(c.ms);
|
|
3804
|
+
}
|
|
3805
|
+
function suiteXml(suite, timestamp2) {
|
|
3806
|
+
const t = totals(suite.cases);
|
|
3807
|
+
const ms2 = suite.cases.reduce(
|
|
3808
|
+
(sum3, c) => sum3 + (c.noTime ? 0 : Math.max(0, Math.round(c.ms))),
|
|
3809
|
+
0
|
|
3810
|
+
);
|
|
3811
|
+
const lines = [
|
|
3812
|
+
` <testsuite${attrs({
|
|
3813
|
+
name: suite.name,
|
|
3814
|
+
tests: t.tests,
|
|
3815
|
+
failures: t.failures,
|
|
3816
|
+
errors: t.errors,
|
|
3817
|
+
skipped: count2(suite.cases, "skipped"),
|
|
3818
|
+
time: suite.time ?? seconds(ms2),
|
|
3819
|
+
timestamp: timestamp2
|
|
3820
|
+
})}>`
|
|
3821
|
+
];
|
|
3822
|
+
if (suite.properties !== void 0) {
|
|
3823
|
+
lines.push(" <properties>");
|
|
3824
|
+
for (const [name, value] of suite.properties) {
|
|
3825
|
+
lines.push(` <property${attrs({ name, value })}/>`);
|
|
3826
|
+
}
|
|
3827
|
+
lines.push(" </properties>");
|
|
3828
|
+
}
|
|
3829
|
+
for (const c of suite.cases) {
|
|
3830
|
+
const head = ` <testcase${attrs({ classname: c.classname, name: c.name, time: caseTime(c) })}`;
|
|
3831
|
+
if (c.children.length === 0) {
|
|
3832
|
+
lines.push(`${head}/>`);
|
|
3833
|
+
continue;
|
|
3834
|
+
}
|
|
3835
|
+
lines.push(`${head}>`);
|
|
3836
|
+
for (const child2 of c.children) lines.push(childXml(child2, " "));
|
|
3837
|
+
lines.push(" </testcase>");
|
|
3838
|
+
}
|
|
3839
|
+
lines.push(" </testsuite>");
|
|
3840
|
+
return lines;
|
|
3841
|
+
}
|
|
3842
|
+
function buildJunitXml(report) {
|
|
3843
|
+
const exitCode = buildOutcome(report, {
|
|
3844
|
+
reportJson: null,
|
|
3845
|
+
reportHtml: null,
|
|
3846
|
+
thresholds: [],
|
|
3847
|
+
thresholdsDiff: null
|
|
3848
|
+
}).exitCode;
|
|
3849
|
+
const ctx = {
|
|
3850
|
+
report,
|
|
3851
|
+
level: levelOf(report),
|
|
3852
|
+
details: report.config.report?.html === false ? "report.json" : "report.html"
|
|
3853
|
+
};
|
|
3854
|
+
const ci = report.ci;
|
|
3855
|
+
const suites = [
|
|
3856
|
+
{
|
|
3857
|
+
name: "pw-perf run",
|
|
3858
|
+
time: "0",
|
|
3859
|
+
cases: [runCase(report, exitCode)],
|
|
3860
|
+
properties: [
|
|
3861
|
+
["pw-perf.runId", report.runId],
|
|
3862
|
+
["pw-perf.mode", report.mode],
|
|
3863
|
+
["pw-perf.env", report.env ?? ""],
|
|
3864
|
+
["pw-perf.toolVersion", report.tool.version],
|
|
3865
|
+
["pw-perf.evaluation", report.evaluation.status],
|
|
3866
|
+
["pw-perf.exitCode", String(exitCode)],
|
|
3867
|
+
["pw-perf.passes", `${String(report.passes.completed)}/${String(report.passes.planned)}`],
|
|
3868
|
+
// Number of merged shards (17-REQ-17); 0 until a merge writes the report.
|
|
3869
|
+
["pw-perf.shards", "0"],
|
|
3870
|
+
["pw-perf.commit", ci?.commit ?? ""],
|
|
3871
|
+
["pw-perf.branch", ci?.branch ?? ""],
|
|
3872
|
+
["pw-perf.buildUrl", ci?.buildUrl ?? ""]
|
|
3873
|
+
]
|
|
3874
|
+
}
|
|
3875
|
+
];
|
|
3876
|
+
const byKind = {
|
|
3877
|
+
api: report.endpoints,
|
|
3878
|
+
step: report.steps
|
|
3879
|
+
};
|
|
3880
|
+
for (const { kind: kind2, name, classname } of SUITES) {
|
|
3881
|
+
const keys = Object.keys(byKind[kind2]).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
3882
|
+
if (keys.length === 0) continue;
|
|
3883
|
+
suites.push({
|
|
3884
|
+
name,
|
|
3885
|
+
cases: keys.map((key2) => keyCase(kind2, classname, key2, byKind[kind2][key2], ctx))
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
const all = suites.flatMap((s) => s.cases);
|
|
3889
|
+
const t = totals(all);
|
|
3890
|
+
const duration = Date.parse(report.finishedAt) - Date.parse(report.startedAt);
|
|
3891
|
+
const lines = [
|
|
3892
|
+
'<?xml version="1.0" encoding="UTF-8"?>',
|
|
3893
|
+
`<testsuites${attrs({
|
|
3894
|
+
name: "pw-perf",
|
|
3895
|
+
tests: t.tests,
|
|
3896
|
+
failures: t.failures,
|
|
3897
|
+
errors: t.errors,
|
|
3898
|
+
time: seconds(Number.isFinite(duration) ? duration : 0)
|
|
3899
|
+
})}>`,
|
|
3900
|
+
...suites.flatMap((s) => suiteXml(s, report.startedAt)),
|
|
3901
|
+
"</testsuites>"
|
|
3902
|
+
];
|
|
3903
|
+
return `${lines.join("\n")}
|
|
3904
|
+
`;
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3471
3907
|
// src/core/report/next-hint.ts
|
|
3472
3908
|
function perfCommand(mode2, env, command, platform) {
|
|
3473
3909
|
const vars = `PW_PERF_MODE=${mode2}${env === null ? "" : ` PW_PERF_ENV=${env}`}`;
|
|
@@ -3546,7 +3982,9 @@ function nextHint(input) {
|
|
|
3546
3982
|
const local = report.ci === null ? "; for CI, derive them on the CI machines (docs/thresholds.md)" : "";
|
|
3547
3983
|
return `commit ${files}${local}`;
|
|
3548
3984
|
}
|
|
3549
|
-
if (report.warnings.some(
|
|
3985
|
+
if (report.warnings.some(
|
|
3986
|
+
(w) => w.code === "THRESHOLDS_FILE_MISSING" || w.code === "THRESHOLDS_FILE_EMPTY"
|
|
3987
|
+
)) {
|
|
3550
3988
|
return `derive thresholds: ${commands.thresholds}`;
|
|
3551
3989
|
}
|
|
3552
3990
|
if (report.evaluation.status === "failed") {
|
|
@@ -3566,8 +4004,8 @@ function estimateText(input) {
|
|
|
3566
4004
|
const mean = input.meanMs;
|
|
3567
4005
|
if (mean === null) return "not available (no measured test ran)";
|
|
3568
4006
|
const run = (passes) => passes * (input.setupMs + input.tests * mean);
|
|
3569
|
-
const
|
|
3570
|
-
return `measurement run \u2248 ${formatDuration(run(input.passesTest))} (${String(input.tests)} tests \xD7 ${String(input.passesTest)} passes \xD7 ${
|
|
4007
|
+
const seconds2 = (Math.round(mean / 100) / 10).toFixed(1);
|
|
4008
|
+
return `measurement run \u2248 ${formatDuration(run(input.passesTest))} (${String(input.tests)} tests \xD7 ${String(input.passesTest)} passes \xD7 ${seconds2} s), thresholds run \u2248 ${formatDuration(run(input.passesThresholds))} (\xD7 ${String(input.passesThresholds)} passes), 1 worker`;
|
|
3571
4009
|
}
|
|
3572
4010
|
function msPerTest(report) {
|
|
3573
4011
|
const executions = report.tests.expected + report.tests.unexpected + report.tests.flaky;
|
|
@@ -4182,6 +4620,36 @@ var StepRecorder = class {
|
|
|
4182
4620
|
}
|
|
4183
4621
|
};
|
|
4184
4622
|
|
|
4623
|
+
// src/reporter/junit.ts
|
|
4624
|
+
async function writeJunitFile(io, report, dir, build = buildJunitXml) {
|
|
4625
|
+
const path = io.resolvePath(dir, JUNIT_FILE);
|
|
4626
|
+
const hint2 = "Check that report.dir is writable, then run again; set report.junit to false to skip the file.";
|
|
4627
|
+
let xml;
|
|
4628
|
+
try {
|
|
4629
|
+
xml = build(report);
|
|
4630
|
+
} catch (error) {
|
|
4631
|
+
return {
|
|
4632
|
+
issue: {
|
|
4633
|
+
code: "REPORT_JUNIT_WRITE_FAILED",
|
|
4634
|
+
message: `junit.xml could not be built: ${error instanceof Error ? error.stack ?? error.message : String(error)}`,
|
|
4635
|
+
hint: "This is a bug in the package; please report it with the message above. report.json is complete."
|
|
4636
|
+
}
|
|
4637
|
+
};
|
|
4638
|
+
}
|
|
4639
|
+
try {
|
|
4640
|
+
await io.writeTextAtomic(path, xml);
|
|
4641
|
+
return { path };
|
|
4642
|
+
} catch (error) {
|
|
4643
|
+
return {
|
|
4644
|
+
issue: {
|
|
4645
|
+
code: "REPORT_JUNIT_WRITE_FAILED",
|
|
4646
|
+
message: `junit.xml could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}`,
|
|
4647
|
+
hint: hint2
|
|
4648
|
+
}
|
|
4649
|
+
};
|
|
4650
|
+
}
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4185
4653
|
// src/core/thresholds/constants.ts
|
|
4186
4654
|
var WILSON_SELF_GAP = 0.01;
|
|
4187
4655
|
var ERR_SELF_GAP = 0.01;
|
|
@@ -4333,7 +4801,7 @@ function entrySelfConsistent(entry, aggregate2, kind2, cfg) {
|
|
|
4333
4801
|
var MS_LIMITS = /* @__PURE__ */ new Set(["t", "median", "percentile", "p99"]);
|
|
4334
4802
|
var TIME_LIMITS = ["median", "percentile", "p99"];
|
|
4335
4803
|
function isComplete(entry) {
|
|
4336
|
-
return
|
|
4804
|
+
return chunkVREOANPX_cjs.LIMIT_NAMES.every((name) => entry[name] !== void 0);
|
|
4337
4805
|
}
|
|
4338
4806
|
function limitsOf(entry) {
|
|
4339
4807
|
return {
|
|
@@ -4350,7 +4818,7 @@ function atMost(a, b) {
|
|
|
4350
4818
|
return Math.round(a * 1e6) <= Math.round(b * 1e6);
|
|
4351
4819
|
}
|
|
4352
4820
|
function withinHysteresis(before, after, hysteresis) {
|
|
4353
|
-
return
|
|
4821
|
+
return chunkVREOANPX_cjs.LIMIT_NAMES.every((name) => {
|
|
4354
4822
|
const a = before[name];
|
|
4355
4823
|
const b = after[name];
|
|
4356
4824
|
if (a === null || b === null) return a === b;
|
|
@@ -4409,11 +4877,11 @@ function refusal(report, cfg, existing) {
|
|
|
4409
4877
|
{
|
|
4410
4878
|
code: "THRESHOLDS_SOURCE_INCOMPLETE",
|
|
4411
4879
|
message: `The source report is incomplete or untrustworthy (${incomplete.join("; ")}); no thresholds file was written.`,
|
|
4412
|
-
hint: `Fix the cause and derive again with \`${
|
|
4880
|
+
hint: `Fix the cause and derive again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`: thresholds are derived from complete runs only.`
|
|
4413
4881
|
}
|
|
4414
4882
|
];
|
|
4415
4883
|
}
|
|
4416
|
-
if (
|
|
4884
|
+
if (chunkVREOANPX_cjs.KINDS.every((kind2) => Object.keys(aggregatesOf(report, kind2)).length === 0)) {
|
|
4417
4885
|
return [
|
|
4418
4886
|
{
|
|
4419
4887
|
code: "THRESHOLDS_EMPTY_REPORT",
|
|
@@ -4422,7 +4890,7 @@ function refusal(report, cfg, existing) {
|
|
|
4422
4890
|
}
|
|
4423
4891
|
];
|
|
4424
4892
|
}
|
|
4425
|
-
const derivable =
|
|
4893
|
+
const derivable = chunkVREOANPX_cjs.KINDS.some(
|
|
4426
4894
|
(kind2) => Object.values(aggregatesOf(report, kind2)).some((stats2) => isDerivable(stats2, cfg.checks))
|
|
4427
4895
|
);
|
|
4428
4896
|
if (!derivable) {
|
|
@@ -4434,7 +4902,7 @@ function refusal(report, cfg, existing) {
|
|
|
4434
4902
|
}
|
|
4435
4903
|
];
|
|
4436
4904
|
}
|
|
4437
|
-
const invalid =
|
|
4905
|
+
const invalid = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => {
|
|
4438
4906
|
const file = existing[kind2];
|
|
4439
4907
|
return file.status === "invalid" ? file.issues.map(schemaIssueToIssue) : [];
|
|
4440
4908
|
});
|
|
@@ -4447,7 +4915,7 @@ function generatedBlock(report, cfg, kind2, opts) {
|
|
|
4447
4915
|
0
|
|
4448
4916
|
);
|
|
4449
4917
|
return {
|
|
4450
|
-
tool: { name:
|
|
4918
|
+
tool: { name: chunkVREOANPX_cjs.PACKAGE_NAME, version: opts.toolVersion },
|
|
4451
4919
|
env: opts.env,
|
|
4452
4920
|
sourceRunId: report.runId,
|
|
4453
4921
|
sourceRunStartedAt: report.startedAt,
|
|
@@ -4493,7 +4961,7 @@ function deriveKind(report, cfg, file, opts) {
|
|
|
4493
4961
|
return { file: { kind: kind2, content: null, changed: false }, warnings, loosenedMuch: 0 };
|
|
4494
4962
|
}
|
|
4495
4963
|
const loaded = file.status === "loaded" ? file : null;
|
|
4496
|
-
if (loaded !== null && loaded.file.generated === null) {
|
|
4964
|
+
if (loaded !== null && loaded.file.generated === null && Object.keys(loaded.file.entries).length > 0) {
|
|
4497
4965
|
warnings.push({
|
|
4498
4966
|
code: "THRESHOLDS_MANUAL_FILE",
|
|
4499
4967
|
message: `${loaded.path} was written by hand (generated: null); its complete entries that are not locked are recomputed.`,
|
|
@@ -4515,7 +4983,7 @@ function deriveKind(report, cfg, file, opts) {
|
|
|
4515
4983
|
}
|
|
4516
4984
|
if (keysDiffer) {
|
|
4517
4985
|
hints.push(
|
|
4518
|
-
`Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${
|
|
4986
|
+
`Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${chunkVREOANPX_cjs.PRUNE_COMMAND}\`.`
|
|
4519
4987
|
);
|
|
4520
4988
|
}
|
|
4521
4989
|
warnings.push({
|
|
@@ -4574,7 +5042,7 @@ function deriveKind(report, cfg, file, opts) {
|
|
|
4574
5042
|
};
|
|
4575
5043
|
}
|
|
4576
5044
|
function deriveThresholds(report, cfg, existing, opts) {
|
|
4577
|
-
for (const kind2 of
|
|
5045
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
4578
5046
|
const found = existing[kind2].kind;
|
|
4579
5047
|
if (found !== kind2) {
|
|
4580
5048
|
throw new Error(`deriveThresholds: existing.${kind2} has kind "${found}"`);
|
|
@@ -4602,12 +5070,12 @@ function deriveThresholds(report, cfg, existing, opts) {
|
|
|
4602
5070
|
warnings.push({
|
|
4603
5071
|
code: "THRESHOLDS_SOURCE_TEST_MODE",
|
|
4604
5072
|
message: "The source report comes from test mode, which runs fewer repetitions than a thresholds run.",
|
|
4605
|
-
hint: `Prefer a report of a thresholds run (\`${
|
|
5073
|
+
hint: `Prefer a report of a thresholds run (\`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`) as the source.`
|
|
4606
5074
|
});
|
|
4607
5075
|
}
|
|
4608
5076
|
const files = [];
|
|
4609
5077
|
let much = 0;
|
|
4610
|
-
for (const kind2 of
|
|
5078
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
4611
5079
|
const file = existing[kind2];
|
|
4612
5080
|
if (file.status === "invalid") throw new Error("deriveThresholds: unreachable invalid file");
|
|
4613
5081
|
if ((kind2 !== "api" || !cfg.measure.api) && file.status === "missing") {
|
|
@@ -4634,7 +5102,7 @@ function limitChanges(before, after, loosenWarnRelative) {
|
|
|
4634
5102
|
const a = limitsOf(before);
|
|
4635
5103
|
const b = limitsOf(after);
|
|
4636
5104
|
const changes = [];
|
|
4637
|
-
for (const limit of
|
|
5105
|
+
for (const limit of chunkVREOANPX_cjs.LIMIT_NAMES) {
|
|
4638
5106
|
const direction = changeDirection(limit, a[limit], b[limit]);
|
|
4639
5107
|
if (direction === null) continue;
|
|
4640
5108
|
const change = { limit, before: a[limit], after: b[limit], direction };
|
|
@@ -4677,7 +5145,7 @@ function keptKey(key2, before, after, stats2, kind2, cfg) {
|
|
|
4677
5145
|
}
|
|
4678
5146
|
const fresh = cfg.thresholds.update === "all" ? deriveEntry(stats2, kind2, cfg) : null;
|
|
4679
5147
|
const old = limitsOf(before);
|
|
4680
|
-
const kept = fresh !== null &&
|
|
5148
|
+
const kept = fresh !== null && chunkVREOANPX_cjs.LIMIT_NAMES.some((name) => fresh[name] !== old[name]);
|
|
4681
5149
|
return { key: key2, category: "unchanged", changes: [], ...kept ? { withinHysteresis: true } : {} };
|
|
4682
5150
|
}
|
|
4683
5151
|
function diffThresholds(before, after, report, cfg) {
|
|
@@ -4710,7 +5178,7 @@ function diffThresholds(before, after, report, cfg) {
|
|
|
4710
5178
|
if (muting !== null) diff.muted = { until: muting.until, expired: muting.expired };
|
|
4711
5179
|
diffs.push(diff);
|
|
4712
5180
|
}
|
|
4713
|
-
const counts = Object.fromEntries(
|
|
5181
|
+
const counts = Object.fromEntries(chunkVREOANPX_cjs.DIFF_CATEGORIES.map((c) => [c, 0]));
|
|
4714
5182
|
for (const diff of diffs) counts[diff.category] += 1;
|
|
4715
5183
|
return {
|
|
4716
5184
|
kind: kind2,
|
|
@@ -4736,15 +5204,15 @@ function formatThresholdsDiffMarkdown(diffs, paths) {
|
|
|
4736
5204
|
"",
|
|
4737
5205
|
`## ${cell(path)} (${diff.fileStatus === "not-written" ? "not written" : diff.fileStatus})`,
|
|
4738
5206
|
"",
|
|
4739
|
-
|
|
5207
|
+
chunkVREOANPX_cjs.diffCountsText(diff)
|
|
4740
5208
|
);
|
|
4741
|
-
const listed = diff.keys.filter((k) =>
|
|
5209
|
+
const listed = diff.keys.filter((k) => chunkVREOANPX_cjs.LISTED_CATEGORIES.has(k.category));
|
|
4742
5210
|
if (listed.length > 0) {
|
|
4743
5211
|
lines.push("", "| | Key | Before | After |", "|---|---|---|---|");
|
|
4744
5212
|
for (const k of listed) {
|
|
4745
|
-
const before =
|
|
4746
|
-
const after =
|
|
4747
|
-
lines.push(`| ${
|
|
5213
|
+
const before = chunkVREOANPX_cjs.diffValuesText(k, "before", diff.level, " \xB7 ");
|
|
5214
|
+
const after = chunkVREOANPX_cjs.diffValuesText(k, "after", diff.level, " \xB7 ");
|
|
5215
|
+
lines.push(`| ${chunkVREOANPX_cjs.diffMarker(k)} | ${code(k.key)} | ${cell(before)} | ${cell(after)} |`);
|
|
4748
5216
|
}
|
|
4749
5217
|
}
|
|
4750
5218
|
const skipped2 = diff.keys.filter((k) => k.category === "skipped" && k.samples !== void 0);
|
|
@@ -4752,7 +5220,7 @@ function formatThresholdsDiffMarkdown(diffs, paths) {
|
|
|
4752
5220
|
lines.push("", "Skipped (no entry derived):", "");
|
|
4753
5221
|
for (const k of skipped2) {
|
|
4754
5222
|
if (k.samples !== void 0)
|
|
4755
|
-
lines.push(`- ${code(k.key)}: ${
|
|
5223
|
+
lines.push(`- ${code(k.key)}: ${chunkVREOANPX_cjs.skippedReasonText(k.samples)}`);
|
|
4756
5224
|
}
|
|
4757
5225
|
}
|
|
4758
5226
|
const expired = diff.keys.filter((k) => k.muted?.expired === true);
|
|
@@ -4837,37 +5305,101 @@ function plural2(n, word, many = `${word}s`) {
|
|
|
4837
5305
|
return `${n} ${n === 1 ? word : many}`;
|
|
4838
5306
|
}
|
|
4839
5307
|
function truncateMiddle(text2, width) {
|
|
4840
|
-
|
|
4841
|
-
if (chars.length <= width) return text2;
|
|
5308
|
+
if (textWidth(text2) <= width) return text2;
|
|
4842
5309
|
if (width <= 1) return "\u2026".slice(0, width);
|
|
4843
|
-
const
|
|
4844
|
-
const
|
|
4845
|
-
|
|
5310
|
+
const chars = clusters(text2);
|
|
5311
|
+
const headRoom = Math.ceil((width - 1) / 2);
|
|
5312
|
+
const tailRoom = width - 1 - headRoom;
|
|
5313
|
+
let head = "";
|
|
5314
|
+
let used = 0;
|
|
5315
|
+
for (const c of chars) {
|
|
5316
|
+
if (used + c.width > headRoom) break;
|
|
5317
|
+
head += c.text;
|
|
5318
|
+
used += c.width;
|
|
5319
|
+
}
|
|
5320
|
+
let tail2 = "";
|
|
5321
|
+
used = 0;
|
|
5322
|
+
for (let i = chars.length - 1; i >= 0; i -= 1) {
|
|
5323
|
+
const c = chars[i];
|
|
5324
|
+
if (c === void 0 || used + c.width > tailRoom) break;
|
|
5325
|
+
tail2 = c.text + tail2;
|
|
5326
|
+
used += c.width;
|
|
5327
|
+
}
|
|
5328
|
+
return `${head}\u2026${tail2}`;
|
|
4846
5329
|
}
|
|
4847
5330
|
var WIDE = [
|
|
4848
5331
|
[8986, 8987],
|
|
4849
5332
|
[9193, 9196],
|
|
4850
5333
|
[9200, 9200],
|
|
4851
5334
|
[9203, 9203],
|
|
5335
|
+
[9725, 9726],
|
|
5336
|
+
[9748, 9749],
|
|
5337
|
+
[9800, 9811],
|
|
5338
|
+
[9855, 9855],
|
|
5339
|
+
[9875, 9875],
|
|
4852
5340
|
[9889, 9889],
|
|
5341
|
+
[9898, 9899],
|
|
5342
|
+
[9917, 9918],
|
|
5343
|
+
[9924, 9925],
|
|
5344
|
+
[9934, 9934],
|
|
4853
5345
|
[9940, 9940],
|
|
5346
|
+
[9962, 9962],
|
|
5347
|
+
[9970, 9971],
|
|
5348
|
+
[9973, 9973],
|
|
5349
|
+
[9978, 9978],
|
|
5350
|
+
[9981, 9981],
|
|
4854
5351
|
[9989, 9989],
|
|
5352
|
+
[9994, 9995],
|
|
5353
|
+
[10024, 10024],
|
|
4855
5354
|
[10060, 10060],
|
|
4856
5355
|
[10062, 10062],
|
|
4857
5356
|
[10067, 10069],
|
|
4858
5357
|
[10071, 10071],
|
|
5358
|
+
[10133, 10135],
|
|
5359
|
+
[10160, 10160],
|
|
5360
|
+
[10175, 10175],
|
|
5361
|
+
[11035, 11036],
|
|
4859
5362
|
[11088, 11088],
|
|
4860
5363
|
[11093, 11093],
|
|
4861
5364
|
[127744, 129791]
|
|
4862
5365
|
];
|
|
5366
|
+
var ZERO = [
|
|
5367
|
+
[768, 879],
|
|
5368
|
+
[8203, 8205],
|
|
5369
|
+
[8400, 8447],
|
|
5370
|
+
[65024, 65039],
|
|
5371
|
+
[127995, 127999],
|
|
5372
|
+
[917760, 917999]
|
|
5373
|
+
];
|
|
5374
|
+
var VS16 = 65039;
|
|
5375
|
+
var ZWJ = 8205;
|
|
5376
|
+
function inRanges(cp, ranges) {
|
|
5377
|
+
return ranges.some(([from, to]) => cp >= from && cp <= to);
|
|
5378
|
+
}
|
|
4863
5379
|
function charWidth(char) {
|
|
4864
5380
|
const cp = char.codePointAt(0) ?? 0;
|
|
4865
|
-
|
|
5381
|
+
if (inRanges(cp, ZERO)) return 0;
|
|
5382
|
+
return inRanges(cp, WIDE) ? 2 : 1;
|
|
5383
|
+
}
|
|
5384
|
+
function clusters(text2) {
|
|
5385
|
+
const out = [];
|
|
5386
|
+
let joined = false;
|
|
5387
|
+
for (const char of text2) {
|
|
5388
|
+
const cp = char.codePointAt(0) ?? 0;
|
|
5389
|
+
const last = out[out.length - 1];
|
|
5390
|
+
if (last !== void 0 && (joined || charWidth(char) === 0)) {
|
|
5391
|
+
last.text += char;
|
|
5392
|
+
if (cp === VS16) last.width = 2;
|
|
5393
|
+
joined = cp === ZWJ;
|
|
5394
|
+
continue;
|
|
5395
|
+
}
|
|
5396
|
+
out.push({ text: char, width: charWidth(char) });
|
|
5397
|
+
joined = false;
|
|
5398
|
+
}
|
|
5399
|
+
return out;
|
|
4866
5400
|
}
|
|
4867
5401
|
function textWidth(text2) {
|
|
4868
|
-
|
|
4869
|
-
for (const char of text2) width += charWidth(char);
|
|
4870
|
-
return width;
|
|
5402
|
+
return clusters(text2).reduce((sum3, c) => sum3 + c.width, 0);
|
|
4871
5403
|
}
|
|
4872
5404
|
function padEnd(text2, width) {
|
|
4873
5405
|
return text2 + " ".repeat(Math.max(0, width - textWidth(text2)));
|
|
@@ -4887,9 +5419,8 @@ function cellsOf(line) {
|
|
|
4887
5419
|
const spans = line.spans ?? [{ text: line.text ?? "", style: line.style }];
|
|
4888
5420
|
const cells = [];
|
|
4889
5421
|
for (const span of spans) {
|
|
4890
|
-
for (const
|
|
4891
|
-
cells.push({ char, style: span.style, width:
|
|
4892
|
-
}
|
|
5422
|
+
for (const c of clusters(span.text))
|
|
5423
|
+
cells.push({ char: c.text, style: span.style, width: c.width });
|
|
4893
5424
|
}
|
|
4894
5425
|
return cells;
|
|
4895
5426
|
}
|
|
@@ -4978,14 +5509,22 @@ function boxLines(lines, opts) {
|
|
|
4978
5509
|
out.push(border(`${g.bl}${g.h.repeat(inner + 2)}${g.br}`));
|
|
4979
5510
|
return out;
|
|
4980
5511
|
}
|
|
4981
|
-
function
|
|
4982
|
-
|
|
4983
|
-
|
|
5512
|
+
function cutText(text2, width) {
|
|
5513
|
+
if (textWidth(text2) <= width) return text2;
|
|
5514
|
+
let out = "";
|
|
5515
|
+
let used = 0;
|
|
5516
|
+
for (const c of clusters(text2)) {
|
|
5517
|
+
if (used + c.width > width - 1) break;
|
|
5518
|
+
out += c.text;
|
|
5519
|
+
used += c.width;
|
|
5520
|
+
}
|
|
5521
|
+
return `${out}\u2026`;
|
|
4984
5522
|
}
|
|
4985
5523
|
function table(columns, rows, opts) {
|
|
4986
5524
|
const g = opts.ascii ? { v: "|", h: "-", top: ["+", "+", "+"], mid: ["+", "+", "+"], bottom: ["+", "+", "+"] } : { v: "\u2502", h: "\u2500", top: ["\u250C", "\u252C", "\u2510"], mid: ["\u251C", "\u253C", "\u2524"], bottom: ["\u2514", "\u2534", "\u2518"] };
|
|
5525
|
+
const header3 = opts.header !== false;
|
|
4987
5526
|
const natural = columns.map(
|
|
4988
|
-
(c, i) => Math.max(textWidth(c.header), ...rows.map((r2) => textWidth(r2.cells[i] ?? "")))
|
|
5527
|
+
(c, i) => Math.max(header3 ? textWidth(c.header) : 0, ...rows.map((r2) => textWidth(r2.cells[i] ?? "")))
|
|
4989
5528
|
);
|
|
4990
5529
|
const overhead = 3 * columns.length + 1;
|
|
4991
5530
|
const widths = columns.map((c, i) => {
|
|
@@ -4993,26 +5532,45 @@ function table(columns, rows, opts) {
|
|
|
4993
5532
|
const others = natural.reduce((sum3, w, j) => j === i ? sum3 : sum3 + w, 0);
|
|
4994
5533
|
return Math.max(c.minWidth ?? 1, Math.min(natural[i] ?? 0, opts.width - overhead - others));
|
|
4995
5534
|
});
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
5535
|
+
let title2 = opts.title ?? "";
|
|
5536
|
+
if (title2 !== "") {
|
|
5537
|
+
const inner = () => widths.reduce((sum3, w) => sum3 + w + 3, -1);
|
|
5538
|
+
const room = Math.max(1, opts.width - 2 - 4);
|
|
5539
|
+
title2 = cutText(title2, room);
|
|
5540
|
+
const need = textWidth(title2) + 4 - inner();
|
|
5541
|
+
const last = widths.length - 1;
|
|
5542
|
+
if (need > 0 && last >= 0) widths[last] = (widths[last] ?? 0) + need;
|
|
5543
|
+
}
|
|
5544
|
+
const border = opts.border ?? "dim";
|
|
5545
|
+
const edge = (text2) => paint(text2, border, opts.color);
|
|
5546
|
+
const ruleText = ([left, cross, right]) => `${left}${widths.map((w) => g.h.repeat(w + 2)).join(cross)}${right}`;
|
|
5547
|
+
const rule = (marks2) => edge(ruleText(marks2));
|
|
5548
|
+
const top = () => {
|
|
5549
|
+
if (title2 === "") return rule(g.top);
|
|
5550
|
+
const rest = ruleText(g.top).slice(textWidth(title2) + 4);
|
|
5551
|
+
return `${edge(`${g.top[0] ?? ""}${g.h} `)}${paint(title2, "bold", opts.color)}${edge(` ${rest}`)}`;
|
|
5552
|
+
};
|
|
5553
|
+
const line = (cells, style, cellStyles = []) => {
|
|
4999
5554
|
const texts = columns.map((c, i) => {
|
|
5000
5555
|
const w = widths[i] ?? 0;
|
|
5001
5556
|
const raw = cells[i] ?? "";
|
|
5002
5557
|
const text2 = c.flex === true ? truncateMiddle(raw, w) : raw;
|
|
5003
5558
|
const padded = c.align === "right" ? padStart(text2, w) : padEnd(text2, w);
|
|
5004
|
-
|
|
5559
|
+
const cellStyle = cellStyles[i] ?? style ?? c.style;
|
|
5560
|
+
return cellStyle === void 0 ? padded : paint(padded, cellStyle, opts.color);
|
|
5005
5561
|
});
|
|
5006
|
-
return `${
|
|
5562
|
+
return `${edge(g.v)} ${texts.join(` ${edge(g.v)} `)} ${edge(g.v)}`;
|
|
5007
5563
|
};
|
|
5008
5564
|
return [
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5565
|
+
top(),
|
|
5566
|
+
...header3 ? [
|
|
5567
|
+
line(
|
|
5568
|
+
columns.map((c) => c.header),
|
|
5569
|
+
"bold"
|
|
5570
|
+
),
|
|
5571
|
+
rule(g.mid)
|
|
5572
|
+
] : [],
|
|
5573
|
+
...rows.map((r2) => line(r2.cells, r2.style, r2.cellStyles)),
|
|
5016
5574
|
rule(g.bottom)
|
|
5017
5575
|
];
|
|
5018
5576
|
}
|
|
@@ -5021,6 +5579,7 @@ function table(columns, rows, opts) {
|
|
|
5021
5579
|
var MAX_WARNINGS = 10;
|
|
5022
5580
|
var MAX_VIOLATION_ROWS = 20;
|
|
5023
5581
|
var MAX_SLOWEST_LINES = 5;
|
|
5582
|
+
var MAX_DEFAULT_ROWS = 10;
|
|
5024
5583
|
var MIN_KEY_WIDTH = 30;
|
|
5025
5584
|
var KIND_LABEL = { api: "Endpoints", step: "Steps" };
|
|
5026
5585
|
var ALWAYS_SHOWN = /* @__PURE__ */ new Set(["api"]);
|
|
@@ -5031,7 +5590,7 @@ function aggregatesOf2(report, kind2) {
|
|
|
5031
5590
|
};
|
|
5032
5591
|
return byKind[kind2];
|
|
5033
5592
|
}
|
|
5034
|
-
var
|
|
5593
|
+
var RULE_ORDER3 = [
|
|
5035
5594
|
"median",
|
|
5036
5595
|
"percentile",
|
|
5037
5596
|
"p99",
|
|
@@ -5039,33 +5598,9 @@ var RULE_ORDER2 = [
|
|
|
5039
5598
|
"wilson",
|
|
5040
5599
|
"errors"
|
|
5041
5600
|
];
|
|
5042
|
-
var TIME_RULES3 = /* @__PURE__ */ new Set([
|
|
5043
|
-
"median",
|
|
5044
|
-
"percentile",
|
|
5045
|
-
"p99"
|
|
5046
|
-
]);
|
|
5047
|
-
function exceedance(check2) {
|
|
5048
|
-
if (check2.rule === "apdex") return check2.actual === 0 ? Infinity : check2.limit / check2.actual;
|
|
5049
|
-
return check2.limit === 0 ? Infinity : check2.actual / check2.limit;
|
|
5050
|
-
}
|
|
5051
|
-
var SHARE_RULES = /* @__PURE__ */ new Set([
|
|
5052
|
-
"apdex",
|
|
5053
|
-
"wilson",
|
|
5054
|
-
"errors"
|
|
5055
|
-
]);
|
|
5056
|
-
function overText(check2) {
|
|
5057
|
-
if (SHARE_RULES.has(check2.rule)) {
|
|
5058
|
-
const points = Math.max(1, Math.round(Math.abs(check2.actual - check2.limit) * 100));
|
|
5059
|
-
return `+${String(points)} pp`;
|
|
5060
|
-
}
|
|
5061
|
-
const r2 = exceedance(check2);
|
|
5062
|
-
if (!Number.isFinite(r2)) return ">999%";
|
|
5063
|
-
const over = Math.round((r2 - 1) * 100);
|
|
5064
|
-
return over > 999 ? ">999%" : `+${over}%`;
|
|
5065
|
-
}
|
|
5066
5601
|
function violations(report) {
|
|
5067
5602
|
const list2 = [];
|
|
5068
|
-
for (const kind2 of
|
|
5603
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
5069
5604
|
const aggregates = aggregatesOf2(report, kind2);
|
|
5070
5605
|
for (const [key2, aggregate2] of Object.entries(aggregates)) {
|
|
5071
5606
|
for (const check2 of aggregate2.evaluation.checks) {
|
|
@@ -5076,7 +5611,7 @@ function violations(report) {
|
|
|
5076
5611
|
}
|
|
5077
5612
|
}
|
|
5078
5613
|
return list2.sort(
|
|
5079
|
-
(a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) ||
|
|
5614
|
+
(a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) || chunkVREOANPX_cjs.KINDS.indexOf(a.kind) - chunkVREOANPX_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key) || RULE_ORDER3.indexOf(a.check.rule) - RULE_ORDER3.indexOf(b.check.rule)
|
|
5080
5615
|
);
|
|
5081
5616
|
}
|
|
5082
5617
|
function isMuted(evaluation) {
|
|
@@ -5105,9 +5640,9 @@ function issueBox(level, issues, limit, opts) {
|
|
|
5105
5640
|
const indent = textWidth(mark) + 1;
|
|
5106
5641
|
const lines = [];
|
|
5107
5642
|
for (const issue2 of issues.slice(0, limit)) {
|
|
5108
|
-
const
|
|
5643
|
+
const times = issue2.count !== void 0 && issue2.count > 1 ? ` (\xD7${issue2.count})` : "";
|
|
5109
5644
|
lines.push({
|
|
5110
|
-
spans: [{ text: `${mark} ${issue2.code}`, style }, { text: `: ${issue2.message}${
|
|
5645
|
+
spans: [{ text: `${mark} ${issue2.code}`, style }, { text: `: ${issue2.message}${times}` }],
|
|
5111
5646
|
indent
|
|
5112
5647
|
});
|
|
5113
5648
|
if (issue2.hint !== void 0) {
|
|
@@ -5136,7 +5671,7 @@ function issueBox(level, issues, limit, opts) {
|
|
|
5136
5671
|
}
|
|
5137
5672
|
function counterLines(report, opts) {
|
|
5138
5673
|
const counts = report.evaluation.counts;
|
|
5139
|
-
const shown =
|
|
5674
|
+
const shown = chunkVREOANPX_cjs.KINDS.filter(
|
|
5140
5675
|
(kind2) => ALWAYS_SHOWN.has(kind2) || counts[kind2].keys > 0 || counts[kind2].unseenThresholdEntries > 0
|
|
5141
5676
|
);
|
|
5142
5677
|
const percentileOff = report.config.checks?.time?.percentile?.enabled === false;
|
|
@@ -5160,7 +5695,7 @@ function counterLines(report, opts) {
|
|
|
5160
5695
|
function mutedLines(report, paint2) {
|
|
5161
5696
|
const lines = [];
|
|
5162
5697
|
const indent = " ".repeat("Muted: ".length);
|
|
5163
|
-
for (const kind2 of
|
|
5698
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
5164
5699
|
const aggregates = aggregatesOf2(report, kind2);
|
|
5165
5700
|
for (const key2 of Object.keys(aggregates).sort(compareText7)) {
|
|
5166
5701
|
const muted = aggregates[key2]?.evaluation.muted;
|
|
@@ -5171,16 +5706,73 @@ function mutedLines(report, paint2) {
|
|
|
5171
5706
|
}
|
|
5172
5707
|
return lines;
|
|
5173
5708
|
}
|
|
5174
|
-
function
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5709
|
+
function keysOnDefaults(report) {
|
|
5710
|
+
if (report.mode !== "test") return [];
|
|
5711
|
+
const list2 = [];
|
|
5712
|
+
for (const kind2 of chunkVREOANPX_cjs.KINDS) {
|
|
5713
|
+
const file = report.thresholdFiles.find((f) => f.kind === kind2);
|
|
5714
|
+
if (file?.status !== "loaded") continue;
|
|
5715
|
+
const aggregates = Object.entries(aggregatesOf2(report, kind2));
|
|
5716
|
+
const hasEntries = file.unseenKeys.length > 0 || aggregates.some(([, a]) => a.evaluation.thresholdSource === "file");
|
|
5717
|
+
if (!hasEntries) continue;
|
|
5718
|
+
for (const [key2, aggregate2] of aggregates) {
|
|
5719
|
+
const e = aggregate2.evaluation;
|
|
5720
|
+
if (e.thresholdSource !== "default" || e.result === "not-evaluated") continue;
|
|
5721
|
+
const failed = e.checks.filter((c) => !c.passed);
|
|
5722
|
+
const rank = failed.some((c) => c.blocking) ? 2 : failed.length > 0 ? 1 : 0;
|
|
5723
|
+
list2.push({ kind: kind2, key: key2, aggregate: aggregate2, rank });
|
|
5724
|
+
}
|
|
5725
|
+
}
|
|
5726
|
+
return list2.sort(
|
|
5727
|
+
(a, b) => b.rank - a.rank || chunkVREOANPX_cjs.KINDS.indexOf(a.kind) - chunkVREOANPX_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key)
|
|
5728
|
+
);
|
|
5181
5729
|
}
|
|
5182
|
-
function
|
|
5183
|
-
|
|
5730
|
+
function defaultKeyLines(report, opts, m, paint2) {
|
|
5731
|
+
const list2 = keysOnDefaults(report);
|
|
5732
|
+
if (list2.length === 0) return [];
|
|
5733
|
+
const level = report.config.checks?.time?.percentile?.level ?? "percentile";
|
|
5734
|
+
const ms2 = (value) => value === void 0 ? "\u2014" : formatMs(value);
|
|
5735
|
+
const columns = [
|
|
5736
|
+
{ header: "" },
|
|
5737
|
+
{ header: "kind" },
|
|
5738
|
+
{ header: "key", flex: true, minWidth: MIN_KEY_WIDTH },
|
|
5739
|
+
{ header: "n", align: "right" },
|
|
5740
|
+
{ header: "median", align: "right" },
|
|
5741
|
+
{ header: level, align: "right" },
|
|
5742
|
+
{ header: "limit", align: "right" },
|
|
5743
|
+
{ header: "result" }
|
|
5744
|
+
];
|
|
5745
|
+
const shown = list2.slice(0, MAX_DEFAULT_ROWS);
|
|
5746
|
+
const rows = shown.map(({ kind: kind2, key: key2, aggregate: aggregate2, rank }) => {
|
|
5747
|
+
const limits = aggregate2.evaluation.limits;
|
|
5748
|
+
const percentiles = aggregate2.stats?.percentiles;
|
|
5749
|
+
return {
|
|
5750
|
+
cells: [
|
|
5751
|
+
rank === 2 ? m.error : rank === 1 ? m.warn : m.ok,
|
|
5752
|
+
kind2,
|
|
5753
|
+
key2,
|
|
5754
|
+
String(aggregate2.successCount),
|
|
5755
|
+
ms2(percentiles?.["p50"]),
|
|
5756
|
+
ms2(percentiles?.[level]),
|
|
5757
|
+
`${Math.round(limits.median)} / ${formatMs(limits.percentile)}`,
|
|
5758
|
+
rank === 0 ? "pass" : "fail"
|
|
5759
|
+
],
|
|
5760
|
+
...rank === 2 ? { style: "red" } : rank === 1 ? { style: "yellow" } : {}
|
|
5761
|
+
};
|
|
5762
|
+
});
|
|
5763
|
+
const lines = [
|
|
5764
|
+
paint2("On default thresholds (no entry in the thresholds file):", "bold"),
|
|
5765
|
+
...table(columns, rows, opts)
|
|
5766
|
+
];
|
|
5767
|
+
if (list2.length > shown.length) {
|
|
5768
|
+
const more = plural2(
|
|
5769
|
+
list2.length - shown.length,
|
|
5770
|
+
"more key on default thresholds",
|
|
5771
|
+
"more keys on default thresholds"
|
|
5772
|
+
);
|
|
5773
|
+
lines.push(paint2(` \u2026 and ${more} (see report)`, "dim"));
|
|
5774
|
+
}
|
|
5775
|
+
return [...lines, ""];
|
|
5184
5776
|
}
|
|
5185
5777
|
function tableLines(report, list2, opts, m, paint2) {
|
|
5186
5778
|
const level = report.config.checks?.time?.percentile?.level ?? "percentile";
|
|
@@ -5232,7 +5824,7 @@ function slowestLines(report, list2) {
|
|
|
5232
5824
|
if (slowest === void 0) continue;
|
|
5233
5825
|
const t = slowest.test;
|
|
5234
5826
|
lines.push(
|
|
5235
|
-
` slowest: ${v.key} \u2014 ${
|
|
5827
|
+
` slowest: ${v.key} \u2014 ${formatMs(slowest.duration)} in "${t.title}" (${t.file}:${t.line})`
|
|
5236
5828
|
);
|
|
5237
5829
|
}
|
|
5238
5830
|
return lines;
|
|
@@ -5256,8 +5848,8 @@ function errorCauses(report) {
|
|
|
5256
5848
|
}
|
|
5257
5849
|
function resultLines(report, opts, m) {
|
|
5258
5850
|
const counts = report.evaluation.counts;
|
|
5259
|
-
const sum3 = (field3) =>
|
|
5260
|
-
const failed = (blocking) =>
|
|
5851
|
+
const sum3 = (field3) => chunkVREOANPX_cjs.KINDS.reduce((total, kind2) => total + counts[kind2][field3], 0);
|
|
5852
|
+
const failed = (blocking) => chunkVREOANPX_cjs.KINDS.reduce(
|
|
5261
5853
|
(total, kind2) => total + Object.values(aggregatesOf2(report, kind2)).reduce(
|
|
5262
5854
|
(n, a) => n + a.evaluation.checks.filter((c) => !c.passed && (!blocking || c.blocking)).length,
|
|
5263
5855
|
0
|
|
@@ -5342,6 +5934,7 @@ function formatSummary(report, opts) {
|
|
|
5342
5934
|
lines.push(...issueBox("error", report.toolErrors, Infinity, frame));
|
|
5343
5935
|
lines.push(...issueBox("warning", report.warnings, MAX_WARNINGS, frame));
|
|
5344
5936
|
lines.push(...counterLines(report, frame), ...mutedLines(report, paint2), "");
|
|
5937
|
+
lines.push(...defaultKeyLines(report, frame, m, paint2));
|
|
5345
5938
|
if (list2.length > 0) {
|
|
5346
5939
|
lines.push(...tableLines(report, list2, frame, m, paint2));
|
|
5347
5940
|
const slowest = slowestLines(report, list2);
|
|
@@ -5429,36 +6022,40 @@ var TITLES = {
|
|
|
5429
6022
|
function names(list2) {
|
|
5430
6023
|
return list2.map((n) => n === "" ? "(default)" : n).join(", ");
|
|
5431
6024
|
}
|
|
5432
|
-
var LABEL = 10;
|
|
5433
6025
|
function formatStartBanner(input, opts) {
|
|
5434
|
-
const
|
|
5435
|
-
text: `${label.padEnd(LABEL)}${value}`
|
|
5436
|
-
});
|
|
5437
|
-
const icon2 = opts.ascii ? "" : "\u23F1\uFE0F ";
|
|
5438
|
-
const lines = [
|
|
5439
|
-
{ text: `${icon2}${input.packageName} \xB7 ${TITLES[input.mode]}`, style: "bold" }
|
|
5440
|
-
];
|
|
6026
|
+
const rows = [];
|
|
5441
6027
|
const deps = input.dependencies.length > 0 ? ` (setup: ${names(input.dependencies)})` : "";
|
|
5442
|
-
|
|
6028
|
+
rows.push(["Projects", `${names(input.measured)}${deps}`]);
|
|
5443
6029
|
if (input.mode === "check") {
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
)
|
|
5449
|
-
);
|
|
6030
|
+
rows.push([
|
|
6031
|
+
"Tests",
|
|
6032
|
+
`${plural2(input.tests, "test")}; the first test of each file runs once, at most ${String(input.maxTests ?? input.tests)}`
|
|
6033
|
+
]);
|
|
5450
6034
|
} else {
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
)
|
|
5456
|
-
);
|
|
6035
|
+
rows.push([
|
|
6036
|
+
"Tests",
|
|
6037
|
+
`${plural2(input.tests, "test")} \xD7 ${plural2(input.passes, "pass", "passes")} = ${plural2(input.tests * input.passes, "test run")}`
|
|
6038
|
+
]);
|
|
5457
6039
|
}
|
|
5458
|
-
if (input.estimate !== null)
|
|
5459
|
-
|
|
5460
|
-
if (input.tip)
|
|
5461
|
-
|
|
6040
|
+
if (input.estimate !== null) rows.push(["Estimate", input.estimate]);
|
|
6041
|
+
rows.push(["Report", input.report ?? "no files are written"]);
|
|
6042
|
+
if (input.tip) rows.push(["Tip", "measure a subset, e.g. --grep @perf"]);
|
|
6043
|
+
const icon2 = opts.ascii ? "" : "\u23F3 ";
|
|
6044
|
+
const lines = table(
|
|
6045
|
+
[
|
|
6046
|
+
{ header: "", style: "bold" },
|
|
6047
|
+
{ header: "", flex: true, minWidth: 10 }
|
|
6048
|
+
],
|
|
6049
|
+
rows.map((cells) => ({ cells })),
|
|
6050
|
+
{
|
|
6051
|
+
...opts,
|
|
6052
|
+
border: "cyan",
|
|
6053
|
+
header: false,
|
|
6054
|
+
title: `${icon2}${input.packageName} \xB7 ${TITLES[input.mode]}`
|
|
6055
|
+
}
|
|
6056
|
+
);
|
|
6057
|
+
return `${lines.join("\n")}
|
|
6058
|
+
`;
|
|
5462
6059
|
}
|
|
5463
6060
|
|
|
5464
6061
|
// src/console/thresholds-diff.ts
|
|
@@ -5472,57 +6069,56 @@ var MARKER_STYLE = {
|
|
|
5472
6069
|
"\u2193": "green",
|
|
5473
6070
|
"\xB1": "yellow"
|
|
5474
6071
|
};
|
|
6072
|
+
function markerStyle(marker) {
|
|
6073
|
+
if (marker.length > 1) return "red";
|
|
6074
|
+
return MARKER_STYLE[marker] ?? "yellow";
|
|
6075
|
+
}
|
|
5475
6076
|
function fileLines(diff, path, opts, paint2) {
|
|
5476
6077
|
const lines = [`Thresholds: ${path} (${fileStatusText(diff)})`];
|
|
5477
|
-
const listed = diff.keys.filter((k) =>
|
|
6078
|
+
const listed = diff.keys.filter((k) => chunkVREOANPX_cjs.LISTED_CATEGORIES.has(k.category));
|
|
5478
6079
|
const expired = diff.keys.filter((k) => k.muted?.expired === true);
|
|
5479
|
-
if (diff.fileStatus !== "unchanged") lines.push(` ${
|
|
6080
|
+
if (diff.fileStatus !== "unchanged") lines.push(` ${chunkVREOANPX_cjs.diffCountsText(diff)}`);
|
|
6081
|
+
const tableOpts = { width: opts.width, color: opts.color, ascii: opts.ascii === true };
|
|
5480
6082
|
const shown = listed.slice(0, MAX_DIFF_ROWS);
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
};
|
|
5503
|
-
if (rows.length > 0) {
|
|
5504
|
-
lines.push("");
|
|
5505
|
-
for (const r2 of rows) {
|
|
5506
|
-
const head = r2.marker.slice(0, 1);
|
|
5507
|
-
const style = MARKER_STYLE[head] ?? "yellow";
|
|
5508
|
-
lines.push(
|
|
5509
|
-
line(
|
|
5510
|
-
r2,
|
|
5511
|
-
paint2(head, style) + (r2.marker.length > 1 ? paint2(r2.marker.slice(1), "red") : "")
|
|
5512
|
-
)
|
|
5513
|
-
);
|
|
5514
|
-
}
|
|
5515
|
-
if (listed.length > shown.length) {
|
|
5516
|
-
lines.push(` \u2026 and ${listed.length - shown.length} more`);
|
|
5517
|
-
}
|
|
6083
|
+
if (shown.length > 0) {
|
|
6084
|
+
lines.push("");
|
|
6085
|
+
lines.push(
|
|
6086
|
+
...table(
|
|
6087
|
+
[
|
|
6088
|
+
{ header: "" },
|
|
6089
|
+
{ header: "key", flex: true, minWidth: MIN_KEY_WIDTH2 },
|
|
6090
|
+
{ header: "change" }
|
|
6091
|
+
],
|
|
6092
|
+
shown.map((k) => {
|
|
6093
|
+
const marker = chunkVREOANPX_cjs.diffMarker(k);
|
|
6094
|
+
return {
|
|
6095
|
+
cells: [marker, k.key, chunkVREOANPX_cjs.diffChangeText(k, diff.level, " ") + mutedSuffix(k)],
|
|
6096
|
+
cellStyles: [markerStyle(marker)]
|
|
6097
|
+
};
|
|
6098
|
+
}),
|
|
6099
|
+
tableOpts
|
|
6100
|
+
)
|
|
6101
|
+
);
|
|
6102
|
+
if (listed.length > shown.length) {
|
|
6103
|
+
lines.push(paint2(` \u2026 and ${String(listed.length - shown.length)} more`, "dim"));
|
|
5518
6104
|
}
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
6105
|
+
}
|
|
6106
|
+
const skipped2 = diff.keys.filter((k) => k.category === "skipped" && k.samples !== void 0);
|
|
6107
|
+
const skippedShown = skipped2.slice(0, MAX_SKIPPED_ROWS);
|
|
6108
|
+
if (skippedShown.length > 0) {
|
|
6109
|
+
lines.push("");
|
|
6110
|
+
lines.push(
|
|
6111
|
+
...table(
|
|
6112
|
+
[{ header: "skipped", flex: true, minWidth: MIN_KEY_WIDTH2 }, { header: "reason" }],
|
|
6113
|
+
skippedShown.map((k) => ({
|
|
6114
|
+
cells: [k.key, k.samples === void 0 ? "" : chunkVREOANPX_cjs.skippedReasonText(k.samples)]
|
|
6115
|
+
})),
|
|
6116
|
+
tableOpts
|
|
6117
|
+
)
|
|
6118
|
+
);
|
|
6119
|
+
if (skipped2.length > skippedShown.length) {
|
|
6120
|
+
const more = ` \u2026 and ${String(skipped2.length - skippedShown.length)} more skipped`;
|
|
6121
|
+
lines.push(paint2(opts.diffPath === null ? more : `${more} (see thresholds-diff.md)`, "dim"));
|
|
5526
6122
|
}
|
|
5527
6123
|
}
|
|
5528
6124
|
if (expired.length > 0) {
|
|
@@ -5649,7 +6245,7 @@ function html(strings, ...values) {
|
|
|
5649
6245
|
}
|
|
5650
6246
|
|
|
5651
6247
|
// src/html/format.ts
|
|
5652
|
-
function
|
|
6248
|
+
function formatMs2(value) {
|
|
5653
6249
|
if (value >= 1e4) return `${(Math.round(value / 100) / 10).toFixed(1)} s`;
|
|
5654
6250
|
if (value < 10) return `${(Math.round(value * 10) / 10).toFixed(1)} ms`;
|
|
5655
6251
|
return `${Math.round(value)} ms`;
|
|
@@ -5657,8 +6253,8 @@ function formatMs(value) {
|
|
|
5657
6253
|
function formatRatio(value) {
|
|
5658
6254
|
return value.toFixed(3);
|
|
5659
6255
|
}
|
|
5660
|
-
function formatPercent(
|
|
5661
|
-
return `${(Math.round(
|
|
6256
|
+
function formatPercent(share2) {
|
|
6257
|
+
return `${(Math.round(share2 * 1e3) / 10).toFixed(1)}%`;
|
|
5662
6258
|
}
|
|
5663
6259
|
function pad(n) {
|
|
5664
6260
|
return String(n).padStart(2, "0");
|
|
@@ -5693,14 +6289,18 @@ function truncateMiddle2(text2, max) {
|
|
|
5693
6289
|
function basisPoints(usage) {
|
|
5694
6290
|
return Math.round(usage * 1e4);
|
|
5695
6291
|
}
|
|
6292
|
+
var NEAR_LIMIT_BP = 9e3;
|
|
5696
6293
|
function usagePercent(usage) {
|
|
5697
|
-
|
|
6294
|
+
const bp = basisPoints(usage);
|
|
6295
|
+
const pct = Math.round(bp / 100);
|
|
6296
|
+
if (bp < NEAR_LIMIT_BP) return Math.min(89, pct);
|
|
6297
|
+
return bp <= 1e4 ? Math.min(100, pct) : pct;
|
|
5698
6298
|
}
|
|
5699
6299
|
function overPercent(usage) {
|
|
5700
|
-
return Math.max(1, Math.
|
|
6300
|
+
return Math.max(1, Math.round((basisPoints(usage) - 1e4) / 100));
|
|
5701
6301
|
}
|
|
5702
|
-
function usageText(usage, failed, long = false,
|
|
5703
|
-
if (failed &&
|
|
6302
|
+
function usageText(usage, failed, long = false, over) {
|
|
6303
|
+
if (failed && over !== void 0) return `${over} over`;
|
|
5704
6304
|
if (usage === null) return "over (limit 0)";
|
|
5705
6305
|
const suffix = long ? " of limit" : "";
|
|
5706
6306
|
if (basisPoints(usage) >= 1e5) return `>999%${suffix}`;
|
|
@@ -5712,11 +6312,11 @@ function usageText(usage, failed, long = false, points) {
|
|
|
5712
6312
|
var METHODS = /* @__PURE__ */ new Set(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
5713
6313
|
var STEP_SEPARATOR2 = " \u203A ";
|
|
5714
6314
|
function endpointSource(key2) {
|
|
5715
|
-
return
|
|
6315
|
+
return chunkVREOANPX_cjs.isRequestKey(key2) ? "request" : "browser";
|
|
5716
6316
|
}
|
|
5717
6317
|
function splitEndpoint(key2) {
|
|
5718
|
-
const request =
|
|
5719
|
-
const text2 = request ? key2.slice(
|
|
6318
|
+
const request = chunkVREOANPX_cjs.isRequestKey(key2);
|
|
6319
|
+
const text2 = request ? key2.slice(chunkVREOANPX_cjs.REQUEST_KEY_PREFIX.length) : key2;
|
|
5720
6320
|
const space = text2.indexOf(" ");
|
|
5721
6321
|
if (space <= 0) return { method: "", origin: "", path: text2, request };
|
|
5722
6322
|
const method = text2.slice(0, space);
|
|
@@ -5732,11 +6332,15 @@ function pathView(path) {
|
|
|
5732
6332
|
function methodBadge(method) {
|
|
5733
6333
|
return METHODS.has(method) ? html`<b class="m ${method}">${method}</b>` : html`<b class="m">${method}</b>`;
|
|
5734
6334
|
}
|
|
5735
|
-
function
|
|
6335
|
+
function originToken(label, origins) {
|
|
6336
|
+
const address = origins?.find((o) => o.label === label)?.origin;
|
|
6337
|
+
return html`<span class="o" title="${address === void 0 ? "origin label" : `origin label: ${address}`}">${label}</span>`;
|
|
6338
|
+
}
|
|
6339
|
+
function endpointView(key2, max, full, origins) {
|
|
5736
6340
|
const { method, origin, path, request } = splitEndpoint(key2);
|
|
5737
6341
|
const room = Math.max(8, max - method.length - 1 - origin.length - (request ? 8 : 0));
|
|
5738
6342
|
const short = truncateMiddle2(path, room);
|
|
5739
|
-
return html`${request ? html`<span class="rq">request</span> ` : null}${method === "" ? null : html`${methodBadge(method)} `}<span class="key"${short === path && !full ? null : html` title="${key2}"`}>${origin === "" ? null :
|
|
6343
|
+
return html`${request ? html`<span class="rq">request</span> ` : null}${method === "" ? null : html`${methodBadge(method)} `}<span class="key"${short === path && !full ? null : html` title="${key2}"`}>${origin === "" ? null : originToken(origin, origins)}${pathView(short)}</span>`;
|
|
5740
6344
|
}
|
|
5741
6345
|
function stepView(key2, max, full) {
|
|
5742
6346
|
const short = truncateMiddle2(key2, max);
|
|
@@ -5744,8 +6348,8 @@ function stepView(key2, max, full) {
|
|
|
5744
6348
|
const last = titles.pop() ?? "";
|
|
5745
6349
|
return html`<span class="key st"${short === key2 && !full ? null : html` title="${key2}"`}>${titles.map((t) => html`<s>${t}${STEP_SEPARATOR2}</s>`)}<b>${last}</b></span>`;
|
|
5746
6350
|
}
|
|
5747
|
-
function keyView(kind2, key2, max, full = false) {
|
|
5748
|
-
return kind2 === "step" ? stepView(key2, max, full) : endpointView(key2, max, full);
|
|
6351
|
+
function keyView(kind2, key2, max, full = false, origins) {
|
|
6352
|
+
return kind2 === "step" ? stepView(key2, max, full) : endpointView(key2, max, full, origins);
|
|
5749
6353
|
}
|
|
5750
6354
|
function stepDepth(key2) {
|
|
5751
6355
|
const depth = Math.min(3, key2.split(STEP_SEPARATOR2).length);
|
|
@@ -5800,6 +6404,21 @@ function topCheck(checks) {
|
|
|
5800
6404
|
}
|
|
5801
6405
|
return top;
|
|
5802
6406
|
}
|
|
6407
|
+
var RULE_ORDER4 = [
|
|
6408
|
+
"median",
|
|
6409
|
+
"percentile",
|
|
6410
|
+
"p99",
|
|
6411
|
+
"apdex",
|
|
6412
|
+
"wilson",
|
|
6413
|
+
"errors"
|
|
6414
|
+
];
|
|
6415
|
+
function decidingCheck(checks) {
|
|
6416
|
+
const failed = [...checks].filter((c) => !c.passed).sort((a, b) => RULE_ORDER4.indexOf(a.rule) - RULE_ORDER4.indexOf(b.rule));
|
|
6417
|
+
return failed.find((c) => c.blocking && c.hardLimitExceeded) ?? topCheck(failed.filter((c) => c.blocking)) ?? topCheck(failed);
|
|
6418
|
+
}
|
|
6419
|
+
function keyCheck(checks) {
|
|
6420
|
+
return decidingCheck(checks) ?? topCheck(checks);
|
|
6421
|
+
}
|
|
5803
6422
|
function aggregatesOf3(data, kind2) {
|
|
5804
6423
|
const byKind = {
|
|
5805
6424
|
api: data.endpoints,
|
|
@@ -5831,13 +6450,13 @@ function keyAnchor(ctx, kind2, key2) {
|
|
|
5831
6450
|
var KEY_COLUMN_MAX = 80;
|
|
5832
6451
|
function keyLink(ctx, kind2, key2, max = KEY_COLUMN_MAX, full = false) {
|
|
5833
6452
|
const anchor = keyAnchor(ctx, kind2, key2);
|
|
5834
|
-
const view = keyView(kind2, key2, max, full);
|
|
6453
|
+
const view = keyView(kind2, key2, max, full, ctx.report.origins);
|
|
5835
6454
|
return anchor === null ? html`<span class="kl">${view}</span>` : html`<a class="kl" href="#${anchor}">${view}</a>`;
|
|
5836
6455
|
}
|
|
5837
6456
|
|
|
5838
6457
|
// src/html/generated/assets.ts
|
|
5839
|
-
var STYLES = ':root{--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--bg: #f6f7f9;--surface: #ffffff;--sunken: #f1f3f6;--hover: #f7f8fb;--line: #e4e7ec;--line-2: #d0d5dd;--fg: #101828;--fg-2: #475467;--fg-3: #5d6979;--accent: #4f46e5;--accent-2: #4338ca;--accent-soft: #eef0ff;--ok: #067647;--ok-soft: #e6f6ee;--ok-mark: #079455;--warn: #a14c05;--warn-soft: #fef4e4;--warn-mark: #d06306;--bad: #b42318;--bad-soft: #fef3f2;--bad-mark: #d92d20;--bad-solid: #b42318;--mute: #5d6979;--mute-soft: #eef0f3;--mute-mark: #7a8494;--get: #175cd3;--get-bg: #e9f1fe;--post: #067647;--post-bg: #e6f6ee;--put: #a14c05;--put-bg: #fef4e4;--patch: #6938ef;--patch-bg: #f1edfe;--del: #b42318;--del-bg: #fef3f2;--bar: #848ea0;--bar-hi: #5162e8;--on-hi: #ffffff;--track: #eceef2;--r-sm: 6px;--r: 8px;--r-lg: 12px;--sh-1: 0 1px 2px rgb(16 24 40 / 5%);--sh-2: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 12px -2px rgb(16 24 40 / 6%);--sh-3: 0 24px 64px -12px rgb(16 24 40 / 30%), 0 0 0 1px var(--line);--focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);color-scheme:light}@media screen and (prefers-color-scheme:dark){:root{--bg: #0b0d12;--surface: #12151c;--sunken: #0e1117;--hover: #171b24;--line: #232836;--line-2: #323949;--fg: #e7e9ef;--fg-2: #a9b0bf;--fg-3: #8e97a8;--accent: #8b93ff;--accent-2: #a4abff;--accent-soft: #1d2040;--ok: #47cd89;--ok-soft: #0f2a1f;--ok-mark: #2fbf71;--warn: #fdb022;--warn-soft: #2e2210;--warn-mark: #f79009;--bad: #f97066;--bad-soft: #2d1214;--bad-mark: #f04438;--bad-solid: #d92d20;--mute: #98a2b3;--mute-soft: #1c212b;--mute-mark: #667085;--get: #84adff;--get-bg: #14223f;--post: #47cd89;--post-bg: #0f2a1f;--put: #fdb022;--put-bg: #2e2210;--patch: #bdb4fe;--patch-bg: #231b45;--del: #f97066;--del-bg: #2d1214;--bar: #6b7589;--bar-hi: #8b93ff;--on-hi: #0b0d12;--track: #1f2430;--sh-1: 0 1px 2px rgb(0 0 0 / 40%);--sh-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 50%);--sh-3: 0 24px 64px -12px rgb(0 0 0 / 70%), 0 0 0 1px var(--line);color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%;background:var(--bg)}html.modal-open{overflow:hidden}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--r-sm)}h1,h2,h3,h4,p,figure{margin:0}code,.mono{font-family:var(--mono);font-size:.92em}.num{text-align:right;font-variant-numeric:tabular-nums}.sub{color:var(--fg-3)}.sr,.js .js-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;z-index:50;background:var(--surface);padding:8px 12px}.wrap{max-width:1280px;margin:0 auto;padding:0 24px}.appbar{background:var(--surface);border-bottom:1px solid var(--line)}.appbar .wrap{display:flex;align-items:center;gap:16px;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.brand{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.brand b{font-weight:600}.brand .ver{font:500 12px var(--mono);color:var(--fg-3)}.logo{width:24px;height:24px}.logo circle{fill:var(--accent)}.logo path{fill:none;stroke-width:2;stroke-linecap:round}.logo .crown{stroke:var(--accent)}.logo .bars{stroke:var(--on-hi)}.meta{position:relative;display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0}.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:12px;color:var(--fg-2);background:var(--surface);white-space:nowrap}.chip b{font-weight:500;color:var(--fg)}.chip .i{width:14px;height:14px;vertical-align:0;color:var(--fg-3)}.btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg);font:500 13px var(--sans);cursor:pointer;box-shadow:var(--sh-1);white-space:nowrap}.btn:hover{background:var(--hover);text-decoration:none}.btn:disabled{cursor:default;opacity:.45}.btn.icon{width:32px;padding:0;justify-content:center}.btn.sm{height:28px;font-size:12px;padding:0 10px}.btn.icon.sm{width:28px;padding:0}main.wrap{padding-top:24px;padding-bottom:48px}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-2);position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone)}.hero:after{content:"";position:absolute;left:0;top:0;width:480px;height:100%;background:radial-gradient(400px 160px at 0 0,var(--tone-soft),transparent);pointer-events:none}.hero>*{position:relative;z-index:1}.t-bad{--tone: var(--bad-mark);--tone-soft: var(--bad-soft);--tone-fg: var(--bad)}.t-ok{--tone: var(--ok-mark);--tone-soft: var(--ok-soft);--tone-fg: var(--ok)}.t-warn{--tone: var(--warn-mark);--tone-soft: var(--warn-soft);--tone-fg: var(--warn)}.t-err{--tone: var(--fg-2);--tone-soft: var(--mute-soft);--tone-fg: var(--fg)}.verdict{display:flex;gap:16px;align-items:flex-start}.v-ic{width:48px;height:48px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--tone-soft);color:var(--tone-fg);flex:none}.v-ic .i{width:26px;height:26px;stroke-width:2}.eyebrow{font-size:12px;font-weight:500;color:var(--fg-3)}.status{font-size:28px;line-height:36px;font-weight:700;color:var(--tone-fg)}.status .pill{vertical-align:6px;margin-left:8px}.summary{font-size:15px;margin-top:4px;max-width:70ch;overflow-wrap:anywhere}.summary .sub{font-size:13px;display:block;margin-top:4px}.hero .note,.hero>div>div>.sub{margin-top:8px}.subst{display:grid;gap:8px;align-content:center;min-width:280px;margin:0;padding-left:24px;border-left:1px solid var(--line)}.ss{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px}.ss dt{color:var(--fg-3)}.ss dd{margin:0;font-weight:600}.ss dd .sub{font-weight:400}.dot{width:8px;height:8px;border-radius:50%;background:var(--mute-mark);display:inline-block;margin-right:8px}.d-ok{background:var(--ok-mark)}.d-bad{background:var(--bad-mark)}.d-warn{background:var(--warn-mark)}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.kpi{padding:16px 20px;border-left:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}.kpi:first-child{border-left:0}.kpi dt{font-size:12px;color:var(--fg-3);font-weight:500;grid-column:1 / -1}.kpi dd{margin:0}.kv{font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.kv small{font-size:13px;font-weight:500;color:var(--fg-3);margin-left:2px}.kpi .viz{grid-row:2;grid-column:2;align-self:center}.kpi .ks{grid-column:1 / -1;font-size:12px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi.bad .kv{color:var(--bad)}.ring{width:32px;height:32px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4}.ring .tr{stroke:var(--track)}.ring .vl{stroke:var(--warn-mark);stroke-linecap:round}.vsplit{display:flex;width:56px;height:6px;border-radius:3px;overflow:hidden;background:var(--track);gap:2px}.vsplit>span{height:100%}.s-bad{background:var(--bad-mark)}.s-mute{background:var(--mute-mark)}.s-warn{background:var(--warn-mark)}.s-acc{background:var(--bar-hi)}.s-neu{background:var(--bar)}.s-trk{background:var(--track);box-shadow:inset 0 0 0 1px var(--line-2)}.pips{display:flex;gap:3px}.pips span{width:6px;height:14px;border-radius:2px;background:var(--bar-hi)}.pips .off{background:var(--mute-mark)}.tabs{position:sticky;top:0;z-index:20;margin:24px -24px 0;padding:4px 24px 0;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px)}.seg{position:relative;display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--line-2);overflow-x:auto;scrollbar-width:none}.seg a{display:inline-flex;flex:none;align-items:center;gap:8px;min-height:44px;padding:3px 16px 0;border-bottom:3px solid transparent;border-radius:var(--r-sm) var(--r-sm) 0 0;color:var(--fg-2);font-size:14px;font-weight:600;white-space:nowrap}.seg a:hover{color:var(--fg);background:var(--hover);border-bottom-color:var(--line-2);text-decoration:none}.seg a:focus-visible{border-radius:var(--r-sm) var(--r-sm) 0 0;box-shadow:inset 0 0 0 2px var(--accent)}.seg a[aria-selected=true]{color:var(--accent);background:var(--accent-soft);border-bottom-color:var(--accent)}.n{font:600 11px/18px var(--sans);min-width:20px;padding:0 6px;border-radius:9px;background:var(--line);color:var(--fg-2);text-align:center;font-variant-numeric:tabular-nums;display:inline-block}.n.bad{background:var(--bad-soft);color:var(--bad)}.n.warn{background:var(--warn-soft);color:var(--warn)}.panel{margin-top:8px}.js .panel[hidden]{display:none}.ph{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin:24px 0 12px;flex-wrap:wrap}.panel>.ph:first-child{margin-top:8px}.ph h2{font-size:18px;font-weight:600}.ph h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.ph p{color:var(--fg-3);font-size:13px}.ph .more{font-size:13px;font-weight:500}.status-msg:empty{display:none}.status-msg{margin-top:12px;padding:8px 12px;border-radius:var(--r);background:var(--accent-soft)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 16px 0}.card-h h4{font-size:13px;font-weight:600}.card-h .sub{font-size:12px}.card-p{padding:14px 16px 0;font-size:13px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;white-space:nowrap;background:var(--mute-soft);color:var(--mute);line-height:1}.pill.fb{background:var(--bad-solid);color:#fff}.pill.f{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 30%,transparent)}.pill.p{background:var(--ok-soft);color:var(--ok)}.pill.ne{background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-2)}.pill.w{background:var(--warn-soft);color:var(--warn)}.pill.e{background:var(--fg);color:var(--bg)}.pill .i{width:12px;height:12px;vertical-align:0;stroke-width:2}.src{display:inline-block;font:500 11px/18px var(--mono);padding:0 6px;border-radius:4px;color:var(--fg-3);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.es{font:500 11px var(--mono);color:var(--fg-3)}.kind{display:inline-block;font:500 11px/18px var(--sans);padding:0 6px;border-radius:4px;color:var(--fg-2);background:var(--sunken)}.m{display:inline-block;width:52px;text-align:center;font:700 10.5px/20px var(--mono);border-radius:4px;flex:none;color:var(--fg-2);background:var(--sunken)}.GET{color:var(--get);background:var(--get-bg)}.POST{color:var(--post);background:var(--post-bg)}.PUT{color:var(--put);background:var(--put-bg)}.PATCH{color:var(--patch);background:var(--patch-bg)}.DELETE{color:var(--del);background:var(--del-bg)}.key{font-family:var(--mono);font-size:12.5px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.key i{font-style:normal;color:var(--accent)}.key .o{font:500 10.5px/16px var(--sans);padding:0 5px;margin-right:6px;border-radius:4px;background:var(--sunken);color:var(--fg-3);box-shadow:inset 0 0 0 1px var(--line)}.rq{font:500 10.5px/16px var(--sans);padding:0 5px;border-radius:4px;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);white-space:nowrap}.key s{text-decoration:none;color:var(--fg-3)}.key b{font-weight:600}.kl{display:flex;align-items:center;gap:8px;min-width:0;color:inherit}a.kl:hover{text-decoration:none}a.kl:hover .key{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.key.st{font-family:var(--sans);font-size:13px}meter{appearance:none;width:64px;height:6px;border-radius:3px;vertical-align:middle;background:var(--track);border:0}meter::-webkit-meter-bar{background:linear-gradient(90deg,transparent calc(80% - 1px),var(--fg-3) calc(80% - 1px),var(--fg-3) 80%,transparent 80%),var(--track);border:0;border-radius:3px;height:6px}meter::-webkit-meter-optimum-value{background:var(--ok-mark);border-radius:3px}meter::-webkit-meter-suboptimum-value{background:var(--warn-mark);border-radius:3px}meter::-webkit-meter-even-less-good-value{background:var(--bad-mark);border-radius:3px}meter::-moz-meter-bar{background:var(--ok-mark);border-radius:3px}meter:-moz-meter-sub-optimum::-moz-meter-bar{background:var(--warn-mark)}meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:var(--bad-mark)}.hr{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;font-size:12.5px;white-space:nowrap}.hr b{font-weight:500;min-width:40px;text-align:right}.hr .ov{color:var(--bad);font-weight:600}.hr .nr{color:var(--warn)}.vlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}.vio{position:relative;padding:14px 16px 14px 20px;display:grid;gap:8px;overflow:hidden;align-content:start}.vio:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bad-mark)}.vio.mu:before{background:var(--mute-mark)}.vio .top{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.vio .top .src{margin-left:auto}.rule{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--fg-2);font-variant-numeric:tabular-nums;flex-wrap:wrap}.rule b{color:var(--fg);font-weight:600}.rule meter{width:96px}.hint{display:flex;gap:8px;font-size:13px;color:var(--fg-2);line-height:1.45}.hint .i{color:var(--warn);margin-top:1px}.toggle{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:var(--r);background:var(--sunken)}.toggle button{border:0;background:none;font:500 12px var(--sans);color:var(--fg-2);height:24px;padding:0 10px;border-radius:6px;cursor:pointer}.toggle button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:var(--sh-1),0 0 0 1px var(--line)}.rank{list-style:none;margin:0;padding:8px 8px 12px;counter-reset:r}.rank li{counter-increment:r;display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center;padding:8px;border-radius:var(--r-sm)}.rank li:hover{background:var(--hover)}.rank li:before{content:counter(r);font-size:11px;color:var(--fg-3);font-variant-numeric:tabular-nums;grid-row:1}.rank .kl{grid-column:2 / -1;gap:6px}.rank .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.rank .key{font-size:12px}.rank .tb{grid-column:2;grid-row:2}.rank .v{grid-column:3;grid-row:2;min-width:64px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;color:var(--fg-2);white-space:nowrap}.rank .v b{color:var(--fg);font-weight:600}.tb{display:block;height:4px;border-radius:2px;background:var(--track);overflow:hidden}.tb>span{display:block;height:100%;border-radius:2px;background:var(--bar-hi)}.tb.bad>span{background:var(--bad-mark)}.tb.warn>span{background:var(--warn-mark)}.tb.neu>span{background:var(--bar)}.tw{width:72px}.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}.tl{list-style:none;margin:0;padding:8px}.tl li{display:grid;grid-template-columns:minmax(0,1fr) 88px 72px;gap:12px;align-items:center;padding:8px;border-radius:var(--r-sm);font-size:13px}.tl.two li{grid-template-columns:minmax(0,1fr) auto}.tl li:hover{background:var(--hover)}.tt{min-width:0}.tt>span,.tt>.kl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt>.kl{display:flex}.tt .sub{font:12px var(--mono);margin-top:2px}.tl .num{font-weight:600;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.tl .num .sub{font-weight:400;font-size:12px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg-3);width:260px;max-width:100%}.search input{border:0;outline:0;background:none;font:13px var(--sans);color:var(--fg);width:100%}.search:focus-within{box-shadow:var(--focus)}.fg{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap;padding-left:8px;border-left:1px solid var(--line)}.fg>span{font-size:12px;color:var(--fg-3);margin-right:4px}.flt{height:28px;padding:0 10px;border:1px dashed var(--line-2);border-radius:14px;background:none;color:var(--fg-2);font:500 12px var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:6px}.flt[aria-pressed=true]{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}.count{margin-left:auto;font-size:12px;color:var(--fg-3);font-variant-numeric:tabular-nums}.scroll{overflow-x:auto}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}caption{text-align:left;padding:0;height:0;overflow:hidden}th{font-size:12px;font-weight:500;color:var(--fg-3);text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken)}th.num{text-align:right}th button{all:unset;cursor:pointer;display:inline-flex;gap:4px;align-items:center}th button:hover{color:var(--fg)}th button:focus-visible{box-shadow:var(--focus);border-radius:4px}th[aria-sort=descending] button:after{content:"\u2193";font-size:11px;color:var(--accent)}th[aria-sort=ascending] button:after{content:"\u2191";font-size:11px;color:var(--accent)}td,tbody th{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle;background:var(--surface);color:var(--fg);font-size:13px;font-weight:400}tbody:last-child tr:last-child>*,tbody:last-child tr.drow:last-child>*{border-bottom:0}.keys>tbody>tr:first-child,.tests tbody tr{transition:background .12s}.js .keys>tbody>tr:first-child:hover>*,.tests tbody tr:hover>*{background:var(--hover)}.js .keys>tbody>tr:first-child{cursor:pointer}.keys>tbody>tr.sel>*{background:var(--accent-soft)}th.k{max-width:440px;padding-left:16px;display:table-cell}th.k:before{content:"";display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;margin-right:10px;background:var(--ok-mark)}th.k .kl{display:inline-flex;vertical-align:middle;width:max-content;max-width:360px}th.k .key{white-space:normal;overflow-wrap:anywhere}tr.blocking th.k:before,tr.violation th.k:before{background:var(--bad-mark)}tr.muted th.k:before{background:var(--mute-mark)}tr.not-evaluated th.k:before{background:none;box-shadow:inset 0 0 0 1.5px var(--mute-mark)}tr.blocking th.k{box-shadow:inset 3px 0 0 var(--bad-mark)}td.r>*+*{margin-left:6px}td.r .why,td.num .why{display:block;margin:4px 0 0;color:var(--fg-3);font-size:12px}td .lim{color:var(--fg-3);font-size:12px;font-weight:400}td.ov{color:var(--bad);font-weight:600}td.e{color:var(--bad);font-weight:500}td.z{color:var(--fg-3)}td.loc{font:12px var(--mono);color:var(--fg-3)}.tfoot{padding:10px 16px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}.dep{display:inline-block;position:relative;width:16px;height:4px;margin-right:8px;vertical-align:2px;background:radial-gradient(circle,var(--line-2) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.dep:before{content:"";position:absolute;inset:0 auto 0 0;background:radial-gradient(circle,var(--fg-3) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.d1:before{width:4px}.d2:before{width:10px}.d3:before{width:16px}.tests th.tc{max-width:360px}.tc>span{display:block;overflow:hidden;text-overflow:ellipsis}.tc .tn{font-weight:500;color:var(--accent)}.tc .sub{font-size:12px;margin-top:2px}td.tk>*{display:flex;gap:6px;align-items:center}td.tk>*+*{margin-top:4px}td.tk2>*{flex-direction:column;align-items:flex-start;gap:0}.tk .kl{display:inline-flex}.tk .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.drow>td{white-space:normal;background:var(--bg)}.js .drow{display:none}.drow summary{cursor:pointer;color:var(--accent);font-weight:500}.kd{padding:0 4px 12px;max-width:920px}.kh{padding-top:12px}.fk{display:block;word-break:break-all;font-size:14px;font-weight:600}.pills{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}.ds{padding-top:20px}.ds>h4{font-size:12px;font-weight:600;color:var(--fg-2);margin-bottom:10px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.ds>h4 .sub{font-weight:400}.hints{list-style:none;display:grid;gap:8px;margin:20px 0 0;padding:12px 14px;border-radius:var(--r);background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn-mark) 30%,transparent)}.hints li{display:flex;gap:8px;font-size:13px}.hints .i{color:var(--warn);margin-top:1px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);margin:0;background:var(--surface)}.stats div{padding:10px 12px;border-left:1px solid var(--line)}.stats div:first-child{border-left:0}.stats dt{font-size:11px;color:var(--fg-3)}.stats dd{margin:0;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.stats dd small{font-size:11px;color:var(--fg-3);font-weight:400}.stats .ov dd{color:var(--bad)}.ct{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;overflow-x:auto}.ct td,.ct th{padding:8px 10px}.ct thead th{background:none}.ck td{text-align:right;font-variant-numeric:tabular-nums}.ck td:nth-last-child(-n+2){text-align:left}.ck tr.ov td:nth-child(2){color:var(--bad);font-weight:600}.legend{display:flex;gap:8px 16px;font-size:12px;color:var(--fg-3);margin-top:8px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}.legend .lg-lim{border-top:2px dashed var(--bad-mark);height:0;border-radius:0}.stc{display:flex;gap:6px;flex-wrap:wrap}.stc span{font:12px var(--mono);padding:2px 8px;border-radius:var(--r-sm);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.stc b{font-weight:600}.stc .e{color:var(--bad)}.facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;font-size:12.5px;color:var(--fg-2)}.samples{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.samples li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}.samples li:first-child{border-top:0}.samples b{font-variant-numeric:tabular-nums}.samples .sub{font-family:var(--sans)}.samples .url{font:12px var(--mono);color:var(--fg-2);white-space:normal;overflow-wrap:anywhere}.ds .tl{padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.kdlg{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--fg);box-shadow:var(--sh-3);overflow-y:auto;overscroll-behavior:contain}.kdlg::backdrop{background:#1018287f}@media(prefers-reduced-motion:no-preference){.kdlg[open]{animation:pop .12s ease-out}}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.dh{position:sticky;top:0;z-index:2;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 20px 14px}.dh .nav{display:flex;gap:4px;align-items:center;margin-bottom:10px}.dh .nav .sub{font-size:12px;margin-right:auto}#dlg-title{font:600 14px/20px var(--mono);word-break:break-all}#dlg-title:focus-visible{box-shadow:none}.dh .kh{padding-top:0}.dh .fkl{display:none}.db{padding:0 20px 8px}.db .kd{padding:0;max-width:none}.dfoot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 20px 20px}.copy-out input{font:12px var(--mono);width:min(520px,70vw);margin-left:8px}svg.ch,svg.split,svg.bar{display:block;width:100%;height:auto}svg.hist,svg.bar{max-width:720px}.ch text,svg.bar text{font:10.5px var(--sans);fill:var(--fg-3);font-variant-numeric:tabular-nums}.as{text-anchor:start}.am{text-anchor:middle}.ae{text-anchor:end}.hist .gr,.wf .wg{stroke:var(--line);stroke-width:1;stroke-dasharray:2 3;fill:none}.hist .ha{stroke:var(--line-2)}.hist .bars{fill:var(--bar)}.hist .bars-hi{fill:var(--bad-mark)}.hist .hm{stroke:var(--fg-2);stroke-width:1.25}.hist .hl{stroke:var(--bad-mark);stroke-width:1.5;stroke-dasharray:4 3}.hist text{fill:var(--fg-2);font-weight:600}.hist .ht text{fill:var(--fg-3);font-weight:400}.split .st{fill:var(--bar-hi)}.split .so{fill:var(--track);stroke:var(--line-2)}.bar-axis{stroke:var(--line-2)}.bar-range{fill:var(--bar)}.bar-mark{stroke:var(--fg-2);stroke-width:1.5}.bar-limit{stroke:var(--bad-mark);stroke-dasharray:4 3}svg.bar .bar-limit-text{fill:var(--bad)}.wl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wf-h{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.wf-h h4{font-size:14px;font-weight:600;overflow-wrap:anywhere}.wf-h .sub{font-size:12px;margin-top:2px}.wf-h dl{display:flex;gap:24px;margin:0}.wf-h dt{font-size:11px;color:var(--fg-3)}.wf-h dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.wfs{padding:8px 16px 16px}.wfs svg{min-width:720px}.wf .sep{stroke:var(--line)}.wf use{font:10.5px var(--mono);fill:var(--fg-2)}.wkm{font-weight:700}.wkm.mGET{fill:var(--get)}.wkm.mPOST{fill:var(--post)}.wkm.mPUT{fill:var(--put)}.wkm.mPATCH{fill:var(--patch)}.wkm.mDELETE{fill:var(--del)}.wkp{fill:var(--accent)}.wf g rect{fill:var(--bar-hi)}.wf .we rect,.wf .we path{fill:var(--bad-mark)}.wf .ww rect{fill:var(--warn-mark)}.wf .wm rect{fill:var(--mute-mark)}.wf g path{fill:var(--bad-mark);stroke:var(--surface);stroke-width:1.5}.wf .d{font-size:10px}.wf g:hover use,.wf g:hover text{fill:var(--fg)}.wf g:hover rect{opacity:.85}.sh{font-size:13px;font-weight:600;color:var(--fg-2);margin:8px 0 0}.wn{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:4px 12px;padding:16px}.wn .wi{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;background:var(--warn-soft);color:var(--warn);grid-row:1 / 4}.wn.err .wi{background:var(--bad-soft);color:var(--bad)}.wn code{font:600 12.5px var(--mono);align-self:center;overflow-wrap:anywhere}.wn p{grid-column:2 / -1;font-size:13.5px;overflow-wrap:anywhere}.wn .hint .i{color:var(--accent)}.wn .n{align-self:start}.hl-err .wn{border-color:var(--bad-mark)}.kvl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px 16px;margin:0;padding:16px;font-size:13px}.kvl dt{color:var(--fg-3)}.kvl dd{margin:0;min-width:0;overflow-wrap:anywhere}.plain{margin:4px 0 0;padding-left:16px}details.cfg summary{padding:14px 16px;cursor:pointer;font-weight:600;font-size:13px;list-style:none;display:flex;gap:8px;align-items:center}details.cfg summary::-webkit-details-marker{display:none}details.cfg summary:before{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid var(--fg-3);border-bottom:1.5px solid var(--fg-3);transform:rotate(-45deg);transition:transform .15s}details.cfg[open] summary:before{transform:rotate(45deg)}details.cfg pre{margin:0;padding:16px;border-top:1px solid var(--line);font:12px/1.6 var(--mono);color:var(--fg-2);overflow-x:auto;background:var(--sunken);border-radius:0 0 var(--r-lg) var(--r-lg)}details.cfg .scroll{border-top:1px solid var(--line)}.empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 24px;color:var(--fg-2)}.empty .ei{width:44px;height:44px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg-3)}.empty h3{font-size:15px;color:var(--fg)}.empty p{font-size:13px;max-width:56ch}.empty.sm{padding:20px 16px;gap:6px}.empty.sm .i{color:var(--ok-mark)}.note{display:flex;gap:10px;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);color:var(--fg);font-size:13px;align-items:flex-start}.note .i{color:var(--accent);margin-top:1px}.note code{background:var(--surface);padding:1px 5px;border-radius:4px}footer{padding:24px 0 40px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1023px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi:nth-child(4){border-left:0}.kpi:nth-child(n+4){border-top:1px solid var(--line)}.hero{grid-template-columns:minmax(0,1fr)}.subst{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:16px;min-width:0}}@media(max-width:720px){.grid2,.vlist{grid-template-columns:minmax(0,1fr)}}@media(max-width:599px){.wrap{padding:0 16px}.tabs{margin:16px -16px 0;padding:4px 16px 0}.seg a{padding:3px 12px 0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{padding:12px 14px}.kpi:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}.kpi:nth-child(odd){border-left:0}.kpi:nth-child(-n+2){border-top:0}.kv{font-size:20px;line-height:28px}.grid4{grid-template-columns:minmax(0,1fr)}.hero{padding:20px 16px}.status{font-size:24px;line-height:32px}.v-ic{width:40px;height:40px}.summary{font-size:14px}.ss{grid-template-columns:88px minmax(0,1fr)}.brand{flex:1;min-width:0;overflow:hidden}.brand b{overflow:hidden;text-overflow:ellipsis}.brand .ver{display:none}.meta{order:3;flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.appbar .btn span{display:none}.appbar .btn{width:32px;padding:0;justify-content:center}.vio .rule meter{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div:nth-child(3){border-left:0}.stats div:nth-child(n+3){border-top:1px solid var(--line)}.tl li{grid-template-columns:minmax(0,1fr) 72px}.tl li>.num:last-child{display:none}.tl.two li>.num:last-child{display:flex}.fg{border-left:0;padding-left:0}.kvl{grid-template-columns:minmax(0,1fr);gap:2px}.kvl dd{margin-bottom:8px}.kdlg{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}.dh,.dfoot{padding-left:16px;padding-right:16px}.db{padding:0 16px 8px}}@media print{:root{--bg: #ffffff;--sh-1: none;--sh-2: none}.tabs,.toolbar,.btn,.toggle,.js-only,.kdlg,.skip,.status-msg,[data-none],th button:after{display:none!important}.js .panel[hidden]{display:block!important}.js .drow{display:table-row}.scroll,.ct{overflow:visible}tr,.card,.kpi,.wfb,svg{break-inside:avoid}details[data-v]::details-content{content-visibility:visible;display:block}}';
|
|
5840
|
-
var STYLES_SHA256 = "
|
|
6458
|
+
var STYLES = ':root{--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--bg: #f6f7f9;--surface: #ffffff;--sunken: #f1f3f6;--hover: #f7f8fb;--line: #e4e7ec;--line-2: #d0d5dd;--fg: #101828;--fg-2: #475467;--fg-3: #5d6979;--accent: #4f46e5;--accent-2: #4338ca;--accent-soft: #eef0ff;--ok: #067647;--ok-soft: #e6f6ee;--ok-mark: #079455;--warn: #a14c05;--warn-soft: #fef4e4;--warn-mark: #d06306;--bad: #b42318;--bad-soft: #fef3f2;--bad-mark: #d92d20;--bad-solid: #b42318;--mute: #5d6979;--mute-soft: #eef0f3;--mute-mark: #7a8494;--get: #175cd3;--get-bg: #e9f1fe;--post: #067647;--post-bg: #e6f6ee;--put: #a14c05;--put-bg: #fef4e4;--patch: #6938ef;--patch-bg: #f1edfe;--del: #b42318;--del-bg: #fef3f2;--bar: #848ea0;--bar-hi: #5162e8;--on-hi: #ffffff;--track: #eceef2;--r-sm: 6px;--r: 8px;--r-lg: 12px;--sh-1: 0 1px 2px rgb(16 24 40 / 5%);--sh-2: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 12px -2px rgb(16 24 40 / 6%);--sh-3: 0 24px 64px -12px rgb(16 24 40 / 30%), 0 0 0 1px var(--line);--focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);color-scheme:light}@media screen and (prefers-color-scheme:dark){:root{--bg: #0b0d12;--surface: #12151c;--sunken: #0e1117;--hover: #171b24;--line: #232836;--line-2: #323949;--fg: #e7e9ef;--fg-2: #a9b0bf;--fg-3: #8e97a8;--accent: #8b93ff;--accent-2: #a4abff;--accent-soft: #1d2040;--ok: #47cd89;--ok-soft: #0f2a1f;--ok-mark: #2fbf71;--warn: #fdb022;--warn-soft: #2e2210;--warn-mark: #f79009;--bad: #f97066;--bad-soft: #2d1214;--bad-mark: #f04438;--bad-solid: #d92d20;--mute: #98a2b3;--mute-soft: #1c212b;--mute-mark: #667085;--get: #84adff;--get-bg: #14223f;--post: #47cd89;--post-bg: #0f2a1f;--put: #fdb022;--put-bg: #2e2210;--patch: #bdb4fe;--patch-bg: #231b45;--del: #f97066;--del-bg: #2d1214;--bar: #6b7589;--bar-hi: #8b93ff;--on-hi: #0b0d12;--track: #1f2430;--sh-1: 0 1px 2px rgb(0 0 0 / 40%);--sh-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 50%);--sh-3: 0 24px 64px -12px rgb(0 0 0 / 70%), 0 0 0 1px var(--line);color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%;background:var(--bg)}html.modal-open{overflow:hidden}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--r-sm)}h1,h2,h3,h4,p,figure{margin:0}code,.mono{font-family:var(--mono);font-size:.92em}.num{text-align:right;font-variant-numeric:tabular-nums}.sub{color:var(--fg-3)}.sr,.js .js-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;z-index:50;background:var(--surface);padding:8px 12px}.wrap{max-width:1280px;margin:0 auto;padding:0 24px}.appbar{background:var(--surface);border-bottom:1px solid var(--line)}.appbar .wrap{display:flex;align-items:center;gap:16px;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.brand{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.brand b{font-weight:600}.brand .ver{font:500 12px var(--mono);color:var(--fg-3)}.logo{width:24px;height:24px}.logo circle{fill:var(--accent)}.logo path{fill:none;stroke-width:2;stroke-linecap:round}.logo .crown{stroke:var(--accent)}.logo .bars{stroke:var(--on-hi)}.meta{position:relative;display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0}.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:12px;color:var(--fg-2);background:var(--surface);white-space:nowrap}.chip b{font-weight:500;color:var(--fg)}.chip .i{width:14px;height:14px;vertical-align:0;color:var(--fg-3)}.btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg);font:500 13px var(--sans);cursor:pointer;box-shadow:var(--sh-1);white-space:nowrap}.btn:hover{background:var(--hover);text-decoration:none}.btn:disabled{cursor:default;opacity:.45}.btn.icon{width:32px;padding:0;justify-content:center}.btn.sm{height:28px;font-size:12px;padding:0 10px}.btn.icon.sm{width:28px;padding:0}main.wrap{padding-top:24px;padding-bottom:48px}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-2);position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone)}.hero:after{content:"";position:absolute;left:0;top:0;width:480px;height:100%;background:radial-gradient(400px 160px at 0 0,var(--tone-soft),transparent);pointer-events:none}.hero>*{position:relative;z-index:1}.t-bad{--tone: var(--bad-mark);--tone-soft: var(--bad-soft);--tone-fg: var(--bad)}.t-ok{--tone: var(--ok-mark);--tone-soft: var(--ok-soft);--tone-fg: var(--ok)}.t-warn{--tone: var(--warn-mark);--tone-soft: var(--warn-soft);--tone-fg: var(--warn)}.t-err{--tone: var(--fg-2);--tone-soft: var(--mute-soft);--tone-fg: var(--fg)}.verdict{display:flex;gap:16px;align-items:flex-start}.v-ic{width:48px;height:48px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--tone-soft);color:var(--tone-fg);flex:none}.v-ic .i{width:26px;height:26px;stroke-width:2}.eyebrow{font-size:12px;font-weight:500;color:var(--fg-3)}.status{font-size:28px;line-height:36px;font-weight:700;color:var(--tone-fg)}.status .pill{vertical-align:6px;margin-left:8px}.summary{font-size:15px;margin-top:4px;max-width:70ch;overflow-wrap:anywhere}.summary .sub{font-size:13px;display:block;margin-top:4px}.hero .note,.hero>div>div>.sub{margin-top:8px}.subst{display:grid;gap:8px;align-content:center;min-width:280px;margin:0;padding-left:24px;border-left:1px solid var(--line)}.ss{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px}.ss dt{color:var(--fg-3)}.ss dd{margin:0;font-weight:600}.ss dd .sub{font-weight:400}.dot{width:8px;height:8px;border-radius:50%;background:var(--mute-mark);display:inline-block;margin-right:8px}.d-ok{background:var(--ok-mark)}.d-bad{background:var(--bad-mark)}.d-warn{background:var(--warn-mark)}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.kpi{padding:16px 20px;border-left:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}.kpi:first-child{border-left:0}.kpi dt{font-size:12px;color:var(--fg-3);font-weight:500;grid-column:1 / -1}.kpi dd{margin:0}.kv{font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.kv small{font-size:13px;font-weight:500;color:var(--fg-3);margin-left:2px}.kpi .viz{grid-row:2;grid-column:2;align-self:center}.kpi .ks{grid-column:1 / -1;font-size:12px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi.bad .kv{color:var(--bad)}.ring{width:32px;height:32px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4}.ring .tr{stroke:var(--track)}.ring .vl{stroke:var(--warn-mark);stroke-linecap:round}.vsplit{display:flex;width:56px;height:6px;border-radius:3px;overflow:hidden;background:var(--track);gap:2px}.vsplit>span{height:100%}.s-bad{background:var(--bad-mark)}.s-mute{background:var(--mute-mark)}.s-warn{background:var(--warn-mark)}.s-acc{background:var(--bar-hi)}.s-neu{background:var(--bar)}.s-trk{background:var(--track);box-shadow:inset 0 0 0 1px var(--line-2)}.pips{display:flex;gap:3px}.pips span{width:6px;height:14px;border-radius:2px;background:var(--bar-hi)}.pips .off{background:var(--mute-mark)}.tabs{position:sticky;top:0;z-index:20;margin:24px -24px 0;padding:4px 24px 0;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px)}.seg{position:relative;display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--line-2);overflow-x:auto;scrollbar-width:none}.seg a{display:inline-flex;flex:none;align-items:center;gap:8px;min-height:44px;padding:3px 16px 0;border-bottom:3px solid transparent;border-radius:var(--r-sm) var(--r-sm) 0 0;color:var(--fg-2);font-size:14px;font-weight:600;white-space:nowrap}.seg a:hover{color:var(--fg);background:var(--hover);border-bottom-color:var(--line-2);text-decoration:none}.seg a:focus-visible{border-radius:var(--r-sm) var(--r-sm) 0 0;box-shadow:inset 0 0 0 2px var(--accent)}.seg a[aria-selected=true]{color:var(--accent);background:var(--accent-soft);border-bottom-color:var(--accent)}.n{font:600 11px/18px var(--sans);min-width:20px;padding:0 6px;border-radius:9px;background:var(--line);color:var(--fg-2);text-align:center;font-variant-numeric:tabular-nums;display:inline-block}.n.bad{background:var(--bad-soft);color:var(--bad)}.n.warn{background:var(--warn-soft);color:var(--warn)}.panel{margin-top:8px}.js .panel[hidden]{display:none}.ph{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin:24px 0 12px;flex-wrap:wrap}.panel>.ph:first-child{margin-top:8px}.ph h2{font-size:18px;font-weight:600}.ph h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.ph p{color:var(--fg-3);font-size:13px}.ph .more{font-size:13px;font-weight:500}.status-msg:empty{display:none}.status-msg{margin-top:12px;padding:8px 12px;border-radius:var(--r);background:var(--accent-soft)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 16px 0}.card-h h4{font-size:13px;font-weight:600}.card-h .sub{font-size:12px}.card-p{padding:14px 16px 0;font-size:13px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;white-space:nowrap;background:var(--mute-soft);color:var(--mute);line-height:1}.pill.fb{background:var(--bad-solid);color:#fff}.pill.f{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 30%,transparent)}.pill.p{background:var(--ok-soft);color:var(--ok)}.pill.ne{background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-2)}.pill.w{background:var(--warn-soft);color:var(--warn)}.pill.e{background:var(--fg);color:var(--bg)}.pill .i{width:12px;height:12px;vertical-align:0;stroke-width:2}.src{display:inline-block;font:500 11px/18px var(--mono);padding:0 6px;border-radius:4px;color:var(--fg-3);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.es{font:500 11px var(--mono);color:var(--fg-3)}.kind{display:inline-block;font:500 11px/18px var(--sans);padding:0 6px;border-radius:4px;color:var(--fg-2);background:var(--sunken)}.m{display:inline-block;width:52px;text-align:center;font:700 10.5px/20px var(--mono);border-radius:4px;flex:none;color:var(--fg-2);background:var(--sunken)}.GET{color:var(--get);background:var(--get-bg)}.POST{color:var(--post);background:var(--post-bg)}.PUT{color:var(--put);background:var(--put-bg)}.PATCH{color:var(--patch);background:var(--patch-bg)}.DELETE{color:var(--del);background:var(--del-bg)}.key{font-family:var(--mono);font-size:12.5px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.key i{font-style:normal;color:var(--accent)}.key .o{font:500 10.5px/16px var(--sans);padding:0 5px;margin-right:6px;border-radius:4px;background:var(--sunken);color:var(--fg-3);box-shadow:inset 0 0 0 1px var(--line)}.rq{font:500 10.5px/16px var(--sans);padding:0 5px;border-radius:4px;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);white-space:nowrap}.key s{text-decoration:none;color:var(--fg-3)}.key b{font-weight:600}.kl{display:flex;align-items:center;gap:8px;min-width:0;color:inherit}a.kl:hover{text-decoration:none}a.kl:hover .key{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.key.st{font-family:var(--sans);font-size:13px}meter{appearance:none;width:64px;height:6px;border-radius:3px;vertical-align:middle;background:var(--track);border:0}meter::-webkit-meter-bar{background:linear-gradient(90deg,transparent calc(80% - 1px),var(--fg-3) calc(80% - 1px),var(--fg-3) 80%,transparent 80%),var(--track);border:0;border-radius:3px;height:6px}meter::-webkit-meter-optimum-value{background:var(--ok-mark);border-radius:3px}meter::-webkit-meter-suboptimum-value{background:var(--warn-mark);border-radius:3px}meter::-webkit-meter-even-less-good-value{background:var(--bad-mark);border-radius:3px}meter::-moz-meter-bar{background:var(--ok-mark);border-radius:3px}meter:-moz-meter-sub-optimum::-moz-meter-bar{background:var(--warn-mark)}meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:var(--bad-mark)}.hr{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;font-size:12.5px;white-space:nowrap}.hr b{font-weight:500;min-width:40px;text-align:right}.hr .ov{color:var(--bad);font-weight:600}.hr .nr{color:var(--warn)}.vlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}.vio{position:relative;padding:14px 16px 14px 20px;display:grid;gap:8px;overflow:hidden;align-content:start}.vio:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bad-mark)}.vio.mu:before{background:var(--mute-mark)}.vio .top{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.vio .top .src{margin-left:auto}.rule{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--fg-2);font-variant-numeric:tabular-nums;flex-wrap:wrap}.rule b{color:var(--fg);font-weight:600}.rule meter{width:96px}.hint{display:flex;gap:8px;font-size:13px;color:var(--fg-2);line-height:1.45}.hint .i{color:var(--warn);margin-top:1px}.toggle{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:var(--r);background:var(--sunken)}.toggle button{border:0;background:none;font:500 12px var(--sans);color:var(--fg-2);height:24px;padding:0 10px;border-radius:6px;cursor:pointer}.toggle button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:var(--sh-1),0 0 0 1px var(--line)}.rank{list-style:none;margin:0;padding:8px 8px 12px;counter-reset:r}.rank li{counter-increment:r;display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center;padding:8px;border-radius:var(--r-sm)}.rank li:hover{background:var(--hover)}.rank li:before{content:counter(r);font-size:11px;color:var(--fg-3);font-variant-numeric:tabular-nums;grid-row:1}.rank .kl{grid-column:2 / -1;gap:6px}.rank .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.rank .key{font-size:12px}.rank .tb{grid-column:2;grid-row:2}.rank .v{grid-column:3;grid-row:2;min-width:64px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;color:var(--fg-2);white-space:nowrap}.rank .v b{color:var(--fg);font-weight:600}.tb{display:block;height:4px;border-radius:2px;background:var(--track);overflow:hidden}.tb>span{display:block;height:100%;border-radius:2px;background:var(--bar-hi)}.tb.bad>span{background:var(--bad-mark)}.tb.warn>span{background:var(--warn-mark)}.tb.neu>span{background:var(--bar)}.tw{width:72px}.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}.tl{list-style:none;margin:0;padding:8px}.tl li{display:grid;grid-template-columns:minmax(0,1fr) 88px 72px;gap:12px;align-items:center;padding:8px;border-radius:var(--r-sm);font-size:13px}.tl.two li{grid-template-columns:minmax(0,1fr) auto}.tl li:hover{background:var(--hover)}.tt{min-width:0}.tt>span,.tt>.kl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt>.kl{display:flex}.tt .sub{font:12px var(--mono);margin-top:2px}.tl .num{font-weight:600;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.tl .num .sub{font-weight:400;font-size:12px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg-3);width:260px;max-width:100%}.search input{border:0;outline:0;background:none;font:13px var(--sans);color:var(--fg);width:100%}.search:focus-within{box-shadow:var(--focus)}.fg{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap;padding-left:8px;border-left:1px solid var(--line)}.fg>span{font-size:12px;color:var(--fg-3);margin-right:4px}.flt{height:28px;padding:0 10px;border:1px dashed var(--line-2);border-radius:14px;background:none;color:var(--fg-2);font:500 12px var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:6px}.flt[aria-pressed=true]{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}.count{margin-left:auto;font-size:12px;color:var(--fg-3);font-variant-numeric:tabular-nums}.scroll{overflow-x:auto}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}caption{text-align:left;padding:0;height:0;overflow:hidden}th{font-size:12px;font-weight:500;color:var(--fg-3);text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken)}th.num{text-align:right}th button{all:unset;cursor:pointer;display:inline-flex;gap:4px;align-items:center}th button:hover{color:var(--fg)}th button:focus-visible{box-shadow:var(--focus);border-radius:4px}th[aria-sort=descending] button:after{content:"\u2193";font-size:11px;color:var(--accent)}th[aria-sort=ascending] button:after{content:"\u2191";font-size:11px;color:var(--accent)}td,tbody th{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle;background:var(--surface);color:var(--fg);font-size:13px;font-weight:400}tbody:last-child tr:last-child>*,tbody:last-child tr.drow:last-child>*{border-bottom:0}.keys>tbody>tr:first-child,.tests tbody tr{transition:background .12s}.js .keys>tbody>tr:first-child:hover>*,.tests tbody tr:hover>*{background:var(--hover)}.js .keys>tbody>tr:first-child{cursor:pointer}.keys>tbody>tr.sel>*{background:var(--accent-soft)}th.k{max-width:440px;padding-left:16px;display:table-cell}th.k:before{content:"";display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;margin-right:10px;background:var(--ok-mark)}th.k .kl{display:inline-flex;vertical-align:middle;width:max-content;max-width:360px}th.k .key{white-space:normal;overflow-wrap:anywhere}tr.blocking th.k:before,tr.violation th.k:before{background:var(--bad-mark)}tr.muted th.k:before{background:var(--mute-mark)}tr.not-evaluated th.k:before{background:none;box-shadow:inset 0 0 0 1.5px var(--mute-mark)}tr.blocking th.k{box-shadow:inset 3px 0 0 var(--bad-mark)}td.r>*+*{margin-left:6px}td.r .why,td.num .why{display:block;margin:4px 0 0;color:var(--fg-3);font-size:12px}td .lim{color:var(--fg-3);font-size:12px;font-weight:400}td.ov{color:var(--bad);font-weight:600}td.e{color:var(--bad);font-weight:500}td.z{color:var(--fg-3)}td.loc{font:12px var(--mono);color:var(--fg-3)}.tfoot{padding:10px 16px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}.dep{display:inline-block;position:relative;width:16px;height:4px;margin-right:8px;vertical-align:2px;background:radial-gradient(circle,var(--line-2) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.dep:before{content:"";position:absolute;inset:0 auto 0 0;background:radial-gradient(circle,var(--fg-3) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.d1:before{width:4px}.d2:before{width:10px}.d3:before{width:16px}.tests th.tc{max-width:360px}.tc>span{display:block;overflow:hidden;text-overflow:ellipsis}.tc .tn{font-weight:500;color:var(--accent)}.tc .sub{font-size:12px;margin-top:2px}td.tk>*{display:flex;gap:6px;align-items:center}td.tk>*+*{margin-top:4px}td.tk2>*{flex-direction:column;align-items:flex-start;gap:0}.tk .kl{display:inline-flex}.tk .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.drow>td{white-space:normal;background:var(--bg)}.js .drow{display:none}.drow summary{cursor:pointer;color:var(--accent);font-weight:500}.kd{padding:0 4px 12px;max-width:920px}.kh{padding-top:12px}.fk{display:block;word-break:break-all;font-size:14px;font-weight:600}.fk .key{white-space:normal;overflow:visible;font-size:inherit}.pills{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}.ds{padding-top:20px}.ds>h4{font-size:12px;font-weight:600;color:var(--fg-2);margin-bottom:10px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.ds>h4 .sub{font-weight:400}.hints{list-style:none;display:grid;gap:8px;margin:20px 0 0;padding:12px 14px;border-radius:var(--r);background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn-mark) 30%,transparent)}.hints li{display:flex;gap:8px;font-size:13px}.hints .i{color:var(--warn);margin-top:1px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);margin:0;background:var(--surface)}.stats div{padding:10px 12px;border-left:1px solid var(--line)}.stats div:first-child{border-left:0}.stats dt{font-size:11px;color:var(--fg-3)}.stats dd{margin:0;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.stats dd small{font-size:11px;color:var(--fg-3);font-weight:400}.stats .ov dd{color:var(--bad)}.ct{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;overflow-x:auto}.ct td,.ct th{padding:8px 10px}.ct thead th{background:none}.ck td{text-align:right;font-variant-numeric:tabular-nums}.ck td:nth-last-child(-n+2){text-align:left}.ck td.ov{color:var(--bad);font-weight:600}.legend{display:flex;gap:8px 16px;font-size:12px;color:var(--fg-3);margin-top:8px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}.legend .lg-lim{border-top:2px dashed var(--bad-mark);height:0;border-radius:0}.stc{display:flex;gap:6px;flex-wrap:wrap}.stc span{font:12px var(--mono);padding:2px 8px;border-radius:var(--r-sm);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.stc b{font-weight:600}.stc .e{color:var(--bad)}.facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;font-size:12.5px;color:var(--fg-2)}.samples{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.samples li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}.samples li:first-child{border-top:0}.samples b{font-variant-numeric:tabular-nums}.samples .sub{font-family:var(--sans)}.samples .url{font:12px var(--mono);color:var(--fg-2);white-space:normal;overflow-wrap:anywhere}.ds .tl{padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.kdlg{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--fg);box-shadow:var(--sh-3);overflow-y:auto;overscroll-behavior:contain}.kdlg::backdrop{background:#1018287f}@media(prefers-reduced-motion:no-preference){.kdlg[open]{animation:pop .12s ease-out}}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.dh{position:sticky;top:0;z-index:2;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 20px 14px}.dh .nav{display:flex;gap:4px;align-items:center;margin-bottom:10px}.dh .nav .sub{font-size:12px;margin-right:auto}#dlg-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#dlg-title:focus-visible{box-shadow:none}.dh .kh{padding-top:0}.db{padding:0 20px 8px}.db .kd{padding:0;max-width:none}.dfoot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 20px 20px}.copy-out input{font:12px var(--mono);width:min(520px,70vw);margin-left:8px}svg.ch,svg.split,svg.bar{display:block;width:100%;height:auto}svg.hist,svg.bar{max-width:720px}.ch text,svg.bar text{font:10.5px var(--sans);fill:var(--fg-3);font-variant-numeric:tabular-nums}.as{text-anchor:start}.am{text-anchor:middle}.ae{text-anchor:end}.hist .gr,.wf .wg{stroke:var(--line);stroke-width:1;stroke-dasharray:2 3;fill:none}.hist .ha{stroke:var(--line-2)}.hist .bars{fill:var(--bar)}.hist .bars-hi{fill:var(--bad-mark)}.hist .hm{stroke:var(--fg-2);stroke-width:1.25}.hist .hl{stroke:var(--bad-mark);stroke-width:1.5;stroke-dasharray:4 3}.hist text{fill:var(--fg-2);font-weight:600}.hist .ht text{fill:var(--fg-3);font-weight:400}.split .st{fill:var(--bar-hi)}.split .so{fill:var(--track);stroke:var(--line-2)}.bar-axis{stroke:var(--line-2)}.bar-range{fill:var(--bar)}.bar-mark{stroke:var(--fg-2);stroke-width:1.5}.bar-limit{stroke:var(--bad-mark);stroke-dasharray:4 3}svg.bar .bar-limit-text{fill:var(--bad)}.wl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wf-h{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.wf-h h4{font-size:14px;font-weight:600;overflow-wrap:anywhere}.wf-h .sub{font-size:12px;margin-top:2px}.wf-h dl{display:flex;gap:24px;margin:0}.wf-h dt{font-size:11px;color:var(--fg-3)}.wf-h dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.wfs{padding:8px 16px 16px}.wfs svg{min-width:720px}.wf .sep{stroke:var(--line)}.wf use{font:10.5px var(--mono);fill:var(--fg-2)}.wkm{font-weight:700}.wkm.mGET{fill:var(--get)}.wkm.mPOST{fill:var(--post)}.wkm.mPUT{fill:var(--put)}.wkm.mPATCH{fill:var(--patch)}.wkm.mDELETE{fill:var(--del)}.wkp{fill:var(--accent)}.wf g rect{fill:var(--bar-hi)}.wf .we rect,.wf .we path{fill:var(--bad-mark)}.wf .ww rect{fill:var(--warn-mark)}.wf .wm rect{fill:var(--mute-mark)}.wf g path{fill:var(--bad-mark);stroke:var(--surface);stroke-width:1.5}.wf .d{font-size:10px}.wf g:hover use,.wf g:hover text{fill:var(--fg)}.wf g:hover rect{opacity:.85}.sh{font-size:13px;font-weight:600;color:var(--fg-2);margin:8px 0 0}.wn{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:4px 12px;padding:16px}.wn .wi{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;background:var(--warn-soft);color:var(--warn);grid-row:1 / 4}.wn.err .wi{background:var(--bad-soft);color:var(--bad)}.wn code{font:600 12.5px var(--mono);align-self:center;overflow-wrap:anywhere}.wn p{grid-column:2 / -1;font-size:13.5px;overflow-wrap:anywhere}.wn .hint .i{color:var(--accent)}.wn .n{align-self:start}.hl-err .wn{border-color:var(--bad-mark)}.kvl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px 16px;margin:0;padding:16px;font-size:13px}.kvl dt{color:var(--fg-3)}.kvl dd{margin:0;min-width:0;overflow-wrap:anywhere}.plain{margin:4px 0 0;padding-left:16px}details.cfg summary{padding:14px 16px;cursor:pointer;font-weight:600;font-size:13px;list-style:none;display:flex;gap:8px;align-items:center}details.cfg summary::-webkit-details-marker{display:none}details.cfg summary:before{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid var(--fg-3);border-bottom:1.5px solid var(--fg-3);transform:rotate(-45deg);transition:transform .15s}details.cfg[open] summary:before{transform:rotate(45deg)}details.cfg pre{margin:0;padding:16px;border-top:1px solid var(--line);font:12px/1.6 var(--mono);color:var(--fg-2);overflow-x:auto;background:var(--sunken);border-radius:0 0 var(--r-lg) var(--r-lg)}details.cfg .scroll{border-top:1px solid var(--line)}.empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 24px;color:var(--fg-2)}.empty .ei{width:44px;height:44px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg-3)}.empty h3{font-size:15px;color:var(--fg)}.empty p{font-size:13px;max-width:56ch}.empty.sm{padding:20px 16px;gap:6px}.empty.sm .i{color:var(--ok-mark)}.note{display:flex;gap:10px;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);color:var(--fg);font-size:13px;align-items:flex-start}.note .i{color:var(--accent);margin-top:1px}.note code{background:var(--surface);padding:1px 5px;border-radius:4px}footer{padding:24px 0 40px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1023px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi:nth-child(4){border-left:0}.kpi:nth-child(n+4){border-top:1px solid var(--line)}.hero{grid-template-columns:minmax(0,1fr)}.subst{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:16px;min-width:0}}@media(max-width:720px){.grid2,.vlist{grid-template-columns:minmax(0,1fr)}}@media(max-width:599px){.wrap{padding:0 16px}.tabs{margin:16px -16px 0;padding:4px 16px 0}.seg a{padding:3px 12px 0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{padding:12px 14px}.kpi:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}.kpi:nth-child(odd){border-left:0}.kpi:nth-child(-n+2){border-top:0}.kv{font-size:20px;line-height:28px}.grid4{grid-template-columns:minmax(0,1fr)}.hero{padding:20px 16px}.status{font-size:24px;line-height:32px}.v-ic{width:40px;height:40px}.summary{font-size:14px}.ss{grid-template-columns:88px minmax(0,1fr)}.brand{flex:1;min-width:0;overflow:hidden}.brand b{overflow:hidden;text-overflow:ellipsis}.brand .ver{display:none}.meta{order:3;flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.appbar .btn span{display:none}.appbar .btn{width:32px;padding:0;justify-content:center}.vio .rule meter{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div:nth-child(3){border-left:0}.stats div:nth-child(n+3){border-top:1px solid var(--line)}.tl li{grid-template-columns:minmax(0,1fr) 72px}.tl li>.num:last-child{display:none}.tl.two li>.num:last-child{display:flex}.fg{border-left:0;padding-left:0}.kvl{grid-template-columns:minmax(0,1fr);gap:2px}.kvl dd{margin-bottom:8px}.kdlg{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}.dh,.dfoot{padding-left:16px;padding-right:16px}.db{padding:0 16px 8px}}@media print{:root{--bg: #ffffff;--sh-1: none;--sh-2: none}.tabs,.toolbar,.btn,.toggle,.js-only,.kdlg,.skip,.status-msg,[data-none],th button:after{display:none!important}.js .panel[hidden]{display:block!important}.js .drow{display:table-row}.scroll,.ct{overflow:visible}tr,.card,.kpi,.wfb,svg{break-inside:avoid}details[data-v]::details-content{content-visibility:visible;display:block}}';
|
|
6459
|
+
var STYLES_SHA256 = "P8DYPJROVk22uiAg4SQ4HzTpzX2h3D1hiPSUAQXSQwo=";
|
|
5841
6460
|
var SCRIPT = '(()=>{const u=document,ee=u.getElementById("report-data")?.textContent??"{}",q=JSON.parse(ee),B={api:q.endpoints??{},step:q.steps??{}},re=q.testBreakdown?.tests??[],te={api:"endpoints",step:"steps"};u.documentElement.classList.add("js");function f(e,n=u){return Array.from(n.querySelectorAll(e))}function A(e,n){return Object.prototype.hasOwnProperty.call(e,n)}const V=u.getElementById("status");function $(e){V!==null&&(V.textContent=e)}function w(e){history.replaceState(null,"",e)}const E=u.querySelector("[data-tabs]"),T=E===null?[]:f("a[data-tab]",E),H=new Map;for(const e of f("[data-panel]"))H.set(e.dataset.panel??"",e);let U="overview";function ae(e,n){const t=n.offsetLeft,l=t+n.offsetWidth;t<e.scrollLeft?e.scrollLeft=t:l>e.scrollLeft+e.clientWidth&&(e.scrollLeft=l-e.clientWidth)}function h(e,n=!1){if(H.has(e)){U=e;for(const t of T){const l=t.dataset.tab===e;t.setAttribute("aria-selected",String(l)),t.tabIndex=l?0:-1,l&&n&&t.focus(),l&&E!==null&&ae(E,t)}for(const[t,l]of H)l.hidden=t!==e}}if(E!==null){E.setAttribute("role","tablist");for(const e of T){const n=e.dataset.tab??"";e.setAttribute("role","tab"),e.setAttribute("aria-controls",`tab-${n}`);const t=H.get(n);t?.setAttribute("role","tabpanel"),t?.setAttribute("aria-labelledby",e.id)}E.addEventListener("keydown",e=>{const n=T.findIndex(s=>s.dataset.tab===U);let t=-1;if(e.key==="ArrowRight"?t=(n+1)%T.length:e.key==="ArrowLeft"?t=(n-1+T.length)%T.length:e.key==="Home"?t=0:e.key==="End"&&(t=T.length-1),t<0)return;e.preventDefault();const l=T[t]?.dataset.tab??"overview";h(l,!0),w(`#tab=${l}`)})}const I={api:new Map,step:new Map};function j(e){const n=e?.dataset.kind??"api";return A(te,n)?n:"api"}const x=new Map;for(const e of f("table.keys")){const n=j(e);for(const t of Array.from(e.tBodies)){const l=t.querySelector(".fk")?.textContent??"";x.set(t,l),A(B[n],l)&&I[n].set(l,t)}}function ie(e){return j(e.closest("table"))}const _={api:"Endpoint",step:"Step"},d=u.getElementById("key-dialog"),C=u.getElementById("dlg-title"),z=u.getElementById("dlg-pos"),ue=d?.querySelector(".dh-slot")??null,J=d?.querySelector(".db")??null,k=d?.querySelector(".copy-out")??null,G=d?.querySelector(\'[data-act="prev"]\')??null,Q=d?.querySelector(\'[data-act="next"]\')??null;let p=null,K=null;function P(){p!==null&&(p.head!==null&&p.block.prepend(p.head),p.home.appendChild(p.block),p.body.rows[0]?.classList.remove("sel"),p=null)}function ne(e){const n=e.closest("table");return n===null?[e]:Array.from(n.tBodies).filter(t=>!t.hidden)}function W(e,n,t=!1){const l=e.querySelector("details"),s=l?.querySelector(".kd");if(d===null||J===null||l===null||s==null)return;P(),n!==null&&(K=n);const o=s.querySelector(".kh");o!==null&&ue?.appendChild(o),J.appendChild(s),p={body:e,block:s,head:o,home:l},e.rows[0]?.classList.add("sel");const r=ie(e),m=x.get(e)??"",c=ne(e),a=c.indexOf(e);C!==null&&(C.textContent=m),z!==null&&(z.textContent=a<0?_[r]:`${_[r]} ${String(a+1)} of ${String(c.length)}`),G!==null&&(G.disabled=a<=0),Q!==null&&(Q.disabled=a<0||a>=c.length-1),k!==null&&(k.hidden=!0),t&&h(te[r]),d.open||(d.showModal(),u.documentElement.classList.add("modal-open")),d.scrollTop=0,w(`#key=${r}:${encodeURIComponent(m)}`),C?.focus()}let O=!0;function v(e=!0){d===null||!d.open||(O=e,P(),d.close())}d?.addEventListener("close",()=>{P(),u.documentElement.classList.remove("modal-open"),O&&(w(`#tab=${U}`),K?.focus()),O=!0,K=null});function X(e){if(p===null)return;const n=ne(p.body),t=n[n.indexOf(p.body)+e];t!==void 0&&W(t,null)}d?.addEventListener("click",e=>{if(e.target===d){v();return}const n=e.target.closest("[data-act]")?.dataset.act;n==="close"?v():n==="prev"?X(-1):n==="next"&&X(1)});function F(e,n=null){let t=/^#tab[=-]([a-z-]+)$/u.exec(e);if(t!==null){v(!1);const s=t[1]??"";H.has(s)?(h(s),w(`#tab=${s}`)):(h("overview"),$("Tab not found in this report"));return}let l;if(t=/^#key=(api|request|step):(.*)$/su.exec(e),t!==null){let s;try{s=decodeURIComponent(t[2]??"")}catch{s=null}const o=t[1];s!==null&&A(I,o)&&(l=I[o].get(s))}else{if(t=/^#key-(?:api|step)-(\\d+)$/u.exec(e),t===null)return;l=u.getElementById(e.slice(1))?.closest("tbody")??void 0}if(l===void 0){v(!1),h("overview"),$("Key not found in this report");return}W(l,n,n===null)}u.addEventListener("click",e=>{const n=e.target,t=n.closest(\'a[href^="#"]\');if(t===null){const s=n.closest("table.keys > tbody > tr:first-child"),o=s?.parentElement;if(s==null||!(o instanceof HTMLTableSectionElement)||n.closest("button, input, label, summary")!==null)return;W(o,s.querySelector(\'a[href^="#key-"]\'));return}const l=t.getAttribute("href")??"";if(t.hasAttribute("data-show-violations")){e.preventDefault(),v(!1),h("endpoints"),w("#tab=endpoints"),me();return}/^#(?:tab-|key-)/u.test(l)&&(e.preventDefault(),F(l,t))});window.addEventListener("hashchange",()=>F(location.hash));function ce(e){const n=e.evaluation.checks;if(n.length===0)return null;let t=-1/0;for(const l of n)t=Math.max(t,l.usage??1/0);return t}function de(e,n,t){if(e===void 0)return null;switch(n){case"headroom":return ce(e);case"samples":return e.successCount;case"errors":return e.errorCount;case"p50":return e.stats?.percentiles.p50??null;case"percentile":return e.stats?.percentiles[t]??null;case"p99":return e.stats?.percentiles.p99??null;case"max":return e.stats?.max??null;case"ttfb":return e.ttfb?.p50??null;case"tests":return e.testCount;default:return null}}function fe(e,n){if(e===void 0)return null;switch(n){case"runs":return e.executions;case"requests":return e.requestCount;case"errors":return e.errorCount;case"total":return e.totalMs;case"avg":return Math.round(e.totalMs/e.executions*10)/10;case"longest":return e.maxRequestMs;case"keys":return e.keyCount;case"violations":return e.violatedKeyCount;default:return null}}function le(e,n,t){const l=f("th[data-sort]",e);let s=null;for(const o of l){const r=o.dataset.sort??"";o.querySelector("button")?.addEventListener("click",()=>{const c=r==="key"||r==="title"||r==="result"||r==="source"?"ascending":"descending",a=s?.column===r?s.direction==="ascending"?"descending":"ascending":c;s={column:r,direction:a};const L=a==="ascending"?1:-1,g=[...n].sort((i,b)=>{if(r==="key"||r==="title")return(i.text<b.text?-1:i.text>b.text?1:0)*L||i.order-b.order;const y=i.value(r),M=b.value(r);return y===null||M===null?y===M?i.order-b.order:y===null?1:-1:(y-M)*L||i.order-b.order});for(const i of g)t.appendChild(i.element);for(const i of l)i===o?i.setAttribute("aria-sort",a):i.removeAttribute("aria-sort")})}}const se=new Map;function oe(e,n){const t=u.querySelector(`[data-for="${e}"]`);if(t===null)return;const l=t.querySelector(\'input[type="search"]\'),s=f("button[data-f]",t),o=t.querySelector("[data-count]"),r=t.querySelector("[data-none]");function m(){const c=(l?.value??"").toLowerCase(),a=new Map;for(const g of s){if(g.getAttribute("aria-pressed")!=="true")continue;const i=g.dataset.f??"",b=a.get(i)??new Set;b.add(g.dataset.v??""),a.set(i,b)}let L=0;for(const g of n){let i=g.text.includes(c);for(const[b,y]of a){const M=g.attributes[b]??null;(M===null||!y.has(M))&&(i=!1)}g.element.hidden=!i,i&&L++}o!==null&&(o.textContent=`showing ${L} of ${n.length}`),r!==null&&(r.hidden=L>0)}for(const c of s)c.addEventListener("click",()=>{c.setAttribute("aria-pressed",String(c.getAttribute("aria-pressed")!=="true")),m()});l?.addEventListener("input",m);for(const c of f("[data-reset]",t))c.addEventListener("click",()=>{l!==null&&(l.value="");for(const a of s)a.setAttribute("aria-pressed","false");m()});se.set(e,c=>{l!==null&&(l.value="");for(const a of s){const L=c[a.dataset.f??""]?.includes(a.dataset.v??"")===!0;a.setAttribute("aria-pressed",String(L))}m()})}function me(){se.get("table-api")?.({g:["0","1"]})}for(const e of f("table.keys")){const n=j(e),t=e.dataset.level??"p95",l=Array.from(e.tBodies),s=l.map(o=>{const r=x.get(o)??"";return{element:o,order:Number(/\\d+$/u.exec(o.querySelector("details")?.id??"")?.[0]??"0"),text:r,value:m=>m==="result"?Number(o.dataset.g??"3"):m==="source"?Number(r.startsWith("request ")):de(A(B[n],r)?B[n][r]:void 0,m,t)}});le(e,s,e),oe(e.id,l.map(o=>({element:o,text:(x.get(o)??"").toLowerCase(),attributes:{g:o.dataset.g??null,s:o.dataset.s??null,m:o.hasAttribute("data-m")?"":null}})))}const N=u.querySelector("#table-tests"),D=N?.tBodies[0];if(N!==null&&D!==void 0){const e=Array.from(D.rows),n=t=>re[Number(t.dataset.i??"-1")];le(N,e.map(t=>({element:t,order:Number(t.dataset.i??"0"),text:n(t)?.title??"",value:l=>fe(n(t),l)})),D),oe("table-tests",e.map(t=>{const l=n(t);return{element:t,text:`${l?.title??""}\\0${l?.file??""}`.toLowerCase(),attributes:{v:t.hasAttribute("data-v")?"":null}}}))}const Y=u.querySelector("[data-kinds]");if(Y!==null){const e=f("button[data-k]",Y),n=t=>{for(const l of e)l.setAttribute("aria-pressed",String(l.dataset.k===t));for(const l of f("ol[data-rank]")){let s=0;for(const o of f("li",l)){const r=o.dataset.k===t&&s<10;o.hidden=!r,r&&s++}l.hidden=s===0;for(const o of f("[data-k-empty]",l.parentElement??u))o.hidden=o.dataset.kEmpty!==t}};for(const t of e)t.addEventListener("click",()=>n(t.dataset.k??"api"));n(e[0]?.dataset.k??"api")}u.addEventListener("click",e=>{if(e.target.closest("[data-copy]")===null)return;const n=location.href,t=()=>{const l=k?.querySelector("input");k===null||l==null||(k.hidden=!1,l.value=n,l.focus(),l.select())};if(navigator.clipboard===void 0){t();return}navigator.clipboard.writeText(n).then(()=>$("Link copied"),t)});const Z=u.getElementById("download"),R=u.getElementById("download-link");Z instanceof HTMLButtonElement&&R instanceof HTMLAnchorElement&&Z.addEventListener("click",()=>{const e=URL.createObjectURL(new Blob([ee],{type:"application/json"}));R.href=e,R.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)});for(const e of f(".js-only"))e.hidden=!1;let S=[];window.addEventListener("beforeprint",()=>{v(!1),S=f("details[data-v]:not([open])");for(const e of S)e.open=!0});window.addEventListener("afterprint",()=>{for(const e of S)e.open=!1;S=[]});h("overview");F(location.hash);})();';
|
|
5842
6461
|
var SCRIPT_SHA256 = "Jda/ayo/X8RNPoTXXep2nOa041MPnyTQ/N6biJU+P6k=";
|
|
5843
6462
|
|
|
@@ -5907,7 +6526,7 @@ function place(marks2, axisMax) {
|
|
|
5907
6526
|
const rowsEnd = [];
|
|
5908
6527
|
return [...marks2].sort((a, b) => a.value - b.value).map((mark) => {
|
|
5909
6528
|
const x = coordinate(mark.value, axisMax);
|
|
5910
|
-
const text2 = `${mark.label} ${
|
|
6529
|
+
const text2 = `${mark.label} ${formatMs2(mark.value)}`;
|
|
5911
6530
|
const width = text2.length * CHAR;
|
|
5912
6531
|
const anchor = x - width / 2 < 0 ? "start" : x + width / 2 > WIDTH ? "end" : "middle";
|
|
5913
6532
|
const from = anchor === "start" ? x : anchor === "end" ? x - width : x - width / 2;
|
|
@@ -5954,9 +6573,9 @@ function percentileBar(stats2, limits, level) {
|
|
|
5954
6573
|
const width = Math.max(0, Math.round((coordinate(p99, axisMax) - x1) * 10) / 10);
|
|
5955
6574
|
range = html`<rect class="bar-range" x="${x1}" y="${axisY - 4}" width="${width}" height="8"/>`;
|
|
5956
6575
|
}
|
|
5957
|
-
const describe = [...markers, ...lines].map((m) => `${m.label} ${
|
|
6576
|
+
const describe = [...markers, ...lines].map((m) => `${m.label} ${formatMs2(m.value)}`).join(", ");
|
|
5958
6577
|
const label = `Percentiles and limits: ${describe}`;
|
|
5959
|
-
return html`<svg class="bar" viewBox="0 0 ${WIDTH} ${height}" role="img" aria-label="${label}"><line class="bar-axis" x1="${LEFT}" y1="${axisY}" x2="${RIGHT}" y2="${axisY}"/>${range}${lineSvg}${markerSvg}<text class="bar-scale" x="${LEFT}" y="${height - 2}">0</text><text class="bar-scale" x="${RIGHT}" y="${height - 2}" text-anchor="end">${
|
|
6578
|
+
return html`<svg class="bar" viewBox="0 0 ${WIDTH} ${height}" role="img" aria-label="${label}"><line class="bar-axis" x1="${LEFT}" y1="${axisY}" x2="${RIGHT}" y2="${axisY}"/>${range}${lineSvg}${markerSvg}<text class="bar-scale" x="${LEFT}" y="${height - 2}">0</text><text class="bar-scale" x="${RIGHT}" y="${height - 2}" text-anchor="end">${formatMs2(axisMax)}</text></svg>`;
|
|
5960
6579
|
}
|
|
5961
6580
|
|
|
5962
6581
|
// src/html/charts.ts
|
|
@@ -5983,7 +6602,7 @@ function place2(marks2, width) {
|
|
|
5983
6602
|
return [...marks2].sort((a, b) => a.x - b.x).map((mark) => {
|
|
5984
6603
|
const arrowLeft = mark.side === "left" ? "\u2190 " : "";
|
|
5985
6604
|
const arrowRight = mark.side === "right" ? " \u2192" : "";
|
|
5986
|
-
const text2 = `${arrowLeft}${mark.label} ${
|
|
6605
|
+
const text2 = `${arrowLeft}${mark.label} ${formatMs2(mark.value)}${arrowRight}`;
|
|
5987
6606
|
const w = text2.length * CHAR2;
|
|
5988
6607
|
const anchor = mark.x - w / 2 < 0 ? "start" : mark.x + w / 2 > width ? "end" : "middle";
|
|
5989
6608
|
const from = anchor === "start" ? mark.x : anchor === "end" ? mark.x - w : mark.x - w / 2;
|
|
@@ -6012,7 +6631,7 @@ function histogramX(edges, value) {
|
|
|
6012
6631
|
return { x: r(H_LEFT + (i + (value - lo) / (hi - lo)) * width) };
|
|
6013
6632
|
}
|
|
6014
6633
|
function edgeText(value) {
|
|
6015
|
-
return
|
|
6634
|
+
return formatMs2(value);
|
|
6016
6635
|
}
|
|
6017
6636
|
function histogramSvg(input) {
|
|
6018
6637
|
const { edges, counts } = input;
|
|
@@ -6036,8 +6655,8 @@ function histogramSvg(input) {
|
|
|
6036
6655
|
}
|
|
6037
6656
|
const outline = (from, to) => {
|
|
6038
6657
|
let previous = base;
|
|
6039
|
-
const steps = counts.slice(from, to).map((
|
|
6040
|
-
const y = r(base - H_BARS *
|
|
6658
|
+
const steps = counts.slice(from, to).map((count3) => {
|
|
6659
|
+
const y = r(base - H_BARS * count3 / most);
|
|
6041
6660
|
const step = y === previous ? "" : `V${y}`;
|
|
6042
6661
|
previous = y;
|
|
6043
6662
|
return `${step}h${r(width)}`;
|
|
@@ -6069,9 +6688,9 @@ function histogramSvg(input) {
|
|
|
6069
6688
|
)}</g>`;
|
|
6070
6689
|
const peak = counts.indexOf(Math.max(...counts));
|
|
6071
6690
|
const summary = [
|
|
6072
|
-
`Histogram of ${plural3(input.retained, "duration")} from ${
|
|
6073
|
-
`most (${String(counts[peak] ?? 0)}) in ${
|
|
6074
|
-
marks2.map((m) => `${m.label} ${
|
|
6691
|
+
`Histogram of ${plural3(input.retained, "duration")} from ${formatMs2(first2)} to ${formatMs2(last)}`,
|
|
6692
|
+
`most (${String(counts[peak] ?? 0)}) in ${formatMs2(edges[peak] ?? 0)}\u2013${formatMs2(edges[peak + 1] ?? 0)}`,
|
|
6693
|
+
marks2.map((m) => `${m.label} ${formatMs2(m.value)}`).join(", ")
|
|
6075
6694
|
].join("; ");
|
|
6076
6695
|
const label = input.sampled ? `${summary}; uniform sample of ${String(input.retained)}` : summary;
|
|
6077
6696
|
return html`<svg class="hist ch" viewBox="0 0 ${H_WIDTH} ${height}" role="img" aria-label="${label}">${grid}${bars}<path class="ha" d="M${H_LEFT} ${base}H${H_RIGHT}"/>${markSvg}${tickSvg}</svg>`;
|
|
@@ -6080,7 +6699,7 @@ function ttfbSplitSvg(ttfb, other) {
|
|
|
6080
6699
|
const total = ttfb + other;
|
|
6081
6700
|
if (total <= 0) return null;
|
|
6082
6701
|
const width = r(H_WIDTH * ttfb / total);
|
|
6083
|
-
const label = `TTFB p50 ${
|
|
6702
|
+
const label = `TTFB p50 ${formatMs2(ttfb)}, rest ${formatMs2(other)}`;
|
|
6084
6703
|
return html`<svg class="split" viewBox="0 0 ${H_WIDTH} 16" role="img" aria-label="${label}"><rect class="st" width="${width}" height="16"/><rect class="so" x="${width}" width="${r(H_WIDTH - width)}" height="16"/></svg>`;
|
|
6085
6704
|
}
|
|
6086
6705
|
var W_WIDTH = 960;
|
|
@@ -6105,7 +6724,7 @@ function waterfallSvg(waterfall2, id) {
|
|
|
6105
6724
|
const ticks = [0, 1, 2, 3, 4].map((q) => {
|
|
6106
6725
|
const value = waterfall2.spanMs * q / 4;
|
|
6107
6726
|
const anchor = q === 0 ? "start" : q === 4 ? "end" : "middle";
|
|
6108
|
-
return html`<text class="wt ${ANCHOR[anchor]}" x="${x(value)}" y="12">+${
|
|
6727
|
+
return html`<text class="wt ${ANCHOR[anchor]}" x="${x(value)}" y="12">+${formatMs2(value)}</text><path class="wg" d="M${x(value)} 16V${height}"/>`;
|
|
6109
6728
|
});
|
|
6110
6729
|
let longest = null;
|
|
6111
6730
|
const labels = /* @__PURE__ */ new Map();
|
|
@@ -6127,7 +6746,7 @@ function waterfallSvg(waterfall2, id) {
|
|
|
6127
6746
|
const rowSvg = rows.map((req, i) => {
|
|
6128
6747
|
const y = W_TOP + i * W_ROW;
|
|
6129
6748
|
const ref = labels.get(req.key)?.ref ?? "";
|
|
6130
|
-
const title2 = `${req.key} \xB7 ${req.status} \xB7 start +${
|
|
6749
|
+
const title2 = `${req.key} \xB7 ${req.status} \xB7 start +${formatMs2(req.offset)} \xB7 ${req.duration === null ? "no duration" : formatMs2(req.duration)}`;
|
|
6131
6750
|
if (req.duration !== null && (longest === null || req.duration > (longest.duration ?? 0))) {
|
|
6132
6751
|
longest = req;
|
|
6133
6752
|
}
|
|
@@ -6140,7 +6759,7 @@ function waterfallSvg(waterfall2, id) {
|
|
|
6140
6759
|
const width = Math.max(2, r(req.duration * scale));
|
|
6141
6760
|
const end = r(from + width);
|
|
6142
6761
|
const ok = /^[23]/u.test(req.status);
|
|
6143
|
-
const text2 = `${
|
|
6762
|
+
const text2 = `${formatMs2(req.duration)}${ok ? "" : ` \xB7 ${req.status}`}`;
|
|
6144
6763
|
const label = end > W_RIGHT - 40 ? html`<text class="d ae" x="${r(from - 6)}" y="${y + 14}">${text2}</text>` : html`<text class="d" x="${r(end + 6)}" y="${y + 14}">${text2}</text>`;
|
|
6145
6764
|
mark = html`<rect x="${from}" y="${y + 4}" width="${width}" height="12" rx="2"/>${label}`;
|
|
6146
6765
|
}
|
|
@@ -6148,8 +6767,8 @@ function waterfallSvg(waterfall2, id) {
|
|
|
6148
6767
|
});
|
|
6149
6768
|
const top = longest;
|
|
6150
6769
|
const summary = [
|
|
6151
|
-
`Waterfall of ${plural3(waterfall2.requestCount, "request")} over ${
|
|
6152
|
-
top === null ? null : `longest request ${top.key} ${
|
|
6770
|
+
`Waterfall of ${plural3(waterfall2.requestCount, "request")} over ${formatMs2(waterfall2.spanMs)}`,
|
|
6771
|
+
top === null ? null : `longest request ${top.key} ${formatMs2(top.duration ?? 0)}`
|
|
6153
6772
|
].filter((s) => s !== null).join("; ");
|
|
6154
6773
|
return html`<svg class="wf ch" viewBox="0 0 ${W_WIDTH} ${height}" role="img" aria-label="${summary}">${defs}${ticks}<path class="sep" d="M${W_SEP} 16V${height}"/>${rowSvg}</svg>`;
|
|
6155
6774
|
}
|
|
@@ -6180,32 +6799,30 @@ function text(params, name) {
|
|
|
6180
6799
|
function capitalize(label) {
|
|
6181
6800
|
return /^p\d/u.test(label) ? label : label.charAt(0).toUpperCase() + label.slice(1);
|
|
6182
6801
|
}
|
|
6183
|
-
function
|
|
6184
|
-
return (Math.floor(Math.round(usage * 1e4) / 1e3) / 10).toFixed(1);
|
|
6185
|
-
}
|
|
6186
|
-
function hintText(hint2, level, muted) {
|
|
6802
|
+
function hintText(hint2, level, muted, kind2 = "api") {
|
|
6187
6803
|
const p = hint2.params;
|
|
6804
|
+
const responses = kind2 === "step" ? "samples" : "responses";
|
|
6188
6805
|
const over = () => String(overPercent(num2(p, "usage")));
|
|
6189
6806
|
const pctMedian = () => String(usagePercent(num2(p, "medianUsage")));
|
|
6190
6807
|
switch (hint2.code) {
|
|
6191
6808
|
case "HINT_HARD_LIMIT":
|
|
6192
|
-
return `${capitalize(ruleLabel(text(p, "rule"), level))} is ${
|
|
6809
|
+
return `${capitalize(ruleLabel(text(p, "rule"), level))} is ${formatFactor(num2(p, "usage"), num2(p, "factor"))}\xD7 its limit, above the hard limit of ${String(num2(p, "factor"))}\xD7: it fails the run regardless of tolerance.`;
|
|
6193
6810
|
case "HINT_SLOWDOWN":
|
|
6194
|
-
return `The median is ${over()}% over its limit: most responses are slower, not only the tail.`;
|
|
6811
|
+
return `The median is ${over()}% over its limit: most ${responses} are slower, not only the tail.`;
|
|
6195
6812
|
case "HINT_TAIL":
|
|
6196
|
-
return `${level} is ${over()}% over its limit while the median is at ${pctMedian()}% of its limit: a growing tail of slow responses, not a general slowdown.`;
|
|
6813
|
+
return `${level} is ${over()}% over its limit while the median is at ${pctMedian()}% of its limit: a growing tail of slow ${responses}, not a general slowdown.`;
|
|
6197
6814
|
case "HINT_SHIFT":
|
|
6198
6815
|
return `${level} is ${over()}% over its limit and the median is at ${pctMedian()}% of its limit: the whole distribution moved up.`;
|
|
6199
6816
|
case "HINT_OUTLIERS":
|
|
6200
|
-
return `Only p99 is over its limit (by ${over()}%): a few very slow responses, up to ${
|
|
6817
|
+
return `Only p99 is over its limit (by ${over()}%): a few very slow ${responses}, up to ${formatMs2(num2(p, "max"))}; see the slowest samples.`;
|
|
6201
6818
|
case "HINT_ERRORS_DOMINANT":
|
|
6202
6819
|
return `Error rate ${formatPercent(num2(p, "rate"))} is above the limit of ${formatPercent(num2(p, "limit"))}, mostly ${text(p, "label")} (${String(num2(p, "count"))} of ${String(num2(p, "errors"))} errors).`;
|
|
6203
6820
|
case "HINT_ERRORS_MIXED":
|
|
6204
6821
|
return `Error rate ${formatPercent(num2(p, "rate"))} is above the limit of ${formatPercent(num2(p, "limit"))}; errors are spread over ${text(p, "label1")} (${String(num2(p, "count1"))}), ${text(p, "label2")} (${String(num2(p, "count2"))}) and ${text(p, "label3")} (${String(num2(p, "count3"))}).`;
|
|
6205
6822
|
case "HINT_APDEX":
|
|
6206
|
-
return `Apdex ${formatRatio(num2(p, "apdex"))} is below the limit of ${formatRatio(num2(p, "limit"))} although the percentiles are within limits: many responses are slower than T = ${
|
|
6823
|
+
return `Apdex ${formatRatio(num2(p, "apdex"))} is below the limit of ${formatRatio(num2(p, "limit"))} although the percentiles are within limits: many ${responses} are slower than T = ${formatMs2(num2(p, "t"))}.`;
|
|
6207
6824
|
case "HINT_SLOW_SHARE":
|
|
6208
|
-
return `${formatPercent(num2(p, "share"))} of responses are slower than T = ${
|
|
6825
|
+
return `${formatPercent(num2(p, "share"))} of ${responses} are slower than T = ${formatMs2(num2(p, "t"))} (limit ${formatPercent(num2(p, "limit"))}) although the percentiles are within limits: a slow minority.`;
|
|
6209
6826
|
case "HINT_MEDIAN_ONLY":
|
|
6210
6827
|
return `Only the median was evaluated (n = ${String(num2(p, "n"))}): add repetitions for a reliable verdict.`;
|
|
6211
6828
|
case "HINT_MUTED":
|
|
@@ -6266,19 +6883,20 @@ var SHARE_RULES2 = /* @__PURE__ */ new Set([
|
|
|
6266
6883
|
"wilson",
|
|
6267
6884
|
"errors"
|
|
6268
6885
|
]);
|
|
6269
|
-
function
|
|
6270
|
-
if (check2.passed
|
|
6271
|
-
|
|
6886
|
+
function overOf(check2) {
|
|
6887
|
+
if (check2.passed) return void 0;
|
|
6888
|
+
if (!SHARE_RULES2.has(check2.rule) && check2.usage === null) return void 0;
|
|
6889
|
+
return overText(check2);
|
|
6272
6890
|
}
|
|
6273
6891
|
function usageMeter(check2, long = false) {
|
|
6274
6892
|
const usage = check2.usage;
|
|
6275
6893
|
const failed = !check2.passed;
|
|
6276
6894
|
const value = usage === null ? 1.25 : Math.min(usage, 1.25);
|
|
6277
6895
|
const cls = usageClass(usage, failed);
|
|
6278
|
-
return html`<label class="hr"><meter max="1.25" low="0.9" high="1" optimum="0" value="${value}"></meter><b${cls === "" ? null : html` class="${cls}"`}>${usageText(usage, failed, long,
|
|
6896
|
+
return html`<label class="hr"><meter max="1.25" low="0.9" high="1" optimum="0" value="${value}"></meter><b${cls === "" ? null : html` class="${cls}"`}>${usageText(usage, failed, long, overOf(check2))}</b></label>`;
|
|
6279
6897
|
}
|
|
6280
6898
|
function checkValue(check2, value) {
|
|
6281
|
-
if (TIME_RULES4.has(check2.rule)) return
|
|
6899
|
+
if (TIME_RULES4.has(check2.rule)) return formatMs2(value);
|
|
6282
6900
|
return check2.rule === "errors" ? formatPercent(value) : formatRatio(value);
|
|
6283
6901
|
}
|
|
6284
6902
|
function lowestMinSamples(report, level) {
|
|
@@ -6307,7 +6925,30 @@ function checkPill(c) {
|
|
|
6307
6925
|
if (c.hardLimitExceeded) return pill("fb", "hard limit");
|
|
6308
6926
|
return c.blocking ? pill("fb", "blocking") : pill("f", "fail");
|
|
6309
6927
|
}
|
|
6310
|
-
function
|
|
6928
|
+
function lowestT(report, kind2) {
|
|
6929
|
+
let value = report.thresholdFiles.find((f) => f.kind === kind2)?.generated;
|
|
6930
|
+
for (const name of ["derivation", "t", "min"]) {
|
|
6931
|
+
value = typeof value === "object" && value !== null ? value[name] : void 0;
|
|
6932
|
+
}
|
|
6933
|
+
return typeof value === "number" ? value : null;
|
|
6934
|
+
}
|
|
6935
|
+
function checksLegend(ctx, kind2, agg) {
|
|
6936
|
+
const checks = agg.evaluation.checks;
|
|
6937
|
+
const lines = [];
|
|
6938
|
+
if (checks.some((c) => SHARE_RULES2.has(c.rule))) {
|
|
6939
|
+
lines.push(
|
|
6940
|
+
"Raw is measured in this run; time rules compare it with the limit. Share rules compare Bound, the 95% confidence bound (upper for Apdex, lower otherwise), so chance alone does not fail them."
|
|
6941
|
+
);
|
|
6942
|
+
}
|
|
6943
|
+
const t = agg.evaluation.limits.t;
|
|
6944
|
+
if (t !== null && checks.some((c) => c.rule === "apdex" || c.rule === "wilson")) {
|
|
6945
|
+
lines.push(
|
|
6946
|
+
lowestT(ctx.report, kind2) === t ? `T = ${formatMs2(t)}, the lowest allowed for ${kind2 === "step" ? "steps" : "endpoints"}: faster samples count as satisfied, so Apdex and slow share can pass while the percentiles fail.` : `T = ${formatMs2(t)}: slower samples count as slow.`
|
|
6947
|
+
);
|
|
6948
|
+
}
|
|
6949
|
+
return lines.length === 0 ? null : html`<p class="legend">${lines.join(" ")}</p>`;
|
|
6950
|
+
}
|
|
6951
|
+
function checksTable(ctx, kind2, agg) {
|
|
6311
6952
|
const ev = agg.evaluation;
|
|
6312
6953
|
if (ev.result === "not-evaluated") {
|
|
6313
6954
|
const reason = reasonText(ev.reason);
|
|
@@ -6322,30 +6963,36 @@ function checksTable(ctx, agg) {
|
|
|
6322
6963
|
}
|
|
6323
6964
|
const ns = new Set(ev.checks.map((c) => c.n));
|
|
6324
6965
|
const commonN = ns.size === 1 ? [...ns][0] : void 0;
|
|
6325
|
-
const
|
|
6326
|
-
const row = (c) =>
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6966
|
+
const bound = ev.checks.some((c) => SHARE_RULES2.has(c.rule));
|
|
6967
|
+
const row = (c) => {
|
|
6968
|
+
const share2 = SHARE_RULES2.has(c.rule);
|
|
6969
|
+
const ov = c.passed ? null : html` class="ov"`;
|
|
6970
|
+
const raw = share2 ? c.observed : c.actual;
|
|
6971
|
+
return join4(
|
|
6972
|
+
html`<tr><th scope="row">${ruleLabel(c.rule, ctx.level)}</th>`,
|
|
6973
|
+
// Numbers are right-aligned by the table style, without a class per cell.
|
|
6974
|
+
commonN === void 0 ? html`<td>${c.n}</td>` : null,
|
|
6975
|
+
html`<td${share2 ? null : ov}>${raw === null ? null : checkValue(c, raw)}</td>`,
|
|
6976
|
+
bound ? html`<td${share2 ? ov : null}>${share2 ? checkValue(c, c.actual) : null}</td>` : null,
|
|
6977
|
+
html`<td>${checkValue(c, c.limit)}</td><td>`,
|
|
6978
|
+
ctx.migrated ? DASH : usageMeter(c, true),
|
|
6979
|
+
html`</td><td>${checkPill(c)}</td></tr>`
|
|
6980
|
+
);
|
|
6981
|
+
};
|
|
6336
6982
|
return part(
|
|
6337
6983
|
"Checks",
|
|
6338
6984
|
commonN === void 0 ? null : `n = ${String(commonN)} for every rule`,
|
|
6339
6985
|
html`<div class="ct" tabindex="0"><table class="ck"><caption>Checks</caption><thead><tr><th scope="col">Rule</th>`,
|
|
6340
6986
|
commonN === void 0 ? html`<th scope="col" class="num">n</th>` : null,
|
|
6341
|
-
html`<th scope="col" class="num">
|
|
6342
|
-
|
|
6343
|
-
html`<th scope="col" class="num">Limit</th><th scope="col">
|
|
6344
|
-
html`<tbody>${ev.checks.map(row)}</tbody></table></div
|
|
6987
|
+
html`<th scope="col" class="num">Raw</th>`,
|
|
6988
|
+
bound ? html`<th scope="col" class="num">Bound</th>` : null,
|
|
6989
|
+
html`<th scope="col" class="num">Limit</th><th scope="col">Limit used</th><th scope="col">Result</th></tr></thead>`,
|
|
6990
|
+
html`<tbody>${ev.checks.map(row)}</tbody></table></div>`,
|
|
6991
|
+
checksLegend(ctx, kind2, agg)
|
|
6345
6992
|
);
|
|
6346
6993
|
}
|
|
6347
6994
|
function msValue(value) {
|
|
6348
|
-
const [number, unit] =
|
|
6995
|
+
const [number, unit] = formatMs2(value).split(" ");
|
|
6349
6996
|
return html`${number}<small> ${unit}</small>`;
|
|
6350
6997
|
}
|
|
6351
6998
|
function notTimedNote(ctx, kind2, agg) {
|
|
@@ -6359,6 +7006,9 @@ function notTimedNote(ctx, kind2, agg) {
|
|
|
6359
7006
|
return `${shown.join(", ")}${more > 0 ? ` +${String(more)} more` : ""} (not timed)`;
|
|
6360
7007
|
}
|
|
6361
7008
|
var NOT_TIMED_LABELS = 3;
|
|
7009
|
+
function evaluatedLimit(agg, rule, limit) {
|
|
7010
|
+
return agg.evaluation.checks.some((c) => c.rule === rule) ? limit : null;
|
|
7011
|
+
}
|
|
6362
7012
|
function statsGrid(ctx, kind2, agg) {
|
|
6363
7013
|
const stats2 = agg.stats;
|
|
6364
7014
|
if (stats2 === null) {
|
|
@@ -6367,14 +7017,19 @@ function statsGrid(ctx, kind2, agg) {
|
|
|
6367
7017
|
}
|
|
6368
7018
|
const limits = agg.evaluation.limits;
|
|
6369
7019
|
const cell2 = (label, value, limit) => {
|
|
6370
|
-
const over = value !== void 0 && limit
|
|
6371
|
-
|
|
7020
|
+
const over = value !== void 0 && limit != null && value > limit;
|
|
7021
|
+
const note = limit === void 0 ? null : limit === null ? " \xB7 not evaluated" : ` \xB7 limit ${formatMs2(limit)}`;
|
|
7022
|
+
return html`<div${over ? html` class="ov"` : null}><dt>${label}${note}</dt><dd>${value === void 0 ? DASH : msValue(value)}</dd></div>`;
|
|
6372
7023
|
};
|
|
6373
7024
|
return html`<div class="ds"><dl class="stats">${[
|
|
6374
|
-
cell2("p50", stats2.percentiles["p50"],
|
|
6375
|
-
cell2(
|
|
6376
|
-
|
|
6377
|
-
|
|
7025
|
+
cell2("p50", stats2.percentiles["p50"], void 0),
|
|
7026
|
+
cell2(
|
|
7027
|
+
ctx.level,
|
|
7028
|
+
stats2.percentiles[ctx.level],
|
|
7029
|
+
evaluatedLimit(agg, "percentile", limits.percentile)
|
|
7030
|
+
),
|
|
7031
|
+
cell2("p99", stats2.percentiles["p99"], evaluatedLimit(agg, "p99", limits.p99)),
|
|
7032
|
+
cell2("max", stats2.max, void 0)
|
|
6378
7033
|
]}</dl></div>`;
|
|
6379
7034
|
}
|
|
6380
7035
|
function distribution(ctx, agg) {
|
|
@@ -6415,13 +7070,15 @@ function ttfbSplit(agg) {
|
|
|
6415
7070
|
if (ttfb === null || ttfb.otherP50 === null || agg.stats === null) return null;
|
|
6416
7071
|
const svg = ttfbSplitSvg(ttfb.p50, ttfb.otherP50);
|
|
6417
7072
|
if (svg === null) return null;
|
|
6418
|
-
const sum3 = Math.round((ttfb.p50 + ttfb.otherP50) * 10) / 10;
|
|
7073
|
+
const sum3 = formatMs2(Math.round((ttfb.p50 + ttfb.otherP50) * 10) / 10);
|
|
7074
|
+
const p50 = formatMs2(agg.stats.percentiles["p50"] ?? 0);
|
|
6419
7075
|
return part(
|
|
6420
7076
|
"Server wait vs rest",
|
|
6421
7077
|
"p50 of each part",
|
|
6422
7078
|
svg,
|
|
6423
|
-
html`<p class="legend"><span><i class="s-acc"></i>Server wait (TTFB p50) ${
|
|
6424
|
-
|
|
7079
|
+
html`<p class="legend"><span><i class="s-acc"></i>Server wait (TTFB p50) ${formatMs2(ttfb.p50)}</span><span><i class="s-trk"></i>Rest (p50 of duration − TTFB) ${formatMs2(ttfb.otherP50)}</span></p>`,
|
|
7080
|
+
// Only when the numbers differ (11-REQ-33).
|
|
7081
|
+
sum3 === p50 ? null : html`<p class="sub">Medians of each part: their sum (${sum3}) can differ from p50 of the duration (${p50}).</p>`
|
|
6425
7082
|
);
|
|
6426
7083
|
}
|
|
6427
7084
|
function isErrorStatus(label, statuses) {
|
|
@@ -6429,9 +7086,10 @@ function isErrorStatus(label, statuses) {
|
|
|
6429
7086
|
(s) => s === label || /^\dxx$/u.test(s) && /^\d{3}$/u.test(label) && s[0] === label[0]
|
|
6430
7087
|
);
|
|
6431
7088
|
}
|
|
6432
|
-
function keyHeader(kind2, key2, agg) {
|
|
7089
|
+
function keyHeader(ctx, kind2, key2, agg) {
|
|
6433
7090
|
const ev = agg.evaluation;
|
|
6434
|
-
|
|
7091
|
+
const full = kind2 === "api" ? keyView(kind2, key2, Number.MAX_SAFE_INTEGER, false, ctx.report.origins) : key2;
|
|
7092
|
+
return html`<div class="kh"><p class="fkl"><code class="fk">${full}</code></p><p class="pills">${[
|
|
6435
7093
|
resultPill(ev),
|
|
6436
7094
|
kindToken(kind2),
|
|
6437
7095
|
sourceToken(ev.thresholdSource),
|
|
@@ -6452,7 +7110,7 @@ function statusesPart(ctx, kind2, key2, agg) {
|
|
|
6452
7110
|
kind2 === "step" ? html`<span>Defined at: <code>${locationText(agg)}</code></span>` : null,
|
|
6453
7111
|
kind2 === "step" && (agg.stepErrorsFromFailedTests ?? 0) > 0 ? html`<span>Step errors in failed tests (not counted): ${agg.stepErrorsFromFailedTests ?? 0}</span>` : null,
|
|
6454
7112
|
request ? html`<span>Source: request (worker clock)</span>` : null,
|
|
6455
|
-
kind2 === "api" && !request ? html`<span>TTFB: ${agg.ttfb === null ? DASH : `p50 ${
|
|
7113
|
+
kind2 === "api" && !request ? html`<span>TTFB: ${agg.ttfb === null ? DASH : `p50 ${formatMs2(agg.ttfb.p50)}, p95 ${formatMs2(agg.ttfb.p95)}`}</span>` : null,
|
|
6456
7114
|
html`<span>Retained samples: ${agg.samples.sampled ? `${String(agg.samples.retained)} (uniform sample of ${String(agg.successCount)}; the histogram shows them)` : `${String(agg.samples.retained)} (all successful)`}</span>`
|
|
6457
7115
|
];
|
|
6458
7116
|
return part(
|
|
@@ -6468,11 +7126,11 @@ function keyDetails(ctx, kind2, key2, agg) {
|
|
|
6468
7126
|
const hints = ctx.migrated ? [] : agg.hints;
|
|
6469
7127
|
return join4(
|
|
6470
7128
|
html`<div class="kd">`,
|
|
6471
|
-
keyHeader(kind2, key2, agg),
|
|
6472
|
-
hints.length === 0 ? null : html`<ul class="hints">${hints.map((h) => html`<li>${icon("bulb")}${hintText(h, ctx.level, agg.evaluation.muted)}</li>`)}</ul>`,
|
|
7129
|
+
keyHeader(ctx, kind2, key2, agg),
|
|
7130
|
+
hints.length === 0 ? null : html`<ul class="hints">${hints.map((h) => html`<li>${icon("bulb")}${hintText(h, ctx.level, agg.evaluation.muted, kind2)}</li>`)}</ul>`,
|
|
6473
7131
|
statsGrid(ctx, kind2, agg),
|
|
6474
7132
|
distribution(ctx, agg),
|
|
6475
|
-
checksTable(ctx, agg),
|
|
7133
|
+
checksTable(ctx, kind2, agg),
|
|
6476
7134
|
kind2 === "api" ? ttfbSplit(agg) : null,
|
|
6477
7135
|
statusesPart(ctx, kind2, key2, agg),
|
|
6478
7136
|
agg.slowest.length === 0 ? null : part(
|
|
@@ -6480,7 +7138,7 @@ function keyDetails(ctx, kind2, key2, agg) {
|
|
|
6480
7138
|
null,
|
|
6481
7139
|
html`<ol class="samples">${agg.slowest.map(
|
|
6482
7140
|
(s) => join4(
|
|
6483
|
-
html`<li><b>${
|
|
7141
|
+
html`<li><b>${formatMs2(s.duration)}</b><span class="tt"><span>${s.test.title}</span>`,
|
|
6484
7142
|
html`<span class="sub">${testRef2(s.test)} · rep ${s.test.repeatEachIndex} · ${formatDate(s.startedAt)}</span>`,
|
|
6485
7143
|
s.url === void 0 ? null : html`<span class="url">${s.url}</span>`,
|
|
6486
7144
|
html`</span></li>`
|
|
@@ -6511,10 +7169,10 @@ function timeCell(value) {
|
|
|
6511
7169
|
function limitCell(value, limit) {
|
|
6512
7170
|
if (value === void 0) return html`<td class="num z">${DASH}</td>`;
|
|
6513
7171
|
const over = limit !== null && value > limit;
|
|
6514
|
-
return html`<td class="num${over ? " ov" : ""}">${Math.round(value)}${limit === null ?
|
|
7172
|
+
return html`<td class="num${over ? " ov" : ""}">${Math.round(value)}<span class="lim"> / ${limit === null ? DASH : Math.round(limit)}</span></td>`;
|
|
6515
7173
|
}
|
|
6516
7174
|
function headroomCell(ctx, agg) {
|
|
6517
|
-
const top = ctx.migrated ? void 0 :
|
|
7175
|
+
const top = ctx.migrated ? void 0 : keyCheck(agg.evaluation.checks);
|
|
6518
7176
|
if (top === void 0) return html`<td class="z">${DASH}</td>`;
|
|
6519
7177
|
return html`<td>${usageMeter(top)}</td>`;
|
|
6520
7178
|
}
|
|
@@ -6540,8 +7198,11 @@ function keyRow(ctx, kind2, key2, agg, columns, ttfb) {
|
|
|
6540
7198
|
samplesCell(ctx, kind2, agg),
|
|
6541
7199
|
agg.errorCount === 0 ? html`<td class="num"></td>` : html`<td class="num e">${agg.errorCount}</td>`,
|
|
6542
7200
|
timeCell(s?.percentiles["p50"]),
|
|
6543
|
-
s === null ? timeCell(void 0) : limitCell(
|
|
6544
|
-
|
|
7201
|
+
s === null ? timeCell(void 0) : limitCell(
|
|
7202
|
+
s.percentiles[ctx.level],
|
|
7203
|
+
evaluatedLimit(agg, "percentile", ev.limits.percentile)
|
|
7204
|
+
),
|
|
7205
|
+
s === null ? timeCell(void 0) : limitCell(s.percentiles["p99"], evaluatedLimit(agg, "p99", ev.limits.p99)),
|
|
6545
7206
|
timeCell(s?.max),
|
|
6546
7207
|
ttfb ? timeCell(agg.ttfb?.p50) : null,
|
|
6547
7208
|
kind2 === "step" ? html`<td class="loc">${locationText(agg)}</td>` : null,
|
|
@@ -6586,7 +7247,7 @@ function keyTable(ctx, kind2, title2) {
|
|
|
6586
7247
|
// Browser traffic or APIRequestContext calls (15-REQ-15).
|
|
6587
7248
|
...kind2 === "api" ? [["source", "Source"]] : [],
|
|
6588
7249
|
["result", "Result"],
|
|
6589
|
-
["headroom", "
|
|
7250
|
+
["headroom", "Limit used"],
|
|
6590
7251
|
["samples", "Samples"],
|
|
6591
7252
|
["errors", "Errors"],
|
|
6592
7253
|
["p50", "p50"],
|
|
@@ -6607,10 +7268,17 @@ function keyTable(ctx, kind2, title2) {
|
|
|
6607
7268
|
"ttfb",
|
|
6608
7269
|
"tests"
|
|
6609
7270
|
]);
|
|
7271
|
+
const notEvaluated = keys.some((key2) => {
|
|
7272
|
+
const agg = aggregates[key2];
|
|
7273
|
+
if (agg?.stats == null) return false;
|
|
7274
|
+
const rules = new Set(agg.evaluation.checks.map((c) => c.rule));
|
|
7275
|
+
return !rules.has("percentile") || !rules.has("p99");
|
|
7276
|
+
});
|
|
6610
7277
|
const notes = [
|
|
6611
7278
|
"All times in ms",
|
|
6612
|
-
"the tick on each
|
|
7279
|
+
"the tick on each limit used bar marks the limit",
|
|
6613
7280
|
`${ctx.level} is the evaluated percentile`,
|
|
7281
|
+
notEvaluated ? "/ \u2014 : rule not evaluated (too few samples or rule off)" : null,
|
|
6614
7282
|
kind2 === "step" ? "step keys are title paths joined with \u203A" : null
|
|
6615
7283
|
].filter((n) => n !== null);
|
|
6616
7284
|
return join4(
|
|
@@ -6639,7 +7307,7 @@ var MAX_PIPS = 10;
|
|
|
6639
7307
|
function sum2(report, field3) {
|
|
6640
7308
|
return LINK_KINDS.reduce((total, kind2) => total + report.evaluation.counts[kind2][field3], 0);
|
|
6641
7309
|
}
|
|
6642
|
-
function
|
|
7310
|
+
function failedChecks2(report, which = "all") {
|
|
6643
7311
|
let n = 0;
|
|
6644
7312
|
for (const kind2 of [report.endpoints, report.steps]) {
|
|
6645
7313
|
for (const agg of Object.values(kind2)) {
|
|
@@ -6651,10 +7319,10 @@ function failedChecks(report, which = "all") {
|
|
|
6651
7319
|
return n;
|
|
6652
7320
|
}
|
|
6653
7321
|
function blockingChecks(report) {
|
|
6654
|
-
return
|
|
7322
|
+
return failedChecks2(report, "blocking");
|
|
6655
7323
|
}
|
|
6656
7324
|
function violationsText(report) {
|
|
6657
|
-
return `${plural3(
|
|
7325
|
+
return `${plural3(failedChecks2(report), "violation")} in ${plural3(sum2(report, "violations"), "key")}`;
|
|
6658
7326
|
}
|
|
6659
7327
|
function banner(report) {
|
|
6660
7328
|
const ev = report.evaluation;
|
|
@@ -6730,7 +7398,8 @@ function verdictResults(report) {
|
|
|
6730
7398
|
const t = report.tests;
|
|
6731
7399
|
const untrustworthy = report.toolErrors.some((i) => i.code === "TESTS_FAILED_TOO_MANY");
|
|
6732
7400
|
const testParts = [
|
|
6733
|
-
|
|
7401
|
+
// Playwright results: every pass, repetition, setup and teardown is one test run (11-REQ-08).
|
|
7402
|
+
plural3(t.expected + t.unexpected + t.flaky, "test run"),
|
|
6734
7403
|
t.unexpected > 0 ? `${String(t.unexpected)} failed` : null,
|
|
6735
7404
|
t.flaky > 0 ? `${String(t.flaky)} flaky` : null,
|
|
6736
7405
|
t.skipped > 0 ? `${String(t.skipped)} skipped` : null,
|
|
@@ -6785,8 +7454,8 @@ function verdictCard(ctx) {
|
|
|
6785
7454
|
html`</section>`
|
|
6786
7455
|
);
|
|
6787
7456
|
}
|
|
6788
|
-
function widthClass(
|
|
6789
|
-
const clamped = Math.max(0, Math.min(1, Number.isFinite(
|
|
7457
|
+
function widthClass(share2) {
|
|
7458
|
+
const clamped = Math.max(0, Math.min(1, Number.isFinite(share2) ? share2 : 0));
|
|
6790
7459
|
return `w-${String(Math.round(clamped * 20) * 5)}`;
|
|
6791
7460
|
}
|
|
6792
7461
|
function field(label, value, note, viz = null, cls = "") {
|
|
@@ -6803,6 +7472,9 @@ function clock(iso) {
|
|
|
6803
7472
|
const d = new Date(time);
|
|
6804
7473
|
return `${String(d.getUTCHours()).padStart(2, "0")}:${String(d.getUTCMinutes()).padStart(2, "0")}`;
|
|
6805
7474
|
}
|
|
7475
|
+
function overLimit(data) {
|
|
7476
|
+
return Object.values(data).filter((a) => a.evaluation.result === "fail").length;
|
|
7477
|
+
}
|
|
6806
7478
|
function nearLimit(data) {
|
|
6807
7479
|
return Object.values(data).filter((a) => {
|
|
6808
7480
|
if (a.evaluation.result !== "pass") return false;
|
|
@@ -6821,15 +7493,15 @@ function kpis(ctx) {
|
|
|
6821
7493
|
const passes = r2.passes;
|
|
6822
7494
|
const t = r2.tests;
|
|
6823
7495
|
const keys = sum2(r2, "violations");
|
|
6824
|
-
const violations3 =
|
|
6825
|
-
const blocking =
|
|
6826
|
-
const muted =
|
|
7496
|
+
const violations3 = failedChecks2(r2);
|
|
7497
|
+
const blocking = failedChecks2(r2, "blocking");
|
|
7498
|
+
const muted = failedChecks2(r2, "muted");
|
|
6827
7499
|
const other = Math.max(0, violations3 - blocking - muted);
|
|
6828
|
-
const
|
|
7500
|
+
const share2 = (n) => widthClass(violations3 === 0 ? 0 : n / violations3);
|
|
6829
7501
|
const split = violations3 === 0 ? null : html`<span class="vsplit" aria-hidden="true">${[
|
|
6830
|
-
blocking > 0 ? html`<span class="s-bad ${
|
|
6831
|
-
other > 0 ? html`<span class="s-warn ${
|
|
6832
|
-
muted > 0 ? html`<span class="s-mute ${
|
|
7502
|
+
blocking > 0 ? html`<span class="s-bad ${share2(blocking)}"></span>` : null,
|
|
7503
|
+
other > 0 ? html`<span class="s-warn ${share2(other)}"></span>` : null,
|
|
7504
|
+
muted > 0 ? html`<span class="s-mute ${share2(muted)}"></span>` : null
|
|
6833
7505
|
]}</span>`;
|
|
6834
7506
|
const rate = requests === 0 ? 0 : failedRequests / requests;
|
|
6835
7507
|
const ring = requests === 0 ? null : html`<svg class="ring" viewBox="0 0 36 36" aria-hidden="true"><circle class="tr" cx="18" cy="18" r="14"/>${failedRequests === 0 ? null : html`<circle class="vl" cx="18" cy="18" r="14" pathLength="100" stroke-dasharray="${Math.max(1, Math.round(rate * 1e3) / 10)} 100"/>`}</svg>`;
|
|
@@ -6845,8 +7517,12 @@ function kpis(ctx) {
|
|
|
6845
7517
|
`${String(counts.api.fromFile + counts.api.fromDefaults)} evaluated \xB7 ${String(counts.api.tooFewSamples)} too few`
|
|
6846
7518
|
),
|
|
6847
7519
|
// Steps when the report has step keys, otherwise Tests (11-REQ-28).
|
|
6848
|
-
steps > 0 ? field(
|
|
6849
|
-
"
|
|
7520
|
+
steps > 0 ? field(
|
|
7521
|
+
"Steps",
|
|
7522
|
+
steps,
|
|
7523
|
+
`${String(overLimit(ctx.data.steps))} over limit \xB7 ${String(nearLimit(ctx.data.steps))} near limit`
|
|
7524
|
+
) : field(
|
|
7525
|
+
"Test runs",
|
|
6850
7526
|
t.expected + t.unexpected + t.flaky,
|
|
6851
7527
|
`${String(t.unexpected)} failed \xB7 ${String(t.flaky)} flaky \xB7 ${String(t.skipped)} skipped`
|
|
6852
7528
|
),
|
|
@@ -6898,14 +7574,14 @@ function badge(n, tone = "") {
|
|
|
6898
7574
|
}
|
|
6899
7575
|
function violationCard(ctx, e) {
|
|
6900
7576
|
const ev = e.agg.evaluation;
|
|
6901
|
-
const top =
|
|
7577
|
+
const top = keyCheck(ev.checks);
|
|
6902
7578
|
const hint2 = ctx.migrated ? void 0 : e.agg.hints[0];
|
|
6903
7579
|
const muted = ev.muted !== null && !ev.muted.expired;
|
|
6904
7580
|
return join4(
|
|
6905
7581
|
html`<article class="card vio${muted ? " mu" : ""}"><p class="top">${resultPill(ev)}${mutedPill(ev.muted)}${kindToken(e.kind)}${sourceToken(ev.thresholdSource)}</p>`,
|
|
6906
7582
|
keyLink(ctx, e.kind, e.key, KEY_COLUMN_MAX, true),
|
|
6907
7583
|
top === void 0 ? null : html`<p class="rule"><span>${ruleLabel(top.rule, ctx.level)} <b>${checkValue(top, top.actual)}</b> · limit ${checkValue(top, top.limit)}</span>${ctx.migrated ? null : usageMeter(top)}</p>`,
|
|
6908
|
-
hint2 === void 0 ? null : html`<p class="hint">${icon("bulb")}<span>${hintText(hint2, ctx.level, ev.muted)}</span></p>`,
|
|
7584
|
+
hint2 === void 0 ? null : html`<p class="hint">${icon("bulb")}<span>${hintText(hint2, ctx.level, ev.muted, e.kind)}</span></p>`,
|
|
6909
7585
|
html`</article>`
|
|
6910
7586
|
);
|
|
6911
7587
|
}
|
|
@@ -6919,7 +7595,7 @@ function violations2(ctx) {
|
|
|
6919
7595
|
heading(
|
|
6920
7596
|
"viol-h",
|
|
6921
7597
|
"Violations",
|
|
6922
|
-
badge(
|
|
7598
|
+
badge(failedChecks2(ctx.report), "bad"),
|
|
6923
7599
|
html`<a class="more" href="#tab-endpoints" data-show-violations="">All ${violationsText(ctx.report)} →</a>`
|
|
6924
7600
|
),
|
|
6925
7601
|
html`<div class="vlist">${failed.slice(0, RANKING_SIZE).map((e) => violationCard(ctx, e))}</div></section>`
|
|
@@ -6948,7 +7624,7 @@ function rankings(ctx) {
|
|
|
6948
7624
|
entries: all.filter((e) => e.agg.stats !== null).sort(order((e) => [e.agg.stats?.percentiles[level] ?? 0])),
|
|
6949
7625
|
size: (e) => e.agg.stats?.percentiles[level] ?? 0,
|
|
6950
7626
|
tone: errorTone,
|
|
6951
|
-
value: (e) => html`<b>${
|
|
7627
|
+
value: (e) => html`<b>${formatMs2(e.agg.stats?.percentiles[level] ?? 0)}</b> · ${e.agg.count}`
|
|
6952
7628
|
},
|
|
6953
7629
|
{
|
|
6954
7630
|
id: "called",
|
|
@@ -7045,7 +7721,7 @@ function expensiveTests(ctx) {
|
|
|
7045
7721
|
html`<a class="more" href="#tab-tests">All ${plural3(tests.length, "test")} →</a>`
|
|
7046
7722
|
),
|
|
7047
7723
|
html`<div class="card"><ul class="tl">${tests.slice(0, EXPENSIVE_TESTS).map(
|
|
7048
|
-
(t) => html`<li><span class="tt"><span>${truncateMiddle2(t.title, 120)}</span><span class="sub">${several ? `${t.project === "" ? "default project" : t.project} \xB7 ` : ""}${t.file}:${t.line}</span></span><span class="num">${
|
|
7724
|
+
(t) => html`<li><span class="tt"><span>${truncateMiddle2(t.title, 120)}</span><span class="sub">${several ? `${t.project === "" ? "default project" : t.project} \xB7 ` : ""}${t.file}:${t.line}</span></span><span class="num">${formatMs2(t.totalMs)}<span class="sub">${formatMs2(Math.round(t.totalMs / t.executions * 10) / 10)} per run</span></span><span class="num">${t.requestCount}<span class="sub">requests</span></span></li>`
|
|
7049
7725
|
)}</ul></div></section>`
|
|
7050
7726
|
);
|
|
7051
7727
|
}
|
|
@@ -7213,12 +7889,12 @@ function generatedSource(file) {
|
|
|
7213
7889
|
const tool2 = field2(generated, "tool");
|
|
7214
7890
|
const run = textOf(field2(generated, "sourceRunId"));
|
|
7215
7891
|
const at2 = textOf(field2(generated, "sourceRunStartedAt"));
|
|
7216
|
-
const
|
|
7892
|
+
const count3 = field2(generated, "sourceSampleCount");
|
|
7217
7893
|
return [
|
|
7218
7894
|
`generated by ${textOf(field2(tool2, "name")) ?? "unknown"} v${textOf(field2(tool2, "version")) ?? "?"}`,
|
|
7219
7895
|
run === null ? "" : ` from run ${run}`,
|
|
7220
7896
|
at2 === null ? "" : ` (${formatDate(at2)})`,
|
|
7221
|
-
typeof
|
|
7897
|
+
typeof count3 === "number" ? `, ${plural3(count3, "sample")}` : ""
|
|
7222
7898
|
].join("");
|
|
7223
7899
|
}
|
|
7224
7900
|
function sourceCell(file) {
|
|
@@ -7236,12 +7912,14 @@ function sourceCell(file) {
|
|
|
7236
7912
|
function thresholdsFileRow(file, report) {
|
|
7237
7913
|
const percentile2 = textOf(field2(file.generated, "evaluatedPercentile"));
|
|
7238
7914
|
const fingerprint2 = textOf(field2(file.generated, "normalization"));
|
|
7915
|
+
const run = file.kind === "step" ? report.stepNormalization : report.normalization;
|
|
7239
7916
|
let normalization;
|
|
7240
|
-
if (
|
|
7241
|
-
|
|
7242
|
-
|
|
7917
|
+
if (run === null)
|
|
7918
|
+
normalization = fingerprint2 === null ? html`${DASH}` : html`file <code>${fingerprint2}</code>`;
|
|
7919
|
+
else if (fingerprint2 === null) normalization = html`run <code>${run}</code>`;
|
|
7920
|
+
else if (fingerprint2 === run) normalization = html`<code>${fingerprint2}</code> matches this run`;
|
|
7243
7921
|
else
|
|
7244
|
-
normalization = html`file <code>${fingerprint2}</code>, run <code>${
|
|
7922
|
+
normalization = html`file <code>${fingerprint2}</code>, run <code>${run}</code> ${pill("w", "differs: keys may not match")} (see Warnings)`;
|
|
7245
7923
|
const status = file.status === "loaded" ? pill("p", "loaded") : file.status === "invalid" ? pill("fb", "invalid") : pill("ne", "missing");
|
|
7246
7924
|
const unseen = file.unseenKeys;
|
|
7247
7925
|
return join4(
|
|
@@ -7329,17 +8007,17 @@ function perRun(t) {
|
|
|
7329
8007
|
return Math.round(t.totalMs / t.executions * 10) / 10;
|
|
7330
8008
|
}
|
|
7331
8009
|
function testRow(ctx, t, i, most) {
|
|
7332
|
-
const
|
|
8010
|
+
const share2 = (ms2) => t.totalMs === 0 ? "0%" : `${String(Math.round(ms2 / t.totalMs * 100))}%`;
|
|
7333
8011
|
const more = t.violatedKeyCount - t.violatedKeys.length;
|
|
7334
8012
|
return join4(
|
|
7335
8013
|
html`<tr data-i="${i}"${t.violatedKeyCount > 0 ? html` data-v=""` : null}><th scope="row" class="tc"><span class="tn">${title(t.title)}</span><span class="sub mono">${where(t)}</span></th>`,
|
|
7336
8014
|
html`<td class="num">${t.executions}</td><td class="num">${t.requestCount}</td>`,
|
|
7337
8015
|
t.errorCount === 0 ? html`<td class="num"></td>` : html`<td class="num e">${t.errorCount}</td>`,
|
|
7338
|
-
html`<td><span class="hr"><span class="tb neu tw"><span class="${widthClass(most > 0 ? t.totalMs / most : 0)}"></span></span><b>${
|
|
7339
|
-
html`<td class="num">${
|
|
7340
|
-
html`<td class="num">${t.maxRequestMs === null ? "\u2014" :
|
|
8016
|
+
html`<td><span class="hr"><span class="tb neu tw"><span class="${widthClass(most > 0 ? t.totalMs / most : 0)}"></span></span><b>${formatMs2(t.totalMs)}</b></span></td>`,
|
|
8017
|
+
html`<td class="num">${formatMs2(perRun(t))}</td>`,
|
|
8018
|
+
html`<td class="num">${t.maxRequestMs === null ? "\u2014" : formatMs2(t.maxRequestMs)}</td><td class="num">${t.keyCount}</td>`,
|
|
7341
8019
|
// Each key on its own line, its time and share below (F2 decision 12).
|
|
7342
|
-
html`<td class="tk tk2">${t.topKeys.map((k) => html`<span>${keyLink(ctx, "api", k.key, KEY_MAX)} <span class="sub">${
|
|
8020
|
+
html`<td class="tk tk2">${t.topKeys.map((k) => html`<span>${keyLink(ctx, "api", k.key, KEY_MAX)} <span class="sub">${formatMs2(k.totalMs)} · ${share2(k.totalMs)}</span></span>`)}</td>`,
|
|
7343
8021
|
html`<td class="tk">`,
|
|
7344
8022
|
t.violatedKeyCount === 0 ? null : html`<span class="pill f">${plural3(t.violatedKeyCount, "key")}</span>${t.violatedKeys.map((k) => html`<span>${keyLink(ctx, "api", k, KEY_MAX)}</span>`)}${more > 0 ? html`<span class="sub">+${more} more</span>` : null}`,
|
|
7345
8023
|
html`</td></tr>`
|
|
@@ -7376,7 +8054,7 @@ function testsTable(ctx, tests, omitted) {
|
|
|
7376
8054
|
function waterfallCard(w, i) {
|
|
7377
8055
|
return join4(
|
|
7378
8056
|
html`<figure class="card wfb"><figcaption class="wf-h"><div><h4>${title(w.test.title)}</h4><p class="sub mono">${where(w.test)} · repetition ${w.test.repeatEachIndex}</p></div>`,
|
|
7379
|
-
html`<dl><div><dt>Span</dt><dd>${
|
|
8057
|
+
html`<dl><div><dt>Span</dt><dd>${formatMs2(w.spanMs)}</dd></div><div><dt>Total wait</dt><dd>${formatMs2(w.totalMs)}</dd></div><div><dt>Requests</dt><dd>${w.requestCount}</dd></div></dl></figcaption>`,
|
|
7380
8058
|
html`<div class="scroll wfs" tabindex="0" role="region" aria-label="Waterfall ${i + 1}, scrolls sideways">${waterfallSvg(w, `w${String(i + 1)}`)}</div>`,
|
|
7381
8059
|
w.omitted > 0 ? html`<p class="tfoot">and ${plural3(w.omitted, "more request")} not shown</p>` : null,
|
|
7382
8060
|
html`</figure>`
|
|
@@ -7410,7 +8088,7 @@ function testsTab(ctx) {
|
|
|
7410
8088
|
}
|
|
7411
8089
|
|
|
7412
8090
|
// src/html/render.ts
|
|
7413
|
-
var DOCS_URL = `${
|
|
8091
|
+
var DOCS_URL = `${chunkVREOANPX_cjs.REPOSITORY_URL}#readme`;
|
|
7414
8092
|
function chip2(name, content) {
|
|
7415
8093
|
return html`<span class="chip">${icon(name)}${content}</span>`;
|
|
7416
8094
|
}
|
|
@@ -7538,7 +8216,7 @@ function keyDialog() {
|
|
|
7538
8216
|
);
|
|
7539
8217
|
}
|
|
7540
8218
|
function footer(report) {
|
|
7541
|
-
return html`<footer><div class="wrap">Generated by <a href="${
|
|
8219
|
+
return html`<footer><div class="wrap">Generated by <a href="${chunkVREOANPX_cjs.REPOSITORY_URL}" rel="noopener noreferrer">${report.tool.name}</a> v${report.tool.version}</div></footer>`;
|
|
7542
8220
|
}
|
|
7543
8221
|
var CONTENT_SECURITY_POLICY = `default-src 'none'; script-src 'sha256-${SCRIPT_SHA256}'; style-src 'sha256-${STYLES_SHA256}'; img-src data:`;
|
|
7544
8222
|
function renderHtmlReport(report) {
|
|
@@ -7549,7 +8227,7 @@ function renderHtmlReport(report) {
|
|
|
7549
8227
|
html`<meta http-equiv="Content-Security-Policy" content="${CONTENT_SECURITY_POLICY}">`,
|
|
7550
8228
|
html`<meta name="viewport" content="width=device-width, initial-scale=1">`,
|
|
7551
8229
|
html`<meta name="color-scheme" content="light dark">`,
|
|
7552
|
-
html`<meta name="generator" content="${`${
|
|
8230
|
+
html`<meta name="generator" content="${`${chunkVREOANPX_cjs.PACKAGE_NAME} ${report.tool.version}`}">`,
|
|
7553
8231
|
html`<link rel="icon" type="image/svg+xml" href="${FAVICON_URI}"><title>${report.suite === void 0 ? "" : `${report.suite.name} \xB7 `}Performance report ${report.runId}</title>`,
|
|
7554
8232
|
html`<style>${trustedHtml(STYLES)}</style></head>`
|
|
7555
8233
|
);
|
|
@@ -7842,7 +8520,7 @@ function reportDirRefusal(io, input) {
|
|
|
7842
8520
|
}
|
|
7843
8521
|
for (const entry of entries2) {
|
|
7844
8522
|
const name = entry.slice(entry.lastIndexOf("/") + 1);
|
|
7845
|
-
if (isThresholdsFile(name, input.thresholdsPrefix))
|
|
8523
|
+
if (entry.includes("/") && isThresholdsFile(name, input.thresholdsPrefix))
|
|
7846
8524
|
return `contains a thresholds file (${entry})`;
|
|
7847
8525
|
if (isProjectMarker(name)) return `contains ${entry}, so it looks like a project folder`;
|
|
7848
8526
|
}
|
|
@@ -7859,7 +8537,7 @@ function cleanReportDir(io, input) {
|
|
|
7859
8537
|
if (refusal2 !== null) {
|
|
7860
8538
|
return warning(
|
|
7861
8539
|
`it ${refusal2}`,
|
|
7862
|
-
`Set report.dir to a folder used only for the results of this package (default ${
|
|
8540
|
+
`Set report.dir to a folder used only for the results of this package (default ${chunkW7NEFS5V_cjs.DEFAULT_CONFIG.report.dir}); files of earlier runs in it were kept.`
|
|
7863
8541
|
);
|
|
7864
8542
|
}
|
|
7865
8543
|
try {
|
|
@@ -7901,7 +8579,7 @@ function testMeta(test, result2, file) {
|
|
|
7901
8579
|
};
|
|
7902
8580
|
}
|
|
7903
8581
|
function sampleAttachments(result2) {
|
|
7904
|
-
return result2.attachments.filter((a) => a.name ===
|
|
8582
|
+
return result2.attachments.filter((a) => a.name === chunkVREOANPX_cjs.SAMPLES_ATTACHMENT_NAME).map((a) => a.body === void 0 ? "" : a.body.toString("utf8"));
|
|
7905
8583
|
}
|
|
7906
8584
|
function hasTraceOrVideo(result2) {
|
|
7907
8585
|
return result2.attachments.some((a) => a.name === "trace" || a.name === "video");
|
|
@@ -7925,10 +8603,10 @@ function runSettings(registered, env, packageVersion) {
|
|
|
7925
8603
|
perfConfigPassed: registered.perfConfigPassed ?? true
|
|
7926
8604
|
};
|
|
7927
8605
|
}
|
|
7928
|
-
const read2 =
|
|
8606
|
+
const read2 = chunkVREOANPX_cjs.readModeState(env);
|
|
7929
8607
|
if (read2.ok && read2.value === null) return null;
|
|
7930
8608
|
const mode2 = read2.ok && read2.value !== null ? read2.value : { mode: "test" };
|
|
7931
|
-
const resolved =
|
|
8609
|
+
const resolved = chunkW7NEFS5V_cjs.resolveConfig(void 0, {
|
|
7932
8610
|
mode: mode2.mode === "check" ? "test" : mode2.mode,
|
|
7933
8611
|
...mode2.mode === "check" ? {} : mode2.pass !== void 0 ? { passes: mode2.pass.total } : mode2.passes === void 0 ? {} : { passes: mode2.passes },
|
|
7934
8612
|
...mode2.env === void 0 ? {} : { env: mode2.env },
|
|
@@ -7948,7 +8626,7 @@ function runSettings(registered, env, packageVersion) {
|
|
|
7948
8626
|
replacedReporters: []
|
|
7949
8627
|
},
|
|
7950
8628
|
registered: false,
|
|
7951
|
-
warnings: [
|
|
8629
|
+
warnings: [chunkVREOANPX_cjs.notWrappedWarning()],
|
|
7952
8630
|
toolErrors: read2.ok ? [] : read2.issues
|
|
7953
8631
|
};
|
|
7954
8632
|
}
|
|
@@ -8028,7 +8706,7 @@ var RunSession = class {
|
|
|
8028
8706
|
this.warnings = [...settings.warnings];
|
|
8029
8707
|
this.toolErrors = [...settings.toolErrors];
|
|
8030
8708
|
this.startedAt = host.now();
|
|
8031
|
-
this.runId = settings.mode.runId ??
|
|
8709
|
+
this.runId = settings.mode.runId ?? chunkVREOANPX_cjs.generateRunId(this.startedAt, host.random);
|
|
8032
8710
|
this.configDir = host.cwd;
|
|
8033
8711
|
this.conditions = { workers: 1, projects: [], overriddenSettings: [] };
|
|
8034
8712
|
const keys = settings.config.keys;
|
|
@@ -8068,7 +8746,7 @@ var RunSession = class {
|
|
|
8068
8746
|
});
|
|
8069
8747
|
}
|
|
8070
8748
|
info(line) {
|
|
8071
|
-
this.host.stdout.write(`${
|
|
8749
|
+
this.host.stdout.write(`${chunkVREOANPX_cjs.PACKAGE_NAME}: ${line}
|
|
8072
8750
|
`);
|
|
8073
8751
|
}
|
|
8074
8752
|
/** A hook threw: the error goes to the report and the outcome file (01-REQ-16). */
|
|
@@ -8086,7 +8764,7 @@ var RunSession = class {
|
|
|
8086
8764
|
this.configLike = config;
|
|
8087
8765
|
this.startedAt = this.host.now();
|
|
8088
8766
|
if (this.settings.mode.runId === void 0) {
|
|
8089
|
-
this.runId =
|
|
8767
|
+
this.runId = chunkVREOANPX_cjs.generateRunId(this.startedAt, this.host.random);
|
|
8090
8768
|
}
|
|
8091
8769
|
const io = this.host.io;
|
|
8092
8770
|
this.configDir = config.configFile === void 0 ? config.rootDir : io.directoryOf(config.configFile);
|
|
@@ -8199,11 +8877,11 @@ var RunSession = class {
|
|
|
8199
8877
|
dependencies: this.conditions.projects.filter((p) => p.role !== "measured").map((p) => p.name),
|
|
8200
8878
|
tests,
|
|
8201
8879
|
passes: this.passes,
|
|
8202
|
-
maxTests: this.settings.mode.maxTests ??
|
|
8880
|
+
maxTests: this.settings.mode.maxTests ?? chunkVREOANPX_cjs.DEFAULT_MAX_TESTS,
|
|
8203
8881
|
estimate: this.check ? null : startEstimate({ tests, passes: this.passes, msPerTest: this.lastMsPerTest() }),
|
|
8204
8882
|
report: this.check ? null : io.relativeSlashPath(this.host.cwd, io.resolvePath(this.reportDir(), file)),
|
|
8205
8883
|
// run.grep already selects the measured subset (04-REQ-65, 04-D-51).
|
|
8206
|
-
tip: cfg.run.grep === null &&
|
|
8884
|
+
tip: cfg.run.grep === null && chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv)).length === 0
|
|
8207
8885
|
},
|
|
8208
8886
|
{ width, color, ascii: asciiTerminal(this.host.env) }
|
|
8209
8887
|
);
|
|
@@ -8261,7 +8939,7 @@ var RunSession = class {
|
|
|
8261
8939
|
if (bodies.length > 1) {
|
|
8262
8940
|
this.warnings.push({
|
|
8263
8941
|
code: "ATTACHMENT_DUPLICATE",
|
|
8264
|
-
message: `Test "${meta.title}" has ${bodies.length} ${
|
|
8942
|
+
message: `Test "${meta.title}" has ${bodies.length} ${chunkVREOANPX_cjs.SAMPLES_ATTACHMENT_NAME} attachments; all of them were processed.`,
|
|
8265
8943
|
hint: "Apply withPerfFixtures() once per test object."
|
|
8266
8944
|
});
|
|
8267
8945
|
}
|
|
@@ -8386,7 +9064,7 @@ var RunSession = class {
|
|
|
8386
9064
|
reportInput(status, finishedAt, aggregates, evaluation, warnings, toolErrors) {
|
|
8387
9065
|
return {
|
|
8388
9066
|
meta: {
|
|
8389
|
-
tool: { name:
|
|
9067
|
+
tool: { name: chunkVREOANPX_cjs.PACKAGE_NAME, version: this.settings.packageVersion },
|
|
8390
9068
|
runId: this.runId,
|
|
8391
9069
|
mode: this.mode,
|
|
8392
9070
|
startedAt: this.startedAt.toISOString(),
|
|
@@ -8443,7 +9121,7 @@ var RunSession = class {
|
|
|
8443
9121
|
this.recordInternalError("onEnd", error);
|
|
8444
9122
|
outcome = this.fallbackOutcome({ status });
|
|
8445
9123
|
for (const issue2 of outcome.toolErrors) {
|
|
8446
|
-
this.host.stderr.write(`${
|
|
9124
|
+
this.host.stderr.write(`${chunkVREOANPX_cjs.PACKAGE_NAME}: ${issue2.code}: ${issue2.message}
|
|
8447
9125
|
`);
|
|
8448
9126
|
}
|
|
8449
9127
|
}
|
|
@@ -8496,7 +9174,7 @@ var RunSession = class {
|
|
|
8496
9174
|
await this.host.io.writeJsonStable(path, file);
|
|
8497
9175
|
} catch (error) {
|
|
8498
9176
|
this.host.stderr.write(
|
|
8499
|
-
`${
|
|
9177
|
+
`${chunkVREOANPX_cjs.PACKAGE_NAME}: ${label}: the pass file could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}
|
|
8500
9178
|
`
|
|
8501
9179
|
);
|
|
8502
9180
|
return void 0;
|
|
@@ -8526,8 +9204,8 @@ var RunSession = class {
|
|
|
8526
9204
|
env: this.host.env,
|
|
8527
9205
|
scripts: info.scripts
|
|
8528
9206
|
};
|
|
8529
|
-
const command =
|
|
8530
|
-
const shape =
|
|
9207
|
+
const command = chunkVREOANPX_cjs.passCommand(passInput);
|
|
9208
|
+
const shape = chunkVREOANPX_cjs.runShape(passInput);
|
|
8531
9209
|
const pm = packageManager({
|
|
8532
9210
|
userAgent: this.host.env["npm_config_user_agent"] ?? null,
|
|
8533
9211
|
lockFiles: info.lockFiles
|
|
@@ -8538,7 +9216,7 @@ var RunSession = class {
|
|
|
8538
9216
|
this.info(`${label}: ${shown}`);
|
|
8539
9217
|
const env = {
|
|
8540
9218
|
...this.host.env,
|
|
8541
|
-
...
|
|
9219
|
+
...chunkVREOANPX_cjs.writeModeState({ ...this.settings.mode, runId: this.runId, pass: { index, total } })
|
|
8542
9220
|
};
|
|
8543
9221
|
const exit = await this.host.runPass(command, env);
|
|
8544
9222
|
if (exit.error !== void 0) {
|
|
@@ -8696,6 +9374,14 @@ var RunSession = class {
|
|
|
8696
9374
|
if (paths.reportJson !== null) await writeJson();
|
|
8697
9375
|
}
|
|
8698
9376
|
}
|
|
9377
|
+
if (this.mode === "test" && cfg.report.junit) {
|
|
9378
|
+
const junit = await writeJunitFile(io, report, reportDir, this.options.buildJunit);
|
|
9379
|
+
if ("issue" in junit) {
|
|
9380
|
+
toolErrors.push(junit.issue);
|
|
9381
|
+
report = build();
|
|
9382
|
+
if (paths.reportJson !== null) await writeJson();
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
8699
9385
|
const { width, color } = this.terminal();
|
|
8700
9386
|
const temporary = this.settings.mode.thresholdsDir !== void 0;
|
|
8701
9387
|
this.host.stdout.write(
|
|
@@ -8716,10 +9402,11 @@ var RunSession = class {
|
|
|
8716
9402
|
width,
|
|
8717
9403
|
color,
|
|
8718
9404
|
prune: this.pruned,
|
|
8719
|
-
subset:
|
|
9405
|
+
subset: chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv)).length > 0,
|
|
8720
9406
|
// Absolute, like the Report line of the summary (10, chapter 9.1; 09-REQ-30).
|
|
8721
9407
|
diffPath: paths.thresholdsDiff,
|
|
8722
|
-
temporary
|
|
9408
|
+
temporary,
|
|
9409
|
+
ascii: asciiTerminal(this.host.env)
|
|
8723
9410
|
})
|
|
8724
9411
|
);
|
|
8725
9412
|
}
|
|
@@ -8765,7 +9452,7 @@ var RunSession = class {
|
|
|
8765
9452
|
if (this.settings.mode.runId !== void 0) {
|
|
8766
9453
|
try {
|
|
8767
9454
|
this.host.io.removeFileSync(
|
|
8768
|
-
this.host.io.tempPath(
|
|
9455
|
+
this.host.io.tempPath(chunkVREOANPX_cjs.checkStateFileName(this.settings.mode.runId))
|
|
8769
9456
|
);
|
|
8770
9457
|
} catch {
|
|
8771
9458
|
}
|
|
@@ -8827,12 +9514,12 @@ var RunSession = class {
|
|
|
8827
9514
|
[...new Set(candidates)].filter((o) => !coveredByOrigins(keys.origins, o)).map((origin) => ({ origin, base: baseSet.has(origin) }))
|
|
8828
9515
|
);
|
|
8829
9516
|
if (random !== null) warnings.push(random);
|
|
8830
|
-
const patterns =
|
|
9517
|
+
const patterns = chunkW7NEFS5V_cjs.compileHostPatterns(keys.origins);
|
|
8831
9518
|
const exact = new Set(
|
|
8832
|
-
Object.keys(keys.origins).filter((k) => !
|
|
9519
|
+
Object.keys(keys.origins).filter((k) => !chunkW7NEFS5V_cjs.isHostPattern(k)).flatMap((k) => URL.canParse(k) ? [new URL(k).origin] : [])
|
|
8833
9520
|
);
|
|
8834
9521
|
const origins = [...aggregates.origins].sort((a, b) => b.requestCount - a.requestCount || (a.origin < b.origin ? -1 : 1)).map((o) => {
|
|
8835
|
-
const pattern = URL.canParse(o.origin) ?
|
|
9522
|
+
const pattern = URL.canParse(o.origin) ? chunkW7NEFS5V_cjs.matchingPattern(patterns, new URL(o.origin)) : null;
|
|
8836
9523
|
const source = exact.has(o.origin) ? "keys.origins" : pattern !== null ? `keys.origins pattern ${pattern.canonical}` : baseSet.has(o.origin) ? "baseURL" : "host";
|
|
8837
9524
|
return { origin: o.origin, label: o.label, requests: o.requestCount, source };
|
|
8838
9525
|
});
|
|
@@ -8872,9 +9559,10 @@ var RunSession = class {
|
|
|
8872
9559
|
const state = file.status === "loaded" ? `${String(Object.keys(file.file.entries).length)} entries` : file.status === "missing" ? "missing" : `invalid (${file.issues[0]?.code ?? "SCHEMA_VALIDATION_FAILED"})`;
|
|
8873
9560
|
return { kind: kind2, name: file.path, state };
|
|
8874
9561
|
});
|
|
8875
|
-
const missingFile = ["api", "step"].some(
|
|
8876
|
-
|
|
8877
|
-
|
|
9562
|
+
const missingFile = ["api", "step"].some((kind2) => {
|
|
9563
|
+
const file = loaded[kind2];
|
|
9564
|
+
return kindsWithKeys[kind2] && (file.status !== "loaded" || Object.keys(file.file.entries).length === 0);
|
|
9565
|
+
});
|
|
8878
9566
|
const meanMs = c.durations.length === 0 ? null : c.durations.reduce((a, b) => a + b, 0) / c.durations.length;
|
|
8879
9567
|
const reporters = (config?.reporter ?? []).map(
|
|
8880
9568
|
([name]) => /playwright-performance-regression|[\\/]dist[\\/]reporter\.c?js$/u.test(name) ? "pw-perf" : name
|
|
@@ -8937,7 +9625,7 @@ var RunSession = class {
|
|
|
8937
9625
|
}
|
|
8938
9626
|
/** The words the run added to the test command, as for the next pass (09-REQ-32, 04-REQ-63). */
|
|
8939
9627
|
runArgs() {
|
|
8940
|
-
const shape =
|
|
9628
|
+
const shape = chunkVREOANPX_cjs.runShape({
|
|
8941
9629
|
execPath: this.host.execPath,
|
|
8942
9630
|
argv: this.host.argv,
|
|
8943
9631
|
env: this.host.env,
|
|
@@ -9009,8 +9697,9 @@ var RunSession = class {
|
|
|
9009
9697
|
}
|
|
9010
9698
|
/**
|
|
9011
9699
|
* Derivation in thresholds mode (10, chapter 3): refusals and write errors are tool errors, so
|
|
9012
|
-
* nothing is written for an incomplete run (04-REQ-36); the
|
|
9013
|
-
* Returns the diffs and the absolute path of each thresholds
|
|
9700
|
+
* nothing is written for an incomplete run (04-REQ-36); the copies in report.dir (10-REQ-24) and
|
|
9701
|
+
* the diff file failing are warnings. Returns the diffs and the absolute path of each thresholds
|
|
9702
|
+
* file.
|
|
9014
9703
|
*/
|
|
9015
9704
|
async deriveAndWrite(report, loaded, location, paths, warnings, toolErrors) {
|
|
9016
9705
|
const cfg = this.settings.config;
|
|
@@ -9026,6 +9715,8 @@ var RunSession = class {
|
|
|
9026
9715
|
}
|
|
9027
9716
|
warnings.push(...derived.value.warnings);
|
|
9028
9717
|
const absolute = io.thresholdsFilePaths(location);
|
|
9718
|
+
const reportDir = io.resolvePath(this.configDir, cfg.report.dir);
|
|
9719
|
+
let writeFailed = false;
|
|
9029
9720
|
for (const file of derived.value.files) {
|
|
9030
9721
|
if (file.content === null || !file.changed) continue;
|
|
9031
9722
|
try {
|
|
@@ -9036,6 +9727,7 @@ var RunSession = class {
|
|
|
9036
9727
|
entries: Object.keys(file.content.entries).length
|
|
9037
9728
|
});
|
|
9038
9729
|
} catch (error) {
|
|
9730
|
+
writeFailed = true;
|
|
9039
9731
|
toolErrors.push({
|
|
9040
9732
|
code: "THRESHOLDS_WRITE_FAILED",
|
|
9041
9733
|
message: `The thresholds file ${loaded[file.kind].path} could not be written: ${error instanceof Error ? error.message : String(error)}`,
|
|
@@ -9047,10 +9739,13 @@ var RunSession = class {
|
|
|
9047
9739
|
(file) => diffThresholds(loaded[file.kind], file, report, cfg)
|
|
9048
9740
|
);
|
|
9049
9741
|
const filePaths = derived.value.files.map((file) => absolute[file.kind]);
|
|
9050
|
-
|
|
9051
|
-
io.
|
|
9052
|
-
|
|
9053
|
-
|
|
9742
|
+
if (!writeFailed && this.settings.mode.thresholdsDir === void 0) {
|
|
9743
|
+
const copies = io.thresholdsFilePaths({ ...location, configDir: reportDir, dir: "." });
|
|
9744
|
+
for (const file of derived.value.files) {
|
|
9745
|
+
await this.copyThresholdsFile(absolute[file.kind], copies[file.kind], warnings);
|
|
9746
|
+
}
|
|
9747
|
+
}
|
|
9748
|
+
const diffPath = io.resolvePath(reportDir, "thresholds-diff.md");
|
|
9054
9749
|
try {
|
|
9055
9750
|
await io.writeTextAtomic(
|
|
9056
9751
|
diffPath,
|
|
@@ -9069,6 +9764,23 @@ var RunSession = class {
|
|
|
9069
9764
|
}
|
|
9070
9765
|
return { diffs, paths: filePaths };
|
|
9071
9766
|
}
|
|
9767
|
+
/**
|
|
9768
|
+
* A byte-identical copy of a thresholds file in report.dir, for the CI artifact (10-REQ-24).
|
|
9769
|
+
* A missing file (a kind that was never written) has no copy; a failure is a warning.
|
|
9770
|
+
*/
|
|
9771
|
+
async copyThresholdsFile(from, to, warnings) {
|
|
9772
|
+
const io = this.host.io;
|
|
9773
|
+
try {
|
|
9774
|
+
const text2 = await io.readTextFile(from);
|
|
9775
|
+
if (text2 !== null) await io.writeTextAtomic(to, text2);
|
|
9776
|
+
} catch (error) {
|
|
9777
|
+
warnings.push({
|
|
9778
|
+
code: "THRESHOLDS_COPY_FAILED",
|
|
9779
|
+
message: `The thresholds file ${from} could not be copied to ${to}: ${error instanceof Error ? error.message : String(error)}`,
|
|
9780
|
+
hint: "The thresholds file itself is written; commit it from thresholds.dir or check that report.dir is writable."
|
|
9781
|
+
});
|
|
9782
|
+
}
|
|
9783
|
+
}
|
|
9072
9784
|
/** The outcome when building the report failed: exit code 3 with the error (02-REQ-27). */
|
|
9073
9785
|
fallbackOutcome(result2) {
|
|
9074
9786
|
return {
|
|
@@ -9094,7 +9806,7 @@ var RunSession = class {
|
|
|
9094
9806
|
*/
|
|
9095
9807
|
prune(warnings) {
|
|
9096
9808
|
if (this.settings.mode.prune !== true) return false;
|
|
9097
|
-
const filters =
|
|
9809
|
+
const filters = chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv));
|
|
9098
9810
|
if (filters.length > 0) {
|
|
9099
9811
|
warnings.push({
|
|
9100
9812
|
code: "RUN_PRUNE_SKIPPED",
|
|
@@ -9122,7 +9834,7 @@ var RunSession = class {
|
|
|
9122
9834
|
return file;
|
|
9123
9835
|
} catch (error) {
|
|
9124
9836
|
this.host.stderr.write(
|
|
9125
|
-
`${
|
|
9837
|
+
`${chunkVREOANPX_cjs.PACKAGE_NAME}: OUTCOME_WRITE_FAILED: the outcome file could not be written to ${file}: ${error instanceof Error ? error.message : String(error)}
|
|
9126
9838
|
`
|
|
9127
9839
|
);
|
|
9128
9840
|
return null;
|
|
@@ -9131,7 +9843,7 @@ var RunSession = class {
|
|
|
9131
9843
|
};
|
|
9132
9844
|
function configFileNotPassedWarning(entries2) {
|
|
9133
9845
|
const names2 = new Set(entries2);
|
|
9134
|
-
const file =
|
|
9846
|
+
const file = chunkVREOANPX_cjs.CONFIG_FILE_EXTENSIONS.map((ext) => `${chunkVREOANPX_cjs.CONFIG_FILE_BASENAME}${ext}`).find(
|
|
9135
9847
|
(name) => names2.has(name)
|
|
9136
9848
|
);
|
|
9137
9849
|
if (file === void 0) return null;
|
|
@@ -9212,7 +9924,7 @@ var PerfReporter = class {
|
|
|
9212
9924
|
let startError;
|
|
9213
9925
|
try {
|
|
9214
9926
|
const host = processHost();
|
|
9215
|
-
const settings = runSettings(
|
|
9927
|
+
const settings = runSettings(chunkVREOANPX_cjs.getRegistered(), host.env, chunkVREOANPX_cjs.version);
|
|
9216
9928
|
session = settings === null ? null : new RunSession(host, settings);
|
|
9217
9929
|
} catch (error) {
|
|
9218
9930
|
startError = error;
|