Skip to content

Name the encoding when the poll probe writes its artifact - #9691

Merged
danielhanchen merged 1 commit into
mainfrom
fix-declared-polls-encoding
Aug 26, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-declared-polls-encoding

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/test_source_read_encoding.py has been failing on main since #9665 landed, which blocks every open PR as soon as it merges main in.

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":
['tests/studio/playwright_declared_polls.py:210: write_text()']

observed_polls.json is written with the platform default encoding. One line, matching every other checked-in file write in the test trees.

Verified the guard is not vacuous: with the fix the run is green, and with the encoding argument removed again the same run fails naming this exact call site. The file was restored from an md5-verified byte snapshot rather than a checkout.

The declared-polls probe writes observed_polls.json with the platform
default encoding, so it breaks on Windows the moment that file gains a
non-ASCII byte. tests/test_source_read_encoding.py catches exactly this
and has been failing on main since #9665 landed, which blocks every
open PR that merges main in.

Pass encoding = "utf-8", matching every other checked-in file write in
the test trees.
@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: 645679b60d

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant