From 3595b619027096016afeaed7e6cc4237af7ce7a0 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sat, 21 Nov 2026 08:21:12 +0100 Subject: [PATCH] Cap gate shard flutter tests at 2 isolates The gate shards inherited one test isolate per core and hit the 4 GiB capped.sh limit in ~6 s, so the kernel OOM-killed them. Todo: f1ccef82 Co-Authored-By: Claude Opus 5.5 --- scripts/check_flutter_coverage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check_flutter_coverage.sh b/scripts/check_flutter_coverage.sh index 7540145..3c2c8f7 100755 --- a/scripts/check_flutter_coverage.sh +++ b/scripts/check_flutter_coverage.sh @@ -101,6 +101,10 @@ case "${1:-}" in mapfile -t files < <(shard_files "$index" "$GATE_SHARDS") (( ${#files[@]} > 0 )) || die "shard $index/$GATE_SHARDS has no test files" echo "Gate shard $index/$GATE_SHARDS: ${#files[@]} test files, tree ${tree:0:12}" + # The gate runs every shard under capped.sh's 4 GiB: one isolate per core + # (16 here) hit the cap in ~6 s and the kernel OOM-killed the step + # (2026-11-21). Two isolates fit; an explicit value still wins. + export FLUTTER_TEST_CONCURRENCY="${FLUTTER_TEST_CONCURRENCY:-2}" rm -f "$LCOV_INFO" run_flutter_tests "${files[@]}" [[ -s "$LCOV_INFO" ]] || die "flutter produced no $LCOV_INFO"