Context
The #551 lint burndown turned on whole-repo golangci-lint. Most errcheck findings were either fixed (trivial) or are test-only. But ~9 production errcheck findings represent a genuine product/behavior decision — should the failure fail the operation, or be best-effort log-and-continue? — that a senior dev who owns the provisioning flow should make, rather than an agent guessing. They are //nolint:errcheck // TODO(#556)-suppressed for now so the lint gate is green; this issue tracks resolving them.
The deferred sites
| Location |
Call |
The decision |
| services/redis/delete_worker.go:66, :75 |
asyncmessage.WriteAsyncJobMessage |
Highest priority. Silent failure = job-state drift: the customer sees success but the backend never recorded the state. Should this fail the worker / retry, or log? |
| services/rds/rdsinstance.go:169, :255 |
setEnabledCloudwatchLogGroupExports |
Should a log-export config failure fail provision/modify, or be best-effort? |
| services/rds/rdsinstance.go:184, :237 |
setTags |
Should a tagging failure fail provision, or be best-effort? |
| services/elasticsearch/elasticsearchinstance.go:197 |
setTags |
Same question, ES path. |
| services/elasticsearch/broker.go:406 |
existingInstance.setBucket |
Does a setBucket failure matter to the caller? |
| awsiam/iam_policy.go:401 |
(unchecked return) |
Confirm the ignored error is safe or handle it. |
Task
Split out of #551 so the low-risk lint cleanup can merge without embedding provisioning behavior changes an agent isn't confident making. Severity: MEDIUM (correctness/observability of provisioning + async job state).
Context
The #551 lint burndown turned on whole-repo
golangci-lint. Most errcheck findings were either fixed (trivial) or are test-only. But ~9 production errcheck findings represent a genuine product/behavior decision — should the failure fail the operation, or be best-effort log-and-continue? — that a senior dev who owns the provisioning flow should make, rather than an agent guessing. They are//nolint:errcheck // TODO(#556)-suppressed for now so the lint gate is green; this issue tracks resolving them.The deferred sites
asyncmessage.WriteAsyncJobMessagesetEnabledCloudwatchLogGroupExportssetTagssetTagsexistingInstance.setBucketTask
WriteAsyncJobMessage— job-state integrity).//nolint:errcheck // TODO(#556)comments.golangci-lint run ./...stays green.Split out of #551 so the low-risk lint cleanup can merge without embedding provisioning behavior changes an agent isn't confident making. Severity: MEDIUM (correctness/observability of provisioning + async job state).