-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Re-land "Part 1: Skia Gold Testing" #36103
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
Conversation
…tion for Skia Gold test names.
… may need to move to xcode10.1 shard
Piinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've notated the lines that have changed (and why) from the original change that was reverted, in the hopes that it will make for easier review.
cc/ @goderbauer @dnfield @tvolkert
| use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' | ||
| osx_instance: | ||
| image: mojave-xcode-10.1 | ||
| image: mojave-xcode-10.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes time drift on Cirrus.
| test_all_script: | ||
| - ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976 | ||
| - dart --enable-asserts dev/bots/test.dart | ||
| on_failure: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to help identify time drift if it should happen again. Time issues are referenced at the top of this shard.
| test_all_script: | ||
| - ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976 | ||
| - dart --enable-asserts dev/bots/test.dart | ||
| on_failure: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to help identify time drift if it should happen again. Time issues are referenced at the top of this shard.
| @@ -0,0 +1,14 @@ | |||
| $url= "https://storage.googleapis.com/chrome-infra/depot_tools.zip" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to work on Cirrus. Verified in earlier commit by using a mock-post-submit state in pre-submit to run Skia tests.
| final String cirrusCI = platform.environment['CIRRUS_CI'] ?? ''; | ||
| final String cirrusPR = platform.environment['CIRRUS_PR'] ?? ''; | ||
| final String cirrusBranch = platform.environment['CIRRUS_BRANCH'] ?? ''; | ||
| final String goldServiceAccount = platform.environment['GOLD_SERVICE_ACCOUNT'] ?? ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the availability of the service account as a condition for using the FlutterSkiaGoldFileComparator. There are some shards that meet the first three conditions, but are not meant for executing skia gold testing.
| String get _serviceAccount => platform.environment[_kServiceAccountKey]; | ||
|
|
||
| @override | ||
| Directory get comparisonRoot => flutterRoot.childDirectory(fs.path.join('bin', 'cache', 'pkg', 'skia_goldens')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than putting the generated images in the same folder 'goldens', created a separate one for skia files.
| _goldctl, | ||
| authArguments, | ||
| ); | ||
| // TODO(Piinks): Re-enable after Gold flakes are resolved, https://github.com/flutter/flutter/pull/36103 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky behavior from the skia gold service needs to be resolved before these exceptions can be enabled.
| imgtestInitArguments, | ||
| ); | ||
|
|
||
| // TODO(Piinks): Re-enable after Gold flakes are resolved, https://github.com/flutter/flutter/pull/36103 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky behavior from the skia gold service needs to be resolved before these exceptions can be enabled.
tvolkert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out the differences. LGTM!
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
The linux integration test states it is queued, but going into Cirrus it is all green. |
Description
New PR to re-land reverted changes from #33688
Current State
Ready for review, changes from #33688 have been notated.
In a previous state of this PR, Cirrus behavior was validated by mocking post-submit conditions.
Issues resolved from original PR:
Notes:
Related Issues
Addresses:
testWidgets#16859Tests
Added/Relocated/Updated:
flutter_test/test/matchers_test.dartflutter_test/test/goldens_test.dartflutter_goldens/test/flutter_goldens_test.dartmatchesGoldenFilewith askipin place for platforms other than Linux.Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?