Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

we should enhance our CI system so that it's not possible to commit Dart code with analysis errors #29318

Closed
1 of 3 tasks
devoncarew opened this issue Apr 10, 2017 · 3 comments
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@devoncarew
Copy link
Member

devoncarew commented Apr 10, 2017

See 69fa11d, a fix for a different CL committed several days earlier, introducing analysis errors into the codebase. This happens on a regular basis - developers not using analysis server based products commit broken code, and the CI system doesn't notice or complain.

I believe the steps here are:

  • fix the command-line analyzer so that it respects analysis_options.yaml file excludes Analyzer CLI ignoring analysis options excludes #26212
  • enhance the CI system so that you can analyze a project as part of the build (currently only code referenced by tests gets analyzed; we want to be able to do something like analyze all of pkg/dev_compiler)
  • change most or all of our packages in //pkg/ to being analyzed on every commit

/cc @whesse, @bwilkerson

@devoncarew devoncarew added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. P1 A high priority bug; for example, a single project is unusable or has many test failures area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). labels Apr 10, 2017
@bwilkerson
Copy link
Member

We've done most of the work already. We have a try-bot running this analysis of all of the analyzer code (modulo analyzer_cli because we need the first step to be done first), but we need to move it from a try-bot to a regular bot. (There's a separate issue for the second two steps, but I'm not taking the time to look for it right now.)

@whesse
Copy link
Contributor

whesse commented Apr 10, 2017

The builder that analyzes packages in /pkg is on the regular waterfall, at https://build.chromium.org/p/client.dart/builders/analyze-linux-be
It is not a try-bot, if by that you mean it is on the dart.fyi waterfall.

@munificent munificent removed area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. labels Jul 11, 2018
dart-bot pushed a commit that referenced this issue Jul 12, 2018
Bug: #29318
Change-Id: Iccb16ddbccbb43fa7a12eb818c2dde3a75700b97
Reviewed-on: https://dart-review.googlesource.com/64663
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: William Hesse <whesse@google.com>
@devoncarew
Copy link
Member Author

This is mostly done - all the code in pkg/ is now analyzed, as well as a few other projects in the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

4 participants