Skip to content

fix(cmd): lowercase credentials server logs - #1071

Merged
skevetter merged 2 commits into
mainfrom
cmd-reviewer/lowercase-credentials-server-logs
Aug 18, 2026
Merged

fix(cmd): lowercase credentials server logs#1071
skevetter merged 2 commits into
mainfrom
cmd-reviewer/lowercase-credentials-server-logs

Conversation

@devsy-app

@devsy-app devsy-app Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

cmd/ subdirectory reviewed

cmd/internal — specifically cmd/internal/agentcontainer/credentials_server.go.

Issue found

The repository convention (documented in AGENTS.md) is that log messages must be lowercase. This file in the dev container credentials server contained five non-lowercase log strings:

  • log.Errorf("Failed to decode git SSH signing key, ...")
  • log.Errorf("Failed to configure git SSH signature helper, ...")
  • log.Debugf("Could not read result for port attributes: %v", err)
  • log.Debugf("Could not parse result for port attributes: %v", err)
  • log.Debugf("Forwarding port %s (%s, protocol=%s)", ...)

These are consistent lowercase-log violations. The rest of the cmd/ tree (e.g. cmd/snapshot, cmd/secrets, cmd/root.go) already follows the lowercase convention ("restoring snapshot...", "secret %q deleted...", "panic: ..."), so these five were the outliers.

Minimal change

Lowercased the five log message strings in cmd/internal/agentcontainer/credentials_server.go. No behavior change, no logic touched — only the leading capitalization of each log string.

Verification performed

  • task cli:format — clean (gofmt/gci/gofumpt via golangci-lint fmt).
  • task cli:lint:ci0 issues (run against the --new-from-patch diff vs origin/main).
  • task cli:test — passes for the touched package (go test ./cmd/internal/agentcontainer/...ok). The only failures are the known pre-existing pkg/git TestRepoClone* tests, which fail on origin/main already (stale assertion) and are unrelated to this change (the change does not touch pkg/git).
  • Confirmed no tests assert on these log strings.

This PR was created by an AI agent as part of an automated daily CLI review job.

## cmd/ subdirectory reviewed

`cmd/internal` — specifically `cmd/internal/agentcontainer/credentials_server.go`.

## Issue found

The repository convention (documented in AGENTS.md) is that **log messages must be lowercase**. This file in the dev container credentials server contained five non-lowercase log strings:

- `log.Errorf("Failed to decode git SSH signing key, ...")`
- `log.Errorf("Failed to configure git SSH signature helper, ...")`
- `log.Debugf("Could not read result for port attributes: %v", err)`
- `log.Debugf("Could not parse result for port attributes: %v", err)`
- `log.Debugf("Forwarding port %s (%s, protocol=%s)", ...)`

These are consistent lowercase-log violations. The rest of the `cmd/` tree (e.g. `cmd/snapshot`, `cmd/secrets`, `cmd/root.go`) already follows the lowercase convention (`"restoring snapshot..."`, `"secret %q deleted..."`, `"panic: ..."`), so these five were the outliers.

## Minimal change

Lowercased the five log message strings in `cmd/internal/agentcontainer/credentials_server.go`. No behavior change, no logic touched — only the leading capitalization of each log string.

## Verification performed

- `task cli:format` — clean (gofmt/gci/gofumpt via golangci-lint fmt).
- `task cli:lint:ci` — **0 issues** (run against the `--new-from-patch` diff vs `origin/main`).
- `task cli:test` — passes for the touched package (`go test ./cmd/internal/agentcontainer/...` → `ok`). The only failures are the **known pre-existing** `pkg/git` `TestRepoClone*` tests, which fail on `origin/main` already (stale assertion) and are unrelated to this change (the change does not touch `pkg/git`).
- Confirmed no tests assert on these log strings.

This PR was created by an AI agent as part of an automated daily CLI review job.
@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit e55563a
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a829ecb86e0da0008a24d64

@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit e55563a
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a829ecbe095b300087f8a9a

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@skevetter
skevetter marked this pull request as ready for review August 17, 2026 05:40
@skevetter
skevetter merged commit 2b69f80 into main Aug 18, 2026
75 checks passed
@skevetter
skevetter deleted the cmd-reviewer/lowercase-credentials-server-logs branch August 18, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant