Skip to content

Installer mirror test: bound the probe speed by the batch time, not a fixed 1 KiB/s - #16871

Merged
danielhanchen merged 1 commit into
mainfrom
ci-mirror-probe-speed-check
Nov 6, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-mirror-probe-speed-check

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

The Windows GGUF inference smoke (API, tools, vision) job runs tests/studio/test_mirror_fallback.ps1 first, and one of its checks fails now and then on unrelated PRs. In the last day it hit the staging runs for #16825 (int8 diffusion on RDNA3) and #16804 (LTX-2.5 encode), and a rerun of the #16825 job passed:

  PASS  probe: gives up at its deadline, cancelling what has not answered
  FAIL  probe: a ranged 1 KiB answer is 206 with its speed
##[error]Process completed with exit code 1.

The check wanted the /ok probe's speed above 1024 bytes/s. Wait-MirrorProbe measures speed as bytes read over the probe's own clock, so for a 1 KiB answer that floor really means "answered in under a second". The probe gives that batch of 6 URLs 1.5 s, and on a busy Windows runner the local server can take longer than a second to answer. The probe is then working correctly and the check still fails.

Reproduced locally with pwsh: delaying the test server's /ok answer by 1.1 s, still inside the 1.5 s deadline, fails this check on main.

Change

tests/studio/test_mirror_fallback.ps1, this one check. It now asks for:

  • status 206, as before;
  • the whole 1 KiB in the probe's buffer (Position -eq 1024), which the old check did not look at;
  • a speed of at least 1024 bytes over the batch's total time from the test's own stopwatch. The probe's clock starts after that stopwatch, so a correct speed can never be below this bound. A zero, missing or miscomputed speed still fails.

No installer code changes.

Testing

pwsh -File tests/studio/test_mirror_fallback.ps1, Linux pwsh 7:

case main this branch
as is pass pass, 0 FAIL lines in the whole file
/ok answers after 1.1 s (slow runner) FAIL pass
/ok answers 200 instead of 206 FAIL FAIL
/ok sends 512 of the 1024 bytes pass (not caught) FAIL

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-11-06T04:23:23.855634Z 699a53c 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 699a53cd7b

ℹ️ 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 9c1cffb into main Nov 6, 2026
@danielhanchen
danielhanchen deleted the ci-mirror-probe-speed-check branch November 6, 2026 04:28
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