orchestrator

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orchestrator

type Orchestrator struct {
	// contains filtered or unexported fields
}

Orchestrator manages the execution of distributed tests

func NewOrchestrator

func NewOrchestrator(clientPool *client.Pool, saveDaemonResults bool, saveRawResults bool, rawResultsDir string) *Orchestrator

NewOrchestrator creates a new test orchestrator

func (*Orchestrator) ExecuteTest

func (o *Orchestrator) ExecuteTest(ctx context.Context, topo *topology.Topology) error

ExecuteTest executes a complete test workflow

func (*Orchestrator) GetErrors

func (o *Orchestrator) GetErrors() []error

GetErrors returns any errors encountered during execution

func (*Orchestrator) GetState

func (o *Orchestrator) GetState() TestState

GetState returns the current orchestrator state

type Progress

type Progress struct {

	// Total counts
	TotalNodes   int
	TotalTests   int
	TotalServers int
	TotalClients int

	// Progress counts
	ConnectedNodes   int
	PreparedNodes    int
	StartedServers   int
	StartedClients   int
	CompletedTests   int
	FailedTests      int
	CollectedResults int

	// Timing
	StartTime    time.Time
	CurrentPhase string
	PhaseStart   time.Time

	// Errors
	Errors []string
	// contains filtered or unexported fields
}

Progress tracks test execution progress

func NewProgress

func NewProgress() *Progress

NewProgress creates a new progress tracker

func (*Progress) AddError

func (p *Progress) AddError(err string)

AddError adds an error message

func (*Progress) GetPercentComplete

func (p *Progress) GetPercentComplete() float64

GetPercentComplete returns the overall completion percentage

func (*Progress) GetPhasePercent

func (p *Progress) GetPhasePercent() float64

GetPhasePercent returns the current phase completion percentage

func (*Progress) GetSummary

func (p *Progress) GetSummary() string

GetSummary returns a summary string

func (*Progress) IncrementCollected

func (p *Progress) IncrementCollected(count int)

IncrementCollected increments collected results count

func (*Progress) IncrementCompleted

func (p *Progress) IncrementCompleted(count int)

IncrementCompleted increments completed tests count

func (*Progress) IncrementConnected

func (p *Progress) IncrementConnected(count int)

IncrementConnected increments connected nodes count

func (*Progress) IncrementFailed

func (p *Progress) IncrementFailed(count int)

IncrementFailed increments failed tests count

func (*Progress) IncrementPrepared

func (p *Progress) IncrementPrepared(count int)

IncrementPrepared increments prepared nodes count

func (*Progress) IncrementStartedClients

func (p *Progress) IncrementStartedClients(count int)

IncrementStartedClients increments started clients count

func (*Progress) IncrementStartedServers

func (p *Progress) IncrementStartedServers(count int)

IncrementStartedServers increments started servers count

func (*Progress) Print

func (p *Progress) Print()

Print prints a progress update

func (*Progress) SetPhase

func (p *Progress) SetPhase(phase string)

SetPhase sets the current phase

func (*Progress) SetTotals

func (p *Progress) SetTotals(nodes, tests, servers, clients int)

SetTotals sets the total counts

type TestState

type TestState string

TestState represents the current state of test execution

const (
	StateInit            TestState = "init"
	StateConnecting      TestState = "connecting"
	StatePreparing       TestState = "preparing"
	StateStartingServers TestState = "starting_servers"
	StateStartingClients TestState = "starting_clients"
	StateRunning         TestState = "running"
	StateCollecting      TestState = "collecting"
	StateComplete        TestState = "complete"
	StateFailed          TestState = "failed"
)

Jump to

Keyboard shortcuts

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