Repository navigation
Read the flaky report's gh answers as UTF-8 on every runner - #472
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyreadgh apioutput 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,stdoutisNone, and the step ends inAttributeError.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
ghchild, 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):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 whatgh api --inputreads.Evidence
UnicodeDecodeError(child Python withLC_ALL=C,PYTHONCOERCECLOCALE=0,-X utf8=0) and passes after it; the script suite passes (115 tests, macOS).