Fixed
Status Update
Comments
yb...@google.com <yb...@google.com>
st...@gmail.com <st...@gmail.com> #2
Another instance: https://android-build.googleplex.com/builds/pending/P10986006/androidx_host_tests_max_dep_versions/latest/view/logs/build_error.log
which says:
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=0aba0dd6-d140-4723-8ae6-1c8cecbfba77, currentDir=/buildbot/src/android/androidx-master-dev}
Attempting to read last messages from the daemon log...
Daemon pid: 15649
log file: /buildbot/src/android/androidx-master-dev/out/.gradle/daemon/6.0/daemon-15649.out.log
----- Last 20 lines from daemon log file - daemon-15649.out.log -----
I/MonitoringInstr: Setting context classloader to 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@18f946ad', Original: 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@18f946ad'
androidx.camera.camera2.impl.Camera2CameraInfoImplTest > cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera[22] STANDARD_OUT
[Robolectric] androidx.camera.camera2.impl.Camera2CameraInfoImplTest.cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera: sdk=22; resources=BINARY
Gradle Test Executor 109 started executing tests.
Note: /buildbot/src/android/androidx-master-dev/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/sherlockholmes/TextReducingWorker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Stream closed
androidx.camera.camera2.impl.Camera2CameraInfoImplTest > cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera[23] STANDARD_OUT
[Robolectric] androidx.camera.camera2.impl.Camera2CameraInfoImplTest.cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera: sdk=23; resources=BINARY
androidx.camera.core.CameraCaptureResultsTest > canRetrieveCameraCaptureResult[27] STANDARD_OUT
androidx.enterprise.feedback.KeyedAppStatesServiceTest STANDARD_ERROR
[Robolectric] androidx.camera.core.CameraCaptureResultsTest.canRetrieveCameraCaptureResult: sdk=27; resources=BINARY
[Robolectric] WARN: Android SDK 10000 requires Java 9 (have Java 8). Tests won't be run on SDK 10000 unless explicitly requested.
I/MonitoringInstr: Instrumentation started!
I/MonitoringInstr: Setting context classloader to 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@215389e1', Original: 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@215389e1'
Created classpath snapshot for incremental compilation in 0.439 secs. 253 duplicate classes found in classpath (see all with --debug).
----- End of the daemon log -----
which says:
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=0aba0dd6-d140-4723-8ae6-1c8cecbfba77, currentDir=/buildbot/src/android/androidx-master-dev}
Attempting to read last messages from the daemon log...
Daemon pid: 15649
log file: /buildbot/src/android/androidx-master-dev/out/.gradle/daemon/6.0/daemon-15649.out.log
----- Last 20 lines from daemon log file - daemon-15649.out.log -----
I/MonitoringInstr: Setting context classloader to 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@18f946ad', Original: 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@18f946ad'
androidx.camera.camera2.impl.Camera2CameraInfoImplTest > cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera[22] STANDARD_OUT
[Robolectric] androidx.camera.camera2.impl.Camera2CameraInfoImplTest.cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera: sdk=22; resources=BINARY
Gradle Test Executor 109 started executing tests.
Note: /buildbot/src/android/androidx-master-dev/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/sherlockholmes/TextReducingWorker.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Stream closed
androidx.camera.camera2.impl.Camera2CameraInfoImplTest > cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera[23] STANDARD_OUT
[Robolectric] androidx.camera.camera2.impl.Camera2CameraInfoImplTest.cameraInfo_canCalculateCorrectRelativeRotation_forBackCamera: sdk=23; resources=BINARY
androidx.camera.core.CameraCaptureResultsTest > canRetrieveCameraCaptureResult[27] STANDARD_OUT
androidx.enterprise.feedback.KeyedAppStatesServiceTest STANDARD_ERROR
[Robolectric] androidx.camera.core.CameraCaptureResultsTest.canRetrieveCameraCaptureResult: sdk=27; resources=BINARY
[Robolectric] WARN: Android SDK 10000 requires Java 9 (have Java 8). Tests won't be run on SDK 10000 unless explicitly requested.
I/MonitoringInstr: Instrumentation started!
I/MonitoringInstr: Setting context classloader to 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@215389e1', Original: 'org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader@215389e1'
Created classpath snapshot for incremental compilation in 0.439 secs. 253 duplicate classes found in classpath (see all with --debug).
----- End of the daemon log -----
ap...@google.com <ap...@google.com> #3
Hmm, it doesn't seem to be specific to the androidx_host_tests_max_dep_versions target though because these failed (in postsubmit) too:
https://android-build.googleplex.com/builds/submitted/6068752/androidx_max_dep_versions/latest/view/logs/build_error.log
https://android-build.googleplex.com/builds/submitted/6068534/androidx_test_dependent_apks/latest/view/logs/build_error.log
https://android-build.googleplex.com/builds/submitted/6068188/androidx_test_changed_apks/latest/view/logs/build_error.log
Each of these three seems to say the same thing, but it's different from the two above:
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=52088053-6fbd-4436-8aab-5e305f8428aa, currentDir=/usr/local/google/buildbot/src/android/androidx-master-dev}
Attempting to read last messages from the daemon log...
Daemon pid: 28679
log file: /usr/local/google/buildbot/src/android/androidx-master-dev/out/.gradle/daemon/6.0/daemon-28679.out.log
----- Last 20 lines from daemon log file - daemon-28679.out.log -----
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/FrameworkLifecycleRegistryActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/SynchronousActivityLifecycleTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareRelationDatabaseTest.java:95: warning: The return value includes a POJO with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the POJO and its relations. Seehttps://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details.
UserAndPets getUserWithPets(long id);
^
/usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareRelationDatabaseTest.java:98: warning: The return value includes a POJO with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the POJO and its relations. Seehttps://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details.
List<UserAndPet> getUsersWithPet();
^
2 warnings
Stream closed
----- End of the daemon log -----
Each of these three seems to say the same thing, but it's different from the two above:
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=52088053-6fbd-4436-8aab-5e305f8428aa, currentDir=/usr/local/google/buildbot/src/android/androidx-master-dev}
Attempting to read last messages from the daemon log...
Daemon pid: 28679
log file: /usr/local/google/buildbot/src/android/androidx-master-dev/out/.gradle/daemon/6.0/daemon-28679.out.log
----- Last 20 lines from daemon log file - daemon-28679.out.log -----
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/FrameworkLifecycleRegistryActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/SynchronousActivityLifecycleTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareRelationDatabaseTest.java:95: warning: The return value includes a POJO with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the POJO and its relations. See
UserAndPets getUserWithPets(long id);
^
/usr/local/google/buildbot/src/android/androidx-master-dev/frameworks/support/room/integration-tests/noappcompattestapp/src/androidTest/java/androidx/room/integration/noappcompat/BareRelationDatabaseTest.java:98: warning: The return value includes a POJO with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the POJO and its relations. See
List<UserAndPet> getUsersWithPet();
^
2 warnings
Stream closed
----- End of the daemon log -----
Description
Version used: 2.0.0
Devices/Android versions reproduced on: Compile time error
@Dao
@TypeConverters(ControllerTypeConverters::class)
interface JobDao {
...
@Query("SELECT * FROM Job WHERE service IN (:services)")
fun getActiveJobs(services: List<Service>): LiveData<List<Job>>
}
object ControllerTypeConverters {
...
@TypeConverter
@JvmStatic
fun stringToOrderStatus(data: String?): Service? {
return if (data != null) Service.valueOf(data) else null
}
@TypeConverter
@JvmStatic
fun orderStatusToString(service: Service?): String? {
return service?.name
}
}
Fails when trying to run unit tests with
D:\...\JobDao.java:17: error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
java.util.List<? extends com.magentatechnology.emiratescontroller.model.Service> services);
If I replace the list with a single object, if works fine:
@Query("SELECT * FROM Job WHERE service = (:services)")
fun getActiveJobs(services: Service): LiveData<List<Job>>