Skip to content

[various] Bump androidx.test:core to 1.4.0 #8710

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 1 commit into from
Feb 26, 2025

Conversation

stuartmorgan-g
Copy link
Contributor

This is pulled out of #8693 to land on its own while the other issues with that PR are investigated, since it's a useful change regardless.

This updates all packages in the repo to have androidx.test:core 1.4.0 if it's not already higher. This fixes a latent problem where older versions of androidx.test.core aren't compatible with targeting the current SDK, because it has activities that are not annotated as exported. This issue is currently being masked by the dependency on integration_test, which forced a higher version of that package, but integration_test will stop exporting that dependency onto the app as of recent master, dropping all the packages here back to a too-old androidx.test:core.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@@ -54,7 +54,6 @@ flutter {

dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.2.0'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted because there's a duplicate dependency 4 lines below, but using androidXTestVersion.

@stuartmorgan-g
Copy link
Contributor Author

test-exempt: rolling dependencies

Copy link
Contributor

@reidbaker reidbaker left a comment

Choose a reason for hiding this comment

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

FWIW 1.4 is from 2021 the latest stable is 1.6.1
https://developer.android.com/jetpack/androidx/releases/test#version_140_3

@stuartmorgan-g
Copy link
Contributor Author

FWIW 1.4 is from 2021 the latest stable is 1.6.1

Yes, I picked something conservative since it was part of the roller fix because I didn't want to get into conflict hell or cascading-changes hell.

Separate from this, maybe we should consider turning dependabot back on for this package? We are explicitly ignoring it right now, IIRC because the Android team felt that it wasn't valuable enough for the PR churn it caused. This latent issue the flip side of that decision. (/cc @jmagman who I know has been looking at our dependabot configs).

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 25, 2025
@jmagman
Copy link
Member

jmagman commented Feb 26, 2025

Separate from this, maybe we should consider turning dependabot back on for this package?

It's only only for major versions, I can swap it to minor as well.

- dependency-name: "androidx.test:*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

@jmagman
Copy link
Member

jmagman commented Feb 26, 2025

IIRC because the Android team felt that it wasn't valuable enough for the PR churn it caused.

And it wasn't that intentional, I made all the test dependencies ignore minor and patch. Probably wiser to ignore just patches and then lock minor down on a case-by-case basis.

@jmagman
Copy link
Member

jmagman commented Feb 26, 2025

And it wasn't that intentional, I made all the test dependencies ignore minor and patch.

Correction: it wasn't that intentional by me.
https://github.com/flutter/packages/pull/2832/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28R120-R121

@jmagman
Copy link
Member

jmagman commented Feb 26, 2025

And it wasn't that intentional, I made all the test dependencies ignore minor and patch. Probably wiser to ignore just patches and then lock minor down on a case-by-case basis.

#8712

@auto-submit auto-submit bot merged commit 8d28983 into flutter:main Feb 26, 2025
82 checks passed
@stuartmorgan-g stuartmorgan-g deleted the test-core-update-1-4-0 branch February 26, 2025 19:28
auto-submit bot pushed a commit that referenced this pull request Feb 26, 2025
…gnore patch (#8712)

#8710 (comment)

Default to dependabot to ignore only patch versions for test dependencies and com.android.tools.build:gradle, and update major and minor. We can revert for any that get noisy.

The minor/patch ignore has been around awhile: https://github.com/flutter/packages/pull/2832/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28R120-R121
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 27, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Feb 27, 2025
flutter/packages@c44c228...01d3d5c

2025-02-27 engine-flutter-autoroll@skia.org Manual roll Flutter from
043b719 to 1659206 (19 revisions) (flutter/packages#8728)
2025-02-27 stuartmorgan@google.com Manual roll Flutter from 911aa75
to 043b719 (flutter/packages#8693)
2025-02-26 magder@google.com Dependabot to update major and minor
versions of test dependencies, ignore patch (flutter/packages#8712)
2025-02-26 reidbaker@google.com [local_auth] Update to use
flutter.targetSdkVersion (flutter/packages#8695)
2025-02-26 57854043+CaoGiaHieu-dev@users.noreply.github.com
[go_router_builder]: Handle invaild params (flutter/packages#8405)
2025-02-26 stuartmorgan@google.com [pigeon] Timestamp test steps in CI
(flutter/packages#8716)
2025-02-26 43054281+camsim99@users.noreply.github.com
[camera_android_camerax] Fix 90°-off preview rotation
(flutter/packages#8629)
2025-02-26 108667553+aprzedecki@users.noreply.github.com [go_router]
Secured empty matches in canPop (flutter/packages#8557)
2025-02-26 reidbaker@google.com [tool] Update targetsdk version to 35
from 32 (flutter/packages#8694)
2025-02-26 stuartmorgan@google.com [various] Bump androidx.test:core to
1.4.0 (flutter/packages#8710)
2025-02-26 stuartmorgan@google.com [camera] Disable flaky tests
(flutter/packages#8708)
2025-02-26 mdebbar@google.com [url_launcher][web] Prevent browser from
navigating when followLink isn't called (flutter/packages#8675)
2025-02-26 stuartmorgan@google.com [various] Remove plugin-level
`integration_test` dependencies (flutter/packages#8711)
2025-02-26 stuartmorgan@google.com [ci] Lengthen custom tests timeout
(flutter/packages#8715)

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 flutter-ecosystem@google.com 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
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
This is pulled out of flutter#8693 to land on its own while the other issues with that PR are investigated, since it's a useful change regardless.

This updates all packages in the repo to have `androidx.test:core` 1.4.0 if it's not already higher. This fixes a latent problem where older versions of `androidx.test.core` aren't compatible with targeting the current SDK, because it has activities that are not annotated as exported. This issue is currently being masked by the dependency on `integration_test`, which forced a higher version of that package, but `integration_test` will stop exporting that dependency onto the app as of recent master, dropping all the packages here back to a too-old `androidx.test:core`.
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
…gnore patch (flutter#8712)

flutter#8710 (comment)

Default to dependabot to ignore only patch versions for test dependencies and com.android.tools.build:gradle, and update major and minor. We can revert for any that get noisy.

The minor/patch ignore has been around awhile: https://github.com/flutter/packages/pull/2832/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28R120-R121
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
This is pulled out of flutter#8693 to land on its own while the other issues with that PR are investigated, since it's a useful change regardless.

This updates all packages in the repo to have `androidx.test:core` 1.4.0 if it's not already higher. This fixes a latent problem where older versions of `androidx.test.core` aren't compatible with targeting the current SDK, because it has activities that are not annotated as exported. This issue is currently being masked by the dependency on `integration_test`, which forced a higher version of that package, but `integration_test` will stop exporting that dependency onto the app as of recent master, dropping all the packages here back to a too-old `androidx.test:core`.
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…gnore patch (flutter#8712)

flutter#8710 (comment)

Default to dependabot to ignore only patch versions for test dependencies and com.android.tools.build:gradle, and update major and minor. We can revert for any that get noisy.

The minor/patch ignore has been around awhile: https://github.com/flutter/packages/pull/2832/files#diff-dd4fbda47e51f1e35defb9275a9cd9c212ecde0b870cba89ddaaae65c5f3cd28R120-R121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants