feat: cog weights download progress#3087
Conversation
|
LGTM |
cog weights import progress bar
cog weights import progress bar|
LGTM |
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds live download progress display during cog weights import by plumbing a progress callback through the weight builder and ingress pipeline, with a focused test verifying progress event generation.
I found one issue with the progress display logic.
| id = model.ShortDigest(prog.FileDigest) | ||
| } | ||
|
|
||
| if prog.Done && prog.Complete >= prog.Total { |
There was a problem hiding this comment.
Intermediate files that finish downloading aren't marked as complete:
The prog.Done flag is set for every file that finishes ingress, but the prog.Complete >= prog.Total check prevents marking any file except the last one as "Download complete". Each file has its own progress line (via the weightName/fileName ID), so completed files should show completion regardless of cumulative progress.
| if prog.Done && prog.Complete >= prog.Total { | |
| if prog.Done { | |
| pw.WriteStatus(id, "Download complete") | |
| return | |
| } |
There was a problem hiding this comment.
Fixed in 7f1d0fb by marking a file complete whenever prog.Done is set, regardless of cumulative weight progress.
|
I'm Bonk, and I've done a quick review of your PR. This PR adds live download progress display during I found one issue with the progress display logic. Posted a batch review with a suggestion to fix intermediate files not being marked as "Download complete" in |
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds live download progress display during cog weights import and cog weights pull by plumbing progress callbacks through the weight builder and ingress/pull pipeline, with focused tests verifying progress event generation.
I found two issues with the progress display logic.
|
Posted a batch review on PR #3087 with two suggestions:
|
|
@anish-sahoo Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds live download progress display during cog weights import and cog weights pull by plumbing progress callbacks through the weight builder and ingress/pull pipeline, with focused tests verifying progress event generation.
I found one remaining issue with the progress display logic.
|
I'm Bonk, and I've done a quick review of your PR. This PR adds live download progress display during I found one remaining issue with the progress display logic. 1. Posted a batch review on PR #3087 with this suggestion. |
|
I've reviewed the current state of PR #3087. Both previously identified issues have been addressed:
I've also verified the progress event plumbing through LGTM |
Summary
cog weights importwarms the local weight storecog weights pullpopulates a cold local cacheTesting
mise run fmt:go:fixgo test ./pkg/cligo test ./pkg/modelgo test ./pkg/weightsmise run lint:go