chore(workspace): tighten quality gates (#2230)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-31 04:43:20 +02:00
1 parent e6e4c6f7b5
commit 5c2dca1c51
123 files changed
+4925 -5640

No files matched your search

+21 -20
View File
@@ -6,7 +6,8 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
DEFAULT_CRATES=$(cat <<'ENTRIES'
DEFAULT_CRATES=$(
cat <<'ENTRIES'
fluxer_desktop/native/rt-thread:tick
fluxer_desktop/native/audio-mix:mix
fluxer_desktop/native/screen-frame-bus:staging
@@ -27,29 +28,29 @@ fail_count=0
failed_names=()
while IFS= read -r entry; do
[ -n "$entry" ] || continue
case "$entry" in
\#*) continue;;
esac
crate="${entry%%:*}"
bench="${entry##*:}"
log "==> $crate :: $bench"
if "$SCRIPT_DIR/check-regression.sh" "$REPO_ROOT/$crate" "$bench"; then
pass_count=$((pass_count + 1))
else
fail_count=$((fail_count + 1))
failed_names+=("$crate::$bench")
fi
done <<< "$ENTRIES"
[ -n "$entry" ] || continue
case "$entry" in
\#*) continue ;;
esac
crate="${entry%%:*}"
bench="${entry##*:}"
log "==> $crate :: $bench"
if "$SCRIPT_DIR/check-regression.sh" "$REPO_ROOT/$crate" "$bench"; then
pass_count=$((pass_count + 1))
else
fail_count=$((fail_count + 1))
failed_names+=("$crate::$bench")
fi
done <<<"$ENTRIES"
printf '\n[check-all] summary: %d passed, %d failed\n' "$pass_count" "$fail_count"
if [ "$fail_count" -gt 0 ]; then
printf '[check-all] failed entries:\n'
for name in "${failed_names[@]}"; do
printf ' - %s\n' "$name"
done
exit 1
printf '[check-all] failed entries:\n'
for name in "${failed_names[@]}"; do
printf ' - %s\n' "$name"
done
exit 1
fi
exit 0