...

Source file src/edge-infra.dev/pkg/f8n/devinfra/testinfra/model/model.go

Documentation: edge-infra.dev/pkg/f8n/devinfra/testinfra/model

     1  package model
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/google/uuid"
     7  )
     8  
     9  type EdgeJob struct {
    10  	Elapsed        time.Duration
    11  	ElapsedSeconds float64
    12  	Started        time.Time
    13  	Finished       time.Time
    14  	Version        string
    15  	Path           string
    16  	Job            string // ex: verify
    17  	Number         string // runID-attemptNumber (1234-1)
    18  	Run            string // runID (1234)
    19  	TestsRun       int
    20  	TestsFailed    int
    21  	Passed         bool
    22  	Repos          string
    23  	RepoCommit     string
    24  	Workflow       string // ex: hack
    25  	Platform       string
    26  	URL            string `json:"url,omitempty"`
    27  	URLTagline     string `json:"url_tagline,omitempty"`
    28  	GCPURL         string `json:"gcp_url,omitempty"`
    29  }
    30  
    31  type EdgeJobMetadata struct {
    32  	EdgeJob uuid.UUID
    33  	Key     string
    34  	Value   string
    35  }
    36  
    37  type EdgeJobTest struct {
    38  	EdgeJob     uuid.UUID
    39  	Name        string
    40  	Time        time.Duration
    41  	TimeSeconds float64
    42  	Failed      bool
    43  	FailureText string
    44  	Suite       string
    45  }
    46  
    47  type EdgeRun struct {
    48  	EdgeJobID uuid.UUID
    49  	Job       EdgeJob
    50  	Metadata  []EdgeJobMetadata
    51  	Tests     []EdgeJobTest
    52  }
    53  

View as plain text