Skip to content

Installer differential: ignore winget's partly filled download bars - #13172

Merged
danielhanchen merged 1 commit into
mainfrom
differential-ignore-winget-progress
Oct 10, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
differential-ignore-winget-progress

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Follow-up to #12965. A staging run of the Windows installer differential at main 6c723f7477 failed partly on winget's download bar. One side logged an extra partly filled frame:

@@ -20,5 +20,4 @@
   ███████████████████▒▒▒▒▒▒▒▒▒▒▒  <percent>
-  █████████████████████▒▒▒▒▒▒▒▒▒  <percent>
   ██████████████████████▒▒▒▒▒▒▒▒  <percent>
@@ -34,5 +33,4 @@
 Downloading https://github.com/astral-sh/uv/releases/download/0.12.24/uv-x86_64-pc-windows-msvc.zip
-  █████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒  <size> / <size>
   ██████████████████████████████  <size> / <size>

winget redraws the bar as the bytes arrive, so the number of partial frames that reach the log depends on the network. This is the same class of noise as the spinner frames #12965 dropped, and it can fail the lane on any run.

Change

normalise_transcript now also drops a line when it is only a partial frame: a bar with a ▒ still in it, followed by a normalised <percent> or <size> / <size>.

  • The full bar a finished download ends on is kept and still compares, so a download that stops finishing is still reported.
  • Any line with other text on it compares as before.

Verification

Replaying the real evidence from that staging run, only the genuine differences remain, and they still fail the comparison:

before after
tests/python/test_installer_differential_comparer.py new progress test fails 90 passed
compare_installer_evidence.py --self-test passes passes

The new tests:

  • test_winget_partial_progress_frames_do_not_fail: a different number of partial frames on each side still compares equal.
  • test_a_download_that_never_finishes_still_compares: losing the final full bar is still reported.

A main-vs-main run of the Windows installer differential (head 6c723f7)
failed on progress frames alone: one side logged an extra partly filled
winget bar ('█████▒▒▒▒▒  <percent>' and '<size> / <size>'). How many partial
frames reach the log depends on the network, the same class of noise as the
spinner frames #12965 dropped.

Drop a line only when it is a partial frame (a bar with a '▒' left followed
by a normalised percent or size). The full bar a finished download ends on
still compares, so a download that stops finishing is still reported, and
the real differences in that run (diffusers main now skipped, audio.cpp now
installing) still fail the comparison.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T00:10:38.139593Z db40c53 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: db40c53d91

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 143bc75 into main Oct 10, 2026
@danielhanchen
danielhanchen deleted the differential-ignore-winget-progress branch October 10, 2026 01:19
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.

1 participant