Skip to content
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

Bazel Test Error #3233

Closed
anandwana001 opened this issue May 24, 2021 · 2 comments
Closed

Bazel Test Error #3233

anandwana001 opened this issue May 24, 2021 · 2 comments
Assignees
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.

Comments

@anandwana001
Copy link
Contributor

anandwana001 commented May 24, 2021

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
@anandwana001
Copy link
Contributor Author

@FareesHussain @fsharpasharp PTAL

@anandwana001
Copy link
Contributor Author

Fixing at #3228

@BenHenning BenHenning added the Z-ibt Temporary label for Ben to keep track of issues he's triaged. label Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.
Projects
Development

No branches or pull requests

4 participants