Skip to content

Tests: read the decision prefetch test's frontend source as UTF-8 - #16123

Merged
danielhanchen merged 1 commit into
mainfrom
tests-decision-prefetch-utf8
Oct 30, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-decision-prefetch-utf8

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, rest-2) is red on main since #16106 (prepare decision datasets faster, in less memory, with row progress). It fails on unrelated PRs, for example #16114:

tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding[14]
AssertionError: 1 file reads in the test trees touch a checked-in file with the platform default encoding ...
  'studio/backend/tests/test_decision_dataset_prefetch.py:298: read_text()'

_frontend_regex reads studio/frontend/src/features/studio/preparation-progress.ts with read_text(). On Windows that decodes as cp1252 and breaks as soon as the file gains a non-ASCII byte. The guard is right and the test was wrong, so this adds encoding = "utf-8". This is the same fix #16025 made for #15996.

Verification

  • tests/test_source_read_encoding.py: fails on main on the line above. 16 passed here.
  • studio/backend/tests/test_decision_dataset_prefetch.py: 11 passed.

#16106's test_decision_dataset_prefetch.py reads preparation-progress.ts with the platform
default encoding, which test_checked_in_file_reads_name_an_encoding refuses (rest-2 red on main).
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T12:55:30.410661Z 8facc10 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. Can't wait for the next one!

Reviewed commit: 8facc10075

ℹ️ 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 999aa3f into main Oct 30, 2026
2 of 38 checks passed
@danielhanchen
danielhanchen deleted the tests-decision-prefetch-utf8 branch October 30, 2026 13:08
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