Skip to content

🎨 Palette: Add progress bar for cache warming#88

Closed
google-labs-jules[bot] wants to merge 1 commit intomainfrom
palette-progress-bar-1257517881805291531
Closed

🎨 Palette: Add progress bar for cache warming#88
google-labs-jules[bot] wants to merge 1 commit intomainfrom
palette-progress-bar-1257517881805291531

Conversation

@google-labs-jules
Copy link

Added a progress bar to the warm_up_cache function to provide visual feedback during the URL fetching process. This addresses the lack of feedback during the initial "Warming up cache" phase.

Changes

  • Added ProgressBar class in main.py.
  • Integrated ProgressBar into warm_up_cache loop.
  • Ensured progress bar is only shown when colors are enabled (TTY).
  • Handled log interruptions by clearing the progress line before logging warnings.

Verification

  • Ran python3 main.py --dry-run to verify the progress bar appears and functions correctly during cache warming.
  • Verified that logs (warnings) do not corrupt the progress bar display.

PR created automatically by Jules for task 1257517881805291531 started by @abhimehro

Added a `ProgressBar` class to providing visual feedback during the URL pre-fetching phase. This improves UX by replacing a static wait with an active indicator.

- Implemented `ProgressBar` class with TTY support.
- Updated `warm_up_cache` to use the progress bar.
- Added `clear` method to handle log interleaving cleanly.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions bot added the python label Jan 9, 2026

percent = float(self.current) / self.total
filled = int(self.length * percent)
bar = '█' * filled + '-' * (self.length - filled)

Check warning

Code scanning / Prospector (reported by Codacy)

Black listed name "bar" (blacklisted-name) Warning

Black listed name "bar" (blacklisted-name)
self.length = length
self.current = 0

def increment(self):

Check warning

Code scanning / Pylint (reported by Codacy)

Missing method docstring Warning

Missing method docstring
self.current += 1
self._print()

def clear(self):

Check warning

Code scanning / Pylint (reported by Codacy)

Missing method docstring Warning

Missing method docstring
self.current += 1
self._print()

def clear(self):

Check warning

Code scanning / Pylint (reported by Codacy)

Method could be a function Warning

Method could be a function

percent = float(self.current) / self.total
filled = int(self.length * percent)
bar = '█' * filled + '-' * (self.length - filled)

Check warning

Code scanning / Pylint (reported by Codacy)

Black listed name "bar" Warning

Black listed name "bar"
filled = int(self.length * percent)
bar = '█' * filled + '-' * (self.length - filled)

sys.stderr.write(f"\r{Colors.CYAN}{self.prefix} |{bar}| {self.current}/{self.total}{Colors.ENDC}")

Check warning

Code scanning / Pylint (reported by Codacy)

Line too long (106/100) Warning

Line too long (106/100)
self.length = length
self.current = 0

def increment(self):

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing function or method docstring Warning

Missing function or method docstring
self.current += 1
self._print()

def clear(self):

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing function or method docstring Warning

Missing function or method docstring
self.current += 1
self._print()

def clear(self):

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Method could be a function Warning

Method could be a function

percent = float(self.current) / self.total
filled = int(self.length * percent)
bar = '█' * filled + '-' * (self.length - filled)

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Black listed name "bar" Warning

Black listed name "bar"
filled = int(self.length * percent)
bar = '█' * filled + '-' * (self.length - filled)

sys.stderr.write(f"\r{Colors.CYAN}{self.prefix} |{bar}| {self.current}/{self.total}{Colors.ENDC}")

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Line too long (106/100) Warning

Line too long (106/100)
@abhimehro
Copy link
Owner

Superseded: Progress bar for cache warming already in main.

@abhimehro abhimehro closed this Jan 18, 2026
@google-labs-jules
Copy link
Author

Superseded: Progress bar for cache warming already in main.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

@abhimehro abhimehro deleted the palette-progress-bar-1257517881805291531 branch January 19, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant