从管道运行时 Firebase TestLab 测试失败

问题描述

我正在尝试使用 firebase 测试实验室自动测试,每次提交到某个分支 我们正在为 CI/CD 使用谷歌云构建。我的 cloudbuild.yaml 文件具有以下命令:

  - name: 'gcr.io/$PROJECT_ID/Flutter'
    id: 'build'
    entrypoint: '/bin/bash'
    args:
      - '-c'
      - |
        Flutter channel beta
        Flutter build apk
        cd android
        ./gradlew app:assembleAndroidTest
        ./gradlew app:assembleDebug -Ptarget=./integration_test/app_test.dart
  - name: gcr.io/cloud-builders/gcloud
    id: "firebase testlab"
    entrypoint: '/bin/bash'
    args:
      - '-c'
      - |
        <activating google-service-account and setting the firebase project>
        gcloud firebase test android run --type instrumentation \
        --app build/app/outputs/apk/debug/app-debug.apk \
        --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
        --timeout 2m

当我从本地机器运行这些完全相同的命令时,它成功上传到 testlab 并且我的测试通过。 但是当从他的管道运行时,它会失败并显示以下日志:

test details from logs

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)