Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

When running UI tests locally, the android-device-provider-local dependency cannot be found #27320

Closed
jonalmeida opened this issue Oct 6, 2022 · 0 comments · Fixed by #27321 or nathanmkaya/fenix#108
Assignees
Labels
eng:build Build system, gradle, configuration eng:ui-test UI Tests needs:triage Issue needs triage
Milestone

Comments

@jonalmeida
Copy link
Contributor

jonalmeida commented Oct 6, 2022

@kycn and I were trying to run UI tests locally but were met with a missing dependency when trying to run on an emulator. There have been some dependency upgrades recently, so I suspect this is some fallout where the location of the dependency was moved to the google maven repo.

Execution failed for task ':app:connectedDebugAndroidTest'.
> Could not resolve all files for configuration ':app:_internal-unified-test-platform-android-test-plugin-host-additional-test-output'.
   > Could not find com.google.testing.platform:android-device-provider-local:0.0.8-alpha07.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/google/testing/platform/android-device-provider-local/0.0.8-alpha07/android-device-provider-local-0.0.8-alpha07.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.android.tools.utp:android-test-plugin-host-additional-test-output:30.3.0

┆Issue is synchronized with this Jira Task

@jonalmeida jonalmeida added eng:build Build system, gradle, configuration eng:ui-test UI Tests labels Oct 6, 2022
@jonalmeida jonalmeida self-assigned this Oct 6, 2022
@github-actions github-actions bot added the needs:triage Issue needs triage label Oct 6, 2022
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Oct 6, 2022
…owlist

When running UI tests locally, we found that the
`android-device-provider-local` dependency is no longer available on
mavenCentral. Our dependency repository uses various regex to allow only
google dependencies to be fetched from Google Maven, but somehow these
did not include the test ones everywhere.
@github-actions github-actions bot added eng:reopen-for-qa Reopens and tags the issue for QA needed when the issue is merged and removed eng:reopen-for-qa Reopens and tags the issue for QA needed when the issue is merged labels Oct 6, 2022
@mergify mergify bot closed this as completed in #27321 Oct 7, 2022
mergify bot pushed a commit that referenced this issue Oct 7, 2022
When running UI tests locally, we found that the
`android-device-provider-local` dependency is no longer available on
mavenCentral. Our dependency repository uses various regex to allow only
google dependencies to be fetched from Google Maven, but somehow these
did not include the test ones everywhere.
@github-actions github-actions bot added this to the 107 milestone Oct 7, 2022
JohanLorenzo pushed a commit to mozilla-mobile/firefox-android that referenced this issue Feb 14, 2023
…ogle Maven allowlist

When running UI tests locally, we found that the
`android-device-provider-local` dependency is no longer available on
mavenCentral. Our dependency repository uses various regex to allow only
google dependencies to be fetched from Google Maven, but somehow these
did not include the test ones everywhere.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
eng:build Build system, gradle, configuration eng:ui-test UI Tests needs:triage Issue needs triage
Projects
None yet
1 participant