Skip to content

feat(benchsdk): bench reliability reader for type=reliability benchmarks - #563

Merged
dtice25 merged 1 commit into
masterfrom
devin/1793215272-bench-reliability-cli
Oct 28, 2026
Merged

dtice25 merged 1 commit into
masterfrom
devin/1793215272-bench-reliability-cli

Conversation

@dtice25

@dtice25 dtice25 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds the CLI reader for type=reliability benchmarks — the last piece of the rollout (docs/2026-09-29-benchmark-types.md step 6, twin of the platform's benchmarks_get_reliability MCP tool in benchmarks-platform#890).

  • @benchsdk/api: getBenchmarkReliability(slug, input) → GET ${benchmarkPath(slug, sourceOrg)}/reliability with the wire types (BenchmarkReliabilityRange/BenchmarkReliabilityDay/BenchmarkReliabilityInput) mirrored from the platform response. One method covers both views — narrow on 'slots' in result for the day view.
  • @benchsdk/runner: re-exports the reliability types so the bench barrel carries them.
  • bench reliability <slug>:
    • Range view (default last 7 days, --from/--to --bucket day|hour): per-participant uptime/passed/degraded/failed + status, scheduler fired/missed totals, incidents, top errors.
    • Day view (--day YYYY-MM-DD --participant <slug>): totals row + a one-mark-per-slot strip (./~/x/!) and the failing slots.
    • The two views take disjoint flags, all validated before auth; --tz defaults to the machine zone; --json prints the raw response.

Docs in the same PR per repo rules: benchsdk-cli README command list + the benchsdk-cli skill's Commands section.

Testing

  • npm run typecheck — clean.
  • benchsdk-cli 50/50, benchsdk-runner 221/221 tests pass.
  • Verified via the built bench binary: reliability --help and the flag-validation errors (--day without --participant, --participant on the range view, bogus --bucket, --metrics on the day view).
  • benchsdk has one pre-existing live-smoke failure (updateRun 400 on prod, integration.test.ts), unrelated — this diff only adds a new method.

Link to Devin session: https://app.devin.ai/sessions/fdf951a9b9184f11a6d65e3c5056e907
Open in Devin Desktop: https://app.devin.ai/desktop/session/fdf951a9b9184f11a6d65e3c5056e907?variant=devin
Requested by: @dtice25

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Adds getBenchmarkReliability to @benchsdk/api (GET .../reliability via
benchmarkPath + queryString, handling both the range and day views) with
BenchmarkReliabilityRange/Day wire types mirrored from the platform
response, re-exported through @benchsdk/runner so the bench barrel
carries them.

Adds `bench reliability <slug>`: the aggregated range view (default last
7 days, day buckets) prints per-participant uptime/status plus scheduler
stats and incidents; `--day <date> --participant <slug>` prints the
per-slot strip for one participant on one local day. The two views take
disjoint flags, validated before auth; --tz defaults to the machine zone;
--json prints the raw response. Mirrors the MCP tool
benchmarks_get_reliability.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1793215272-bench-reliability-cli branch from 3b21600 to e191c5a Compare October 28, 2026 19:21
@dtice25
dtice25 marked this pull request as ready for review October 28, 2026 19:31
@open-cla

open-cla Bot commented Oct 28, 2026

Copy link
Copy Markdown

Contributor License Agreement

All contributors are covered by a CLA.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin resolved all 3 findings on e191c5a

Fixed by Devin (3)

  • Unfiltered results from accepted date flags
  • Requested reliability details disappear from tables
  • Blank source organization selects another benchmark

View all findings in Devin Review

Devin Review

@dtice25
dtice25 merged commit 9f38cfa into master Oct 28, 2026
6 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