rerere

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retesting

func Retesting(log *logrus.Entry, ghc githubClient, client gitRepoClient,
	options *RetestingOptions, org string, repo string, spec *downwardapi.JobSpec) error

Retesting drives the current code to the test branch and keeps checking the test results.

Types

type RetestingLog

type RetestingLog struct {
	Job               *downwardapi.JobSpec `json:"job,omitempty"`
	Options           *RetestingOptions    `json:"options,omitempty"`
	CurrentRetryTimes int                  `json:"current_retry_times,omitempty"`
	Time              time.Time            `json:"time,omitempty"`
}

RetestingLog specifies the details of this test.

type RetestingOptions

type RetestingOptions struct {
	RetestingBranch string               `json:"retesting-branch,omitempty"`
	Retry           int                  `json:"retry,omitempty"`
	Contexts        prowflagutil.Strings `json:"require_contexts,omitempty"`
	Timeout         time.Duration        `json:"timeout,omitempty"`
}

RetestingOptions holds options for retesting.

func (*RetestingOptions) AddFlags

func (o *RetestingOptions) AddFlags(fs *flag.FlagSet)

AddFlags injects retesting options into the given FlagSet.

func (*RetestingOptions) Validate

func (o *RetestingOptions) Validate(bool) error

Validate validates retry times and contexts.

Jump to

Keyboard shortcuts

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