1
0
Fork 0
llvm-premerge-checks/scripts
Anders Waldenborg 1d9dbf5568 make clang_tidy_report handle diffs text files with invalid utf-8
"git diff" handles text files encoded that is not valid UTF-8 (e.g
using ISO-8859-1) as text files and produces a diff of those (rather
saying "Binary files a/x and b/x differ").

This means that the diff output may contain such characters. Files
that did would cause clang_tidy_report.py do hit an UnicodeDecodeError
when reading the diff, including if it was on removed lines and
regardless if it was in the ignore file.

By specifying errors mode "replace" for decode() method the bytes
that are not a valid utf-8 encoding are replaced with the unicode
replacement question mark (U+FFFD). When parsing the diff
clang-tidy-diff is only looking at filenames and line numbers of the
diff, so this shouldn't be a problem if it doesn't get the exact same
byte sequence inside the actual change.
2021-08-17 14:18:39 +02:00
..
metrics update buildkite monitoring 2021-06-28 10:16:36 +02:00
phab2github rename master to main branch following LLVM 2020-12-10 09:29:24 +01:00
phabtalk Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
windows debugging container start 2021-06-01 17:32:09 +02:00
.gitignore first draft of benchmark script 2020-03-25 09:07:28 +01:00
__init__.py Add windows build 2020-06-03 13:40:22 +02:00
add_phabricator_artifact.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
apply_patch.sh improvements to patch process 2020-11-03 16:15:36 +01:00
benchmark.py rename master to main branch following LLVM 2020-12-10 09:29:24 +01:00
buildkite_utils.py cancel previous builds for the same revisions 2021-05-04 11:27:09 +02:00
choose_projects.py Correctly skip project classification for utils/ 2021-07-29 10:42:12 +02:00
clang-format.ignore ignore **/test for clang-format 2020-07-22 18:59:47 +02:00
clang-tidy-comments.ignore remove jenkins configs and scrips 2020-09-01 09:51:49 +02:00
clang-tidy.ignore Ignore clang/lib/Headers/wasm_simd128.h 2021-07-22 16:23:11 +02:00
clang_format_report.py update linux node pool (machines w/ no external ssd) 2021-05-17 10:06:54 +02:00
clang_tidy_report.py make clang_tidy_report handle diffs text files with invalid utf-8 2021-08-17 14:18:39 +02:00
cleanup_branches.py error handling 2020-06-29 11:41:48 +02:00
common.ps1 fixed more windows weirdness 2019-12-16 10:09:47 +00:00
exec_utils.py return exit status of ninja command 2020-07-10 19:35:29 +02:00
ignore_diff.py building with buildkite 2020-05-25 16:42:40 +02:00
llvm-dependencies.yaml enable flang 2021-06-30 15:44:56 +02:00
patch_diff.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
pipeline_create_branch.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
pipeline_main.py script to sync fork llvm-premerge-tests/llvm-project 2021-08-11 16:25:29 +02:00
pipeline_premerge.py script to sync fork llvm-premerge-tests/llvm-project 2021-08-11 16:25:29 +02:00
premerge_checks.py More accurate commands to reproduce build 2021-01-11 15:42:11 +01:00
requirements.txt Remove requirement added in 1f2c851 to try to fix diff-checks 2021-05-04 16:22:40 -04:00
run_cmake.py export command on win is 'set' 2021-03-19 15:36:08 +01:00
run_cmake_config.yaml rename CCACHE_PATH to CCACHE_DIR 2020-08-26 14:22:37 +02:00
run_ninja.py building with buildkite 2020-05-25 16:42:40 +02:00
set_build_status.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
steps.py script to sync fork llvm-premerge-tests/llvm-project 2021-08-11 16:25:29 +02:00
summary.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
sync_fork.py script to sync fork llvm-premerge-tests/llvm-project 2021-08-11 16:25:29 +02:00
test_results_report.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
windows_agent_bootstrap.ps1 don't install nuget on new win agents 2021-05-20 12:18:18 +02:00
windows_agent_start_buildkite.ps1 dont pass 'testing' parameter from startup 2021-06-01 17:37:20 +02:00