Flank: IllegalStateException: toolResultsStep must not be null

Created on 25 Jun 2020  路  4Comments  路  Source: Flank/flank

I'm using Fladle 0.10.1 which depends on Flank 20.05.2.

When I add the following to my fladle block:

fladle {
  ...
  directoriesToPull = [
      "/data/data/com.squareup.cash.beta.debug/test-attachments"
  ]

I get the following error:

RunTests

  Smart Flank cache hit: 0% (0 / 3)
  Shard times: 360s

  Uploading app-internal-debug-androidTest.apk .  Uploading app-internal-debug.apk .
  ...

FetchArtifacts

java.lang.IllegalStateException: toolResultsStep must not be null
    at ftl.reports.api.CreateTestExecutionDataKt.createTestExecutionData(CreateTestExecutionData.kt:31)
    at ftl.reports.api.CreateTestExecutionDataKt$createTestExecutionDataListAsync$1$1$1.invokeSuspend(CreateTestExecutionData.kt:22)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:241)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:740)
Bug

Most helpful comment

The problem is that paths must start with /sdcard or /data/local/tmp link.
However I am adding validation to flank with these instruction in case of failure and also filter null toolResultsStep

All 4 comments

@jrodbx
Thanks for reporting this issue, looks like another null issue on java - kotlin connection...

When I add the following to my fladle block:
fladle {
...
directoriesToPull = [
"/data/data/com.squareup.cash.beta.debug/test-attachments"
]

Can you confirm it is happening only when you add directoriesToPull option? (and happens all the time).
Just want to be sure since directoriesToPull option seems unrelated (but needs further investigation to be 100% sure) to missing/null info in fetched data from FTL.
Flank needs to be more resistant to corrupted data from FTL...

Correct. Without directoriesToPull, builds pass. With it, they always fail with the same error.

Interesting, looks like FTL can't handle directories with . inside names...anyway, thanks for the input!

Not true, correct answer https://github.com/Flank/flank/issues/870#issuecomment-653095872

The problem is that paths must start with /sdcard or /data/local/tmp link.
However I am adding validation to flank with these instruction in case of failure and also filter null toolResultsStep

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bootstraponline picture bootstraponline  路  4Comments

adamfilipow92 picture adamfilipow92  路  7Comments

leinardi picture leinardi  路  4Comments

Kurt-Bonatz picture Kurt-Bonatz  路  4Comments

bootstraponline picture bootstraponline  路  3Comments