Skip to content

Review fixes: tz-aware run labels, guard bare --source-org on runs list - #556

Merged
dtice25 merged 3 commits into
masterfrom
devin/1792864191-review-fixes
Oct 24, 2026
Merged

dtice25 merged 3 commits into
masterfrom
devin/1792864191-review-fixes

Conversation

@dtice25

@dtice25 dtice25 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes the two Devin Review findings on #551 (merged):

  • runDay now labels result rows in the filter's timezone (toLocaleDateString('en-CA', { timeZone })) instead of the UTC date — a run created at 02:00Z in America/New_York was labelled with the wrong day when the user filtered with --day/--tz. Falls back to a short run id when createdAt is absent and to the UTC slice when the zone is unrecognised.
  • bench runs list --source-org <org> with no benchmark slug now throws --source-org requires a benchmark slug instead of silently listing all visible runs (listAllRuns has no org dimension). Flag validation moved before createApiClient so a rejected command doesn't need credentials.

Tests: runDay zone conversion + fallbacks, both handleRunsList slug guards. 47 tests pass.

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

- runDay labels result rows by the filter's timezone (en-CA/YYYY-MM-DD)
  instead of the UTC date — runs near midnight now match the day the
  user filtered on; falls back to short id / UTC slice.
- bench runs list --source-org with no slug now errors instead of
  silently listing all visible runs (listAllRuns has no org dimension);
  flag validation moved before API client setup.

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

@dtice25
dtice25 marked this pull request as ready for review October 24, 2026 17:51
@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 99bba1c

Fixed by Devin (2)

  • Empty source organization lists all runs
  • Invalid-zone fallback mislabels offset timestamps

View all findings in Devin Review

Devin Review

dtice25 and others added 2 commits October 24, 2026 17:53
- --source-org= (empty value) now errors instead of silently dropping
  to an unscoped listing.
- runDay's invalid-zone fallback labels by the true UTC date
  (toISOString slice), not the timestamp's own offset date.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…e timers

The 1ms deadline could expire before runWorker was dispatched on a slow
machine, leaving calls.runWorker empty. Fake timers hold the clock at the
deadline boundary until the task's own timer runs out.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@dtice25
dtice25 merged commit a8369b1 into master Oct 24, 2026
5 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