Documentation
¶
Overview ¶
Package build provides a way to update the buildbucket Build proto during execution.
Index ¶
- Constants
- type InvocationStepUpdater
- type RequestStepUpdater
- func (r *RequestStepUpdater) Close(status bbpb.Status, summaryMarkdown string) error
- func (r *RequestStepUpdater) DisplayExceptionExpiredSummary(expirationDate time.Time)
- func (r *RequestStepUpdater) DisplayExceptionSummary(expirationDate time.Time)
- func (r *RequestStepUpdater) NewInvocationStep(name string) *InvocationStepUpdater
Constants ¶
const (
ExceededExecutionTimeText = "* SUITE EXECUTION TIME LIMIT EXCEEDED: go/suitelimits-faqs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvocationStepUpdater ¶
type InvocationStepUpdater struct {
// contains filtered or unexported fields
}
InvocationStepUpdater provides methods to update a step corresponding to the execution of an invocation.
func (*InvocationStepUpdater) AddCancelledSummary ¶
func (i *InvocationStepUpdater) AddCancelledSummary()
func (*InvocationStepUpdater) MarkCompleted ¶
func (i *InvocationStepUpdater) MarkCompleted()
MarkCompleted closes the invocation step.
func (*InvocationStepUpdater) NotifyNewTask ¶
func (i *InvocationStepUpdater) NotifyNewTask(task *testrunner.Build)
NotifyNewTask notifies the InvocationStepUpdater of the creation of a new task for an invocation.
type RequestStepUpdater ¶
type RequestStepUpdater struct {
// contains filtered or unexported fields
}
RequestStepUpdater provides methods to update a step corresponding to the execution of a request.
func NewRequestStep ¶
func NewRequestStep(name string, build *bbpb.Build) *RequestStepUpdater
NewRequestStep creates a new step corresponding to a request.
NewRequestStep returns a RequestStepUpdater that may be used to update this step as the execution proceeds.
func (*RequestStepUpdater) Close ¶
func (r *RequestStepUpdater) Close(status bbpb.Status, summaryMarkdown string) error
Close updates the build to reflect that the execution of this request is complete.
RequestStepUpdater should not be used once Close() has been called.
func (*RequestStepUpdater) DisplayExceptionExpiredSummary ¶
func (r *RequestStepUpdater) DisplayExceptionExpiredSummary(expirationDate time.Time)
func (*RequestStepUpdater) DisplayExceptionSummary ¶
func (r *RequestStepUpdater) DisplayExceptionSummary(expirationDate time.Time)
func (*RequestStepUpdater) NewInvocationStep ¶
func (r *RequestStepUpdater) NewInvocationStep(name string) *InvocationStepUpdater
NewInvocationStep creates a new step for an invocation that is part of this request.
NewInvocationStep returns an InvocationStepUpdater that may be used to update this invocation as the execution proceeds.