-
Notifications
You must be signed in to change notification settings - Fork 10.6k
ui diff replay: remove unused frame_data list for individual frame display #37117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui diff replay: remove unused frame_data list for individual frame display #37117
Conversation
mici raylib UI Preview✅ Videos are identical! View Diff Report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR simplifies the UI diff replay HTML report generator by removing an unused mechanism for embedding per-frame thumbnails as base64 data URLs, reducing complexity in the diff analysis pipeline.
Changes:
- Remove
frame_to_data_url()and itsbase64dependency. - Stop building/returning
frame_datafromfind_differences()and update callers accordingly. - Update
generate_html_report()signature to drop the unusedframe_dataparameter.
Comments suppressed due to low confidence (1)
selfdrive/ui/tests/diff/diff.py:76
generate_html_reportbuildschunks/current_chunkfromdifferent_frames, but the resultingchunksis never used in the generated HTML. This is dead code that adds complexity; consider removing the chunk-building block or wiring it into the report output.
chunks = []
if different_frames:
current_chunk = [different_frames[0]]
for i in range(1, len(different_frames)):
if different_frames[i] == different_frames[i - 1] + 1:
current_chunk.append(different_frames[i])
else:
chunks.append(current_chunk)
current_chunk = [different_frames[i]]
chunks.append(current_chunk)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if different_frames is None: | ||
| sys.exit(1) | ||
|
|
Copilot
AI
Feb 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find_differences() always returns a (different_frames, total_frames) tuple (or raises on failure), so the if different_frames is None: branch is unreachable. Consider removing this check (and associated sys.exit(1)) or changing find_differences() to return None explicitly on failure if that’s intended.
| if different_frames is None: | |
| sys.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be removed but not important or relevant to this PR



























This appears to be something that could be used for displaying individual thumbnails of the diff frames, but for now it's not used and makes things more complex.