Skip to content

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

Merged
auto-submit[bot] merged 5 commits into
flutter:masterfrom
gmackall:runif_dependency_smoke_tests
Oct 21, 2024
Merged

auto-submit[bot] merged 5 commits into
flutter:masterfrom
gmackall:runif_dependency_smoke_tests

Conversation

@gmackall

@gmackall gmackall commented Oct 18, 2024 •

Copy link
Copy Markdown
Member

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.

@bartekpacia bartekpacia left a comment

Copy link
Copy Markdown
Member

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

Comment thread .ci.yaml
test_timeout_secs: "2700"
runIf:
- packages/flutter_tools/templates/**
- .ci.yaml

@gmackall gmackall Oct 18, 2024 •

Copy link
Copy Markdown
Member Author

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
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.

4 participants