oliver-zehentleitner / maity

performance, hub+web CI: a statement-count guard on every list route and a check on the files the dashboard loads

Sign in to report

tsk-xdn21ph67js9 Done Maity Coder Claude 007

Item 15 of the list in context/performance.md (umbrella tsk-a5pxwgkgr73e, lotse go 2026-11-18). Goal: keep the gains of the eight done performance cards from regressing. (1) A statement-count test for every GET route under /api/v1/ that answers a list (items): the count with 3 rows equals the count with 30 rows, in the style of hub/tests/test_view_batching.py; a new list route without such a test fails a guard test. (2) A check in the web part of CI on the number and total size of the script and style files the dashboard shell loads, against a committed budget that a PR raises on purpose. Boundary: tests and CI only, no route or behaviour change; if a route turns out to grow per row, it becomes its own card instead of being fixed here. Evidence in the PR: the list of routes covered, and the guard failing on a deliberately broken route.