Skip to content

Name the encoding when the poll watcher writes its artifact - #9698

Closed
danielhanchen wants to merge 1 commit into
mainfrom
danielhanchen/polls-artifact-encoding
Closed

danielhanchen wants to merge 1 commit into
mainfrom
danielhanchen/polls-artifact-encoding

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding fails on main:

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()']

That makes Repo tests (CPU), and so the whole Backend CI job, red on every open PR, which hides real failures behind a defect none of those branches introduced. I hit it on two unrelated PRs and traced it back to main.

One call, and the only one left in the file: line 99 is urlopen, which is unrelated.

Verified on a staging replica of current main: Backend CI fails there without this and the guard test passes with it. ruff check clean.

test_checked_in_file_reads_name_an_encoding fails on main: the observed_polls
artifact is written with the platform default encoding, so it breaks on Windows
the moment a watched path gains a non-ASCII byte. It is the only such call left
in the file.

Repo tests (CPU) is red on every open PR because of it, which hides real
failures behind a defect none of those branches introduced.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 1e0349a3ca

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

Copy link
Copy Markdown
Member Author

Closing as a duplicate. This is the same one-line change as #9691, which came first and is already reviewed and green: the diff here is byte for byte identical.

Four separate PRs ended up open for this single line, which is my fault for not checking before opening each one. Consolidating on #9691 so there is one thing to review and merge.

Nothing is lost by closing this one. If #9691 turns out to be wrong for any reason, this can be reopened.

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