Skip to content

fix: broaden analyzer constraint in test_and_fix for Flutter beta compatibility - #1040

Merged
gspencergoog merged 3 commits into
flutter:mainfrom
gspencergoog:fix-ci-analyzer-constraint
Sep 23, 2026
Merged

gspencergoog merged 3 commits into
flutter:mainfrom
gspencergoog:fix-ci-analyzer-constraint

Conversation

@gspencergoog

@gspencergoog gspencergoog commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Broadens the analyzer constraint in tool/test_and_fix/pubspec.yaml from ">=8.0.0 <10.0.2" to ">=8.0.0", resolving a pub workspace version-solving deadlock on the Flutter beta channel.

Changes

  • In tool/test_and_fix/pubspec.yaml, removed the <10.0.2 upper bound on analyzer.
  • Removed the outdated comment referencing the Flutter SDK pinning meta 1.17.0 (both Flutter stable and beta now ship with meta 1.19.0).

Context & Root Cause

In Flutter beta-3.49.0-0.1.pre, flutter_test from the Flutter SDK pins matcher: 0.12.20 and test_api: 0.7.14.
Any version of package:test compatible with test_api 0.7.14 is test >= 1.31.2, which requires analyzer >= 13.0.0 < 15.0.0.
Because tool/test_and_fix is part of the root pub workspace (genui_monorepo) and constrained analyzer < 10.0.2, the pub solver could not resolve a valid dependency graph on Flutter beta. This caused dart pub get to fail across all (beta) matrix CI jobs on main and all PRs.

Testing

  • Ran dart test tool/test_and_fix/test locally (all 22 tests pass).
  • Verified static analysis with analyze_files (0 diagnostics).

In tool/test_and_fix, analyzer was previously capped at <10.0.2 due to
an old meta 1.17.0 pin in the Flutter SDK. Flutter stable and beta now
ship with meta 1.19.0.

Flutter beta-3.49.0 pins test_api 0.7.14 in flutter_test, which requires
test >= 1.31.2, which in turn requires analyzer >= 13.0.0. The <10.0.2
cap caused pub version solving to fail across all beta matrix CI jobs.

Broaden analyzer constraint to '>=8.0.0 <15.0.0' to permit analyzer
resolution on Flutter beta while maintaining backward compatibility with
Flutter stable.
gemini-code-assist[bot]

This comment was marked as resolved.

…in data_model_test

- Regenerate ai_provider.g.dart for WhenComplete runBuild() override.
- Replace package:flutter/src/foundation/change_notifier.dart with package:flutter/foundation.dart in data_model_test.dart.
@gspencergoog
gspencergoog merged commit 171a4bb into flutter:main Sep 23, 2026
44 checks passed
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