mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 01:56:16 -08:00
* perf(tooling): compositing probe, report command and route-wide clip-mask guard Make the instrument that found the dashboard's clip masks part of the repository: `src/performance/compositing-probe.ts` reads the layer tree over CDP (bounds in device pixels, compositing reasons and owner nodes, waiting for Blink's layer debug info), classifies synthesized clip masks (no owner node and no compositing reason) and reads the renderer's `cc/tile_memory` from a memory-infra dump. `pnpm run perf:compositing` seeds one profile against the Xtream mock on a dedicated port, serves the artwork from memory, fixes the window at 1600x1000 and records tile and image memory, layer counts, the largest layers, masks and tile warnings for Live TV, the movie and series details, the dashboard (idle, crossfade, scrolled) and settings into dist/performance/compositing/<timestamp>/summary.json and a console table. Both helpers have node:test coverage in the performance harness. The dashboard-only compositing E2E becomes `compositing.e2e.ts` and guards Live TV, a movie detail, a series detail and the dashboard in one launch, with the backdrop-filtered controls confirmed as composited layers on the dashboard and the movie detail. The rule now lives where it triggers: a Rendering Cost section in the theme/style skill, a validation line in the UI design skill, a context map row, and a Compositing budget section in the performance journeys contract (budget, mask mechanism, instruments, why megabytes are evidence rather than a ratchet). Validation map and README mention the command. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(tooling): sample the dashboard idle reading with rotation paused The hero advances after 8 s, so a 9 s wait sampled the next slide one second into its zoom (backdrop scale 1.116 instead of 1.1, the previous slide's tiles still pooled): 224 MB read as idle, 122 MB with rotation paused and the zoom and tile pool settled. The warning delta and its checkpoint are now taken at one boundary after the sampling, so a "tile memory limits exceeded" line logged while the layers or the dump are read counts for that route instead of for none. The report's test artifacts go under dist/test-results like the other configs'. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(tooling): retry a memory dump that carries no renderer tile memory One reading of seven came back without `cc/tile_memory`: the dump's trace events reach the buffer shortly after the request resolves, and a process can skip a dump it is busy for. The capture now waits briefly before ending the trace and retries up to three times before a reading stays null. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(tooling): run the compositing report with motion enabled With the OS set to reduced motion the hero neither rotates nor renders its pause button, so the report's click timed out before the summary was written. The report now emulates `prefers-reduced-motion: no-preference`, which also keeps the idle and crossfade readings on the same animation set on every machine. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(tooling): sample the crossfade frozen, count split stderr lines, drop stale layer samples Review findings on the pushed head, plus the CI failure: - A layer that vanished between the LayerTree snapshot and its reasons query was kept with empty reasons; without an owner node it would pass for a synthesized mask. Such a snapshot is now discarded and retaken. - The crossfade reading sampled layers, owners and memory across the 700 ms fade, so the row depended on how long the sampling took. The page's animations are frozen 300 ms into the fade while the reading is taken, resumed afterwards, and the incoming slide's zoom is allowed to finish before the scrolled reading. - A stderr chunk can end mid-line; the warning counter now keeps the unfinished line for the next chunk. - The mock server's launch spec lists the new Playwright config. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
107 lines
4.1 KiB
JSON
107 lines
4.1 KiB
JSON
{
|
|
"name": "electron-backend-e2e",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"sourceRoot": "apps/electron-backend-e2e/src",
|
|
"implicitDependencies": [
|
|
"electron-backend",
|
|
"stalker-mock-server",
|
|
"xtream-mock-server"
|
|
],
|
|
"targets": {
|
|
"e2e": {
|
|
"dependsOn": ["electron-backend:build-e2e"]
|
|
},
|
|
"test-performance-harness": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "tsx --test \"src/performance/*.spec.ts\""
|
|
}
|
|
},
|
|
"benchmark-m3u-refresh-cancellation": {
|
|
"dependsOn": ["electron-backend:build-performance"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.performance.config.ts src/m3u-refresh-cancellation.performance.ts"
|
|
}
|
|
},
|
|
"benchmark-m3u-import": {
|
|
"dependsOn": ["electron-backend:build-performance"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.performance.config.ts src/m3u-import.performance.ts"
|
|
}
|
|
},
|
|
"benchmark-xtream": {
|
|
"dependsOn": ["electron-backend:build-performance"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.xtream-performance.config.ts src/xtream.performance.ts"
|
|
}
|
|
},
|
|
"benchmark-charset-parse": {
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "tsx --expose-gc --tsconfig tsconfig.json src/performance/charset-parse.benchmark.ts"
|
|
}
|
|
},
|
|
"journeys": {
|
|
"dependsOn": ["electron-backend:build-performance"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.journeys.config.ts"
|
|
}
|
|
},
|
|
"compositing-report": {
|
|
"dependsOn": ["electron-backend:build-e2e"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"parallelism": false,
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.compositing.config.ts"
|
|
}
|
|
},
|
|
"packaged-frame-copy-smoke": {
|
|
"dependsOn": ["test-packaged-frame-copy-fixtures"],
|
|
"executor": "nx:run-commands",
|
|
"cache": false,
|
|
"outputs": [
|
|
"{workspaceRoot}/dist/playwright-report/electron-backend-e2e/packaged-frame-copy-smoke",
|
|
"{workspaceRoot}/dist/test-results/electron-backend-e2e/packaged-frame-copy-smoke"
|
|
],
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "playwright test --config=playwright.packaged.config.ts src/embedded-mpv-frame-copy-packaged.e2e.ts"
|
|
}
|
|
},
|
|
"test-packaged-frame-copy-fixtures": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "apps/electron-backend-e2e",
|
|
"command": "tsx --test src/embedded-mpv-frame-copy-packaged-fixtures.spec.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
}
|
|
},
|
|
"tags": ["scope:e2e", "domain:electron-main", "type:e2e"]
|
|
}
|