-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: test workflow status * feat: status types
- Loading branch information
Showing
5 changed files
with
339 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package v1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// TestWorkflowExecutionSummary contains TestWorkflow execution summary | ||
type TestWorkflowExecutionSummary struct { | ||
// unique execution identifier | ||
Id string `json:"id"` | ||
// execution name | ||
Name string `json:"name"` | ||
// sequence number for the execution | ||
Number int32 `json:"number,omitempty"` | ||
// when the execution has been scheduled to run | ||
ScheduledAt metav1.Time `json:"scheduledAt,omitempty"` | ||
// when the execution result's status has changed last time (queued, passed, failed) | ||
StatusAt metav1.Time `json:"statusAt,omitempty"` | ||
Result *TestWorkflowResultSummary `json:"result,omitempty"` | ||
Workflow *TestWorkflowSummary `json:"workflow"` | ||
} | ||
|
||
// TestWorkflowResultSummary defines TestWorkflow result summary | ||
type TestWorkflowResultSummary struct { | ||
Status *TestWorkflowStatus `json:"status"` | ||
PredictedStatus *TestWorkflowStatus `json:"predictedStatus"` | ||
// when the pod was created | ||
QueuedAt metav1.Time `json:"queuedAt,omitempty"` | ||
// when the pod has been successfully assigned | ||
StartedAt metav1.Time `json:"startedAt,omitempty"` | ||
// when the pod has been completed | ||
FinishedAt metav1.Time `json:"finishedAt,omitempty"` | ||
// Go-formatted (human-readable) duration | ||
Duration string `json:"duration,omitempty"` | ||
// Go-formatted (human-readable) duration (incl. pause) | ||
TotalDuration string `json:"totalDuration,omitempty"` | ||
// Duration in milliseconds | ||
DurationMs int32 `json:"durationMs"` | ||
// Duration in milliseconds (incl. pause) | ||
TotalDurationMs int32 `json:"totalDurationMs"` | ||
// Pause duration in milliseconds | ||
PausedMs int32 `json:"pausedMs"` | ||
} | ||
|
||
// TestWorkflowSummary fas TestWorkflow summary | ||
type TestWorkflowSummary struct { | ||
Name string `json:"name,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
Labels map[string]string `json:"labels,omitempty"` | ||
Annotations map[string]string `json:"annotations,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.