这是indexloc提供的服务,不要输入任何密码
Skip to content

Make android dependency version test suite run on changes to templates #157196

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 5 commits into from
Oct 21, 2024

Conversation

gmackall
Copy link
Member

@gmackall gmackall commented Oct 18, 2024

We have a group of tests that verifies that we can build a flutter app across the range of AGP, Kotlin, and Gradle versions we claim to support. They currently only run on postsubmit.

This pr aims to make them run in presubmit as well, but only when changes are made to the templates (not just android templates, see #157196 (comment) as to why).

Pre-launch Checklist

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

Copy link
Member

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

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

LGTM, assuming all tests pass

@@ -1386,10 +1385,12 @@ targets:
tags: >
["devicelab", "hostonly", "linux"]
test_timeout_secs: "2700"
runIf:
- packages/flutter_tools/templates/**
- .ci.yaml
Copy link
Member Author

@gmackall gmackall Oct 18, 2024

Choose a reason for hiding this comment

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

  1. .ci.yaml seems required, otherwise format checks fail
  2. packages/flutter_tools/templates/** could probably be a little more specific, but the path specification would get a lot more complicated, because the android templates are spread out across a number of directories w/ different names,
    i.e, within packages/flutter_tools/templates/app_shared, we'd need to specify each of:
...
android-java.tmpl
android-kotlin.tmpl
android.tmpl
...

and then we would have to do this for each template. But as is these tests will get triggered for non-android changes to templates which doesn't seem like a huge deal to me.

Open to opinions

@gmackall gmackall marked this pull request as ready for review October 18, 2024 22:12
@gmackall gmackall requested a review from a team October 18, 2024 22:13
@gmackall gmackall changed the title Make android dependency version test suite run on changes to android templates Make android dependency version test suite run on changes to templates Oct 19, 2024
@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2024
@auto-submit auto-submit bot merged commit 3baf9d4 into flutter:master Oct 21, 2024
139 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2025
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