android / android/android-test

Missing Test Auxillary Files

Open
#1,851 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description
Test randomly failed due to unable to find jar files.

### Steps to Reproduce
N/A

### Expected Results
Tests should succeed.

The following version combination, when used for the same tests, doesn't crash.
androidx.test:core:1.4.0
androidx.test:orchestrator:1.4.2

### Actual Results
```
06-29 13:21:12.741 5172 5496 E System : Unable to open zip file: /data/user/0/*******/cache/kCEF6s79.jar
06-29 13:21:12.742 5172 5496 E System : java.io.FileNotFoundException: /data/user/0/*******/cache/kCEF6s79.jar (No such file or directory)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.open(Native Method)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.(ZipFile.java:265)
06-29 13:21:12.742 5172 5496 E System : at java.util.zip.ZipFile.(ZipFile.java:187)
06-29 13:21:12.742 5172 5496 E System : at java.util.jar.JarFile.(JarFile.java:169)
06-29 13:21:12.742 5172 5496 E System : at java.util.jar.JarFile.(JarFile.java:106)
06-29 13:21:12.742 5172 5496 E System : at libcore.io.ClassPathURLStreamHandler.(ClassPathURLStreamHandler.java:46)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList$Element.maybeInit(DexPathList.java:751)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList$Element.findResource(DexPathList.java:778)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.DexPathList.findResources(DexPathList.java:573)
06-29 13:21:12.742 5172 5496 E System : at dalvik.system.BaseDexClassLoader.findResources(BaseDexClassLoader.java:259)
06-29 13:21:12.742 5172 5496 E System : at java.lang.ClassLoader.getResources(ClassLoader.java:839)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:349)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:402)
06-29 13:21:12.742 5172 5496 E System : at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:488)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadService(ServiceLoaderWrapper.java:49)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadSingleServiceOrNull(ServiceLoaderWrapper.java:89)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.internal.platform.ServiceLoaderWrapper.loadSingleService(ServiceLoaderWrapper.java:72)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.core.app.ActivityScenario.(ActivityScenario.java:150)
06-29 13:21:12.742 5172 5496 E System : at androidx.test.core.app.ActivityScenario.launch(ActivityScenario.java:234)
.......
```

### AndroidX Test and Android OS Versions
androidx.test:core:1.5.0
androidx.test:orchestrator:1.4.1
Emulator: Android 30 Google API.

### Link to a public git repo demonstrating the problem:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the intermittent failure on the Android 30 Google API emulator using androidx.test:core:1.5.0 and androidx.test:orchestrator:1.4.1, then compare it with the versions reported as stable. Trace the failure from ActivityScenario through ServiceLoaderWrapper and the missing jar in the log. Done means the tests no longer fail because auxiliary jar files are unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.