-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Make android dependency version test suite run on changes to templates #157196
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci.yaml
seems required, otherwise format checks failpackages/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, withinpackages/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
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.