Skip to content

Commit

Permalink
fix: added installing and preparing status for uploads (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
proksh authored Nov 19, 2024
1 parent 17e67dc commit f52e996
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions maestro-cli/src/main/java/maestro/cli/api/ApiClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ data class UploadStatus(

enum class Status {
PENDING,
PREPARING,
INSTALLING,
RUNNING,
SUCCESS,
ERROR,
Expand Down
6 changes: 5 additions & 1 deletion maestro-cli/src/main/java/maestro/cli/model/FlowStatus.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import maestro.cli.api.UploadStatus

enum class FlowStatus {
PENDING,
PREPARING,
INSTALLING,
RUNNING,
SUCCESS,
ERROR,
Expand All @@ -15,6 +17,8 @@ enum class FlowStatus {

fun from(status: UploadStatus.Status) = when (status) {
UploadStatus.Status.PENDING -> PENDING
UploadStatus.Status.PREPARING -> PREPARING
UploadStatus.Status.INSTALLING -> INSTALLING
UploadStatus.Status.RUNNING -> RUNNING
UploadStatus.Status.SUCCESS -> SUCCESS
UploadStatus.Status.ERROR -> ERROR
Expand All @@ -24,4 +28,4 @@ enum class FlowStatus {
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ object TestSuiteStatusView {
FlowStatus.PENDING -> "Pending"
FlowStatus.RUNNING -> "Running"
FlowStatus.STOPPED -> "Stopped"
FlowStatus.PREPARING -> "Preparing Device"
FlowStatus.INSTALLING -> "Installing App"
FlowStatus.CANCELED -> when (cancellationReason) {
UploadStatus.CancellationReason.TIMEOUT -> "Timeout"
UploadStatus.CancellationReason.OVERLAPPING_BENCHMARK -> "Skipped"
Expand Down

0 comments on commit f52e996

Please sign in to comment.