这是indexloc提供的服务,不要输入任何密码
Skip to content

[flutter_tools] switch web integration tests to use html #85325

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 10 commits into from
Jul 12, 2021

Conversation

jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Jun 25, 2021

canvaskit is pulled from the net and may require more work than html for these test bots

Need to add loops because of #86202

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 25, 2021
@jonahwilliams jonahwilliams requested a review from zanderso June 25, 2021 16:21
@google-cla google-cla bot added the cla: yes label Jun 25, 2021
@zanderso
Copy link
Member

It looks like the html version of the hot restart test is failing with a timeout in the presubmit checks.

@jonahwilliams
Copy link
Contributor Author

gosh darn it

@zanderso
Copy link
Member

gosh darn it

If it fails more consistently now, that is progress.

@jonahwilliams
Copy link
Contributor Author

Yup, fairly consistent now - at least I can debug this locally!

@jonahwilliams
Copy link
Contributor Author

these tests should be passing now, besides customer tests being broken

@jonahwilliams
Copy link
Contributor Author

@zanderso PTAL

runApp(MyApp());
// See https://github.com/flutter/flutter/issues/86202
if (kIsWeb) {
while (true) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: check indentation.


void main() async {
WidgetsFlutterBinding.ensureInitialized();
final ByteData message = const StringCodec().encodeMessage('AppLifecycleState.resumed')!;
await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) { });
runApp(MyApp());
// See https://github.com/flutter/flutter/issues/86202
Copy link
Member

Choose a reason for hiding this comment

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

To make sure I understand, the solution to prints getting dropped that is being used here is to just call runApp repeatedly? When does it stop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, run app causes a rebuild which triggers more prints. It stops when the app is stopped

@@ -170,8 +170,7 @@ void main() {
await startPaused(expressionEvaluation: true);
await evaluateComplexExpressionsInLibrary(flutter);
});
}, skip: true, // Flaky tests: https://github.com/flutter/flutter/issues/84012
);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to unskip the other test as well (line 107 above)?

@@ -27,7 +27,7 @@ void main() {

await flutter.run(
withDebugger: true, startPaused: true, chrome: true,
additionalCommandArgs: <String>['--verbose']);
additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we unskip the test on line 51?

@@ -32,7 +32,7 @@ void main() {
});

testWithoutContext('hot restart works without error', () async {
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose']);
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we unskip the tests on lines 54 and 73?

@annagrin annagrin self-requested a review July 9, 2021 22:11
Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams
Copy link
Contributor Author

Lets see how the other skipped tests do

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

4 participants