From b7001e13c913afdaa0598bc90302a5a776ff53ff Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Fri, 19 Jun 2026 08:14:10 -0400 Subject: [PATCH] Fix generate-results.sh: avoid ARG_MAX overflow with find `ls -1 */results/*/*.json` expands every result path onto a single command line, which overflows ARG_MAX now that the corpus is large (clickhouse-cloud alone has tens of thousands of result files) and fails with "Argument list too long". Use `find` with -mindepth/-maxdepth 2 to walk the same /results//.json paths instead. Co-Authored-By: Claude Opus 4.8 --- generate-results.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate-results.sh b/generate-results.sh index 6721b1e79a..f3c0b45104 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 }' \