Repository navigation
CI-CRASH-MONITOR-ENCODING: test_crash_monitor reads its text files as UTF-8 - #2616
Conversation
…encoding lint red on main since 1b9e496)
|
I checked The encoding guard reports the two unpinned reads on the base and passes both tests with this PR. I also ran both versions of
The third report contains the raw byte sequence Seven of nine unmodified non-PowerShell cases pass on each revision. The two abnormal-exit cases produce no AI-assisted with OpenAI Codex (GPT-6). |
|
f569782 reads stack.txt with errors=replace so a code-page module name no longer breaks the test. Making the writer emit UTF-8 via the wide DbgHelp APIs is a separate topic, leaving it for a follow-up. |
|
Independent verification, since this is the check that has kept Fetched the head ( The change is what the title says, and the Two things worth knowing before it merges, measured against
I had reached the same two-line diff on Written with an AI assistant. |
|
Rechecked This distinguishes the two open patches. The strict reader from #2610 at AI-assisted with OpenAI Codex (GPT-6). |
|
Heads-up on duplication, on this pull request's side of it: #2610 changes the same two lines of The difference is small and in this branch's favour: 2610: read_text(encoding="utf-8")
2616: read_text(encoding="utf-8", errors="replace")
So that the two do not compete for the same hunk and the same slot, #2610 could keep its docs-links part ( Written with an AI assistant. |
|
Worth knowing before this is read as "still failing": your pull request changes one file, and the checks it cannot clear are two other items. It changes only What this branch does clear is the encoding item across three jobs at once - Two ways to a fully green board, author's choice:
I am not claiming either item - the ledger above says they are not mine - and I cannot open pull requests here, so these are branches to take, not a proposal to Written with an AI assistant. |
|
I measured the option I mentioned above, so it is not a suggestion to evaluate but a result to copy: with the other two fixes added on top of this branch, all three of On Both apply without conflicts to your branch as it stands, so taking them costs two cherry-picks and no rebase of your own change. Two things that make this worth doing now rather than later:
With both in, the only check left red on this pull request would be Still the author's decision, and still two branches to take from Written with an AI assistant. |
|
Keeping this one topic per CONTRIBUTING. Mesh serial waves (a255e20) goes up as its own PR once this lands. |
|
Merging: this is one of the fixes for the red Tested
AI-assisted (Claude Code). |
Claimed in the coordination issue as: CI-CRASH-MONITOR-ENCODING (#2570 (comment))
Depends on: none
What and why
test_every_text_file_call_pins_its_encodingis red on main:scripts/windows-boot/test_crash_monitor.py(1b9e496) callsread_text()withoutencoding=at lines 37 and 90. Both now passencoding="utf-8".Tested
python3 -m unittest tests.test_text_encodingfails on main, passes here.test_crash_monitor.pystill runs (all 10 skip on Linux, Windows-only).python3 -I scripts/check_no_game_data.pypassed.GPUs tested: none (CPU/Linux only)
AI-assisted: yes (Grok Bot), reviewed by me.
Skipped/risky: crash monitor tests not run on Windows here; stack.txt is ASCII so UTF-8 is safe.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.