fix(dev): resolve Valkey image pull failure and clear server lint warnings#2059
Open
ganeshwhere wants to merge 1 commit intoMail-0:stagingfrom
Open
fix(dev): resolve Valkey image pull failure and clear server lint warnings#2059ganeshwhere wants to merge 1 commit intoMail-0:stagingfrom
ganeshwhere wants to merge 1 commit intoMail-0:stagingfrom
Conversation
…nings
Problem:
- Local DB stack failed because docker image `docker.io/bitnami/valkey:8.0` was not found.
- Pre-commit lint was blocked by unused variable/import warnings in server code.
Changes:
- docker-compose.db.yaml
- updated Valkey image from `docker.io/bitnami/valkey:8.0` to `bitnami/valkey:latest`
- apps/server/src/routes/chat.ts
- removed unused imports/types and dead interface
- renamed unused param `options` -> `_options`
- removed unused locals (`pageCount`, unused `q` destructuring)
- changed unused catch params to `catch {}`
- apps/server/src/lib/email-verification.ts
- changed unused catch params to `catch {}`
- simplified promise fallbacks to `.catch(() => false)`
Validation:
- `pnpm dlx oxlint@1.9.0 --deny-warnings` => 0 warnings, 0 errors
Impact:
- fixes local Valkey pull/startup issue
- restores clean pre-commit lint flow without bypass flags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes local DB startup failures in Docker and removes blocking lint warnings in the server codebase.
Problem
Running
pnpm docker:db:upfailed because the configured Valkey image could not be pulled:docker.io/bitnami/valkey:8.0: not foundPre-commit checks were also failing due to
eslint(no-unused-vars)warnings (treated as failures byoxlint --deny-warnings).Root Cause
docker-compose.db.yamlreferenced a Valkey image/tag that was unavailable.apps/server/src/routes/chat.tsandapps/server/src/lib/email-verification.tshad unused imports, params, locals, and catch bindings.Changes Made
docker-compose.db.yamldocker.io/bitnami/valkey:8.0bitnami/valkey:latestapps/server/src/routes/chat.tscatch {}_optionsapps/server/src/lib/email-verification.tscatch {}.catch(() => false)Validation
pnpm docker:db:upzerodotemail-db,zerodotemail-redis,zerodotemail-upstash-proxyall runningpnpm dlx oxlint@1.9.0 --deny-warningsFound 0 warnings and 0 errors.Impact
Type of Change
Areas Affected
Testing Done
Security Considerations
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.