The API's coverage is not measured, and coverage is nowhere to be seen over time #394

Closed
opened 2026-11-06 19:19:24 -08:00 by rays · 1 comment
Owner

scripts/coverage.sh measures the cargo tests only (#390): web.rs reads 17% and daemon.rs 10% because the browser suite, which drives the API, runs a daemon that is not instrumented. Wanted: the browser suite run against an instrumented ipx (and directory), so the API's real coverage is known, and every coverage run's numbers (Rust, API, page) in Grafana beside the rest of iPX.

scripts/coverage.sh measures the cargo tests only (#390): web.rs reads 17% and daemon.rs 10% because the browser suite, which drives the API, runs a daemon that is not instrumented. Wanted: the browser suite run against an instrumented ipx (and directory), so the API's real coverage is known, and every coverage run's numbers (Rust, API, page) in Grafana beside the rest of iPX.
rays added the enhancement label 2026-11-06 19:19:24 -08:00
Author
Owner

Done in 194a925. sh scripts/coverage.sh api: the browser suite against an instrumented ipx and ipx-directory. ipx 68.6% of its lines (web.rs 80%, daemon.rs 77%), ipx-directory 48.3% (its public pages, site.rs, 4%: the suite calls its API only), access.rs 0% (Cloudflare Access; unit tests 73%). node-exporter's textfile collector now serves ipx_coverage_lines{suite,part,state}, and the iPX dashboard has a Coverage row. Runs by hand; nothing schedules one.

Done in 194a925. `sh scripts/coverage.sh api`: the browser suite against an instrumented ipx and ipx-directory. ipx 68.6% of its lines (web.rs 80%, daemon.rs 77%), ipx-directory 48.3% (its public pages, site.rs, 4%: the suite calls its API only), access.rs 0% (Cloudflare Access; unit tests 73%). node-exporter's textfile collector now serves ipx_coverage_lines{suite,part,state}, and the iPX dashboard has a Coverage row. Runs by hand; nothing schedules one.
rays closed this issue 2026-11-06 19:33:51 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#394