Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Dec 3, 2021

To facilitate upgrading to Xcode 13, run the tests on an iPhone 11 simulator, which is available on both Xcode 12 and 13.

Succeeded: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828886065297463201/+/u/test:_Scenario_App_Integration_Tests/stdout

Part of flutter/flutter#85555.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla google-cla bot added the cla: yes label Dec 3, 2021
@jmagman jmagman marked this pull request as draft December 3, 2021 07:05
@jmagman jmagman self-assigned this Dec 3, 2021
CGImageRef imageRefA = [self.image CGImage];
CGImageRef imageRefB = [image CGImage];

// The home bar at the bottom of the screen can be different shades of gray
Copy link
Member Author

Choose a reason for hiding this comment

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

I was hoping to use prefersHomeIndicatorAutoHidden similar to


But that makes it worse, the home indicator bar animates in and then animates out.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok to me.

Side node:
Is it possible to wait for the home indicator to be hidden with a XCTestExpectation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it possible to wait for the home indicator to be hidden with a XCTestExpectation?

Good idea! I checked springboard and there's a "Home Grabber" element.

@"PointerChange.hover event did not occur for a hover");
NSString* removeMessage = [NSString
stringWithFormat:@"%d,PointerChange.remove,device=0,buttons=0", lastHoverSequenceNumber + 1];
stringWithFormat:@"%ld,PointerChange.remove,device=0,buttons=0", lastHoverSequenceNumber + 1];
Copy link
Member Author

Choose a reason for hiding this comment

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

Fix a warning.

Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

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

LGTM

CGImageRef imageRefA = [self.image CGImage];
CGImageRef imageRefB = [image CGImage];

// The home bar at the bottom of the screen can be different shades of gray
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok to me.

Side node:
Is it possible to wait for the home indicator to be hidden with a XCTestExpectation?

XCUIElement* addTextField = application.textFields[@"ready"];
XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]);

GoldenTestManager* manager =
Copy link
Member Author

Choose a reason for hiding this comment

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

Make this test use GoldenTestManager so it isn't doing one-off screenshots.

@jmagman
Copy link
Member Author

jmagman commented Dec 4, 2021

@jmagman
Copy link
Member Author

jmagman commented Dec 4, 2021

Grr, it failed and we don't upload the failing xc results bundle https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828811169885771905/+/u/test:_Scenario_App_Integration_Tests/stdout

I'm not sure how to diagnose this in LUCI. I'm going to revert to the unfortunate pixel cropping check, and revisit this change after upgrading to Xcode 13 on the bots.

Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

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

LGTM when CI passes


// Sometimes even when the home bar indicator element no longer exists
// there's still a phantom animation. Wait another second to let it finish animating.
XCTWaiterResult waitResult =
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

The animation in question is in springboard, not in our app.

@jmagman jmagman added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Dec 7, 2021
@fluttergithubbot fluttergithubbot merged commit 9b74c21 into flutter:main Dec 7, 2021
@jmagman jmagman deleted the scenario-sim-14 branch December 7, 2021 18:59
jmagman added a commit that referenced this pull request Dec 7, 2021
jason-simmons pushed a commit that referenced this pull request Dec 7, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 8, 2021
zanderso pushed a commit to flutter/flutter that referenced this pull request Dec 8, 2021
* 9b74c21 Run iOS scenario apps on iPhone 11 and iOS 14 (flutter/engine#30104)

* 4108898 Add error handler for os.rmtree calls (flutter/engine#30169)

* 55c5e56 Don't run curl in verbose mode when --verbose set (flutter/engine#30170)

* a1fe531 Win32: Implement DispatchAccessibilityAction (flutter/engine#30187)

* a7a8024 Update buildroot to db6d037 (ToT). (flutter/engine#30171)

* 7ccf290 Revert "Run iOS scenario apps on iPhone 11 and iOS 14 (#30104)" (flutter/engine#30193)

* 1313e73 Add unconditional waits on fml::Semaphore. (flutter/engine#30165)

* 094ff9e Roll Fuchsia Mac SDK from EAlr46NQ8... to zMg5gNi2E... (flutter/engine#30190)

* a572ab5 Roll Fuchsia Linux SDK from WGMjaVH60... to s03VQc7lX... (flutter/engine#30191)

* 07c6f41 Roll Skia from f333f5614a9b to 06f3d68627c2 (24 revisions) (flutter/engine#30192)

* 8796f0f Update Swiftshader to dc0f131930 (flutter/engine#30188)

* c1e235d Add length guard to fix Windows build with VS2019 16.11.7 headers (flutter/engine#30189)

* 7831529 Roll Skia from 06f3d68627c2 to 1c4cf27965bd (2 revisions) (flutter/engine#30194)

* 5672f9e Document rationale for Dart VM flag prefix match (flutter/engine#30195)

* 1c10e68 Roll buildroot to 430b57c. (flutter/engine#30197)

* e32d04a Roll Skia from 1c4cf27965bd to 543b8681c7f2 (1 revision) (flutter/engine#30198)

* 6981c04 [ios platform view] fix overlay zPosition (flutter/engine#29930)

* efaccf0 renew cirrus key (flutter/engine#30186)

* 9b80c08 Roll Skia from 543b8681c7f2 to 00edeefab7f4 (1 revision) (flutter/engine#30200)

* 164045d Roll Fuchsia Mac SDK from zMg5gNi2E... to QeaP059wu... (flutter/engine#30203)

* 83b84d3 Roll Skia from 00edeefab7f4 to 21b8ccb7393c (3 revisions) (flutter/engine#30206)
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-ios waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants