Skip to content
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

Merged

Conversation

matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Feb 6, 2024

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:

ExternalTextureTests_testCanvasSurface

AFTER:

ExternalTextureTests_testCanvasSurface

ExternalTextureTests_testRotatedMediaSurface_180.png

Similar to above, but shows another bug (kClamp versus kRepeat)

BEFORE:

ExternalTextureTests_testRotatedMediaSurface_180

AFTER:

ExternalTextureTests_testRotatedMediaSurface_180/cc


This PR now makes the scenario_test useful and blocking for Android engine rolls:

  • Add support for connecting to SkiaGold by depending on goldctl in the appropriate configs.
  • Add some useful local debugging flags for skipping SkiaGold or running specific tests (not used by default).
  • Failing to connect to Skia gold is now a test failure.

@flutter-dashboard
Copy link

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.

Changes reported for pull request #50414 at sha 84de0e4

@matanlurey matanlurey changed the title [DO NOT MERGE] Verify that an external texture bug will block presubmit (via Skia Gold) Fix Android scenario_app to actually run and block on CI Feb 7, 2024
@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #50414 at sha eae0d9e

Copy link
Member

@gaaclarke gaaclarke left a 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',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
valueHelp: 'empty to run dev.flutter.scenarios.EngineLaunchE2ETest, or specify a class',
defaultsTo: 'dev.flutter.scenarios.EngineLaunchE2ETest',
valueHelp: 'The class to execute.',

or

Suggested change
valueHelp: 'empty to run dev.flutter.scenarios.EngineLaunchE2ETest, or specify a class',
valueHelp: 'The class to execute, defaults to dev.flutter.scenarios.EngineLaunchE2ETest',

Copy link
Contributor Author

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');
Copy link
Member

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"?

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. I added a clarification, this is in the non-CI case where it could be expected not to have Skia gold hooked up.

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 7, 2024
Copy link
Contributor

auto-submit bot commented Feb 7, 2024

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-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 7, 2024
@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 7, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 7, 2024
Copy link
Contributor

auto-submit bot commented Feb 7, 2024

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.

@matanlurey
Copy link
Contributor Author

Merging on red due to flakes.

@matanlurey matanlurey merged commit 02263ca into flutter:main Feb 7, 2024
32 of 34 checks passed
@matanlurey matanlurey deleted the engine-scenario_app-androidTextureRepro branch February 7, 2024 20:58
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 7, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 7, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants