Conversation
PR SummaryMedium Risk Overview Reviewed by Cursor Bugbot for commit 6496f19. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
LGTM — straightforward enforcement of Redis as a required dependency.
Extended reasoning...
Overview
Single-file change to run.go that removes the ErrRedisDisabled carve-out and all redisClient \!= nil guards, making Redis unconditionally required at startup. The companion commit (21aa127) already establishes this as an intentional infrastructure decision.
Security risks
None. The change removes optional code paths rather than introducing new ones; it tightens startup requirements rather than relaxing any security boundary.
Level of scrutiny
Low. This is a small, mechanical removal of fallback/optional logic with clear and explicit intent. No new logic is introduced — only guards are deleted. The fatal-on-error path already existed for other error types.
Other factors
One nit was flagged (inline comment): when ErrRedisDisabled is returned, the log message 'Could not connect to Redis' may mislead operators into debugging connectivity rather than checking for a missing env var. This is a diagnostic quality issue only — the behavior (fatal exit) is correct and intended. The structured zap.Error(err) field will include 'redis is disabled' for operators who look, mitigating the impact.
There was a problem hiding this comment.
1/5 (basically what Claude said ^^) Right now the error message a developer would see is "redis is disabled" wrapped inside "Could not connect to Redis", which is a bit misleading - they didn't fail to connect, they failed to configure. A dedicated config validation at startup ("REDIS_URL or REDIS_CLUSTER_URL must be set") would be clearer.
Are local runs affected by this change?
levb
left a comment
There was a problem hiding this comment.
LGTM, contingent on tests passing (still running)
No description provided.