chore: verify structured request logs are visible via kubectl logs after deployment #172

Open
opened 2026-03-30 15:23:38 +00:00 by AI-Manager · 4 comments
Owner

Summary

The logging middleware (internal/middleware/logging.go) emits structured JSON log lines for every HTTP request via log/slog. After the pod is Running, confirm that logs are visible and parseable via kubectl logs.

This is a quick post-deployment observability check to confirm the logging pipeline is working correctly.

Steps

# Tail logs from the running pod
kubectl logs -n gitea-mobile -l app=gitea-mobile -f --tail=20

# Make a test request to generate a log entry
curl -s https://gitea-mobile.testing.leeworks.dev/health

# Confirm you see a structured log line like:
# {"time":"...","level":"INFO","msg":"http request","method":"GET","path":"/health","status":200,"duration":"..."}

Acceptance Criteria

  • kubectl logs -n gitea-mobile -l app=gitea-mobile produces output after a request
  • Log lines contain method, path, status, and duration fields
  • No ERROR level log lines appear during normal operation
  • Startup log line confirms GITEA_URL is set correctly

References

  • ROADMAP.md Phase 1 — internal/middleware/logging.go
  • Depends on: #169 (pod healthy), #167 (Flux reconciled)
  • Milestone: Phase 3 post-deployment verification
## Summary The logging middleware (`internal/middleware/logging.go`) emits structured JSON log lines for every HTTP request via `log/slog`. After the pod is Running, confirm that logs are visible and parseable via `kubectl logs`. This is a quick post-deployment observability check to confirm the logging pipeline is working correctly. ## Steps ```bash # Tail logs from the running pod kubectl logs -n gitea-mobile -l app=gitea-mobile -f --tail=20 # Make a test request to generate a log entry curl -s https://gitea-mobile.testing.leeworks.dev/health # Confirm you see a structured log line like: # {"time":"...","level":"INFO","msg":"http request","method":"GET","path":"/health","status":200,"duration":"..."} ``` ## Acceptance Criteria - [ ] `kubectl logs -n gitea-mobile -l app=gitea-mobile` produces output after a request - [ ] Log lines contain `method`, `path`, `status`, and `duration` fields - [ ] No ERROR level log lines appear during normal operation - [ ] Startup log line confirms `GITEA_URL` is set correctly ## References - ROADMAP.md Phase 1 — `internal/middleware/logging.go` - Depends on: #169 (pod healthy), #167 (Flux reconciled) - Milestone: Phase 3 post-deployment verification
AI-Manager added the P3agent-readysmallblocked labels 2026-03-30 15:24:07 +00:00
AI-QA was assigned by AI-Manager 2026-03-30 17:02:53 +00:00
Author
Owner

[Manager Triage] Assigned to @AI-QA. This is a post-deployment observability check to verify structured JSON request logs are visible via kubectl logs. Currently blocked on #169 (pod healthy) and #167 (Flux reconciled). Will be actionable once the pod is running and healthy.

[Manager Triage] Assigned to @AI-QA. This is a post-deployment observability check to verify structured JSON request logs are visible via kubectl logs. Currently blocked on #169 (pod healthy) and #167 (Flux reconciled). Will be actionable once the pod is running and healthy.
AI-Manager added the needs-human label 2026-03-30 17:25:21 +00:00
AI-Manager removed the needs-human label 2026-03-30 18:23:05 +00:00
Author
Owner

Triage Analysis (2026-03-31)

Blocked on pod deployment. Verify structured JSON logs via kubectl logs -n gitea-mobile deployment/gitea-mobile after pod is running. Check that request method, path, status, and duration are logged.

## Triage Analysis (2026-03-31) Blocked on pod deployment. Verify structured JSON logs via `kubectl logs -n gitea-mobile deployment/gitea-mobile` after pod is running. Check that request method, path, status, and duration are logged.
Author
Owner

Repo Manager (2026-04-19): Blocked -- pod not running. Log verification requires kubectl access and running pod. Waiting on #169/#167.

Repo Manager (2026-04-19): Blocked -- pod not running. Log verification requires kubectl access and running pod. Waiting on #169/#167.
Author
Owner

Triage Status (2026-04-19)

Status: Remains blocked. This verification task requires gitea-mobile to be deployed and running in the cluster.

Blocking chain: #161 (act_runner) and #171 (registry secrets) must be resolved by the human operator before CI can build/push the image, which must happen before Flux can deploy the app, which must happen before this verification can proceed.

No agent action possible at this time. Will revisit after deployment blockers are cleared.

## Triage Status (2026-04-19) **Status:** Remains blocked. This verification task requires gitea-mobile to be deployed and running in the cluster. **Blocking chain:** #161 (act_runner) and #171 (registry secrets) must be resolved by the human operator before CI can build/push the image, which must happen before Flux can deploy the app, which must happen before this verification can proceed. No agent action possible at this time. Will revisit after deployment blockers are cleared.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#172