From cbf4370cc2e1ce1cf8c6a13c252e4f65226a3d26 Mon Sep 17 00:00:00 2001 From: VelikovPetar Date: Thu, 26 Nov 2026 14:48:19 +0100 Subject: [PATCH 1/4] ci(repo): run the Flutter tests two packages at a time Co-Authored-By: Claude Opus 5.5 --- .github/workflows/stream_flutter_ai_workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stream_flutter_ai_workflow.yml b/.github/workflows/stream_flutter_ai_workflow.yml index dfd64166..06dca56b 100644 --- a/.github/workflows/stream_flutter_ai_workflow.yml +++ b/.github/workflows/stream_flutter_ai_workflow.yml @@ -133,7 +133,9 @@ jobs: - name: "Bootstrap Workspace" run: melos bootstrap - name: "Flutter Test" - run: melos run test:all + # Two packages at a time rather than test:all's four: four parallel + # `flutter test` runs exhaust the 2-core runner, which kills the job. + run: melos exec --concurrency 2 --fail-fast -- "flutter test --coverage" - name: "Collect Coverage" run: melos run coverage:ignore-file --no-select - name: "Upload Coverage" From 3ebc1901c5c528322014861b09231812568ee8d5 Mon Sep 17 00:00:00 2001 From: VelikovPetar Date: Thu, 26 Nov 2026 14:49:40 +0100 Subject: [PATCH 2/4] ci(repo): run the Flutter tests two packages at a time in the melos script Co-Authored-By: Claude Opus 5.5 --- .github/workflows/stream_flutter_ai_workflow.yml | 4 +--- pubspec.yaml | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stream_flutter_ai_workflow.yml b/.github/workflows/stream_flutter_ai_workflow.yml index 06dca56b..dfd64166 100644 --- a/.github/workflows/stream_flutter_ai_workflow.yml +++ b/.github/workflows/stream_flutter_ai_workflow.yml @@ -133,9 +133,7 @@ jobs: - name: "Bootstrap Workspace" run: melos bootstrap - name: "Flutter Test" - # Two packages at a time rather than test:all's four: four parallel - # `flutter test` runs exhaust the 2-core runner, which kills the job. - run: melos exec --concurrency 2 --fail-fast -- "flutter test --coverage" + run: melos run test:all - name: "Collect Coverage" run: melos run coverage:ignore-file --no-select - name: "Upload Coverage" diff --git a/pubspec.yaml b/pubspec.yaml index 37ab0904..9175f1ff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -167,7 +167,9 @@ melos: test:flutter: exec: command: flutter test --coverage - concurrency: 4 + # Each `flutter test` already runs its files in parallel; more than two + # at once exhausts CI's 2-core runners, which kill the job. + concurrency: 2 failFast: true description: Run Flutter tests for a specific package in this project. packageFilters: From 6c018530e4e2e3e4d489c9f1703f2db954451009 Mon Sep 17 00:00:00 2001 From: VelikovPetar Date: Thu, 26 Nov 2026 15:30:19 +0100 Subject: [PATCH 3/4] ci(repo): restore four packages at a time, keep a workflow change to run the tests Co-Authored-By: Claude Opus 5.5 --- .github/workflows/stream_flutter_ai_workflow.yml | 1 + pubspec.yaml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stream_flutter_ai_workflow.yml b/.github/workflows/stream_flutter_ai_workflow.yml index dfd64166..909931ac 100644 --- a/.github/workflows/stream_flutter_ai_workflow.yml +++ b/.github/workflows/stream_flutter_ai_workflow.yml @@ -133,6 +133,7 @@ jobs: - name: "Bootstrap Workspace" run: melos bootstrap - name: "Flutter Test" + # Temporary: a change here makes the path filter run the tests. run: melos run test:all - name: "Collect Coverage" run: melos run coverage:ignore-file --no-select diff --git a/pubspec.yaml b/pubspec.yaml index 9175f1ff..37ab0904 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -167,9 +167,7 @@ melos: test:flutter: exec: command: flutter test --coverage - # Each `flutter test` already runs its files in parallel; more than two - # at once exhausts CI's 2-core runners, which kill the job. - concurrency: 2 + concurrency: 4 failFast: true description: Run Flutter tests for a specific package in this project. packageFilters: From 17e1d2e1917cbe7d4c0497564613cdbf0b3a7519 Mon Sep 17 00:00:00 2001 From: VelikovPetar Date: Thu, 26 Nov 2026 16:20:23 +0100 Subject: [PATCH 4/4] ci(repo): run the Flutter tests two packages at a time Co-Authored-By: Claude Opus 5.5 --- .github/workflows/stream_flutter_ai_workflow.yml | 1 - pubspec.yaml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stream_flutter_ai_workflow.yml b/.github/workflows/stream_flutter_ai_workflow.yml index 909931ac..dfd64166 100644 --- a/.github/workflows/stream_flutter_ai_workflow.yml +++ b/.github/workflows/stream_flutter_ai_workflow.yml @@ -133,7 +133,6 @@ jobs: - name: "Bootstrap Workspace" run: melos bootstrap - name: "Flutter Test" - # Temporary: a change here makes the path filter run the tests. run: melos run test:all - name: "Collect Coverage" run: melos run coverage:ignore-file --no-select diff --git a/pubspec.yaml b/pubspec.yaml index 37ab0904..d19e5925 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -167,7 +167,7 @@ melos: test:flutter: exec: command: flutter test --coverage - concurrency: 4 + concurrency: 2 failFast: true description: Run Flutter tests for a specific package in this project. packageFilters: