Skip to content

Read browser sources as UTF-8 in the runtime build test - #26

Merged
senegrom merged 1 commit into
masterfrom
fix/runtime-build-test-utf8
Sep 11, 2026
Merged

Read browser sources as UTF-8 in the runtime build test#26
senegrom merged 1 commit into
masterfrom
fix/runtime-build-test-utf8

Conversation

@senegrom

Copy link
Copy Markdown
Owner

tests/test_web_runtime_build.py (added in 13975b0) reads the stamped app.js and worker files with the platform default encoding. On the Windows runner that is cp1252, so both test_runtime_urls_and_worker_are_immutable cases fail with a UnicodeDecodeError on the first non-ASCII character in app.js. Master's own CI run for 13975b0 is red on the Windows bounded suite for this reason (Linux passes), and PR #25 inherited the failure.

The build script already writes these files as UTF-8; the test now reads them the same way. Reproduced and verified locally on Windows (2 failed → 3 passed), ruff clean, test-only change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Qwh26ysS8vtKGg6SF4PGtP

tests/test_web_runtime_build.py read the stamped app.js and worker files
with the platform default encoding, so on Windows (cp1252) the two
test_runtime_urls_and_worker_are_immutable cases failed with a
UnicodeDecodeError on the first non-ASCII character in app.js, and the
master CI run for 13975b0 went red on the Windows bounded suite while
passing on Linux. The build script itself already writes UTF-8; read the
files the same way.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qwh26ysS8vtKGg6SF4PGtP
@senegrom
senegrom merged commit 90a4075 into master Sep 11, 2026
10 checks passed
@senegrom
senegrom deleted the fix/runtime-build-test-utf8 branch September 11, 2026 15:07
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