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

Conversation

ricardoamador
Copy link
Contributor

@ricardoamador ricardoamador commented Oct 27, 2023

Description

Emulator dependencies were not getting picked up correctly when running the Recipes through engine_v2. The fix was to allow the context it runs through to be passed the version via the flutter_deps module. That change can be found here: https://flutter-review.googlesource.com/c/recipes/+/51869.

Do not land until above cl has been merged.

Related Issue

List which issues are fixed by this PR. You must list at least one issue.
Fixes flutter/flutter#137350

Validation

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ricardoamador ricardoamador changed the title Add test dependency Add test dependencies Oct 27, 2023
@ricardoamador ricardoamador marked this pull request as draft October 27, 2023 21:40
@ricardoamador
Copy link
Contributor Author

ricardoamador commented Oct 27, 2023

@godofredoc I looked at the docs and this is what I would assume @gmackall needs to add in order to specify the version of the emulator. This change here allows this to pick up the required version.

Copy link
Member

@gmackall gmackall left a comment

Choose a reason for hiding this comment

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

Thanks for this PR and the linked fix! This LGTM, but can we try running it once in presubmit by changing presubmit to true here temporarily (given that this PR not only adds the configuration, but also actually changes the version to 34).

@ricardoamador
Copy link
Contributor Author

@gmackall Yeah no problem. Here is a successful run on prod: https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/ricardoamador_google.com/aef0a5e0460f39de6935d45dd12b797fba9b2d15d29d95662d34d9e466c39584/+/build.proto.

I'll run some tests on try and update the PR to run in presubmit. Do you want it to run in presubmit always or just for a test?

Copy link
Member

@gmackall gmackall left a comment

Choose a reason for hiding this comment

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

@gmackall Yeah no problem. Here is a successful run on prod: https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/ricardoamador_google.com/aef0a5e0460f39de6935d45dd12b797fba9b2d15d29d95662d34d9e466c39584/+/build.proto.

I'll run some tests on try and update the PR to run in presubmit. Do you want it to run in presubmit always or just for a test?

Oh nevermind, I just wanted to see one run succeed to be sure it wouldn't end up just failing in postsubmit. If you've already tested a successful run then this LGTM!

Separately, I know this test used to run in presubmit and was changed to only postsubmit ~4 months ago, and I want to look into why that is/see if it should be changed back to running in presubmit. But thats a different issue!

@ricardoamador
Copy link
Contributor Author

Here you go: https://chromium-swarm.appspot.com/task?id=658bf0608be42710 in the try pool.

Also note that the recipe change will need to land first then I can merge this and you should be good to go.

@ricardoamador ricardoamador marked this pull request as ready for review October 27, 2023 23:31
@ricardoamador ricardoamador changed the title Add test dependencies Add Android Emulator dependencies as "test_dependencies" to Android tests Oct 27, 2023
Copy link
Contributor

@keyonghan keyonghan left a comment

Choose a reason for hiding this comment

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

LGTM

@ricardoamador ricardoamador added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 28, 2023
@auto-submit auto-submit bot merged commit a768211 into flutter:main Oct 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 28, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 28, 2023
…137462)

flutter/engine@f1e30b4...a768211

2023-10-28 32242716+ricardoamador@users.noreply.github.com Add Android Emulator dependencies as "test_dependencies" to Android tests (flutter/engine#47384)
2023-10-27 mdebbar@google.com [web] DomManager for each FlutterView (flutter/engine#47388)
2023-10-27 skia-flutter-autoroll@skia.org Roll Skia from 77abd518ad4a to 64f13d5be3f7 (2 revisions) (flutter/engine#47406)

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 aaclarke@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
@ricardoamador ricardoamador deleted the emulator_context_version_test branch February 5, 2024 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modify engine v2 recipes to allow passing a version to android emulators via ci.yaml or the config file

3 participants