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
6 changes: 0 additions & 6 deletions submitqueue/extension/buildrunner/buildkite/buildkite.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ func (r *runner) Trigger(ctx context.Context, base []entity.Batch, head entity.B
return entity.BuildID{}, fmt.Errorf("buildkite: create build: %w", err)
}

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

Expand Down Expand Up @@ -187,9 +184,6 @@ func (r *runner) Cancel(ctx context.Context, buildID entity.BuildID) error {
if err := r.client.CancelBuild(ctx, number); err != nil {
return fmt.Errorf("buildkite: cancel build: %w", err)
}
r.logger.Debugw("cancelled Buildkite build",
"buildkite_number", number,
)
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ func (r *runner) Trigger(ctx context.Context, base []entity.Batch, head entity.B
return entity.BuildID{}, fmt.Errorf("github actions: dispatch workflow: response missing workflow_run_id (requires X-GitHub-Api-Version and 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 Expand Up @@ -207,9 +200,6 @@ func (r *runner) Cancel(ctx context.Context, buildID entity.BuildID) error {
if err := r.client.CancelRun(ctx, runID); err != nil {
return fmt.Errorf("github actions: cancel run: %w", err)
}
r.logger.Debugw("cancelled GitHub Actions workflow run",
"github_run_id", runID,
)
return nil
}

Expand Down
9 changes: 0 additions & 9 deletions submitqueue/extension/changeprovider/github/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ func (p *provider) Get(ctx context.Context, request entity.Request) (_ []entity.
changeIDs = append(changeIDs, parsed)
}

p.logger.Debugw("fetching PR data from GitHub",
"pr_count", len(changeIDs),
"uris", change.URIs,
)

// Validate stacked changes are consistent (same provider, org, and repo)
if err := validateChangeConsistency(changeIDs); err != nil {
return nil, err
Expand All @@ -82,10 +77,6 @@ func (p *provider) Get(ctx context.Context, request entity.Request) (_ []entity.
return nil, err
}

p.logger.Debugw("successfully fetched PR data",
"pr_count", len(changeIDs),
)

return changeInfos, nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ func (p *provider) Get(ctx context.Context, request entity.Request) (_ []entity.
changeIDs = append(changeIDs, parsed)
}

p.logger.Debugw("fetching diff data from Phabricator",
"diff_count", len(changeIDs),
"uris", change.URIs,
)

diffs, err := p.fetchAllDiffs(ctx, changeIDs)
if err != nil {
return nil, err
Expand All @@ -89,10 +84,6 @@ func (p *provider) Get(ctx context.Context, request entity.Request) (_ []entity.
)
}

p.logger.Debugw("successfully fetched diff data",
"diff_count", len(changeIDs),
)

return changeInfos, nil
}

Expand Down
7 changes: 0 additions & 7 deletions submitqueue/extension/validator/github/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@ func (v *githubValidator) Validate(ctx context.Context, request entity.Request)
}

coremetrics.NamedCounter(v.metricsScope, "validate", "rejections", 1, coremetrics.NewTag("reason", string(rej.reason)))
v.logger.Infow("rejecting request",
"queue", v.cfg.QueueName,
"request_id", request.ID,
"uri", rej.uri,
"reason", string(rej.reason),
"detail", rej.detail,
)
return rej
}

Expand Down
10 changes: 3 additions & 7 deletions submitqueue/gateway/controller/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ func (c *cancelController) Cancel(ctx context.Context, req entity.CancelRequest)
return fmt.Errorf("Cancel invalid queue: %w", err)
}

c.logger.Debugw("cancel request received",
"sqid", req.ID,
"queue", req.Queue,
"reason", req.Reason,
)

// Verify the sqid exists before recording intent or publishing. The lookup is scoped
// to the caller's queue, so a sqid from another queue is simply not found.
stores, err := c.stores.For(storage.Config{QueueName: req.Queue})
Expand Down Expand Up @@ -121,8 +115,10 @@ func (c *cancelController) Cancel(ctx context.Context, req entity.CancelRequest)
return fmt.Errorf("failed to publish cancel request to queue: %w", err)
}

c.logger.Infow("cancel request published to queue",
c.logger.Debugw("cancel request published to queue",
"sqid", req.ID,
"queue", req.Queue,
"reason", req.Reason,
"topic_key", topickey.TopicKeyCancel,
)

Expand Down
9 changes: 2 additions & 7 deletions submitqueue/gateway/controller/land.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,25 +208,20 @@ func (c *landController) Land(ctx context.Context, req entity.LandRequest) (resu
// the accepting projection even if this accepted log is not persisted. If
// the client retries after losing the response, the orchestrator rejects
// the new sqid as a duplicate while the original request continues.
c.logger.Errorw("failed to record accepted status after publishing request",
c.logger.Warnw("failed to record accepted status after publishing request",
"queue", req.Queue,
"sqid", req.ID,
"error", err,
)
metrics.NamedCounter(c.metricsScope, opName, "accepted_log_failure", 1)
}

c.logger.Debugw("land request created",
c.logger.Debugw("request published to queue",
"queue", req.Queue,
"sqid", req.ID,
"change_uris", req.Change.URIs,
"change_count", len(req.Change.URIs),
"strategy", string(req.LandStrategy),
)

c.logger.Infow("request published to queue",
"queue", req.Queue,
"sqid", req.ID,
"topic_key", topickey.TopicKeyStart,
)

Expand Down
2 changes: 1 addition & 1 deletion submitqueue/gateway/controller/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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
Loading