Skip to content

Tests: echo gguf_filename in the image text encoder Playwright status stub - #14269

Merged
danielhanchen merged 2 commits into
mainfrom
fix/pw-image-te-status-gguf-filename
Oct 19, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix/pw-image-te-status-gguf-filename

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Chat UI Tests (extra) fails on main at c708b1d727 (run 39268175533) and on every PR based on it, in the Image text encoder precision regression (Playwright) step:

File "tests/studio/playwright_image_text_encoder.py", line 233, in main
    with page.expect_request(
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded while waiting for event "request"

Every later step in that job is skipped (25 steps), so the shard currently checks nothing past this point.

Cause

#14232 (per-load engine choice for GGUF picks) changed what Reapply reloads. reapplyTarget in features/images/lib/engine-choice.ts uses the page's last pick only while it still matches the resident model: same repo, kind and gguf_filename. Otherwise it falls back to the checkpoint that status reports, which for a GGUF needs a gguf_filename.

The test's stub /api/inference/images/status reported model_kind: "gguf" with no gguf_filename. The real status() always carries it (diffusion.py, "gguf_filename": state.gguf_filename). So in the test, Reapply had no target and never sent /api/inference/images/load. The product behaves correctly against the real backend, and the stub had drifted from the contract.

Bisected locally against a stubbed build (vite preview of studio/frontend, same script, same chromium):

commit result
f5e91f1ca5 (before #14232) Passed
6ccf0e4e74 (#14232) TimeoutError at line 233
main 4ea4c758dc TimeoutError at line 233

Change

Test-only, tests/studio/playwright_image_text_encoder.py:

  • Stub status: it now echoes the loaded file, gguf_filename = loads[-1].get("gguf_filename"), as the backend's status does.
  • New check: a GGUF load request without gguf_filename is recorded as a page error, and the script already asserts there are none. It records rather than raises inside the route handler, which would leave the request hanging.

Testing

Same local setup, all three variants the workflow runs:

  • applied: Passed: planned and pinned precision, four explicit modes, fallback reseeding and default omission
  • PW_COMPLETION_FIRST=1: Passed (same)
  • PW_DECLINE=1: Passed: a declined encoder precision reseeds to Dense (bf16)

Not covered here: the 25 steps after this one that the failure skipped on main. This PR's Chat UI Tests (extra) run is the first chance they run again since #14232, and several need the real Studio backend.

… stub

#14232 made Reapply reload the page's last GGUF pick only while it still
matches the resident model's repo and gguf_filename (reapplyTarget), else
the checkpoint status reports. The stub status in
playwright_image_text_encoder.py reported model_kind gguf with no
gguf_filename, which the real status() always carries, so Reapply had no
target and never sent /api/inference/images/load. The stub now echoes the
loaded file, and a GGUF load without one is recorded as an error.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 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-19T15:04:37.989245Z 274e5d0 Manual request
🔒 Security Review ⚠️ Failed 2026-10-19T15:03:09.811275Z 274e5d0 PR opened
ℹ️ 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. 🚀

Reviewed commit: 274e5d0b6c

ℹ️ 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 6c15981 into main Oct 19, 2026
@danielhanchen
danielhanchen deleted the fix/pw-image-te-status-gguf-filename branch October 19, 2026 15:06
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