You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, our Bazel Test are failing for this new file ImageViewMatcher, which is used at two places, TopicInfoFragmentTest and TopicRevisionFragmentTest. Bazel is not able to access the companion object function.
Error
ERROR: /home/runner/work/oppia-android/oppia-android/app/BUILD.bazel:752:10: KotlinCompile //app:src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest_lib_kt { kt: 1, java: 1, srcjars: 0 } for k8 failed: (Exit 1): builder failed: error executing command bazel-out/host/bin/external/io_bazel_rules_kotlin/src/main/kotlin/builder ... (remaining 1 argument(s) skipped)
warning: /tmp/working8026161861970857538/_kotlinc/app-src_sharedTest_java_org_oppia_android_app_topic_info_TopicInfoFragmentTest_lib_kt_jvm/temp/stubs/org/oppia/android/app/topic/info/TopicInfoFragmentTest.java:186: warning: [org.oppia.android.app.application.ApplicationComponent.Builder.build()] org.oppia.android.app.topic.info.TopicInfoFragmentTest.TestApplicationComponent.Builder.build() returns org.oppia.android.app.application.ApplicationComponent, but org.oppia.android.app.topic.info.TopicInfoFragmentTest.TestApplicationComponent declares additional component method(s): inject(org.oppia.android.app.topic.info.TopicInfoFragmentTest). In order to provide type-safe access to these methods, override build() to return org.oppia.android.app.topic.info.TopicInfoFragmentTest.TestApplicationComponent
public static abstract interface Builder extends org.oppia.android.app.application.ApplicationComponent.Builder {
^
bazel-out/k8-fastbuild/bin/app/src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest_updated.kt:72:43: error: unresolved reference: ImageViewMatcher
import org.oppia.android.testing.espresso.ImageViewMatcher.Companion.hasScaleType
^
bazel-out/k8-fastbuild/bin/app/src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest_updated.kt:192:11: error: unresolved reference: hasScaleType
hasScaleType(ImageView.ScaleType.FIT_CENTER)
^
Compilation failure: compile phase failed:
bazel-out/k8-fastbuild/bin/app/src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest_updated.kt:72:43: error: unresolved reference: ImageViewMatcher
import org.oppia.android.testing.espresso.ImageViewMatcher.Companion.hasScaleType
^
bazel-out/k8-fastbuild/bin/app/src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest_updated.kt:192:11: error: unresolved reference: hasScaleType
hasScaleType(ImageView.ScaleType.FIT_CENTER)
^
Target //app:src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 132.967s, Critical Path: 27.96s
INFO: 2341 processes: 1730 remote cache hit, 599 internal, 11 linux-sandbox, 1 worker.
FAILED: Build did NOT complete successfully
//app:src/sharedTest/java/org/oppia/android/app/topic/info/TopicInfoFragmentTest FAILED TO BUILD
Executed 0 out of 1 test: 1 fails to build.
FAILED: Build did NOT complete successfully
The text was updated successfully, but these errors were encountered:
Currently, our Bazel Test are failing for this new file
ImageViewMatcher
, which is used at two places,TopicInfoFragmentTest
andTopicRevisionFragmentTest
. Bazel is not able to access the companion object function.Error
The text was updated successfully, but these errors were encountered: