Re-land "Part 1: Skia Gold Testing"#36103
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Thanks for pointing out the differences. 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?