Documentation
¶
Overview ¶
Package validation drives repeatable hardware validation workflows.
Index ¶
Constants ¶
const ( // SafeValidationSpeedCapPercent is the highest speed allowed by the hardware validator. SafeValidationSpeedCapPercent = 40 // DefaultValidationMaxSpeedPercent keeps automated validation below the hard safety cap. DefaultValidationMaxSpeedPercent = 35 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetargetOptions ¶
type RetargetOptions struct {
ExportDir string
MaxSpeedPercent int
SettlingDelay time.Duration
Sleep func(context.Context, time.Duration) error
}
RetargetOptions controls a Phase 7 real-device retarget validation run.
type RetargetResult ¶
type RetargetResult struct {
ExportDir string `json:"export_dir"`
StartedAt string `json:"started_at"`
CompletedAt string `json:"completed_at,omitempty"`
TraceFiles []RetargetTraceFile `json:"trace_files"`
CombinedPath string `json:"combined_path,omitempty"`
}
RetargetResult summarizes trace files produced by a validation run.
func RunRetargetValidation ¶
func RunRetargetValidation( ctx context.Context, engine *motion.Engine, traces *diagnostics.TraceRing, options RetargetOptions, ) (RetargetResult, error)
RunRetargetValidation drives the standard Phase 7 retarget checklist and exports trace files.