Skip to content

test(ci): fix Windows decoding and line endings in four tests - #2050

Merged
phernandez merged 1 commit into
mainfrom
fix/windows-test-encoding
Nov 4, 2026
Merged

phernandez merged 1 commit into
mainfrom
fix/windows-test-encoding

Conversation

@phernandez

Copy link
Copy Markdown
Member

Main's test.yml fails on the Windows SQLite unit shards (runs 41866893188, 41853960947, 41795319355), so Coverage is skipped.

  • test_cli_exit.py, test_fresh_install.py, test_chatgpt_graphs.py: text=True decodes the child's UTF-8 output with cp1252 on Windows. The reader thread raises UnicodeDecodeError and stdout is None. Pass encoding="utf-8".
  • test_skill_resources.py (from feat(mcp): serve distributed skills over MCP (SEP-2640)Β #2022): the expected text came from read_text(), which turns a CRLF checkout into LF. The served text keeps CRLF. Compare to the decoded bytes.
  • test_chatgpt_import_visits_each_mapping_key_once: the 15s hang guard timed out during startup on a loaded Windows runner. Raised to 60s.

Test-only change.

πŸ€– Generated with Claude Code

https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo

On Windows, subprocess text=True decodes the child's UTF-8 output with
the cp1252 locale codec, so the reader thread fails and stdout is None.
Decode as UTF-8 in test_cli_exit, test_fresh_install and
test_chatgpt_graphs.

The skill resource test compared served text to read_text(), which
turns a CRLF checkout into LF. Compare to the decoded bytes instead.

Raise the ChatGPT import hang guard from 15s to 60s; a loaded Windows
runner timed out during startup and migrations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CMYVL4TcbWdXhdvAzxfqjo
Signed-off-by: phernandez <paul@basicmachines.co>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T17:21:37.961759Z dbefc2f PR opened
ℹ️ 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.

@phernandez
phernandez merged commit 3673a5b into main Nov 4, 2026
42 checks passed
@phernandez
phernandez deleted the fix/windows-test-encoding branch November 4, 2026 18:45
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