ci: Do not patch leveldb to workaround UB in "tidy" CI job

This commit is contained in:
Hennadii Stepanov
2025-09-08 18:32:24 +01:00
parent 314c42b55b
commit 56f2a689a2

View File

@@ -41,7 +41,10 @@ echo "=== BEGIN env ==="
env
echo "=== END env ==="
(
# Don't apply patches in the tidy job, because it relies on the `git diff`
# command to detect IWYU errors. It is safe to skip this patch in the tidy job
# because it doesn't run a UB detector.
if [ "$RUN_TIDY" != "true" ]; then
# compact->outputs[i].file_size is uninitialized memory, so reading it is UB.
# The statistic bytes_written is only used for logging, which is disabled in
# CI, so as a temporary minimal fix to work around UB and CI failures, leave
@@ -62,7 +65,7 @@ echo "=== END env ==="
mutex_.Lock();
stats_[compact->compaction->level() + 1].Add(stats);
EOF
)
fi
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_corpora/