diff --git a/generate-results.sh b/generate-results.sh index 6721b1e79..f3c0b4510 100755 --- a/generate-results.sh +++ b/generate-results.sh @@ -12,7 +12,9 @@ FIRST=1 # Build "/ " lines, then keep the last (latest) # row per key — sorted ascending by date, since YYYYMMDD sorts lexically. -LANG="" ls -1 */results/*/*.json \ +# Use `find` rather than `ls */results/*/*.json`: to avoid overflowing ARG_MAX +# (clickhouse-cloud alone has tens of thousands of files) +LANG="" find */results -mindepth 2 -maxdepth 2 -name '*.json' \ | grep -Ev '^(hardware|versions|gravitons)/' \ | sort \ | awk -F/ '{ print $1"/"$NF" "$0 }' \