-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Properly report dart format
errors
#57206
Conversation
ci/bin/format.dart
Outdated
incorrect = completedJobs.where((WorkerJob job) => job.result.exitCode == 1); | ||
final List<WorkerJob> incorrectJobs = incorrect = []; | ||
for (final WorkerJob job in completedJobs) { | ||
if ((job.result.exitCode == 1 && job.result.stderr.isNotEmpty) || job.result.exitCode > 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't the exit code also be negative?
Seems like you want job.result.exitCode != 0 && (job.result.stderr.isNotEmpty || job.result.exitCode != 1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto label is removed for flutter/engine/57206, due to - The status or check suite Linux local_engine_builds has failed. Please fix the issues identified (or deflake) before re-applying this label. |
This applied the improvements from flutter/engine#57206 to the flutter/flutter version of that script (hopefully, we can deduplicate this soon with the repo merge).
…160396) flutter/engine@4944aeb...1d2eb3f 2024-12-16 [email protected] Properly report `dart format` errors (flutter/engine#57206) 2024-12-16 [email protected] Roll Skia from 7fc6934b2034 to 2c5159518cf2 (1 revision) (flutter/engine#57229) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
`dart format` can fail (e.g. if a file contains invalid dart code). Previously, those failures were swallowed. This change adds logic to properly print those failures to the terminal.
dart format
can fail (e.g. if a file contains invalid dart code). Previously, those failures were swallowed. This change adds logic to properly print those failures to the terminal.