Skip to content

Resolve android_build_all_packages Warnings #9643

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

Merged
merged 7 commits into from
Jul 25, 2025

Conversation

jesswrd
Copy link
Contributor

@jesswrd jesswrd commented Jul 17, 2025

Addressed versioning warnings by updating the following dependencies to their minimum supported versions:

Gradle: 8.7
AGP: 8.6.0
KGP: 2.1.0

Pre-Review Checklist

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

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR addresses a flaky Android build by updating several Gradle-related versions, which is a good approach. The change to create_all_packages_app_command.dart correctly moves a directory copy operation out of a loop, improving efficiency. However, I've pointed out a logical flaw in the new file/directory deletion logic that could lead to incorrect behavior and suggested a more robust implementation.

@jesswrd jesswrd marked this pull request as ready for review July 17, 2025 21:40
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g 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 investigating this! I wonder why it would be flaking rather than deterministically failing if these are the issues though. Do we have inconsistent tooling on bots? In theory that shouldn't be the case, since .ci.yaml should be setting them.

@jesswrd jesswrd changed the title Fix android_build_all_packages flake Resolve android_build_all_packages Warnings Jul 22, 2025
@jesswrd
Copy link
Contributor Author

jesswrd commented Jul 22, 2025

Thanks for investigating this! I wonder why it would be flaking rather than deterministically failing if these are the issues though. Do we have inconsistent tooling on bots? In theory that shouldn't be the case, since .ci.yaml should be setting them.

@stuartmorgan-g Instead of changing the tooling, I paired wtih Reid to resolve my local.DS_Store issue . I reverted the changes to this command. I had thought this could potentially be the source of flaking because I could not build the app locally, but it was due to .DS_Store issue. The timeout flake we are seeing is something else entirely. Still looking into that.

In the meantime, I updated this PR to only address the versioning warnings. That is still a necessary change.

@jesswrd jesswrd requested a review from stuartmorgan-g July 22, 2025 21:18
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM with one nit.

Instead of changing the tooling, I paired wtih Reid to resolve my local.DS_Store issue . I reverted the changes to this command. I had thought this could potentially be the source of flaking because I could not build the app locally, but it was due to .DS_Store issue.

Please feel free to send me a PR that has just those tool changes; there's no reason not to have the tooling be robust against local automatic .DS_Store creation to spare future developers the debugging you went through.

one that we support.
- Modifies `settings.gradle` to upgrade the Android Gradle Plugin (AGP)
from version 8.3.0 to 8.6.0. If a user runs into an error with the AGP
version, the warning is clear on how to upgrade the version to one that we support.
Copy link
Contributor

Choose a reason for hiding this comment

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

These should be folded into the bullet points above, just updating the final version. E.g., "... upgrade the Gradle version from 6.7 to 8.7. ...". The goal here isn't to have a history of the specific incremental changes, but a catalog of what is different between a legacy app and the current state.

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

@jesswrd jesswrd added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 24, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 24, 2025
Copy link
Contributor

auto-submit bot commented Jul 24, 2025

autosubmit label was removed for flutter/packages/9643, because - The status or check suite Mac_arm64 custom_package_tests master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 25, 2025
@auto-submit auto-submit bot merged commit efefea6 into flutter:main Jul 25, 2025
78 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 28, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jul 28, 2025
flutter/packages@963550c...6b2e34e

2025-07-28 [email protected]
[interactive_media_ads] Adds support to set general SDK settings
(flutter/packages#9648)
2025-07-28 [email protected] Roll Flutter from
20788c0 to cfbaa18 (43 revisions) (flutter/packages#9688)
2025-07-25 [email protected] Roll Flutter (stable) from
d7b523b to edada7c (7 revisions) (flutter/packages#9677)
2025-07-25 [email protected] Resolve `android_build_all_packages`
Warnings (flutter/packages#9643)
2025-07-25 [email protected] [video_player] Move Android to
per-player-instance Pigeon APIs (flutter/packages#9511)
2025-07-24 [email protected] [ci] Re-enable wasm and Windows ARM64
tests (flutter/packages#9667)
2025-07-24 [email protected] Roll Flutter from
afba7d7 to 20788c0 (27 revisions) (flutter/packages#9670)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] 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
vashworth pushed a commit to vashworth/packages that referenced this pull request Jul 30, 2025
Addressed versioning warnings by updating the following dependencies to their minimum supported versions:

Gradle: 8.7
AGP: 8.6.0
KGP: 2.1.0

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

3 participants