Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stovepipe/controller/buildanalysis/buildanalysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (c *Controller) Process(ctx context.Context, delivery consumer.Delivery) (r
return err
}
}
c.logger.Infow("terminal issue analysis ready", "queue", request.Queue, "request_id", request.ID, "build_id", build.ID, "issue_count", len(detection.Issues))
c.logger.Debugw("terminal issue analysis ready", "queue", request.Queue, "request_id", request.ID, "build_id", build.ID, "issue_count", len(detection.Issues))
}

if !complete && request.State.IsTerminal() {
Expand Down
4 changes: 2 additions & 2 deletions stovepipe/controller/buildsignal/buildsignal.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (c *Controller) Process(ctx context.Context, delivery consumer.Delivery) er
if err := errs.Group(recordErr, analysisErr); err != nil {
return err
}
c.logger.Infow("build reached terminal status",
c.logger.Debugw("build reached terminal status",
"build_id", build.ID,
"request_id", request.ID,
"status", string(effective),
Expand Down Expand Up @@ -405,7 +405,7 @@ func (c *Controller) advanceLastGreen(ctx context.Context, store storage.Storage
}

metrics.NamedCounter(c.metricsScope, _opName, "last_green_advanced", 1, metrics.TagsFromContext(ctx)...)
c.logger.Infow("advanced last green bookmark",
c.logger.Debugw("advanced last green bookmark",
"queue", request.Queue,
"request_id", request.ID,
"last_green_uri", request.URI,
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/dlq/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (c *buildController) Process(ctx context.Context, delivery consumer.Deliver
}

metadata := delivery.Metadata()
c.logger.Warnw("dlq message received",
c.logger.Debugw("dlq message received",
"request_id", buildRequest.Id,
"attempt", delivery.Attempt(),
"dlq_original_topic", metadata["dlq.original_topic"],
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/dlq/buildsignal.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *buildSignalController) Process(ctx context.Context, delivery consumer.D
}

dmeta := delivery.Metadata()
c.logger.Warnw("dlq message received",
c.logger.Debugw("dlq message received",
"build_id", sig.Id,
"attempt", delivery.Attempt(),
"dlq_original_topic", dmeta["dlq.original_topic"],
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/dlq/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *requestController) Process(ctx context.Context, delivery consumer.Deliv
}

dmeta := delivery.Metadata()
c.logger.Warnw("dlq message received",
c.logger.Debugw("dlq message received",
"request_id", pr.Id,
"attempt", delivery.Attempt(),
"dlq_original_topic", dmeta["dlq.original_topic"],
Expand Down
1 change: 0 additions & 1 deletion stovepipe/controller/fix/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (c *Controller) processBuild(ctx context.Context, queueName, buildID string
var failures []error
for _, registration := range registrations {
if err := c.submitIssues(ctx, store, request, buildID, registration, observations, issues); err != nil {
c.logger.Errorw("repair executor failed", "queue", queueName, "build_id", buildID, "executor_id", registration.ID, "error", err)
failures = append(failures, fmt.Errorf("executor %q: %w", registration.ID, err))
}
}
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *IngestController) Ingest(ctx context.Context, req entity.IngestRequest)
}
}

c.logger.Infow("ingested request",
c.logger.Debugw("ingested request",
"id", request.ID,
"queue", request.Queue,
"uri", request.URI,
Expand Down
3 changes: 0 additions & 3 deletions stovepipe/controller/issuetrack/dlq.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ func (c *DLQController) finishAbandonment(ctx context.Context, store storage.Sto
}
progress.Phase = entity.IssueTrackingPhaseAbandoned
checkpoint, err := saveProgress(ctx, store.GetIssueTrackingStore(), progress)
if err == nil {
c.logger.Infow("abandoned issue tracking", "queue", queue, "request_id", checkpoint.RequestID, "build_id", checkpoint.BuildID, "notification_id", checkpoint.NotificationID)
}
return checkpoint, err
}

Expand Down
7 changes: 2 additions & 5 deletions stovepipe/controller/issuetrack/issuetrack.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,9 @@ func (c *Controller) trackRequest(ctx context.Context, delivery consumer.Deliver
return fmt.Errorf("start issue tracking pass: %w", err)
}
if progress.RequestID != request.ID {
c.logger.Infow("tracking validation", "queue", queue, "request_id", request.ID, "build_id", build.ID, "notification_id", notificationID)
c.logger.Debugw("tracking validation", "queue", queue, "request_id", request.ID, "build_id", build.ID, "notification_id", notificationID)
}
progress = next
if finalize {
c.logger.Infow("starting issue finalization", "queue", queue, "request_id", request.ID, "build_id", build.ID)
}
}
checkpoint, err := c.reconcileBatch(ctx, store, queue, progress, analysis.Metadata[requestlog.MetadataKeyValidationComplete] == "true")
if err != nil {
Expand Down Expand Up @@ -358,7 +355,7 @@ func (c *Controller) reconcileBatch(ctx context.Context, store storage.Storage,
}
checkpoint, err := saveProgress(ctx, store.GetIssueTrackingStore(), next)
if err == nil && checkpoint.Phase == entity.IssueTrackingPhaseFinalized {
c.logger.Infow("completed issue finalization", "queue", queue, "request_id", checkpoint.RequestID, "build_id", checkpoint.BuildID,
c.logger.Debugw("completed issue finalization", "queue", queue, "request_id", checkpoint.RequestID, "build_id", checkpoint.BuildID,
"has_task_wide_issues", checkpoint.HasTaskWideIssues, "status", build.Status)
}
return checkpoint, err
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (c *PingController) Ping(ctx context.Context, req *pb.PingRequest) (resp *p

hostname, _ := os.Hostname()

c.logger.Info("ping request received",
c.logger.Debug("ping request received",
zap.String("message", req.Message),
zap.Bool("is_echo", isEcho),
zap.String("hostname", hostname),
Expand Down
6 changes: 3 additions & 3 deletions stovepipe/controller/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (c *Controller) coalesce(ctx context.Context, store storage.Storage, reques
return false, err
}
metrics.NamedCounter(c.metricsScope, _opName, "superseded", 1, metrics.TagsFromContext(ctx)...)
c.logger.Infow("superseded request for newer head",
c.logger.Debugw("superseded request for newer head",
"request_id", request.ID,
"queue", request.Queue,
"latest_request_id", latestRequestID,
Expand Down Expand Up @@ -285,7 +285,7 @@ func (c *Controller) admitRequest(ctx context.Context, store storage.Storage, de
metrics.NamedCounter(c.metricsScope, _opName, "admitted", 1,
metrics.TagsFromContext(ctx, metrics.NewTag("strategy", string(request.BuildStrategy)))...,
)
c.logger.Infow("admitted request to build",
c.logger.Debugw("admitted request to build",
"request_id", request.ID,
"queue", request.Queue,
"uri", request.URI,
Expand Down Expand Up @@ -450,7 +450,7 @@ func (c *Controller) holdForBuildSlot(ctx context.Context, delivery consumer.Del
}

delivery.Hold(delayMs)
c.logger.Infow("holding request awaiting build slot",
c.logger.Debugw("holding request awaiting build slot",
"request_id", request.ID,
"queue", request.Queue,
"uri", request.URI,
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/projectanalysis/projectanalysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (c *Controller) recordProjectStatuses(ctx context.Context, store storage.St
return fmt.Errorf("failed to record project facts for request %s: %w", request.ID, err)
}

c.logger.Infow("recorded project validation facts",
c.logger.Debugw("recorded project validation facts",
"request_id", request.ID, "uri", request.URI,
"project_count", len(facts), "broken_project_count", brokenCount)
return nil
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/record/facts.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func publishHookEvent(
metrics.NamedCounter(scope, _opName, "hook_events_published", 1,
metrics.TagsFromContext(ctx, metrics.NewTag("event_type", event.GetType()))...,
)
logger.Infow("announced validation outcome",
logger.Debugw("announced validation outcome",
"queue", request.Queue,
"request_id", request.ID,
"uri", request.URI,
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/controller/record/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func (c *Controller) promote(ctx context.Context, store storage.Storage, request
}

metrics.NamedCounter(c.metricsScope, _opName, "promotions", 1, metrics.TagsFromContext(ctx)...)
c.logger.Infow("promoted green commit",
c.logger.Debugw("promoted green commit",
"queue", request.Queue,
"request_id", request.ID,
"uri", request.URI,
Expand Down
2 changes: 1 addition & 1 deletion stovepipe/core/validationfact/validationfact.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Persist(
switch {
case err == nil:
metrics.NamedCounter(scope, "record", "fact_created", 1, metrics.TagsFromContext(ctx)...)
logger.Infow("recorded validation fact",
logger.Debugw("recorded validation fact",
"request_id", fact.RequestID,
"uri", fact.URI,
"project", fact.Project,
Expand Down
3 changes: 0 additions & 3 deletions stovepipe/extension/buildrunner/buildkite/buildkite.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ func (r *runner) Trigger(ctx context.Context, baseURI, headURI string, metadata
return entity.BuildID{}, err
}

r.logger.Debugw("triggered Buildkite build",
"buildkite_number", resp.Number,
)
return entity.BuildID{ID: platformbuildkite.EncodeBuildNumber(resp.Number)}, nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ func (r *runner) Trigger(ctx context.Context, baseURI, headURI string, metadata
return entity.BuildID{}, fmt.Errorf("github actions: dispatch workflow: response missing workflow_run_id (requires return_run_details support)")
}

r.logger.Debugw("dispatched GitHub Actions workflow",
"owner", r.client.Owner(),
"repo", r.client.Repo(),
"workflow_id", r.client.WorkflowID(),
"ref", r.ref,
"github_run_id", resp.WorkflowRunID,
)
return entity.BuildID{ID: platformgithubactions.EncodeRunID(resp.WorkflowRunID)}, nil
}

Expand Down
Loading