Skip to content

Repair two more backend checks red on main - #15003

Merged
danielhanchen merged 1 commit into
mainfrom
ci-main-reds-2
Oct 23, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-main-reds-2

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Two more backend checks fail on main (60c7715). Both reproduce on a clean main worktree, and in both the test needed to change, not the product.

Check Introduced by Fix
studio/backend/tests/test_inference_dispatcher_resilience.py::test_route_llama_streaming_async_clients_disable_proxy_env (assert 0 == 5) #14546 That PR builds the five local llama-server clients in routes/inference.py through gated_async_client. It wraps httpx.AsyncClient so that conversation-archive embedding pauses for the request. The AST walk only matched httpx.AsyncClient(...), so it found none. It now counts both spellings and still requires trust_env=False on each of the five. It also pins that gated_async_client passes its **kwargs to the httpx.AsyncClient it builds, which is the step that keeps a proxy setting from reaching the local server.
tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding[6] #14868 test_diffusion_zimage_cfg_split.py read diffusion.py with read_text(). That read now passes encoding = "utf-8".

The product side checks out: all five gated_async_client(...) calls pass trust_env = False, and the wrapper forwards it.

Verification

  • test_inference_dispatcher_resilience.py and test_diffusion_zimage_cfg_split.py: 38 passed.
  • tests/test_source_read_encoding.py: 16 passed.
  • Sabotage checks, each fails the guard:
    • removing trust_env = False from one of the five calls;
    • making gated_async_client drop its **kwargs;
    • restoring the bare read_text().

- test_route_llama_streaming_async_clients_disable_proxy_env: #14546 routes the five local llama-server clients through gated_async_client, which wraps httpx.AsyncClient, so the AST walk found none. Count both spellings, still require trust_env=False on each, and pin that the wrapper forwards its kwargs to httpx.AsyncClient.
- test_diffusion_zimage_cfg_split: name the encoding on the diffusion.py read (#14868), which test_checked_in_file_reads_name_an_encoding requires.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T16:51:13.577661Z 106b3fc 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. Keep them coming!

Reviewed commit: 106b3fc456

ℹ️ 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 0114fac into main Oct 23, 2026
0 of 31 checks passed
@danielhanchen
danielhanchen deleted the ci-main-reds-2 branch October 23, 2026 16:54
danielhanchen added a commit that referenced this pull request Oct 23, 2026
…mage_cfg_split (#15040)

`tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding`
fails on `main` again, for example in `Repo tests (CPU, rest)` on
#15033:

```
studio/backend/tests/test_diffusion_zimage_cfg_split.py:551: read_text()
studio/backend/tests/test_diffusion_zimage_cfg_split.py:748: read_text()
```

#14955 added two more reads of `diffusion.py` with the platform default
encoding to the same test file #15003 fixed earlier. Both now pass
`encoding = "utf-8"`.

## Verification

- On `main`: `-k checked_in_file_reads` gives 1 failed, 15 passed.
- On this branch: 16 passed.
- `studio/backend/tests/test_diffusion_zimage_cfg_split.py`: 35 passed.
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