-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Fix Android scenario_app
to actually run and block on CI
#50414
Fix Android scenario_app
to actually run and block on CI
#50414
Conversation
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
This reverts commit 20337ea.
scenario_app
to actually run and block on CI
Golden file changes are available for triage from new commit, Click here to view. |
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! One more thing you'll want to do, not necessarily in this PR, is to assert that the files were created. The way our Skia Gold infrastructure works, it doesn't report an error if you fail to create the images. For impeller I just introduced that count. I think ideally there would be a text file with the name of all the images that should be generated.
'smoke-test', | ||
help: 'runs a single test to verify the setup', | ||
negatable: false, | ||
valueHelp: 'empty to run dev.flutter.scenarios.EngineLaunchE2ETest, or specify a class', |
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.
valueHelp: 'empty to run dev.flutter.scenarios.EngineLaunchE2ETest, or specify a class', | |
defaultsTo: 'dev.flutter.scenarios.EngineLaunchE2ETest', | |
valueHelp: 'The class to execute.', |
or
valueHelp: 'empty to run dev.flutter.scenarios.EngineLaunchE2ETest, or specify a class', | |
valueHelp: 'The class to execute, defaults to dev.flutter.scenarios.EngineLaunchE2ETest', |
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.
Done.
if (useSkiaGold) { | ||
panic(<String>['skia gold client is unavailable']); | ||
} else { | ||
log('skia gold client is unavaialble'); |
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.
Should this be a bit louder since they are requesting it but it will fail? "Error: Skia gold's client, goldctl, is unavailable"?
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.
No. I added a clarification, this is in the non-CI case where it could be expected not to have Skia gold hooked up.
auto label is removed for flutter/engine/50414, due to - The status or check suite Linux Framework Smoke Tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
auto label is removed for flutter/engine/50414, due to - The status or check suite Linux Framework Smoke Tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Merging on red due to flakes. |
…143120) flutter/engine@e4a5acc...b1ba9f3 2024-02-07 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from kvEXgoydRYnW3UvX2... to CPiPDUwCrjHYf_lAR... (flutter/engine#50447) 2024-02-07 matanlurey@users.noreply.github.com Fix Android `scenario_app` to actually run and block on CI (flutter/engine#50414) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from kvEXgoydRYnW to CPiPDUwCrjHY If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
20337ea (now reverted) intentionally re-introduced a bug (#49938) on a now working test runner, and verified that (with some fixes in this PR), we can now catch regressions on CI with SkiaGold:
ExternalTextureTests_testCanvasSurface.png
This test shows that what previously was a picture has been reduced down to a single stretched pixel.
BEFORE:
AFTER:
ExternalTextureTests_testRotatedMediaSurface_180.png
Similar to above, but shows another bug (kClamp versus kRepeat)
BEFORE:
AFTER:
This PR now makes the
scenario_test
useful and blocking for Android engine rolls:goldctl
in the appropriate configs.