Skip to content

Commit

Permalink
TimeoutAnalyzer: Post screenshots for each timeout, not just for a bl…
Browse files Browse the repository at this point in the history
…ocking dialog

GitOrigin-RevId: ea88658517d5a040460cb45ee7362ee6c97693a6
  • Loading branch information
emrzv authored and intellij-monorepo-bot committed Nov 28, 2024
1 parent 022fd1e commit 20b0108
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object TimeoutAnalyzer {
)

fun analyzeTimeout(runContext: IDERunContext): Error? {
postLastScreenshots(runContext)
return detectIdeNotStarted(runContext)
?: detectDialog(runContext)
?: detectIndicatorsNotFinished(runContext)
Expand All @@ -34,7 +35,6 @@ object TimeoutAnalyzer {
val lastCommandNote = getLastCommand(runContext)?.let { System.lineSeparator() + "Last executed command was: $it" } ?: ""
val errorMessage = "Timeout of IDE run '${runContext.contextName}' for ${runContext.runTimeout} due to a dialog being shown.$lastCommandNote"
val error = Error(errorMessage, edtThread.getStackTrace(), threadDump, ErrorType.TIMEOUT)
postLastScreenshots(runContext)
return error
}
else return null
Expand Down

0 comments on commit 20b0108

Please sign in to comment.