Skip to content

fix(e2e): assert real prod metrics shape in live-reads (Batch A) - #183

Merged
mastermanas805 merged 1 commit into
mainfrom
fix/live-reads-metrics-shape
Jun 5, 2026
Merged

fix(e2e): assert real prod metrics shape in live-reads (Batch A)#183
mastermanas805 merged 1 commit into
mainfrom
fix/live-reads-metrics-shape

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

live-reads.spec.ts asserted metrics as an array; real prod shape is an object keyed by metric name ({ok,data_source,metrics:{:number[]}}). Fix the assertion to the real contract. Supersedes conflicted #182.

… array)

Batch A read run failed: /api/v1/resources/:id/metrics returns
{ok, data_source, metrics:{<name>:number[]}} (object keyed by metric name),
but the spec asserted Array.isArray(metrics). Assert the real shape: metrics
is a non-array object with >=1 named time-series array + a data_source.
Supersedes the conflicted #182.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mastermanas805
mastermanas805 enabled auto-merge (squash) June 5, 2026 07:46
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/assets/index-902QtfQT.js 161.98 KB (0%)
dist/assets/index-BsJUZYRr.css 6.13 KB (0%)

@mastermanas805
mastermanas805 merged commit af46e8b into main Jun 5, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant