Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add web workflow to default validators #39006

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

Merged
merged 3 commits into from
Aug 22, 2019

Conversation

jonahwilliams
Copy link
Member

Description

The WebWorkflow was missing from the doctor validators. This would prevent a user that has an available "web device" from running flutter if they didn't have any other functioning devices.

Discovered by @natebosch

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 21, 2019
@jonahwilliams jonahwilliams requested a review from zanderso August 21, 2019 22:22
@@ -845,3 +859,4 @@ class VsCodeValidatorTestTargets extends VsCodeValidator {
}

class MockProcessManager extends Mock implements ProcessManager {}
class MockPlatform extends Mock implements Platform {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, fixed

@codecov
Copy link

codecov bot commented Aug 21, 2019

Codecov Report

Merging #39006 into master will increase coverage by 1.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #39006      +/-   ##
==========================================
+ Coverage   55.41%   56.42%   +1.01%     
==========================================
  Files         195      195              
  Lines       18345    18294      -51     
==========================================
+ Hits        10165    10322     +157     
+ Misses       8180     7972     -208
Flag Coverage Δ
#flutter_tool 56.42% <100%> (+1.01%) ⬆️
Impacted Files Coverage Δ
packages/flutter_tools/lib/src/doctor.dart 73.8% <100%> (+13.53%) ⬆️
packages/flutter_tools/lib/src/macos/xcode.dart 32.14% <0%> (-21.43%) ⬇️
...s/flutter_tools/lib/src/windows/build_windows.dart 82.35% <0%> (-2.65%) ⬇️
packages/flutter_tools/lib/src/version.dart 90.73% <0%> (-2.1%) ⬇️
...utter_tools/lib/src/reporting/crash_reporting.dart 75% <0%> (-1.2%) ⬇️
packages/flutter_tools/lib/src/cache.dart 43.02% <0%> (-0.73%) ⬇️
packages/flutter_tools/lib/src/compile.dart 76.28% <0%> (-0.64%) ⬇️
packages/flutter_tools/lib/src/base/utils.dart 92.57% <0%> (-0.5%) ⬇️
...ckages/flutter_tools/lib/src/base/fingerprint.dart 94.66% <0%> (ø) ⬆️
packages/flutter_tools/lib/runner.dart 71.11% <0%> (ø) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9aea03f...8e8a419. Read the comment docs.

@jonahwilliams jonahwilliams requested a review from yjbanov August 21, 2019 23:06
@@ -113,6 +113,9 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
if (windowsWorkflow.appliesToHostPlatform)
_workflows.add(windowsWorkflow);

if (webWorkflow.appliesToHostPlatform)
Copy link
Member

Choose a reason for hiding this comment

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

(optional, nit) switch to new syntax.

return _workflows ??= <Workflow>[
  if (iosWorkflow.appliesToHostPlatform) iosWorkflow,
  if (androidWorkflow.appliesToHostPlatform) androidWorkflow,
  ...
];

Copy link
Member Author

Choose a reason for hiding this comment

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

Worth doing, but there are some timing constraints with this fix...

@jonahwilliams jonahwilliams merged commit 9818d2d into flutter:master Aug 22, 2019
@jonahwilliams jonahwilliams deleted the fix_doctor_workflow branch August 22, 2019 16:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants