Skip to content

ci: disable Flutter SDK cache for floating 3.x version#1389

Merged
spydon merged 1 commit into
mainfrom
fix/flutter-3x-windows-cache
Jun 9, 2026
Merged

ci: disable Flutter SDK cache for floating 3.x version#1389
spydon merged 1 commit into
mainfrom
fix/flutter-3x-windows-cache

Conversation

@spydon

@spydon spydon commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The supabase_flutter CI was failing on "Test Flutter v3.x on windows-latest" at the Setup Flutter step with no visible error output.
  • Root cause: cache: true restores a pre-compiled Flutter SDK (~1.8 GB) containing runner-image-specific binaries. When the runner image is updated, the cached binaries fail silently after extraction. The same issue can affect macOS and Linux runners.
  • 3.19.x is unaffected because it resolves to a pinned version whose cache remains stable across runner updates. Only the floating 3.x (latest stable) is flaky.
  • Fix: disable the SDK cache for all 3.x combinations via cache: ${{ matrix.flutter-version != '3.x' }}.

Test plan

  • "Test Flutter v3.x on windows-latest" passes without the stale-cache failure
  • "Test Flutter v3.x on ubuntu-latest" and "Test Flutter v3.x on macos-latest" are unaffected
  • All 3.19.x matrix combinations still use the cache as before

@spydon spydon requested a review from a team as a code owner June 9, 2026 15:33
@spydon spydon force-pushed the fix/flutter-3x-windows-cache branch from b35037d to 17705c9 Compare June 9, 2026 15:34
The cached SDK contains runner-image-specific binaries that break
silently when the Windows runner image is updated, causing Setup Flutter
to fail with no error output. 3.19.x is unaffected because its cache is
stable; only the floating 3.x (latest stable) is problematic.
@spydon spydon force-pushed the fix/flutter-3x-windows-cache branch from 17705c9 to 6f7f3a5 Compare June 9, 2026 15:36
@spydon spydon changed the title ci: disable Flutter SDK cache for 3.x on Windows ci: disable Flutter SDK cache for floating 3.x version Jun 9, 2026
@spydon spydon merged commit 751070a into main Jun 9, 2026
17 of 18 checks passed
@spydon spydon deleted the fix/flutter-3x-windows-cache branch June 9, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants