Documentation
¶
Overview ¶
Package failure classifies a failed, held or unhealthy deploy into one structured object shared by the API, CLI and MCP surfaces.
Index ¶
Constants ¶
View Source
const ( CodeDockerfileError = "dockerfile_error" CodeDependencyInstall = "dependency_install_failed" CodeCompileError = "compile_error" CodeBuildConfigError = "build_config_error" CodeBuildOOM = "build_out_of_memory" CodeBuildTimeout = "build_timeout" CodeImagePullFailed = "image_pull_failed" CodePortNotListening = "port_not_listening" CodeHealthCheckFailed = "health_check_failed" CodeContainerCrashed = "container_crashed" CodeOOMKilled = "oom_killed" CodeMissingEnv = "missing_env" CodeRegistryPushFailed = "registry_push_failed" CodeDiskFull = "disk_full" CodeFreezeWindow = "freeze_window_hold" CodeApprovalPending = "approval_pending" CodeScanGateBlocked = "scan_gate_blocked" CodeRollbackTargetGone = "rollback_target_gone" CodeDockerUnreachable = "docker_unreachable" CodeUnknown = "unknown" )
Failure codes.
View Source
const ( EnvExcerptLines = "APP_FAILURE_EXCERPT_LINES" EnvExcerptBytes = "APP_FAILURE_EXCERPT_BYTES" )
Env vars that bound the log excerpt.
Variables ¶
View Source
var RolloutFailureReasons = map[string]bool{ "CreateFailed": true, "StartFailed": true, deploysafety.ReasonReadinessFailed: true, "InspectFailed": true, "EnsureNetworkFailed": true, "VanishedAfterStart": true, "PreDeployHookFailed": true, deploysafety.ReasonOOMKilledDuringReadiness: true, deploysafety.ReasonExitedDuringReadiness: true, deploysafety.ReasonOOMKilledDuringWindow: true, deploysafety.ReasonExitedDuringWindow: true, deploysafety.ReasonRestartedDuringWindow: true, deploysafety.ReasonGateTimeout: true, }
RolloutFailureReasons are the reconcile condition reasons that mean a finished build did not converge into a healthy container.
Functions ¶
This section is empty.
Types ¶
type Failure ¶
type Failure struct {
Code string `json:"code"`
Cause string `json:"cause"`
FailingStep string `json:"failing_step,omitempty"`
LogExcerpt string `json:"log_excerpt,omitempty"`
SuggestedFix string `json:"suggested_fix"`
DocsURL string `json:"docs_url"`
Retryable bool `json:"retryable"`
DeployID string `json:"deploy_id"`
App string `json:"app"`
At time.Time `json:"at"`
}
Failure is the structured description of why a deploy did not succeed.
Click to show internal directories.
Click to hide internal directories.