douruyun8153 2019-08-07 08:20
浏览 22

侧面Bitrise步骤失败,因为它找不到结果目录

I'm trying to get the Flank Bitrise step to work however it's failing at the very end after running all the tests with the error Failed to export artifacts, error: open ./results: no such file or directory.

I've tried investigate the Go code in the step (located here) to try and understand where the directory is supposed to be created, but I haven't been able to figure it out.

If I run Flank locally everything runs fine.

Here's the full output for the step:

------------------------------------------------------------------------------+

| (4) flank@0.1.0                                                              |
+------------------------------------------------------------------------------+
| id: flank                                                                    |
| version: 0.1.0                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2019-08-07T01:57:04Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Config:
- ServiceAccountJSON: *****
- ConfigPath: android/flank.yml
- Version: latest
- CommandFlags: 
Downloading binary
- Done
Running test
- Detected platform: android
$ java "-jar" "/tmp/flank-bin214923599/flank.jar" "android" "run" "-c" "android/flank.yml"
AndroidArgs
    gcloud:
      results-bucket: test-lab-c3at6r97r91bu-jwmcsninvtajk
      results-dir: null
      record-video: true
      timeout: 15m
      async: false
      results-history-name: null
      # Android gcloud
      app: /bitrise/deploy/app-debug.apk
      test: /bitrise/deploy/app-debug-androidTest.apk
      auto-google-login: true
      use-orchestrator: true
      directories-to-pull:
      performance-metrics: true
      test-runner-class: null
      test-targets:
      device:
        - model: Nexus5X
          version: 26
          locale: en
          orientation: portrait
      flaky-test-attempts: 0
    flank:
      max-test-shards: 4
      shard-time: -1
      repeat-tests: 1
      smart-flank-gcs-path: 
      smart-flank-disable-upload: false
      files-to-download:
      test-targets-always-run:
      disable-sharding: false
      project: android-app-248901
      local-result-dir: flank
      # Android Flank Yml
      additional-app-test-apks:
RunTests
  Uploading app-debug-androidTest.apk .  Uploading app-debug.apk .
  Smart Flank cache hit: 0% (0 / 33)
  Shard times: 80s, 80s, 80s, 90s
  33 tests / 4 shards
  4 matrix ids created in 0m 3s
  https://console.developers.google.com/storage/browser/test-lab-c3at6r97r91bu-jwmcsninvtajk/2019-08-07_01-57-10.546000_hAvO/
