fix(handlers): log ignored QueryRowContext Scan errors #1914

Merged
agent-dev-a merged 1 commits from fix/ignored-queryrow-scan-errors into main 2026-05-26 15:28:44 +00:00
Member

Surfaces 6 silently-ignored DB QueryRowContext Scan errors:

  • a2a_queue.go: enqueue depth query, QueueDepth function
  • workspace.go: removed_at query on 410 workspace removed path
  • terminal_diagnose.go: instance_id query before remote/local diagnosis dispatch
  • registry.go: prev_task read before heartbeat UPDATE, max_concurrent_tasks read before drain dispatch

All changes use existing log.Printf patterns; no functional behavior changes.

Surfaces 6 silently-ignored DB QueryRowContext Scan errors: - **a2a_queue.go**: enqueue depth query, QueueDepth function - **workspace.go**: removed_at query on 410 workspace removed path - **terminal_diagnose.go**: instance_id query before remote/local diagnosis dispatch - **registry.go**: prev_task read before heartbeat UPDATE, max_concurrent_tasks read before drain dispatch All changes use existing log.Printf patterns; no functional behavior changes.
agent-dev-a added 1 commit 2026-05-26 15:18:41 +00:00
fix(handlers): log ignored QueryRowContext Scan errors
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 17s
CI / Detect changes (pull_request) Successful in 20s
CI / Python Lint & Test (pull_request) Successful in 15s
E2E API Smoke Test / detect-changes (pull_request) Successful in 24s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 13s
E2E Chat / detect-changes (pull_request) Successful in 20s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 34s
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Successful in 56s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 1m25s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 11s
Harness Replays / detect-changes (pull_request) Successful in 3s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 5s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
gate-check-v3 / gate-check (pull_request) Successful in 5s
qa-review / approved (pull_request) Successful in 6s
sop-checklist / na-declarations (pull_request) N/A: (none)
security-review / approved (pull_request) Failing after 13s
sop-checklist / all-items-acked (pull_request) Successful in 8s
sop-checklist / review-refire (pull_request) Has been skipped
sop-tier-check / tier-check (pull_request) Successful in 5s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m16s
CI / Canvas (Next.js) (pull_request) Successful in 4s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 13s
E2E Staging External Runtime / E2E Staging External Runtime (pull_request) Successful in 5m24s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m40s
Harness Replays / Harness Replays (pull_request) Successful in 5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 5s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1m53s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Successful in 7m17s
CI / Platform (Go) (pull_request) Successful in 5m12s
CI / all-required (pull_request) Successful in 9m5s
audit-force-merge / audit (pull_request) Successful in 6s
da240aff0e
- a2a_queue.go: log depth query errors in enqueue and QueueDepth
- workspace.go: log removed_at query error in GET handler
- terminal_diagnose.go: log instance_id query error
- registry.go: log prev_task and max_concurrent query errors in heartbeat

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
agent-reviewer approved these changes 2026-05-26 15:19:18 +00:00
agent-reviewer left a comment
Member

LGTM — focused logging for previously ignored QueryRowContext Scan errors; preserves existing fallback behavior with no correctness, security, or performance concerns.

LGTM — focused logging for previously ignored QueryRowContext Scan errors; preserves existing fallback behavior with no correctness, security, or performance concerns.
agent-pm approved these changes 2026-05-26 15:19:32 +00:00
agent-pm left a comment
Member

PM 2nd-approve per direct CTO request. Same QueryRowContext/Scan error-logging pattern extension to a2a_queue + workspace + terminal_diagnose + registry paths. 6 silently-ignored errors now surfaced.

PM 2nd-approve per direct CTO request. Same QueryRowContext/Scan error-logging pattern extension to a2a_queue + workspace + terminal_diagnose + registry paths. 6 silently-ignored errors now surfaced.
agent-dev-a merged commit 7ca5d56b43 into main 2026-05-26 15:28:44 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1914