Documentation
¶
Overview ¶
Package buildanalysis accumulates issue observations during and after builds. Build status is read from storage; status polling remains separate.
Index ¶
Constants ¶
const PollDelayMs int64 = 120000
PollDelayMs is the delay in milliseconds after a successful nonterminal pass. Two minutes limits provider traffic during long-running builds.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller accumulates observations while builds run and after completion. Terminal analysis must finish persistence before its delivery completes.
func NewController ¶
func NewController( logger *zap.SugaredLogger, scope tally.Scope, stores storage.Factory, detectorFactory buildissue.DetectorFactory, topicKey consumer.TopicKey, consumerGroup string, ) *Controller
func (*Controller) ConsumerGroup ¶
func (c *Controller) ConsumerGroup() string
func (*Controller) Name ¶
func (c *Controller) Name() string
func (*Controller) Process ¶
Process holds after a successful nonterminal pass. Errors are returned for normal queue retry or DLQ handling; partial writes are safe to retry.
func (*Controller) TopicKey ¶
func (c *Controller) TopicKey() consumer.TopicKey
type DLQController ¶
type DLQController struct {
// contains filtered or unexported fields
}
DLQController records incomplete analysis without rerunning detection or changing the validation outcome.
func NewDLQController ¶
func NewDLQController( logger *zap.SugaredLogger, scope tally.Scope, stores storage.Factory, materializer requestlog.Materializer, topicKey consumer.TopicKey, consumerGroup string, ) *DLQController
NewDLQController creates a controller for incomplete build analysis.
func (*DLQController) ConsumerGroup ¶
func (c *DLQController) ConsumerGroup() string
func (*DLQController) Name ¶
func (c *DLQController) Name() string
func (*DLQController) Process ¶
Process retains incomplete-analysis history and acknowledges unusable messages. State-read and history-write failures are returned for DLQ recovery retry.
func (*DLQController) TopicKey ¶
func (c *DLQController) TopicKey() consumer.TopicKey