3

Flank Bitrise ステップを機能させようとしていますが、すべてのテストを実行した後、最後にエラーで失敗しますFailed to export artifacts, error: open ./results: no such file or directory

ディレクトリが作成されるはずの場所を理解するために、手順の Go コード (ここにあります) を調査しようとしましたが、それを理解することができませんでした。

Flank をローカルで実行すると、すべて正常に動作します。

ステップの完全な出力は次のとおりです。

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

| (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                |
+---+---------------------------------------------------------------+----------+

4

1 に答える 1

2

あ、見つけた。Bitrise ステップが期待するものと一致するようlocal-results-dirに、flank.yml でを設定する必要があることがわかりました。resultsgithubページのflank.ymlでは、デフォルトで「フランク」になっています

## 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

于 2019-08-07T09:02:30.133 に答える