From e2ed0c934a7b6bbfae8cc3f1b15ba8baef60c3a1 Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Thu, 1 Oct 2026 14:27:27 +0200 Subject: [PATCH 1/3] ci: run cognitive complexity audit from very_good_workflows#520 --- .github/workflows/very_good_cli.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/very_good_cli.yaml b/.github/workflows/very_good_cli.yaml index 38b7b95e3..a4aab27fc 100644 --- a/.github/workflows/very_good_cli.yaml +++ b/.github/workflows/very_good_cli.yaml @@ -27,7 +27,10 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1.21.1 + permissions: + contents: read + pull-requests: write + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@vgv-ai-bot/issue-519 with: runs_on: ${{ matrix.os }} flutter_version: "3.47.x" @@ -38,6 +41,7 @@ jobs: # The CLI's own test suite is run directly rather than through the test optimizer, # matching the CI behavior prior to adopting this shared workflow. test_optimization: false + run_cognitive_complexity: true pana: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1.21.1 From 6907af40d450fc23ab17dcf85610d5b0b08714ab Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Thu, 1 Oct 2026 14:27:27 +0200 Subject: [PATCH 2/3] ci: temporarily force a full cognitive complexity scan --- .github/workflows/very_good_cli.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/very_good_cli.yaml b/.github/workflows/very_good_cli.yaml index a4aab27fc..c5a6dab2b 100644 --- a/.github/workflows/very_good_cli.yaml +++ b/.github/workflows/very_good_cli.yaml @@ -42,6 +42,9 @@ jobs: # matching the CI behavior prior to adopting this shared workflow. test_optimization: false run_cognitive_complexity: true + # TEMP: diffing against the root commit simulates the push-to-main full + # scan on a pull request. Revert before review. + cognitive_complexity_diff_base: aed35ed622031513fc2b7f046b081a647ef34f21 pana: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1.21.1 From 6f046a19fb8e602632c324a357e2220fb931f822 Mon Sep 17 00:00:00 2001 From: Marcos Sevilla Date: Thu, 1 Oct 2026 14:39:16 +0200 Subject: [PATCH 3/3] ci: run the build matrix without fail-fast --- .github/workflows/very_good_cli.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/very_good_cli.yaml b/.github/workflows/very_good_cli.yaml index c5a6dab2b..7ae41c2e8 100644 --- a/.github/workflows/very_good_cli.yaml +++ b/.github/workflows/very_good_cli.yaml @@ -25,6 +25,7 @@ on: jobs: build: strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest] permissions: