Skip to content

Tests: read diffusion.py with an explicit encoding in the VAE finite-decode test - #18561

Merged
danielhanchen merged 1 commit into
mainfrom
ci/vae-finite-test-read-encoding
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/vae-finite-test-read-encoding

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, rest-2) is red on main (and so on every PR) because tests/test_source_read_encoding.py flags a new read:

AssertionError: 1 file reads in the test trees touch a checked-in file with the platform default encoding, so they break on Windows as soon as that file gains a non-ASCII byte. Pass encoding = "utf-8": ['studio/backend/tests/test_diffusion_vae_finite.py:281: read_text()']

Cause

#18454 added test_load_installs_before_the_speed_layer, which reads studio/backend/core/inference/diffusion.py with a bare read_text(). On Windows that uses the locale code page, so the test breaks as soon as diffusion.py gains a non-ASCII character. The guard is right; the new read is the problem.

Change

  • studio/backend/tests/test_diffusion_vae_finite.py: pass encoding = "utf-8" to that one read_text. No behaviour change.

Testing

  • tests/test_source_read_encoding.py: fails on main with the offender above, passes with this change (16 passed).
  • studio/backend/tests/test_diffusion_vae_finite.py: 43 passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T04:18:00.442632Z 6cf5d55 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. Keep them coming!

Reviewed commit: 6cf5d557cd

ℹ️ 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".

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