Skip to content

CLI/API filter fixes: --run --participant, day labels, listRuns array shape - #551

Merged
dtice25 merged 2 commits into
masterfrom
devin/1792795834-filter-fixes-cli
Oct 24, 2026
Merged

dtice25 merged 2 commits into
masterfrom
devin/1792795834-filter-fixes-cli

Conversation

@dtice25

@dtice25 dtice25 commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

CLI/API follow-up to the filter work in #537, pairing with the platform fixes in benchmarks-platform (draft PR on devin/1792795195-benchmark-filter-fixes).

  • bench results --run <id> now accepts --participant → getRunResults sends ?participant=; --since/--until/--day, --steps and --source-org still hard-error on a single run since the route has no dimension to apply them to.
  • resolveResultFilter's flagsSent no longer counts --tz or --source-org — either flag alone previously tripped the "platform does not support result filters" error on older platforms, and --source-org alone also silently stopped being sent. sourceOrg is now passed through independently of flagsSent.
  • client.listRuns returns the items array again (pre-0.8.0 shape). The envelope attaches as non-enumerable items/appliedFilter/upgrade so for (const run of result) and result.items both work, JSON.stringify still sees a plain array, and filter doesn't shadow Array.prototype.filter. bench runs list --json reconstructs {items, filter, upgrade} for output.
  • Results tables label rows with the run's day (run.createdAt slice, falling back to a short id) instead of the full run UUID.
  • Tests cover relative --since/--until, --day conflicts and expansion, --steps scope, empty --participant, --tz/--source-org flag semantics, and assertFilterEcho's missing-echo error.

Verified: benchsdk-cli 43 tests pass, benchsdk contract tests pass (the live-platform integration.test.ts smoke fails identically on master — updateRun 400 against the live API, unrelated).

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

- bench results --run <id> now accepts --participant; date/step flags
  still hard-error on a single run.
- --tz and --source-org alone no longer count as result filters, so
  they don't trip the unsupported-platform error on old platforms
  (sourceOrg is still sent whenever it's the only flag).
- The results table labels each row with the run's day instead of its
  UUID (participant, step and empty-run rows alike).
- client.listRuns returns an array again: the {items,filter,upgrade}
  envelope attaches as non-enumerable items/appliedFilter/upgrade so
  pre-0.8.0 callers iterating the result keep working.
- client.getRunResults takes { participants } -> ?participant=.
- Tests for relative --since, --day conflicts, --steps scope, empty
  --participant, tz/source-org flag semantics and the missing-echo error.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@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

….ts fallback

listRuns now resolves to the array-shaped BenchmarkRunListResult — the
scale aggregate script's { items: [] } fallback didn't fit; use a real
empty array and re-export the new types through @benchsdk/runner.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@dtice25
dtice25 marked this pull request as ready for review October 24, 2026 17:47
@open-cla

open-cla Bot commented Oct 24, 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 2 findings on 80fa737

Fixed by Devin (2)

  • Result rows show the wrong local day
  • Source organization silently ignored in all-runs listing

View all findings in Devin Review

Devin Review

@dtice25
dtice25 merged commit 3369cee into master Oct 24, 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