Skip to content
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

Run IOS unit tests on LUCI #19141

Merged
merged 7 commits into from Jun 23, 2020

Conversation

nturgut
Copy link
Contributor

@nturgut nturgut commented Jun 19, 2020

(1) change the version of simulator. luci bots only has 13.0
(2) skip failing tests
flutter/flutter#60040
flutter/flutter#60036
flutter/flutter#60033

Example run on infra: https://chromium-swarm.appspot.com/task?id=4cf78088e41b5310

Fixes: flutter/flutter#53690

@auto-assign auto-assign bot requested a review from GaryQian June 19, 2020 00:02
@nturgut nturgut marked this pull request as draft June 22, 2020 18:46
@nturgut nturgut marked this pull request as ready for review June 23, 2020 00:51
@auto-assign auto-assign bot requested a review from jason-simmons June 23, 2020 00:51
@nturgut nturgut requested review from yjbanov, mdebbar and harryterkelsen and removed request for GaryQian and jason-simmons June 23, 2020 00:51
/// is used for combining [shouldSkip] information with the `context`.
/// See: [_PointerEventContext] [_MouseEventContext] [_TouchEventContext].
/// TODO: https://github.com/flutter/flutter/issues/60033
class _BrowserUnitTestContext<T extends _BasicEventContext> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also considered using Tuple: https://pub.dev/packages/tuple

@mdebbar let me know if this looks good to you or should I changed to Tuple2.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is way more readable than Tuple2, because you can name and document the fields.

@@ -3,6 +3,10 @@
// found in the LICENSE file.

// @dart = 2.6
// This test failed on iOS Safari.
// TODO: https://github.com/flutter/flutter/issues/60040
@TestOn('chrome || firefox')
Copy link
Contributor

Choose a reason for hiding this comment

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

We should still run it in desktop Safari. The issue seems to be limited to the iOS Simulator: https://bugs.webkit.org/show_bug.cgi?id=191064.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Desktop safari is not running, there is a blocker on infra side.

Do you want to keep it for the local development?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right. I tested it locally with Safari Desktop: All tests passed!.

I changed the test to only skip for iOS-Safari.

/// is used for combining [shouldSkip] information with the `context`.
/// See: [_PointerEventContext] [_MouseEventContext] [_TouchEventContext].
/// TODO: https://github.com/flutter/flutter/issues/60033
class _BrowserUnitTestContext<T extends _BasicEventContext> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is way more readable than Tuple2, because you can name and document the fields.

lib/web_ui/test/engine/pointer_binding_test.dart Outdated Show resolved Hide resolved
@nturgut nturgut requested a review from yjbanov June 23, 2020 18:08
lib/web_ui/dev/test_platform.dart Outdated Show resolved Hide resolved
lib/web_ui/dev/test_platform.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

LGTM if LGT @mdebbar

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 24, 2020
zhongwuzw pushed a commit to zhongwuzw/engine that referenced this pull request Jun 24, 2020
* change the version of simulator. luci bots only has 13.0

* skip failing pointer binding tests

* skip path_metrics (canvaskit) and a method from surface_test

* fix analyzer errors

* remove extra added touch event context test

* removing left overs for screenshot debugging

* apply reviewers suggestion for skipping tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants