Skip to content

CM-61550: Show upload progress and detect slow connections during scan#419

Merged
mateusz-sterczewski merged 3 commits intomainfrom
CM-61550-upload-progress
Mar 27, 2026
Merged

CM-61550: Show upload progress and detect slow connections during scan#419
mateusz-sterczewski merged 3 commits intomainfrom
CM-61550-upload-progress

Conversation

@mateusz-sterczewski
Copy link
Copy Markdown
Collaborator

  • Add _UploadProgressTracker to CycodeClientBase: a file-like wrapper that tracks bytes sent and fires a progress callback on each read
  • Add post_multipart() to CycodeClientBase with retry via @Retry decorator; detects mid-transfer connection drops and raises SlowUploadConnectionError for partial uploads
  • Add _UploadProgressAggregator to code_scanner: aggregates progress across parallel batch uploads and displays MB sent / MB total in the progress bar right-side label
  • Add SlowUploadConnectionError with a user-friendly CLI error message
  • Thread on_upload_progress callback through _perform_scan, _perform_scan_async, and _perform_scan_v4_async
  • Add test coverage for slow upload detection

mateusz-sterczewski and others added 3 commits March 27, 2026 09:42
- Add _UploadProgressTracker to CycodeClientBase: a file-like wrapper
  that tracks bytes sent and fires a progress callback on each read
- Add post_multipart() to CycodeClientBase with retry via @Retry
  decorator; detects mid-transfer connection drops and raises
  SlowUploadConnectionError for partial uploads
- Add _UploadProgressAggregator to code_scanner: aggregates progress
  across parallel batch uploads and displays MB sent / MB total in the
  progress bar right-side label
- Add SlowUploadConnectionError with a user-friendly CLI error message
- Thread on_upload_progress callback through _perform_scan,
  _perform_scan_async, and _perform_scan_v4_async
- Add test coverage for slow upload detection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mateusz-sterczewski mateusz-sterczewski merged commit 6cfc436 into main Mar 27, 2026
28 checks passed
@mateusz-sterczewski mateusz-sterczewski deleted the CM-61550-upload-progress branch March 27, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants