Documentation
¶
Index ¶
- func AppendTimedoutTestSummary(existingResults []*types.IterationResult, ids []string) []*types.IterationResult
- func BuildNoGPUTestSummary() []*types.IterationResult
- func CreateTarFile(outputPath string, inputPaths []string) error
- func ExtractLogFile(output string) (string, error)
- func GetAllGUIDs(rocmSMIPath string) ([]string, error)
- func GetEventLabels(category, trigger, recipe, hostName string, gpuIndexes, kfdIDs []string) map[string]string
- func GetEventNamePrefix(testCategory string) string
- func GetGUIDFromIndex(index, rocmSMIPath string) (string, error)
- func GetLogFilePath(resultLogDir, ts, trigger, testName, suffix string) string
- func GetTestRunningLabelKeyValue(category, recipe string, indexes []string) ([]string, string)
- func LoadRunnerStatus(statusDBPath string) (*testrunnerGen.TestRunnerStatus, error)
- func NewRvsTestRunner(rvsBinPath, testSuitesDir, resultLogDir string) (types.TestRunner, error)
- func SaveRunnerStatus(statusObj *testrunnerGen.TestRunnerStatus, statusDBPath string) error
- func SaveTestResultToGz(output, path string)
- func UploadFileToCloudBucket(...) error
- func ValidateArgs(testCategory, testTrigger, rvsPath, rocmSMIPath, testCaseDir, ... string)
- type GPUTestResult
- type RVSTestRunner
- type TestResult
- type TestRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendTimedoutTestSummary ¶
func AppendTimedoutTestSummary(existingResults []*types.IterationResult, ids []string) []*types.IterationResult
func BuildNoGPUTestSummary ¶
func BuildNoGPUTestSummary() []*types.IterationResult
func CreateTarFile ¶
func ExtractLogFile ¶
ExtractLogFile uses a simple regex to find the json log file path
func GetAllGUIDs ¶
getAllGUIDs list all GUIDs from rocm-smi
func GetEventLabels ¶
func GetEventNamePrefix ¶
func GetGUIDFromIndex ¶
getGUIDFromIndex use rocm-smi to get GUID from index number
func GetLogFilePath ¶
func LoadRunnerStatus ¶
func LoadRunnerStatus(statusDBPath string) (*testrunnerGen.TestRunnerStatus, error)
func NewRvsTestRunner ¶
func NewRvsTestRunner(rvsBinPath, testSuitesDir, resultLogDir string) (types.TestRunner, error)
NewRvsTestRunner returns instance of RvsTestRunner
func SaveRunnerStatus ¶
func SaveRunnerStatus(statusObj *testrunnerGen.TestRunnerStatus, statusDBPath string) error
func SaveTestResultToGz ¶
func SaveTestResultToGz(output, path string)
func UploadFileToCloudBucket ¶
func ValidateArgs ¶
func ValidateArgs(testCategory, testTrigger, rvsPath, rocmSMIPath, testCaseDir, exporterSocketPath string)
ValidateArgs validate argument to make sure the mandatory tools/configs are available
Types ¶
type GPUTestResult ¶
GPUTestResult is struct for GPU ID and it's test result
type RVSTestRunner ¶
type RVSTestRunner struct {
// contains filtered or unexported fields
}
TestRunner is a test framework for testing GPUs
func (*RVSTestRunner) GetTestHandler ¶
func (rts *RVSTestRunner) GetTestHandler(testName string, params types.TestParams) (types.TestHandlerInterface, error)
GetTestHandler returns test handler for the given test and params
type TestResult ¶
type TestResult map[string]map[string][]GPUTestResult
TestResult is used to convert test json output to struct
type TestRunner ¶
type TestRunner struct { sync.Mutex // mutex to protect globalTestRunnerConfig from file watcher // contains filtered or unexported fields }
func NewTestRunner ¶
func NewTestRunner(rvsPath, rvsTestCaseDir, rocmSMIPath, exporterSocketPath, testRunnerConfigPath, testCategory, testTrigger, logDir, jobName, nodeName string) *TestRunner
initTestRunner init the test runner and related configs return the test location, either global or specific host name
func (*TestRunner) AddTestRunningLabel ¶
func (tr *TestRunner) AddTestRunningLabel(recipe string, indexes []string)
func (*TestRunner) ReadPodInfo ¶
func (tr *TestRunner) ReadPodInfo()
func (*TestRunner) RemoveTestRunningLabel ¶
func (tr *TestRunner) RemoveTestRunningLabel(recipe string, indexes []string)
func (*TestRunner) TriggerTest ¶
func (tr *TestRunner) TriggerTest()
the validation functions have make sure that the given category/location/trigger config exists and valid within runnerConfig this function will be responsible to trigger the test