Skip to content

fix(report): keep Steps per Eval Case chart readable with long case IDs - #675

Merged
chrisknvidia merged 2 commits into
mainfrom
fix/christopherk/steps-chart-long-case-ids
Nov 16, 2026
Merged

chrisknvidia merged 2 commits into
mainfrom
fix/christopherk/steps-chart-long-case-ids

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

In the HTML report, the "Steps per Eval Case by Agent and Condition" chart used each full case ID as the x-axis tick label, with up to 45° rotation and no limit on length. With long case IDs (for example two 95-character IDs) and a narrow chart, the rotated labels used up the horizontal layout. Chart.js then reduced the plot area to zero width: the labels overlapped into unreadable text and no bars appeared, even though the step data was present.

The x-axis ticks are now bounded. IDs of up to 24 characters are shown unchanged. Longer IDs are shown as <index> · <first 20 characters>…, so IDs with the same prefix stay distinguishable. Ticks are no longer rotated. The full case ID is unchanged in the chart data and is shown as the hover tooltip title, and the linked trial table is unaffected. Only this chart's options change; the chart data and other charts are unchanged.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Added a regression test in tests/reporting/test_tier3_baseline_trial_views.py for empty, short and shared-prefix long case IDs. It checks that the rendered chart keeps the full IDs as labels and uses bounded, unrotated ticks with a full-ID tooltip title. Ran ruff check and ruff format --check on the changed test file, and tests/reporting: 2719 passed, 91 skipped.

Checked in Chrome with a report from a real run that has two 95-character case IDs:

  • Before: at 560 px, the plot area was 0 px wide and all six bars were 0 px wide.
  • After, 560 px: the plot area is about 410 px wide and each bar is about 49 px wide.
  • After, 1024 px: the plot area is about 842 px wide and each bar is about 101 px wide.
  • In both layouts the labels don't overlap, and the hover tooltip shows the full ID.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@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 Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@chrisknvidia
chrisknvidia merged commit 64808e9 into main Nov 16, 2026
28 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/steps-chart-long-case-ids branch November 16, 2026 17:51
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