Description
This is a meta issue to track work related to 1) adding more repositories to our flutter-analyze try bot, and 2) relax some of the analysis settings on the flutter/tests contributed tests repo. The general goal for these changes are to enable the analyzer team to be aware of breakages that their changes would cause, know which places will need to be forward patched to not impede the sdk -> flutter roll process, and to omit a class of issues from needing to be patched (to not break the roll process for some category of changes).
Currently most (all?) of the flutter/tests user contributed tests fail on any analysis change. However, the intent here is more to make sure that flutter is aware of breaking API changes. Below, I propose to change the tests to only fail on more severe analysis issues (errors or warnings). We may in the future make this more sophisticated - to leverage package:flutter_lints in some capacity to also fail on some set of lint warnings.
- have flutter-analyze analyze
flutter/flutter
(it's doing this today; the potential improvement to this being to also run analysis for dartdoc sample code - https://github.com/flutter/flutter/blob/master/dev/bots/analyze_sample_code.dart) - have flutter-analyze analyze
flutter/plugins
; see the flutter-analyze try bot should also speculatively analyze flutter/plugins #45873 - have flutter-analyze analyze
flutter/engine
; we're doing this now, but might want to do some additional work to make it easier to use the same analysis script as what flutter/engine does - have flutter-analyze analyze
flutter/packages
- update user contributed scripts in the
flutter/tests
registry/ dir to only fail on errors (or possibly warnings); see https://github.com/flutter/flutter/pull/82778/checks?check_run_id=2606817706 for a list of failed locations for the recent unused imports change (PR: update calls to 'flutter analyze' to pass --no-fatal-infos flutter/tests#105) - update the readme in
flutter/tests
to indicate that contributed tests should not fail on info level analysis items (or, possibly, warning level items) - come back and decide whether we want to change the flutter/tests analysis criteria to be more sophisticated than just being based on analysis issue severity (perhaps using something based on package:flutter_lints?)
- decide whether we want to exclude some flutter repos from our try bot (flutter/cocoon ?) and rely on the HHH bot to catch issues post-commit
See #46063 for more context; https://github.com/flutter/tests/tree/master/registry for the flutter customer tests repo.