Skip to content
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

fix: changes download progress printing to update less frequently #2565

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

bryanoltman
Copy link
Contributor

Description

This change refactors [ArtifactManager]'s file download logic to expose a progress stream (which is ignored by the default downloadFile method, whose signature has not changed). This also adds downloadWithProgressUpdates to ArtifactManager, which creates a progress logger and updates with a download percentage. The updates are throttled so as to avoid the flickering effect mentioned in #2563 (comment).

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Tests

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@bryanoltman bryanoltman merged commit 1107620 into main Oct 22, 2024
11 checks passed
@bryanoltman bryanoltman deleted the bo/download-progress branch October 22, 2024 18:27
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.

3 participants