Skip to content

Accept unix:// URLs for the Redis backend#415

Open
alexdavid wants to merge 1 commit into
Shopify:mainfrom
alexdavid:add-unix-socket-url-support
Open

Accept unix:// URLs for the Redis backend#415
alexdavid wants to merge 1 commit into
Shopify:mainfrom
alexdavid:add-unix-socket-url-support

Conversation

@alexdavid

Copy link
Copy Markdown

Forward unix-scheme URLs to the existing Redis backend instead of rejecting them in CI::Queue.from_uri. redis-client (redis 5.x's transport) already parses unix:// URLs natively and uses the path component as the socket path, so no changes are needed in the Redis backend itself; only the dispatch in CI::Queue needs to recognize the scheme.

This unblocks workloads that run an in-process Redis listening only on a unix socket — typically hermetic test sandboxes that want to avoid allocating TCP ports — from using ci-queue without an external patch or monkey-patch.

Forward unix-scheme URLs to the existing Redis backend instead of
rejecting them in CI::Queue.from_uri. redis-client (redis 5.x's
transport) already parses unix:// URLs natively and uses the path
component as the socket path, so no changes are needed in the Redis
backend itself; only the dispatch in CI::Queue needs to recognize
the scheme.

This unblocks workloads that run an in-process Redis listening only
on a unix socket — typically hermetic test sandboxes that want to
avoid allocating TCP ports — from using ci-queue without an external
patch or monkey-patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants