Skip to content

fix(test): query active_sessions with declared window "now" (A1 follow-up)#119

Merged
brownjuly2003-code merged 1 commit into
mainfrom
fix/metric-window-now-e2e
Jun 30, 2026
Merged

fix(test): query active_sessions with declared window "now" (A1 follow-up)#119
brownjuly2003-code merged 1 commit into
mainfrom
fix/metric-window-now-e2e

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

Follow-up to #118. The A1 metric-window validation correctly rejects undeclared windows; the e2e support-agent journey and the example queried active_sessions (point-in-time gauge, only window now) with 1h, which the old code silently accepted — so post-merge E2E Tests + Staging Deploy went red. Switch both to window=now and pin active_sessions?window=now → 200 in the A1 unit test.

🤖 Generated with Claude Code

…t_30 A1 follow-up)

The A1 fix (#118) makes GET /v1/metrics reject a window the metric doesn't
declare. The e2e support-agent journey and the support-agent example queried
active_sessions — a point-in-time gauge whose only declared window is "now" —
with window="1h", which the old code silently computed as a 30-minute count and
echoed back as "1h". Post-merge that correctly returns 422, which turned E2E
Tests + Staging Deploy red on main.

Use window="now" in the e2e journey and the example, and extend the A1 unit test
to pin that active_sessions?window=now returns 200.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 130 total / 30.33 per week
  • Lead time for changes: avg 0.32h / median 0.0h
  • Change failure rate: 78.46% (102/130)
  • MTTR: 0.25h across 3 incident(s)

@brownjuly2003-code brownjuly2003-code merged commit 82f669d into main Jun 30, 2026
18 of 19 checks passed
@brownjuly2003-code brownjuly2003-code deleted the fix/metric-window-now-e2e branch June 30, 2026 08:47
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.

2 participants