-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update integration tests and benchmarks in /dev to newest Gradle, AGP, and Kotlin
#123910
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
Update integration tests and benchmarks in /dev to newest Gradle, AGP, and Kotlin
#123910
Conversation
/dev to newest Gradle and AGP/dev to newest Gradle, AGP, and Kotlin
|
This change effectively removes testing on older AGP versions. Not sure if that's what #123636 was about. I think it'd be nice if we had some policy for supporting Gradle and AGP (e.g: the current release and the last one). I can imagine some large projects are slow to migrate. If a policy like that would be implemented, then e.g. most of these lines wouldn't be needed anymore. At the same time, Gradle and AGP should be an implementation detail for most Flutter devs, one they shouldn't care about. |
find ./dev -type d -name 'android' | dart dev/tools/bin/generate_gradle_lockfiles.dart
|
I don't have time to fix the failing tests :( hopefully someone else picks this up in the future! |
Upgrades tests under `dev/integration_tests` to use the latest values [in the templates](https://github.com/flutter/flutter/blob/944d6c8fef76b2db7a2c33eeb1653de2b8571fd8/dev/tools/bin/generate_gradle_lockfiles.dart#L135). Most of this PR was auto-generated, by running `find dev/integration_tests/ -type d -name 'android' | dart dev/tools/bin/generate_gradle_lockfiles.dart` from the root of the flutter directory. The pieces that were not are: 1. Upgrading the Gradle versions used in integration tests to be >=7.4, in places where it was currently lower. 2. Upgrading the mac, windows, and linux build_tests .ci.yaml configuration to use jdk 17 on all shards. It currently was using a mix of 17 and 11. This isn't desirable, because some of the tests require 17, and the distribution is [random across shards](https://github.com/flutter/flutter/blob/cef9a8c54b766fa5f66e6fbdf7df341176f8e29f/dev/bots/test.dart#L553) (so they were only passing because they were getting randomly placed on shards using jdk 17). 3. Adding a dependency on jdk 11 for the tests based on the `firebaselab/firebaselab` recipe. Previously they had no java dependency, and were therefore defaulting to java 1.8. The newer AGP versions necessitated an upgrade to 11 to run. Note that it also ended up downgrading the AGP version in two places (in the [hybrid_android_views](https://github.com/flutter/flutter/pull/129642/files#diff-d7cfaa1c96d5c2383e7fc253ac8c9df062b544c24f7d80aa8a02290c01d17205L17) and [platform_interaction](https://github.com/flutter/flutter/pull/129642/files#diff-b2fba811efadd1cfb097bebd93be99fe4b6d6f17aefa863267290fc704290766L17) tests), because those had been manually edited to a newer version than the template. Related to: #123636, #123910
This PR resolves #123636
Pre-launch Checklist
///).