Skip to content

add2app test - #27712

Merged
dnfield merged 30 commits into
flutter:masterfrom
dnfield:add2app_test
Feb 23, 2019
Merged

dnfield merged 30 commits into
flutter:masterfrom
dnfield:add2app_test

Conversation

@dnfield

@dnfield dnfield commented Feb 9, 2019 •

Copy link
Copy Markdown
Contributor

This will fix #24117

Runs some earl grey tests on an iOS simulator on Cirrus.

@dnfield

dnfield commented Feb 9, 2019

Copy link
Copy Markdown
Contributor Author

This is failing as expected. Once flutter-team-archive/engine#7610 lands, we should be able to fix the failing test and make this work. Once that happens, we can just delete the existing ios_add2app repo. I was under the impression it would be important to have that separately from this because I thought we'd have to run certain commands in it that we don't actually have to to run these tests.

@dnfield dnfield changed the title [WIP] add2app test add2app test Feb 9, 2019
@dnfield
dnfield requested a review from cbracken February 9, 2019 16:50
@dnfield

dnfield commented Feb 9, 2019

Copy link
Copy Markdown
Contributor Author

@cbracken sorry about the size of this PR, but this is basically all of the content from github.com/flutter/ios_add2app. It figured out a way to test it without Flutter yelling at me for living in the Flutter repo.

@zoechi zoechi added a: tests "flutter test", flutter_test, or one of our tests engine flutter/engine related. See also e: labels. a: existing-apps Integration with existing apps via the add-to-app flow labels Feb 11, 2019
@dnfield

dnfield commented Feb 14, 2019

Copy link
Copy Markdown
Contributor Author

@xster I've implemented Greg's suggestions and gotten that squared away. The Objective C app is ready for review.

@gspencergoog

Copy link
Copy Markdown
Contributor

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

For the Cirrus config, at least.

@xster xster left a comment

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.

LGTM

Comment thread dev/integration_tests/android_views/ios/Podfile Outdated
Comment thread dev/integration_tests/ios_add2app/flutterapp/.android.bak/Flutter/build.gradle Outdated
Comment thread dev/integration_tests/ios_add2app/Podfile Outdated

The following functionality is currently implemented:

1. A regular iOS view controller, similar to the default `flutter create` template.

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.

A regular fullscreen instance of a FlutterViewController? Regular iOS view controller sounds non-flutter related.

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.

It is. That one is just a regular iOS implementation for reference. It's also used in one of the tests for platform interaction.

The following functionality is currently implemented:

1. A regular iOS view controller, similar to the default `flutter create` template.
1. A FlutterViewController subclass that takes over full screen. Demos showing this both from a cold/fresh engine state and a warm engine state.

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.

Does the subclass do anything? Makes one ask what's the difference between this one and 1.

Comment thread dev/integration_tests/ios_add2app/flutterapp/lib/main.dart
Comment thread dev/integration_tests/ios_add2app/flutterapp/lib/main.dart Outdated
Comment thread dev/integration_tests/ios_add2app/ios_add2app/MainViewController.h Outdated
@dnfield

dnfield commented Feb 22, 2019

Copy link
Copy Markdown
Contributor Author

@fkorotkov - it looks like the tests end up passing here, and on the TEST SUCCEEDED! things spin for 5 more minutes until it says agent has stopped responding. This is on a Mac - it's the add2app-macos test. Any idea what's going on here? This worked yesterday...

@fkorotkov

Copy link
Copy Markdown
Contributor

@dnfield logs are telling that the agent just stopped sending heartbeats. Weird that it occurred twice on this PR. Trying to reproduce...

@dnfield

dnfield commented Feb 22, 2019

Copy link
Copy Markdown
Contributor Author

I have made some changes but nothing that should cause the test process to hang. Are you able to see if any xcode related processes are still running after the success message?

@fkorotkov

Copy link
Copy Markdown
Contributor

My task hasn't got to tests yet https://cirrus-ci.com/task/6590401151500288

@fkorotkov

Copy link
Copy Markdown
Contributor

@dnfield I did VCNed into the VM that were running the task and witness a VM crash 😲

Took this screenshot a few seconds before.

screen shot 2019-02-22 at 4 50 03 pm

Not sure what's going on there. What is add2app doing differently than the other tasks?

@fkorotkov

Copy link
Copy Markdown
Contributor

And yes. The task got to ** TEST SUCCEEDED **. It seems that the VM crashed on a clean up? 🤔

@dnfield

dnfield commented Feb 22, 2019

Copy link
Copy Markdown
Contributor Author

It runs xcodebuild and requires the simulator to be present to run some integration tests.

My last commit (where this started failing) was just some cleanup of documentation and unrelated files...

@fkorotkov

Copy link
Copy Markdown
Contributor

Nothing has changed to the macOS VMs lately. The only suspicious thing might be that there are many concurrent VMs are running right now since it's working hours. I will investigate over the weekend and report back here.

@fkorotkov

Copy link
Copy Markdown
Contributor

Haven't found anything on my own. Pinged Anka folks to help with directions.

@dnfield

dnfield commented Feb 23, 2019

Copy link
Copy Markdown
Contributor Author

Fwiw I'm seeing a lot of timeouts and slowness this afternoon. Hopefully will just pass

@fkorotkov

Copy link
Copy Markdown
Contributor

@dnfield it seems it was a bug in the new nested virtualization feature which is enabled for mojave VMs but wasn't for High Sierra. Disabled it and now my task passed. Could you please re-run?

@dnfield

dnfield commented Feb 23, 2019

Copy link
Copy Markdown
Contributor Author

Looks like it's working now, thanks

@dnfield
dnfield merged commit b484a91 into flutter:master Feb 23, 2019
@dnfield
dnfield deleted the add2app_test branch February 23, 2019 17:56
dnfield added a commit that referenced this pull request Feb 23, 2019
@dnfield dnfield mentioned this pull request Feb 23, 2019
@dnfield
dnfield restored the add2app_test branch February 23, 2019 18:05
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: existing-apps Integration with existing apps via the add-to-app flow a: tests "flutter test", flutter_test, or one of our tests engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an Add-to-App devicelab test for iOS

6 participants