-
Notifications
You must be signed in to change notification settings - Fork 1.7k
analyzer code presubmit checks #53578
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
Comments
These are great. I want these checks so badly. Some other ones that I've burned time on:
|
We do need to be careful not to add to much time to the presubmits. We might want to time some of these tests to ensure that they're all reasonable. Of course, it won't be as big an issue if they can run only when a specific file has been modified. |
I agree that any additional checks that we add should be fast, or we don't add them.
and Because they take too much time, and I care about these checks only when I'm ready to sent CL. Sometimes this causes me an issue that something fails on bots because I forgot to check. |
All this logic sounds like it would fit very well into The comment about expensiveness does matter, though at least if the checks are conditional on file paths, then at least they're only paid for by the relevant teams :) |
On my laptop,
|
See the issue below, and the code comments, for the further plans. I plan on adding whichever ones we find useful, as long as I can keep them performant. This one is performant, and we can discuss possible problematic checks on the issue. Work towards #53578 Change-Id: Ie3980e6194e46574a01ad3e0bd8e36f7ac248917 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329620 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Reviewed-by: Kallen Tu <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Jonas Termansen <[email protected]>
Work towards #53578 Change-Id: Ia07d999abc2fcf4b8195c9f7688799bc099a1d88 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341385 Reviewed-by: Phil Quitslund <[email protected]> Reviewed-by: Alexander Thomas <[email protected]> Reviewed-by: Jonas Termansen <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
We brought up recently checks that we might want to make presubmit (on upload) checks for analyzer, Hopefully we can make some of these only trigger when certain files are changed:
pkg/analyzer/messages.yaml
: runpkg/analyzer/tool/messages/messages_test.dart
pkg/analyzer/messages.yaml
: check that Dart error code has been generated (dart pkg/analyzer/tool/messages/generate.dart
)pkg/analyzer/messages.yaml
: check that Dart error code has been generated (dart pkg/analyzer/tool/diagnostics/generate.dart
)pkg/analyzer/lib/src/error/error_code_values.g.dart
orpkg/linter/lib/src/rules.dart
: runverify_error_fix_status
.pkg/{analyzer/analysis_server}/test
files: check thattest_all.dart
files are updated.pkg/{analyzer,analysis_server,linter,...}
files: check that files are sorted.pkg/linter/lib/src/rules
files: check thatmachine.json
is not outdated.CC @bwilkerson @scheglov @kallentu @pq @keertip
The text was updated successfully, but these errors were encountered: