Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@johnmccutchan
Copy link
Contributor

  • Default to dumping out lint logs (can be disabled with --quiet flag).
  • Add Logger.fatal which logs an error and throws a FatalError which is caught in main.
  • Simplify findDartBinDirectory implementation.
  • Make JSON serialized process artifacts more human readable.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm modulo test failures. I think it's possible to write unit tests of some of this as well, like the fatal() log message, at least.

- Default to dumping out lint logs (can be disabled with `--quiet` flag).
- Add Logger.fatal which logs an error and throws a FatalError which is caught
  in main.
- Simplify `findDartBinDirectory` implementation.
- Make JSON serialized process artifacts more human readable.
platform: FakePlatform(operatingSystem: Platform.linux),
platform: FakePlatform(
operatingSystem: Platform.linux,
resolvedExecutable: io.Platform.resolvedExecutable),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: please put the ), on a new line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not be manually formatting code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I agree in principle, we should follow our project's style guide. For now, this means manual formatting. In the future we might be able to use the new Dart formatter. This file was already using Flutter's formatting, I'm not a huge fan of being inconsistent within a single file.

@johnmccutchan
Copy link
Contributor Author

lgtm modulo test failures. I think it's possible to write unit tests of some of this as well, like the fatal() log message, at least.

added test here.

@johnmccutchan johnmccutchan merged commit d65c7e4 into flutter:main Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 13, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 13, 2024
…145113)

flutter/engine@c889344...d65c7e4

2024-03-13 [email protected] Small improvements to et lint command (flutter/engine#51372)
2024-03-13 [email protected] [Impeller] cleanup and test vk image usage flags. (flutter/engine#51301)

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],[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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants