Repository navigation
fix(website-browser): ensure download ended_at is set when hashing fails - #521
Merged
earakely-scale merged 3 commits intoNov 9, 2026
Merged
Conversation
andrewpark-scaleai
approved these changes
Nov 6, 2026
andrewpark-scaleai
left a comment
Contributor
There was a problem hiding this comment.
LGTM. I ran test_website_browser.py (56 passed), and the new test fails against main. The finally still re-raises, so _finished keeps logging the hashing error, and Download already has size/sha256 as optional.
Nit: the Download docstring in shapes.py says a completed download comes with its size and sha256. That's no longer guaranteed, so it's worth a word there.
…ompleted downloads
Contributor
Author
|
Updated the Download docstring in shapes.py to clarify that size and sha256 are included when available. |
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.
What and why
In BrowserControl._hashed(), computing the size and sha256 digest for a completed download could fail if the downloaded file was removed, moved, or inaccessible. Previously, an exception during hashing skipped download.update(ended_at=...), leaving the completed download without an ended_at timestamp.
This change:
How it was tested


Confidence Score: 5/5
The PR appears safe to merge.Summary
Completed downloads now keep
ended_atwhen reading the file for its size or digest fails.Reviews (3) · Last reviewed commit: "Merge branch 'main' into fix/browser-dow..." · Reviewed by Greptile