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

Firebase test for Platform Views on iOS #11350

Merged
merged 5 commits into from
Aug 21, 2019
Merged

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Aug 21, 2019

  • Cleans up the test project a bit (gets rid of some warnings)
  • Adds a golden for an older version of the iPhone 8+
  • Fixes the file namne for the existing golden for a newer version of the iPhone 8+
  • Adds a script to run the test on firebase testlab on an iPhone 8+

Once this can land, I'll update the recipe to run this in addition to the simulator tests.

Then I think I'm good to land #11070

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM stamp from a Japanese personal seal

--results-dir=engine_scenario_test/$GIT_REVISION/$BUILD_ID \


popd
Copy link
Member

Choose a reason for hiding this comment

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

nit: pushds and popds don't balance. Is that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Will fix

if (golden) {
XCTAttachment* goldenAttachment = [XCTAttachment attachmentWithImage:golden];
goldenAttachment.lifetime = XCTAttachmentLifetimeKeepAlways;
[self addAttachment:goldenAttachment];
} else {
NSLog(@"This test will fail - no golden named %@ found. Follow the steps in the README to add "
Copy link
Member

Choose a reason for hiding this comment

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

XCTFail?

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 want it to continue so it will generate the potentially good screenshot for you

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 guess I could generate the good screen shot, attach it, and fail though - which would fail slighty faster than I currently am. WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

It would be better for the test failure to suggest what to do than have to dig through logs.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM

@dnfield dnfield merged commit 4b5ffb0 into flutter:master Aug 21, 2019
@dnfield dnfield deleted the fix_test branch August 21, 2019 19:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 21, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 21, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 21, 2019
git@github.com:flutter/engine.git/compare/ab097a59faf5...1efb5b7

git log ab097a5..1efb5b7 --no-merges --oneline
2019-08-21 dnfield@google.com update sim script (flutter/engine#11355)
2019-08-21 dnfield@google.com Firebase test for Platform Views on iOS (flutter/engine#11350)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop
the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants