validation

package
v0.1.0-alpha.91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package validation drives repeatable hardware validation workflows.

Index

Constants

View Source
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.

type RetargetTraceFile

type RetargetTraceFile struct {
	Name   string `json:"name"`
	Reason string `json:"reason,omitempty"`
	Path   string `json:"path"`
	Rows   int    `json:"rows"`
}

RetargetTraceFile records one exported trace artifact.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL