-
Notifications
You must be signed in to change notification settings - Fork 6k
Do not run real processes in clang_tidy_test.dart
#45748
Do not run real processes in clang_tidy_test.dart
#45748
Conversation
clang_tidy_test.dart
zanderso
left a comment
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.
Thanks!
| @@ -0,0 +1,117 @@ | |||
| // Copyright 2013 The Flutter Authors. All rights reserved. | |||
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.
I don't see an implementation of something like this anywhere else in the engine repo. At some point, I'd guess that we'll want to pull this out to its own package in the engine repo to share among other packages, or upstream something like https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/src/fake_process_manager.dart to https://github.com/google/process.dart
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.
Yeah I agree with that! I'd probably say:
- Pull this into
tools/pkg/fake_process_manageras soon as we need it somewhere else. - Chat with Chris about moving
flutter_tools' implementation
…134676) flutter/engine@5e671d5...b71b366 2023-09-13 matanlurey@users.noreply.github.com Do not run real processes in `clang_tidy_test.dart` (flutter/engine#45748) 2023-09-13 30870216+gaaclarke@users.noreply.github.com [Impeller] Adds test to verify wide gamut indexed png decompression fix for Skia. (flutter/engine#45399) 2023-09-13 skia-flutter-autoroll@skia.org Roll Skia from 284c333d7eb2 to 78d18d509475 (2 revisions) (flutter/engine#45769) 2023-09-13 skia-flutter-autoroll@skia.org Roll Skia from 3ff43577d04b to 284c333d7eb2 (1 revision) (flutter/engine#45768) 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 bdero@google.com,rmistry@google.com,zra@google.com 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#134676) flutter/engine@5e671d5...b71b366 2023-09-13 matanlurey@users.noreply.github.com Do not run real processes in `clang_tidy_test.dart` (flutter/engine#45748) 2023-09-13 30870216+gaaclarke@users.noreply.github.com [Impeller] Adds test to verify wide gamut indexed png decompression fix for Skia. (flutter/engine#45399) 2023-09-13 skia-flutter-autoroll@skia.org Roll Skia from 284c333d7eb2 to 78d18d509475 (2 revisions) (flutter/engine#45769) 2023-09-13 skia-flutter-autoroll@skia.org Roll Skia from 3ff43577d04b to 284c333d7eb2 (1 revision) (flutter/engine#45768) 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 bdero@google.com,rmistry@google.com,zra@google.com 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Partial work towards flutter/flutter#133190.
Some context, from @zanderso on chat:
@matanlurey:
@zanderso:
All this PR does is allow providing a
ProcessManager(defaults toLocalProcessManager, i.e.dart:io) throughout the tool. Then, for tests, I've implemented a very minimal fake of bothProcessManagerandProcess(it would be nice to share code w/ say,flutter_tool, but lots of work/overhead for very little surface area).After this CL, no tests in
clang_tidy_test.dartactually run a process. This should unblock adding new features (i.e. original intent of flutter/flutter#133190) without causing headaches for others/CI?