Repository navigation
Conversation
|
@famedly-agent review |
|
No reviewer covers this PR yet: 10 Python files. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 88f6284. Configure here.
|
|
||
| with start_active_span("writing to main media repo"): | ||
| with f: | ||
| yield f, media_filepath |
There was a problem hiding this comment.
Shared thumbnails overwritten and deleted
High Severity
Thumbnails with a known sha256 are written in place with wb and always treated as owned. A second upload of the same content truncates the shared thumbnail, and a later spam-check or storage-provider failure deletes that file for every media ID still using it.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 88f6284. Configure here.
| thumbnail_dir = self.filepaths.local_media_thumbnail_dir(sha256) | ||
|
|
||
| try: | ||
| os.remove(full_path) |
There was a problem hiding this comment.
Delete races with in-progress upload
High Severity
_remove_sha256_files_if_unused deletes the SHA-256 blob after a refcount check, but a concurrent upload already placed bytes at that path and has not inserted its DB row yet (quarantine and upload-limit checks run in between). The new media is stored in the database with no file on disk.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 88f6284. Configure here.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #296 +/- ##
==========================================
- Coverage 81.22% 78.41% -2.81%
==========================================
Files 510 509 -1
Lines 74055 74036 -19
Branches 11223 11244 +21
==========================================
- Hits 60150 58056 -2094
- Misses 10600 12607 +2007
- Partials 3305 3373 +68
... and 124 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
88f6284 to
5000b4f
Compare


SYN-150
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.