Skip to content

car_diff: dedupe errors and render them in a dropdown#480

Closed
elkoled wants to merge 1 commit into
masterfrom
car-diff-no-spam
Closed

car_diff: dedupe errors and render them in a dropdown#480
elkoled wants to merge 1 commit into
masterfrom
car-diff-no-spam

Conversation

@elkoled
Copy link
Copy Markdown
Owner

@elkoled elkoled commented May 29, 2026

Problem

car_diff.py catches per-segment replay exceptions, but the report then prints one full traceback per failing segment. A single buggy carcontroller produced ~40 identical tracebacks at the top of the PR comment.

Fix

Group errors by their text, print each unique one once tagged (Nx) with the affected segment count, and wrap the block in a collapsible <details> dropdown like the existing diff section.

Validated earlier against a deliberately-broken nissan replay: 40 identical tracebacks collapsed to a single dropdown block.

🤖 Generated with Claude Code

A single failing carcontroller raises the same traceback for every
segment, printing dozens of identical tracebacks at the top of the
report. Group errors by their text, print each unique one once with the
affected segment count, and wrap the block in a details dropdown like
the diff section so it does not spam the PR comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Car behavior report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ No changes detected

@github-actions github-actions Bot added the car label May 29, 2026
@elkoled elkoled closed this May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants