diff --git a/.github/workflows/scripts/run_affected_benchmarks/run b/.github/workflows/scripts/run_affected_benchmarks/run index c79ff0d45f0f..eec70bfa3f88 100755 --- a/.github/workflows/scripts/run_affected_benchmarks/run +++ b/.github/workflows/scripts/run_affected_benchmarks/run @@ -142,7 +142,7 @@ main() { # Run JS benchmarks: if [ -n "${js_bench_files}" ]; then # Invoke make in batches to avoid "Argument list too long" errors: - printf '%s\n' ${js_bench_files} | xargs -s 65536 sh -c 'make benchmark-javascript-files FILES="$*"' _ + printf '%s\n' ${js_bench_files} | xargs sh -c 'make benchmark-javascript-files FILES="$*"' _ else echo 'No JavaScript benchmarks to run.' >&2 fi @@ -174,7 +174,7 @@ main() { if [ -n "${c_bench_files}" ]; then # Invoke make in batches to avoid "Argument list too long" errors: - printf '%s\n' ${c_bench_files} | xargs -s 65536 sh -c 'make benchmark-c-files FILES="$*"' _ + printf '%s\n' ${c_bench_files} | xargs sh -c 'make benchmark-c-files FILES="$*"' _ else echo 'No C benchmarks to run.' >&2 fi diff --git a/.github/workflows/scripts/run_affected_tests/run b/.github/workflows/scripts/run_affected_tests/run index f0209da7b659..cb1add9e441f 100755 --- a/.github/workflows/scripts/run_affected_tests/run +++ b/.github/workflows/scripts/run_affected_tests/run @@ -165,9 +165,8 @@ main() { files=$(echo "${files}" | grep -v '/fixtures/') || true if [[ -n "${files}" ]]; then - # Invoke make in batches to avoid "Argument list too long" errors - # when the total length of file paths exceeds OS limits: - printf '%s\n' ${files} | xargs -s 65536 sh -c 'make test-javascript-files-min FILES="$*"' _ + # Invoke make in batches to avoid "Argument list too long" errors: + printf '%s\n' ${files} | xargs sh -c 'make test-javascript-files-min FILES="$*"' _ fi cleanup