PollMatrices
  0m  0s matrix-q7z6s7e7ji13a Nexus5X-26 VALIDATING
  0m 15s matrix-q7z6s7e7ji13a Nexus5X-26 PENDING
  0m 45s matrix-q7z6s7e7ji13a Nexus5X-26 Starting attempt 1.
  0m 45s matrix-q7z6s7e7ji13a Nexus5X-26 RUNNING
  1m 45s matrix-q7z6s7e7ji13a Nexus5X-26 Started logcat recording.
  1m 45s matrix-q7z6s7e7ji13a Nexus5X-26 Preparing device.
  2m 15s matrix-q7z6s7e7ji13a Nexus5X-26 Logging in to Google account on device.
  2m 15s matrix-q7z6s7e7ji13a Nexus5X-26 Installing apps.
  2m 30s matrix-q7z6s7e7ji13a Nexus5X-26 Retrieving Pre-Test Package Stats information from the device.
  2m 30s matrix-q7z6s7e7ji13a Nexus5X-26 Retrieving Performance Environment information from the device.
  2m 30s matrix-q7z6s7e7ji13a Nexus5X-26 Started crash detection.
  2m 30s matrix-q7z6s7e7ji13a Nexus5X-26 Started crash monitoring.
  2m 30s matrix-q7z6s7e7ji13a Nexus5X-26 Started performance monitoring.
  2m 45s matrix-q7z6s7e7ji13a Nexus5X-26 Started video recording.
  2m 45s matrix-q7z6s7e7ji13a Nexus5X-26 Starting instrumentation test.
  6m 31s matrix-q7z6s7e7ji13a Nexus5X-26 Completed instrumentation test.
  6m 46s matrix-q7z6s7e7ji13a Nexus5X-26 Stopped performance monitoring.
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Stopped crash monitoring.
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Retrieving Post-test Package Stats information from the device.
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Stopped logcat recording.
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Logging out of Google account on device.
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Done. Test time = 239 (secs)
  7m 16s matrix-q7z6s7e7ji13a Nexus5X-26 Starting results processing. Attempt: 1
  7m 31s matrix-q7z6s7e7ji13a Nexus5X-26 Completed results processing. Time taken = 12 (secs)
  7m 31s matrix-q7z6s7e7ji13a Nexus5X-26 FINISHED
  7m 31s matrix-q7z6s7e7ji13a FINISHED
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Starting attempt 1.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Started logcat recording.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Preparing device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Logging in to Google account on device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Installing apps.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Retrieving Pre-Test Package Stats information from the device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Retrieving Performance Environment information from the device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Started crash detection.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Started crash monitoring.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Started performance monitoring.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Started video recording.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Starting instrumentation test.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Completed instrumentation test.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Stopped performance monitoring.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Stopped crash monitoring.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Stopped logcat recording.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Retrieving Post-test Package Stats information from the device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Logging out of Google account on device.
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Done. Test time = 249 (secs)
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Starting results processing. Attempt: 1
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 Completed results processing. Time taken = 11 (secs)
  7m 32s matrix-2ay0yj5na36d8 Nexus5X-26 FINISHED
  7m 32s matrix-2ay0yj5na36d8 FINISHED
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Starting attempt 1.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Started logcat recording.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Preparing device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Logging in to Google account on device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Installing apps.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Retrieving Pre-Test Package Stats information from the device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Retrieving Performance Environment information from the device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Started crash detection.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Started crash monitoring.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Started performance monitoring.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Started video recording.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Starting instrumentation test.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Completed instrumentation test.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Stopped performance monitoring.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Stopped crash monitoring.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Stopped logcat recording.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Retrieving Post-test Package Stats information from the device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Logging out of Google account on device.
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Done. Test time = 248 (secs)
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 Starting results processing. Attempt: 1
  7m 32s matrix-83si0hz9imz4a Nexus5X-26 RUNNING
  7m 47s matrix-83si0hz9imz4a Nexus5X-26 Completed results processing. Time taken = 12 (secs)
  7m 47s matrix-83si0hz9imz4a Nexus5X-26 FINISHED
  7m 47s matrix-83si0hz9imz4a FINISHED
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Starting attempt 1.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Started logcat recording.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Preparing device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Logging in to Google account on device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Installing apps.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Retrieving Pre-Test Package Stats information from the device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Retrieving Performance Environment information from the device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Started crash detection.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Started performance monitoring.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Started crash monitoring.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Started video recording.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Starting instrumentation test.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Completed instrumentation test.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Stopped performance monitoring.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Stopped crash monitoring.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Retrieving Post-test Package Stats information from the device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Stopped logcat recording.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Logging out of Google account on device.
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Done. Test time = 255 (secs)
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 Starting results processing. Attempt: 1
  7m 47s matrix-2cwsozznj0yn3 Nexus5X-26 RUNNING
  9m 17s matrix-2cwsozznj0yn3 Nexus5X-26 Completed results processing. Time taken = 105 (secs)
  9m 17s matrix-2cwsozznj0yn3 Nexus5X-26 FINISHED
  9m 17s matrix-2cwsozznj0yn3 FINISHED
FetchArtifacts
  ....
  Updating matrix file
CostReport
  Virtual devices
    $0.32 for 19m
MatrixResultsReport
  4 / 4 (100.00%)
Exporting artifacts
Failed to export artifacts, error: open ./results: no such file or directory
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | flank@0.1.0 (exit code: 1)                                    | 570 sec  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-steplib/bitrise-step-flank/issues  |
| Source: https://github.com/bitrise-steplib/bitrise-step-flank                |
+---+---------------------------------------------------------------+----------+

</div>
  • 写回答

1条回答 默认 最新

  • dongluojiao6322 2019-08-07 09:02
    关注

    Ah, found it. Turns out you need to set the local-results-dir in the flank.yml to results to match what the Bitrise step expects. In the flank.yml on the github page it defaults to 'flank'

    ## Local folder to store the test result. Folder is DELETED before each run to ensure only artifacts from the new run are saved.
     local-result-dir: results

    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器