Skip to content

Show optimization capability probe progress - #1257

Merged
xieofxie merged 1 commit into
mainfrom
hualxie/progress_bar_optim_check
Jul 31, 2026
Merged

Show optimization capability probe progress#1257
xieofxie merged 1 commit into
mainfrom
hualxie/progress_bar_optim_check

Conversation

@xieofxie

@xieofxie xieofxie commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the indeterminate --check-optim spinner with a determinate progress bar
  • display the capability currently being checked
  • track each unique capability once, including skipped and failed probes
  • add analyzer callback and CLI coverage for probe progress
image

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@xieofxie
xieofxie requested a review from a team as a code owner July 30, 2026 09:38

@DingmaomaoBJTU DingmaomaoBJTU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice UX improvement — replaces the opaque spinner with a per-capability progress bar. The on_probe_start/on_probe_complete callback API is clean and non-intrusive.

Comment thread src/winml/modelkit/optim/analysis.py
Comment thread src/winml/modelkit/optim/analysis.py
Comment thread src/winml/modelkit/commands/optimize.py
Comment thread src/winml/modelkit/optim/analysis.py

@DingmaomaoBJTU DingmaomaoBJTU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Second pass — verified the Counter/complete_probe lifecycle and the try/finally guarantees. Also flagged a merge interaction with PR #1256.

Comment thread src/winml/modelkit/optim/analysis.py
Comment thread src/winml/modelkit/optim/analysis.py
Comment thread src/winml/modelkit/optim/analysis.py
Comment thread src/winml/modelkit/commands/optimize.py

@DingmaomaoBJTU DingmaomaoBJTU left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Progress bar lifecycle is correct — try/finally ensures complete_probe fires for all paths. Note the merge interaction with PR #1256 (EP constraint continue bypasses try/finally) — whichever merges second should fix.

@xieofxie
xieofxie merged commit 75d22a2 into main Jul 31, 2026
9 checks passed
@xieofxie
xieofxie deleted the hualxie/progress_bar_optim_check branch July 31, 2026 03:17
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