prow

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProwAction

type IProwAction interface {
	Fetch(BuildID, name string) []byte
	RunPresubmit() error
	RunPostsubmit() error
	RunPeriodic() error
}

IProwAction defines the normal action in prow system

type Job

type Job struct {
	JobName                string
	Org                    string
	RepoName               string
	PRNumStr               string
	BuildId                string //prow job build number
	PostSubmitJob          string
	PostSubmitCoverProfile string
	CovThreshold           int
	LocalProfilePath       string
	QiniuClient            qiniu.Client
	LocalArtifacts         qiniu.Artifacts
	GithubComment          github.PrComment
	FullDiff               bool
}

Job is a prowjob in prow

func (*Job) CreateChangedCovHtml

func (j *Job) CreateChangedCovHtml() error

CreateChangedCovHtml create changed file related coverage html base on the local artifact

func (*Job) Fetch

func (j *Job) Fetch(BuildID, name string) []byte

Fetch the file from cloud

func (*Job) HtmlProfile

func (j *Job) HtmlProfile() string

HtmlProfile generates the name of the profile html file

func (*Job) JobPrefixOnQiniu

func (j *Job) JobPrefixOnQiniu() string

JobPrefixOnQiniu generates the prefix string of the job on qiniu

func (*Job) RunPeriodic

func (j *Job) RunPeriodic() error

RunPeriodic run a periodic job

func (*Job) RunPostsubmit

func (j *Job) RunPostsubmit() error

RunPostsubmit run a postsubmit job

func (*Job) RunPresubmit

func (j *Job) RunPresubmit() error

RunPresubmit run a presubmit job

func (j *Job) SetDeltaCovLinks(c cover.DeltaCovList)

SetDeltaCovLinks set DeltaCovLinks to the job

func (*Job) WriteChangedCov

func (j *Job) WriteChangedCov(changedFiles []string) error

WriteChangedCov filter local profile with changed files and save to j.LocalArtifacts.ChangedProfileName

Jump to

Keyboard shortcuts

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