Skip to content

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

Merged
fluttergithubbot merged 10 commits into
flutter:masterfrom
jonahwilliams:fix_test_win
Jul 12, 2021
Merged

fluttergithubbot merged 10 commits into
flutter:masterfrom
jonahwilliams:fix_test_win

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Jun 25, 2021 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

gosh darn it

@zanderso

Copy link
Copy Markdown
Member

gosh darn it

If it fails more consistently now, that is progress.

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

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

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

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

@jonahwilliams

Copy link
Copy Markdown
Contributor Author

@zanderso PTAL

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: check indentation.

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
Copy Markdown
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
Copy Markdown
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

});
}, skip: true, // Flaky tests: https://github.com/flutter/flutter/issues/84012
);
});

Copy link
Copy Markdown
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)?

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

Copy link
Copy Markdown
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?


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
Copy Markdown
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

@annagrin annagrin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams

Copy link
Copy Markdown
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