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

Tracks progress for package creation, upload and kickoff #2935

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Nov 16, 2024

Allows users to understand through visualization if large packages are being uploaded or incorrect files are being packaged.

Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.26%. Comparing base (3f0ab84) to head (59b6742).
Report is 7 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2935       +/-   ##
===========================================
+ Coverage   76.33%   93.26%   +16.93%     
===========================================
  Files         199       48      -151     
  Lines       20840     1842    -18998     
  Branches     2681        0     -2681     
===========================================
- Hits        15908     1718    -14190     
+ Misses       4214      124     -4090     
+ Partials      718        0      -718     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Mecoli1219 Mecoli1219 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could consider implementing a global Progress to:

  1. Simplify the codebase
  2. Enable consistent progress reporting behavior across modules
  3. Make it easier to add progress tracking to new modules
  4. Allow for a global flag to enable/disable all progress logging (especially if we want something like --verbose or --silence)
image image

f"Request to send data {upload_location.signed_url} failed.\nResponse: {rsp.text}",
from rich.progress import Progress, TextColumn, TimeElapsedColumn

progress = Progress(
Copy link
Collaborator

@eapolinario eapolinario Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Progress also has a start method, which is supposed to be invoked explicitly if the Progress object is not used as a context manager (as mentioned by the author here).

We can use this to make the progress bar customizable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eapolinario progress is used as a context manager. look at like 1074

Copy link
Collaborator

@eapolinario eapolinario Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I understand, but it doesn't have to be used as a context manager, right? If start is not called the progress bars don't show up.

Signed-off-by: Ketan Umare <[email protected]>
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