Skip to content

Read the flaky report's gh answers as UTF-8 on every runner - #472

Merged
yansfil merged 1 commit into
mainfrom
ci/flaky-report-utf8
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/flaky-report-utf8

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Related: #419 (the report script), #463

Summary

The flaky report crashed on every Windows lane that had a flaky test, so no Windows flaky test was ever filed.
scripts/ci-flaky-report.py read gh api output in the locale's encoding, which is cp1252 on a Windows runner; an open issue with a Korean title (#423-#428) then fails to decode, stdout is None, and the step ends in AttributeError.
The step is continue-on-error, so the lane stayed as it was and only the issue was lost.
The script now names UTF-8 for the gh child, and a test reads a UTF-8 answer under an ASCII locale.

Seen on main e38f935 (run 37266208973, web e2e windows 1/1, Report flaky tests):

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 9259
AttributeError: 'NoneType' object has no attribute 'strip'

The two flaky tests that run lost were filed by hand with this branch's script: #470, #471.

Review

  • 조심해서 볼 파일: scripts/ci-flaky-report.py - encoding="utf-8" also encodes the issue body sent on stdin as UTF-8, which is what gh api --input reads.

Evidence

@yansfil
yansfil merged commit 104c2ee into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/flaky-report-utf8 branch October 5, 2026 06:12
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