Skip to content

Need to analyze more flutter code in try-bots #46063

Closed

Description

@srawlins

I broke the flutter engine roll when I introduced a new Hint, unnecessary_import. This hint has violations in flutter plugins, cocoon, generated flutter tests, and flutter customer code. So I'd like a try-bot (existing or new) to check these things:

Perhaps just the various code tested here: https://github.com/flutter/tests/tree/master/registry

If adding (some or all of) these tests would slow down flutter-analyze, we could do a new, opt-in try-bot, or rely on HHH?

Activity

  1. srawlins commented on May 18, 2021

    @srawlins
    MemberAuthor
  2. added
    area-infrastructureUse area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
    on May 18, 2021
  3. pq commented on May 18, 2021

    @pq
    Member

    Yes, please!

  4. srawlins commented on May 18, 2021

    @srawlins
    MemberAuthor

    I forgot to mention the other recent issue on this topic: #44811

  5. devoncarew commented on May 18, 2021

    @devoncarew
    Contributor

    I think a good set of repos we'd want to have try-bot capability for could be:

    • flutter/flutter
    • flutter/engine
    • flutter/plugins
    • flutter/packages

    and, we'd like some analysis awareness of flutter/tests, though the analysis there will likely be more lenient. The goal would be to catch API breakages in user contributed tests, not to fail when there are minor analysis fixes upstream in dart. So think analysis errors, not analysis info level items (or, verifying that there aren't any issues caught by flutter_lints/flutter.yaml, or some other similar mechanism).

  6. devoncarew commented on May 18, 2021

    @devoncarew
    Contributor

    cc @Hixie @goderbauer as I discussed some of the above with them today

  7. goderbauer commented on May 19, 2021

    @goderbauer
    Contributor

    @devoncarew What I forgot to mention in our brief chat yesterday: We also analyze the samples embedded in our API docs with this script here on our CI: https://github.com/flutter/flutter/blob/master/dev/bots/analyze_sample_code.dart

    If it's not already happening, that may be worthwhile to run on the try bots as well to avoid breakages caused by the samples.

  8. srawlins commented on Jun 15, 2021

    @srawlins
    MemberAuthor

    @devoncarew I think you finished this recently?

  9. devoncarew commented on Jun 15, 2021

    @devoncarew
    Contributor

    Mostly. We now check flutter/plugins and the flutter/flutter generated code. We've relaxed the restrictions so we won't generally fail on flutter customer code. We don't check flutter/cocoon. I think this can be closed; I'm not 100% sold on analyzing flutter/cocoon, but I suppose we could add it to one of the scripts if we wanted to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-infrastructureUse area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions