Print log when formatter ecosystem checks fail (#6187)

**Summary** Print the errors when the formatter ecosystem checks failed.
Im not happy that we current collect the log in the first place, but
this is the less invasive change and we need it to unblock reviewing
#6152.

**Test Plan**
https://github.com/astral-sh/ruff/actions/runs/5713112075/job/15477879403?pr=6188
This commit is contained in:
konsti
2023-07-31 14:45:38 +02:00
committed by GitHub
parent 311a1f9ec4
commit a540933bc9
2 changed files with 6 additions and 2 deletions

View File

@@ -51,5 +51,9 @@ fi
# for i in "$dir"/*/; do git -C "$i" switch main && git -C "$i" pull && echo "# $(basename "$i") $(git -C "$i" rev-parse HEAD)"; done
time cargo run --bin ruff_dev -- format-dev --stability-check --error-file "$target/progress_projects_errors.txt" \
--multi-project "$dir" >"$target/progress_projects_report.txt"
--multi-project "$dir" >"$target/progress_projects_report.txt" || (
echo "Ecosystem check failed"
cat "$target/progress_projects_report.txt"
exit 1
)
grep "similarity index" "$target/progress_projects_report.txt" | sort