Repository navigation
fix(report): keep Steps per Eval Case chart readable with long case IDs - #675
Merged
Merged
Conversation
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 16, 2026 17:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
make lintmake testmake buildAdded a regression test in
tests/reporting/test_tier3_baseline_trial_views.pyfor 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. Ranruff checkandruff format --checkon the changed test file, andtests/reporting: 2719 passed, 91 skipped.Checked in Chrome with a report from a real run that has two 95-character case IDs:
Release Impact
CHANGELOG.md