prow

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 1 module, 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

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