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.
Click to show internal directories.
Click to hide internal directories.